3.3.4.17 DBGetDhcpServerFromServerInfoRecordId

The DBGetDhcpServerFromServerInfoRecordId 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 following, 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 InterNetwork or InterNetworkV6. If either of the conditions is not met, an appropriate SOAP fault MUST be returned.

  2. Look up in the ADM_ServerRolesTable the row with ServerRecordID equal to DBGetDhcpServerFromServerInfoRecordId.serverInfoRecordId and ServerRoleDetails.ServerRoleFlag equal to ServerRoleType.Dhcp.

  3. If the row is found, look up 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.