18.104.22.168.83 ApiGetNetworkState (Opnum 83)
(Protocol Version 2) The ApiGetNetworkState method returns the current state of the specified cluster network.
A cluster network has a state that is calculated from the configuration and state of its cluster interfaces that are installed on that cluster network. The state of a cluster network and its associated cluster network interfaces can change according to implementation-specific mechanisms between servers, such as when the server detects that an interface on that cluster network has failed.
The server SHOULD accept an ApiGetNetworkState request if its protocol server state is read-only and MUST accept the request for processing if it is in the read/write state, as specified in section 3.1.1.
error_status_t ApiGetNetworkState( [in] HNETWORK_RPC hNetwork, [out] DWORD* State );
State: The current state of the cluster network, which is written by the server after successful completion of this method. If the method fails, this parameter MUST be ignored. If the method succeeds, this field MUST be set to one of the following values.
All cluster network interfaces on the network are in the ClusterNetInterfaceUnavailable state.
All cluster network interfaces on the network are in either the ClusterNetInterfaceFailed state or the ClusterNetInterfaceUnreachable state.
One or more cluster network interfaces are in the ClusterNetInterfaceUnreachable state, and at least two interfaces are in the ClusterNetInterfaceUp state.
All cluster network interfaces are in the ClusterNetInterfaceUp state.
The operation to retrieve cluster network state was not successful.
Return Values: The method MUST return the following error codes for the specified conditions.
Return value/code Description
The data that is pointed to by the hNetwork parameter does not represent a valid HNETWORK_RPC context handle.
For any other condition, this method MUST return a value that is not one of the values listed in the preceding table. The client MUST behave in one consistent, identical manner for all values that are not listed in the preceding table. The client SHOULD treat errors specified in 22.214.171.124 as recoverable errors and initiate the reconnect procedure as specified in section 126.96.36.199.