Reapplies IPv4 network templates. The template must already be applied to an object before you can re-apply or remove it.
Output / Response
None.
API call:
void reapplyTemplate ( long templateId,String
properties )
Parameter | Description |
---|---|
templateId | The object ID of the IPv4 network template or DNS zone template to be assigned or updated. |
properties | A string containing the following settings:
Note:
|
Java client example
EntityProperties ntProp = new EntityProperties(); ntProp.addProperty( ObjectProperties.templateType, ObjectProperties.IP4NetworkTemplateType ); ntProp.addProperty( ObjectProperties.gatewayReapplyMode, ObjectProperties.templateReapplyModeUpdate ); ntProp.addProperty( ObjectProperties.reservedAddressesReapplyMode, ObjectProperties.templateReapplyModeUpdate ); service.reapplyTemplate( networkTemplateId3, ntProp.getPropertiesString() );
Perl client example
SOAP::Data->type( 'string' )->name( 'properties' )-> value( ObjectProperties::templateType."=".ObjectProperties:: IP4NetworkTemplateType."|". ObjectProperties:: gatewayReapplyMode."=".ObjectProperties:: templateReapplyModeUpdate."|" ) ->attr({xmlns => ''}) )->result;