3.3.4.126 SaveAddressSpace
The SaveAddressSpace operation creates a new address space in the IPAM data store.
-
<wsdl:operation name="SaveAddressSpace"> <wsdl:input wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/SaveAddressSpace" message="ipam:IIpamServer_SaveAddressSpace_InputMessage" /> <wsdl:output wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/SaveAddressSpaceResponse" message="ipam:IIpamServer_SaveAddressSpace_OutputMessage" /> </wsdl:operation>
Upon receiving the IIpamServer_SaveAddressSpace_InputMessage request message, the server performs the following processing steps. Upon successful completion of these steps, the server MUST respond with the IIpamServer_SaveAddressSpace_OutputMessage. In the event of a failure, an appropriate SOAP fault MUST be sent to the client as specified in section 2.2.2.1:
Validate AddressSpace in SaveAddressSpace.addressSpace by invoking ValidateAddressSpace passing SaveAddressSpace.addressSpace as Param_AddressSpace.
If all the validation requirements are not met, an appropriate SOAP fault MUST be generated.
Assign SaveAddressSpace.addressSpace to addressSpaceToSave to a temporary data store.
Check that there isn’t already an address space by addressSpaceToSave.Name. Names of address spaces in IPAM MUST be unique.
Call the procedure GetAddressSpaceByName of ADM_AddressSpaceTable with the following parameters:
Pass addressSpaceToSave.Name as Param_AddressSpaceName.
Pass addressSpaceToSave.AddressSpaceType as Param_AddressSpaceType.
If Result_AddressSpace is not NULL or empty, an appropriate SOAP fault MUST be generated.
Add a new row in ADM_AddressSpaceTable with the values from the addressSpaceToSave properties.
Assign the RecordId of the new record to SaveAddressSpaceResponse.SaveAddressSpaceResult.
If CustomFieldValues is also part of the properties of addressSpaceToSave, call the procedure SetCustomFieldValues in ADM_CustomFieldValuesAssociationTable passing the following parameters:
Param_ObjectType is set to EnumerationObjectType.AddressSpace.
Param_addressFamily is set to InterNetwork if UpdateBlock.ipBlock is IPv4Block. It is set to InterNetworkV6 if UpdateBlock.ipBlock is IPv6Block.
Param_ObjectRecordId is assigned the value of updatedAddressSpace.RecordId.
Param_CustomFieldValuesCollection is assigned the value of updatedAddressSpace.CustomFieldValues.