PUT /nodes/systemGuardSetting
Use this method to enable or disable System Guard on one or more managed servers with XCC2 only.
This request starts a job that runs in the background to perform the operation. The response body returns the job URI for this request. Use GET /tasks/{job_list} to monitor the status and progress of the job.
A successful response code indicates that the job was successfully transmitted and accepted by the portal. It does not indicate that the operation that is associated with the job was successful. If a job was not successfully started, refer to the response code and response body for details.
Authentication
Authentication with username and password is required.
Request URL
PUT https://{management_server_IP}/nodes/systemGuardSetting
Query parameters
None
Request body
Attributes | Required / Optional | Type | Description | ||
---|---|---|---|---|---|
lockDownPolicy | Optional | String | Indicates the behavior when systemGuardEnable is true, an inventory change is detected, and the server becomes non-compliant. This can be one of the following values. If not specified, the current setting on the device remains as is.
| ||
systemGuardEnabled | Required | Boolean | Indicates whether to enable System Guard. This can be one of the following values.
| ||
uuids | Required | Array of strings | List of UUIDs of managed devices to configure |
{
"lockDownPolicy": "PreventOSBooting",
"systemGuardEnabled": true,
"uuids": ["FBB43C13103511E785f2E4A2CED78753", "23ABC13103511E785f2E4A2CED787DE"]
}
{
"systemGuardEnabled": false,
"uuids": ["FBB43C13103511E785f2E4A2CED78753", "23ABC13103511E785f2E4A2CED787DE"]
}
Response codes
Code | Description | Comments |
---|---|---|
202 | Accepted | The request has been accepted for processing, but the processing has not yet completed. The request might or might not be acted upon, depending on the results of the processing. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response header
Location: /tasks/34
Response body
Attributes | Type | Description | ||
---|---|---|---|---|
path | String | URI of the root job |
{
"path": "/tasks/34"
}