v4

latestOpenAPI 3.1.02026-08-02261331761.5 KB
Policy Guards (EAP)

Create Policy Guard Scope

Create a new Policy guard scope.

post/v2/policy_guards/scopes

Request body

keystring required

The unique key of the policy guard scope.

Example request

{
  "key": "policy_guard_acme",
  "policy_guard_scope_details": [
    {
      "project_id": "c3b6f5d78b1e4c6d9e9f8c9d6f8e0c8f"
    }
  ]
}

Response

Successful Response

keystring required

The unique key of the policy guard scope.

idstring uuid required

Unique id of the ScopeConfig

organization_idstring uuid required

Unique id of the organization that the ScopeConfig belongs to.

Example response

{
  "id": "c3b6f5d7-8b1e-4c6d-9e9f-8c9d6f8e0c8f",
  "key": "policy_guard_acme",
  "org_id": "c3b6f5d7-8b1e-4c6d-9e9f-8c9d6f8e0c8f",
  "policy_guard_scope_details": [
    {
      "project_id": "c3b6f5d78b1e4c6d9e9f8c9d6f8e0c8f"
    }
  ]
}