Decommissioning
inactive computers (v2)
Available from 11.0.6. You use the DELETE
operation on the api/sam/v2/computers element to decommission a computer
from a disconnected scan or a container image.
Limitation:A decommissioned computer may still have the is_deleted
value set to 0 in the response of the GET operation on the
api/sam/v2/computers API endpoint. Despite this, the computer is
properly decommissioned and is no longer present in the web interface. This limitation may
be addressed in the future releases.
Permissions
You must have the View Endpoints and Manage Computer Groups permission to
use this API.
Resource URL
https://hostname:port/api/sam/v2/computers/computer_id?token=token
Resource information
| Operation details | Description |
|---|---|
| HTTP method | DELETE |
| Request headers |
Negotiates the language of the response. If the header is not specified, the content is returned in the server language. |
| Request format | application/json |
| Response headers |
Specifies the content type of the response. |
Specifies the language of the response content. If the header is not specified, the content is returned in the server language. |
|
| Response payload | Operation status |
| Response format | application/json |
| Response codes |
|
Example conversation
- Request
-
DELETE api/sam/v2/computers/27?token=7adc3efb175e2bc0f4484bdd2efca54a8fa04623 Host: localhost:9081 Accept: application/json Accept-Language: en-US - Response body
-
{ "message": "success" }