3.3.4.10 DBGetDhcpServerFromServerInfoRecordId

This operation can be used to retrieve the DhcpServer instance for the specified ServerInfo RecordId.

 <wsdl:operation name="DBGetDhcpServerFromServerInfoRecordId">
   <wsdl:input wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/DBGetDhcpServerFromServerInfoRecordId" message="ipam:IIpamServer_DBGetDhcpServerFromServerInfoRecordId_InputMessage" />
   <wsdl:output wsaw:Action="http://Microsoft.Windows.Ipam/IIpamServer/DBGetDhcpServerFromServerInfoRecordIdResponse" message="ipam:IIpamServer_DBGetDhcpServerFromServerInfoRecordId_OutputMessage" />
 </wsdl:operation>

Upon receiving the IIpamServer_DBGetDhcpServerFromServerInfoRecordId_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_DBGetDhcpServerFromServerInfoRecordId_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.

  1. Validate DBGetDhcpServerFromServerInfoRecordId.serverInfoRecordId is not 0 and DBGetDhcpServerFromServerInfoRecordId.addressFamily is either Internet or InternetV6. If either of the conditions are not met, an appropriate SOAP fault MUST be returned.

  2. Lookup the ADM_ServerRolesTable for the row with ServerRecordID being DBGetDhcpServerFromServerInfoRecordId.serverInfoRecordId and ServerRoleDetails.ServerRoleFlag being ServerRoleType.Dhcp.

  3. If the row is found, lookup ADM_DHCPServersTable for the row that has the ServerRoleRecordId to be the RecordId of the row found in ADM_ServerRolesTable. The DBGetDhcpServerFromServerInfoRecordId.addressFamily is used to select the simple table within the ADM_DHCPServersTable against which the lookup is being done.

  4. Use the RecordId of the row as Param_Id and DBGetDhcpServerFromServerInfoRecordId.addressFamily as Param_addressfamily and call the procedure GetDHCPServerFromTable in ADM_DHCPServersTable. Assign the Result_server to DBGetDhcpServerFromServerInfoRecordIdResponse.DBGetDhcpServerFromServerInfoRecordIdResult.