Deactivate Namespace
POST /object/namespaces/namespace/{namespace}/deactivate
Deactivates and deletes the given namespace and all associated user mappings.
namespace | An active namespace identifier which needs to be deactivated/deleted |
Required Roles
Prerequisites
The following conditions must be met in order to call this operation.
Request Payload
No Request Payload
Response Body
Response indicating Success or Failure to deactivate/delete namespace
Examples
Request
POST https://192.168.0.0:4443/object/namespaces/namespace/testns/deactivate HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
Request
POST https://192.168.0.0:4443/object/namespaces/namespace/testns/deactivate.json HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
Request
curl -H $token -H "Content-Type: application/xml" -X POST https://$nodeIp:4443/object/namespaces/namespace/testns/deactivate
Response
HTTP/1.1 200 OK
Content-Type: application/xml