Cluster ActionsCreate cluster actions

Create cluster actions

Create one or more cluster isolation actions (terminate pod, disable outbound traffic, label pod). Actions are queued with status Pending and applied in the cluster by the rad-sync plugin. A single disable_outbound request creates two actions: a label_pod action applying the quarantine labels, and a disable_outbound action creating the deny-all-egress NetworkPolicy.

curl -X POST "https://api.prd.rad.security/accounts/example_string/clusters/example_string/actions" \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY"
[
  {
    "id": "example_string",
    "cluster_id": "example_string",
    "account_id": "example_string",
    "action_type": "terminate_pod",
    "status": "Pending",
    "target_pod_name": "John Doe",
    "target_namespace": "John Doe",
    "parameters": {},
    "result": "example_string",
    "created_by": "example_string",
    "created_at": "example_string",
    "updated_at": "example_string",
    "deleted_at": "example_string"
  }
]
POST
/accounts/{account_id}/clusters/{cluster_id}/actions
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: Authorization)
Authorizationstring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
No request body parameters defined
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

Body

application/json
dataarray
Required

Raw application/json data

Responses