Set Vdc Lock Status
PUT /vdc/lockdown
Sets the locked/unlocked status of a VDC
Required Roles
Request Payload
<HttpServletRequest>
</HttpServletRequest>
{}
All parameters are required unless otherwise stated.
Field |
Description |
Type |
Notes |
HttpServletRequest |
|
|
|
Response Body
Response indicating status of lockdown request locked if all nodes are locked unlocked otherwise
Field |
Description |
Type |
Notes |
vdcstatus |
|
|
|
status |
|
String |
|
Examples
Request
PUT https://10.245.133.106:4443/vdc/lockdown HTTP/1.1
Content-Type: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vdcstatus>
<status>locked</status>
</vdcstatus>
Request
PUT https://10.245.133.106:4443/vdc/lockdown HTTP/1.1
Content-Type: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
"status":"locked"
}
Request
curl -H $token -H "Content-Type: application/xml" -X PUT https://$nodeIp:4443/vdc/lockdown
Response
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vdcstatus>
<status>locked</status>
</vdcstatus>