3.3.4.63 ManuallyUpdateServer
This operation can be used to manually update a specified ServerInfo data.
-
<wsdl:operation name="ManuallyUpdateServer"> <wsdl:input wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/ManuallyUpdateServer" message="ipam:IIpamServer_ManuallyUpdateServer_InputMessage" /> <wsdl:output wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/ManuallyUpdateServerResponse" message="ipam:IIpamServer_ManuallyUpdateServer_OutputMessage" /> </wsdl:operation>
Upon receiving the IIpamServer_ManuallyUpdateServer_InputMessage request message, the server performs the following processing steps. Upon successful completion of the steps specified below, the server MUST respond with the IIpamServer_ManuallyUpdateServer_OutputMessage message. In the event of a failure, an appropriate SOAP fault MUST be sent to the client as specified in section 2.2.2.1.
If ManuallyUpdateServer.serverInfo is null, an appropriate SOAP fault MUST be generated.
Validate the ManuallyUpdateServer.serverInfo using the steps listed under ValidateServerInfo section passing ManuallyUpdateServer.serverInfo as Param_serverInfo. If one or more validations fail, an appropriate SOAP fault MUST be generated.
If ManuallyUpdateServer.serverInfo.ModifiedProperties contains the ServerRoleCollection, set ManuallyUpdateServer.serverInfo.NewFlag to ServerInfoNewFlag.Modified.
Update the list of properties in ManuallyUpdateServer.serverInfo.ModifiedProperties to the existing row of the ServerInfo data in ADM_ServersTable.
Remove the list of ServerRole for the ServerInfo from ADM_ServerRolesTable by looking up the rows with ServerRecordId being ServerInfo.RecordId.
For each ServerRole in ManuallyAddServer.serverInfo.ServerRoleCollection, add an entry into the ADM_ServerRolesTable.
If ManuallyUpdateServer.serverInfo.ServerCustomDataCollection is specified, validate them by performing the processing rules listed under the section ValidateCustomFieldValues by passing ManuallyUpdateServer.serverInfo.ServerCustomDataCollection. If it is valid, call the procedure SetCustomFieldValues in ADM_CustomFieldValuesAssociationTable by passing the following parameters:
Param_ObjectType is set to EnumerationObjectType.ServerInfo.
Param_addressFamily is not set to any value as ServerInfo is address family agnostic information.
Param_ObjectRecordId is set to ManuallyUpdateServerResponse.ManuallyUpdateServerResult.
Param_CustomFieldValuesCollection is assigned the value of ManuallyAddServer.serverInfo.ServerCustomDataCollection.