3.1.4.2.160 ApiRemoveGroupSetDependency (Opnum 178)

The ApiRemoveGroupSetDependency method<147> instructs the server to remove the dependency relation (section 3.1.1.1.2) that exists from the group set that is identified by hGroupSet to the group set that is identified by hDependsOn. For successful completion of the method, the server MUST remove the dependency from the nonvolatile cluster state.

The server MUST fail this method with ERROR_GROUPSET_NOT_AVAILABLE (0x00001767) if group set that is identified by hGroupSet is not found in cluster group sets.

The server MUST accept an ApiRemoveGroupSetDependency request only if its protocol server state is read/write, as specified in section 3.1.1.

The server MUST require that the access level associated with the hGroupSet context handle is "All" and that the access level associated with the hDependsOn context handle is "All" (section 3.1.4).

 error_status_t
 ApiRemoveGroupSetDependency (
   [ in ] HGROUPSET_RPC *hGroupSet,
   [ in ] HGROUPSET_RPC *hDependsOn,
   [ out ] error_status_t *rpc_status
 );

hGroupSet: An HGROUPSET_RPC (section 2.2.1.11) context handle that is obtained in a previous ApiOpenGroupSet (section 3.1.4.2.147) or ApiCreateGroupSet (section 3.1.4.2.146) method call.

hDependsOn: An HGROUPSET_RPC context handle that is obtained in a previous ApiOpenGroupSet or ApiCreateGroupSet method call.

rpc_status: A 32-bit integer used to indicate success or failure. The RPC runtime MUST indicate by writing to this parameter whether the runtime succeeded in executing this method on the server. The encoding of the value passed in this parameter MUST conform to encoding for comm_status and fault_status, as specified in Appendix E of [C706].

Return Values: The method MUST return the following error codes for the specified conditions.

Return value/code

Description

0x00000000

ERROR_SUCCESS

Success.

0x00000006

ERROR_INVALID_HANDLE

The data that is pointed to by either the hGroupSet parameter or the hDependsOn parameter does not represent a valid HGROUPSET_RPC context handle.

0x000013D1

ERROR_CLUSTER_NODE_SHUTTING_DOWN

The cluster node is shutting down.

0x00001767

ERROR_GROUPSET_NOT_AVAILABLE

The cluster group set is not available for any further requests.

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 section 3.2.4.6 as recoverable errors, and initiate the reconnect procedure as specified in section 3.2.4.6.