Skip to main content
GET
/
policies
/
resources
/
{resource_type}
/
{resource_id}
List policies by resource
curl --request GET \
  --url https://api.eu.bronto.io/policies/resources/{resource_type}/{resource_id} \
  --header 'X-BRONTO-API-KEY: <api-key>'
{
  "policies": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "description": "<string>",
      "policy_type": "ROLE_BASED",
      "resource": {},
      "actions": [
        "<string>"
      ],
      "restricted": true,
      "principal": {
        "principal_type": "ROLE",
        "principal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      },
      "when": {
        "resources": [
          {
            "resource_type": "ROLE",
            "resource_id": "<string>"
          }
        ],
        "principals": [
          {
            "principal_type": "ROLE",
            "principal_id": "958fe2d8-532d-4d4c-803a-db69a14a7c37"
          }
        ],
        "context": [
          {
            "key": "<string>",
            "operator": "==",
            "value": "<string>"
          }
        ]
      },
      "unless": {
        "resources": [
          {
            "resource_type": "ROLE",
            "resource_id": "<string>"
          }
        ],
        "principals": [
          {
            "principal_type": "ROLE",
            "principal_id": "958fe2d8-532d-4d4c-803a-db69a14a7c37"
          }
        ],
        "context": [
          {
            "key": "<string>",
            "operator": "==",
            "value": "<string>"
          }
        ]
      },
      "created_at": 123,
      "modified_at": 123
    }
  ]
}

Authorizations

X-BRONTO-API-KEY
string
header
required

Path Parameters

resource_type
string
required

The type of resource (e.g., "logset", "dataset").

resource_id
string
required

The unique identifier of the resource.

Response

A list of policies associated with the given resource.

policies
object[]