Disable vSphere Namespaces on the cluster. This operation tears down the Kubernetes instance and the worker nodes associated with vSphere Namespaces enabled cluster.
Identifier for the cluster for which vSphere Namespaces will be disabled. The parameter must be an identifier for the resource type: ClusterComputeResource.
Required session ID, acquired from Create Session API under CIS product
com.vmware.vapi.std.errors.not_allowed_in_current_state : if the Supervisor cluster is being restored from a backup. When a Supervisor cluster is restored, there’s a window of time during which the restored Supervisor cluster’s state is being synchronized back to vCenter. During that time, Supervisor cluster’s disablement is not allowed.
com.vmware.vapi.std.errors.unauthenticated : if the user can not be authenticated.
com.vmware.vapi.std.errors.unauthorized : if the user does not have Namespaces.Manage privilege.
com.vmware.vapi.std.errors.not_found : if the Supervisor cluster could not be located.
com.vmware.vapi.std.errors.error : if the system reports an error while responding to the request.
‘Default’ means this response is used for all HTTP codes that are not covered individually for this operation.
PowerCLI Client SDK Example