Assigns, updates, or removes DNS zone and IPv4 network templates.
Output / Response
None.
API Call:
void assignOrUpdateTemplate( long entityId,
long templateId, String properties
)
Parameter | Description |
---|---|
entityId | The object ID of the IPv4 network to which the network template is to be assigned or updated, or the object ID of the zone to which the zone template is to be assigned or updated. |
templateId | The object ID of the DNS zone template or IPv4 network template. To remove a template, set this value to 0 (zero). |
properties | A string containing the following settings:
Along with ObjectProperties.templateType, user can also specify the reapply mode for
various properties of the template.
Note: If you are not using Java or Perl, refer to Object Properties for the actual values.
|
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.assignOrUpdateTemplate( ip4N20_26Id, networkTemplateId, ntProp.getPropertiesString() );
Perl client example:
SOAP::Data->type( 'string' )->name( 'properties' )-> value( ObjectProperties::templateType."=".ObjectProperties:: IP4NetworkTemplateType."|". ObjectProperties:: gatewayReapplyMode."=".ObjectProperties:: templateReapplyModeUpdate."|" ) ->attr({xmlns => ''}) )->result;