Cisco AMP for Endpoints API

PUT /v1/computers/{:connector_guid}/isolation

Description

Request Isolation for a Computer.

If a computer is already isolated a 409 Conflict error status will be sent. Returns the same result of a GET request on the /isolation endpoint.

Show Response Fields

Name Type Description
version String
metadata.links.self String
data.available Boolean
data.status String
data.unlock_code String
data.comment String
data.isolated_by String
Write
Preview

Examples

Isolates a computer

Isolates a computer

Request

Requires Authorization
PUT /v1/computers/9cc16b53-6e61-4e9a-b93a-2ec21a3d741f/isolation
Headers
accept: application/json
content-type: application/json
accept-encoding: identity
authorization: Basic FILTERED
content-length: 83

cURL Edit, then copy and paste on your terminal

curl -X PUT \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-H 'accept-encoding: identity' \
-H 'content-length: 83' \
--compressed -H 'Accept-Encoding: gzip, deflate' \
-d '{"comment":"this is a comment about locking the computer","unlock_code":"unlockme"}' \
-u YOUR_API_CLIENT_ID \
'https://api.amp.cisco.com/v1/computers/9cc16b53-6e61-4e9a-b93a-2ec21a3d741f/isolation'
Body
{"comment":"this is a comment about locking the computer","unlock_code":"unlockme"}
      

Response

Shortened for readability

content-type: application/json; charset=utf-8
transfer-encoding: chunked
status: 409 Conflict
x-ratelimit-limit: 3000
x-ratelimit-reset: 1991
referrer-policy: strict-origin-when-cross-origin
x-ratelimit-remaining: 2863
x-permitted-cross-domain-policies: none
x-download-options: noopen
x-frame-options: SAMEORIGIN
x-ratelimit-resetdate: 2021-05-05T23:55:49Z
{
  "version": "v1.2.0",
  "metadata": {
    "links": {
      "self": "https://api.amp.cisco.com/v1/computers/9cc16b53-6e61-4e9a-b93a-2ec21a3d741f/isolation"
    }
  },
  "data": {
  },
  "errors": [
    {
      "error_code": 409,
      "description": "Conflict",
      "details": [
        "Cannot Process start, already in that state"
      ]
    }
  ]
}