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.rad.security/accounts/example_string/clusters/example_string/actions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
[
  {
    "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.

Bearer Token
Bearer Tokenstring
Required

Bearer token - just enter the token, "Bearer" prefix will be added automatically

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

Bearer token. Authentication token required.

Path Parameters

Body

application/json
dataarray
Required

Raw application/json data

Responses