Skip to main content
GET
/
accounts
/
{account_id}
/
resources
/
rbac
/
clusterroles
/
{uid}
Get cluster role details
curl --request GET \
  --url https://api.prd.rad.security/accounts/{account_id}/resources/rbac/clusterroles/{uid}
{
  "account_id": "<string>",
  "assigned_subjects": [
    {
      "kind": "<any>",
      "name": "<any>",
      "namespace": "<any>",
      "uid": "<any>",
      "account_id": "<any>",
      "cluster_id": "<any>",
      "created_at": "<any>",
      "id": "<any>",
      "updated_at": "<any>"
    }
  ],
  "cluster_id": "<string>",
  "cluster_role_bindings": [
    {
      "account_id": "<string>",
      "cluster_id": "<string>",
      "cluster_role": {},
      "created_at": "<string>",
      "graph": {
        "edges": [
          "<any>"
        ],
        "nodes": [
          "<any>"
        ]
      },
      "groups": [
        {
          "account_id": "<string>",
          "api_group": "<string>",
          "assigned_roles": [
            {
              "kind": "<any>",
              "name": "<any>",
              "namespace": "<any>",
              "uid": "<any>",
              "account_id": "<any>",
              "cluster_id": "<any>",
              "created_at": "<any>",
              "id": "<any>",
              "updated_at": "<any>"
            }
          ],
          "cluster_id": "<string>",
          "cluster_role_bindings": [
            {}
          ],
          "created_at": "<string>",
          "graph": {
            "edges": [
              "<any>"
            ],
            "nodes": [
              "<any>"
            ]
          },
          "id": "<string>",
          "name": "<string>",
          "namespace": "<string>",
          "permissions": [
            {
              "category": "<any>",
              "content": "<any>",
              "created_at": "<any>",
              "deleted_at": "<any>",
              "description": "<any>",
              "id": "<any>",
              "severity": "<any>",
              "status": "<any>",
              "tags": "<any>",
              "title": "<any>",
              "type": "<any>",
              "updated_at": "<any>",
              "version": "<any>",
              "api_groups": "<any>",
              "cluster_role_uid": "<any>",
              "namespace": "<any>",
              "resource_names": "<any>",
              "resources": "<any>",
              "role_uid": "<any>",
              "verbs": "<any>"
            }
          ],
          "role_bindings": [
            {
              "account_id": "<string>",
              "cluster_id": "<string>",
              "cluster_role": {},
              "created_at": "<string>",
              "graph": {
                "edges": [
                  "<any>"
                ],
                "nodes": [
                  "<any>"
                ]
              },
              "groups": [
                {}
              ],
              "name": "<string>",
              "namespace": "<string>",
              "resource_version": "<string>",
              "role": {
                "account_id": "<string>",
                "assigned_subjects": [
                  {
                    "kind": "<any>",
                    "name": "<any>",
                    "namespace": "<any>",
                    "uid": "<any>",
                    "account_id": "<any>",
                    "cluster_id": "<any>",
                    "created_at": "<any>",
                    "id": "<any>",
                    "updated_at": "<any>"
                  }
                ],
                "cluster_id": "<string>",
                "created_at": "<string>",
                "graph": {
                  "edges": [
                    "<any>"
                  ],
                  "nodes": [
                    "<any>"
                  ]
                },
                "name": "<string>",
                "namespace": "<string>",
                "resource_version": "<string>",
                "role_bindings": [
                  {}
                ],
                "rules": [
                  {
                    "category": "<any>",
                    "content": "<any>",
                    "created_at": "<any>",
                    "deleted_at": "<any>",
                    "description": "<any>",
                    "id": "<any>",
                    "severity": "<any>",
                    "status": "<any>",
                    "tags": "<any>",
                    "title": "<any>",
                    "type": "<any>",
                    "updated_at": "<any>",
                    "version": "<any>",
                    "api_groups": "<any>",
                    "cluster_role_uid": "<any>",
                    "namespace": "<any>",
                    "resource_names": "<any>",
                    "resources": "<any>",
                    "role_uid": "<any>",
                    "verbs": "<any>"
                  }
                ],
                "uid": "<string>",
                "updated_at": "<string>"
              },
              "role_ref_api_group": "<string>",
              "role_ref_kind": "<string>",
              "role_ref_name": "<string>",
              "service_accounts": [
                {
                  "account_id": "<string>",
                  "assigned_roles": [
                    {
                      "kind": "<any>",
                      "name": "<any>",
                      "namespace": "<any>",
                      "uid": "<any>",
                      "account_id": "<any>",
                      "cluster_id": "<any>",
                      "created_at": "<any>",
                      "id": "<any>",
                      "updated_at": "<any>"
                    }
                  ],
                  "cluster_id": "<string>",
                  "cluster_role_bindings": [
                    {}
                  ],
                  "created_at": "<string>",
                  "graph": {
                    "edges": [
                      "<any>"
                    ],
                    "nodes": [
                      "<any>"
                    ]
                  },
                  "name": "<string>",
                  "namespace": "<string>",
                  "permissions": [
                    {
                      "category": "<any>",
                      "content": "<any>",
                      "created_at": "<any>",
                      "deleted_at": "<any>",
                      "description": "<any>",
                      "id": "<any>",
                      "severity": "<any>",
                      "status": "<any>",
                      "tags": "<any>",
                      "title": "<any>",
                      "type": "<any>",
                      "updated_at": "<any>",
                      "version": "<any>",
                      "api_groups": "<any>",
                      "cluster_role_uid": "<any>",
                      "namespace": "<any>",
                      "resource_names": "<any>",
                      "resources": "<any>",
                      "role_uid": "<any>",
                      "verbs": "<any>"
                    }
                  ],
                  "resource_version": "<string>",
                  "role_bindings": [
                    {}
                  ],
                  "uid": "<string>",
                  "updated_at": "<string>"
                }
              ],
              "uid": "<string>",
              "updated_at": "<string>",
              "users": [
                {
                  "account_id": "<string>",
                  "api_group": "<string>",
                  "assigned_roles": [
                    {
                      "kind": "<any>",
                      "name": "<any>",
                      "namespace": "<any>",
                      "uid": "<any>",
                      "account_id": "<any>",
                      "cluster_id": "<any>",
                      "created_at": "<any>",
                      "id": "<any>",
                      "updated_at": "<any>"
                    }
                  ],
                  "cluster_id": "<string>",
                  "cluster_role_bindings": [
                    {}
                  ],
                  "created_at": "<string>",
                  "graph": {
                    "edges": [
                      "<any>"
                    ],
                    "nodes": [
                      "<any>"
                    ]
                  },
                  "id": "<string>",
                  "name": "<string>",
                  "namespace": "<string>",
                  "permissions": [
                    {
                      "category": "<any>",
                      "content": "<any>",
                      "created_at": "<any>",
                      "deleted_at": "<any>",
                      "description": "<any>",
                      "id": "<any>",
                      "severity": "<any>",
                      "status": "<any>",
                      "tags": "<any>",
                      "title": "<any>",
                      "type": "<any>",
                      "updated_at": "<any>",
                      "version": "<any>",
                      "api_groups": "<any>",
                      "cluster_role_uid": "<any>",
                      "namespace": "<any>",
                      "resource_names": "<any>",
                      "resources": "<any>",
                      "role_uid": "<any>",
                      "verbs": "<any>"
                    }
                  ],
                  "role_bindings": [
                    {}
                  ],
                  "updated_at": "<string>"
                }
              ]
            }
          ],
          "updated_at": "<string>"
        }
      ],
      "name": "<string>",
      "resource_version": "<string>",
      "role_ref_api_group": "<string>",
      "role_ref_kind": "<string>",
      "role_ref_name": "<string>",
      "service_accounts": [
        {
          "account_id": "<string>",
          "assigned_roles": [
            {
              "kind": "<any>",
              "name": "<any>",
              "namespace": "<any>",
              "uid": "<any>",
              "account_id": "<any>",
              "cluster_id": "<any>",
              "created_at": "<any>",
              "id": "<any>",
              "updated_at": "<any>"
            }
          ],
          "cluster_id": "<string>",
          "cluster_role_bindings": [
            {}
          ],
          "created_at": "<string>",
          "graph": {
            "edges": [
              "<any>"
            ],
            "nodes": [
              "<any>"
            ]
          },
          "name": "<string>",
          "namespace": "<string>",
          "permissions": [
            {
              "category": "<any>",
              "content": "<any>",
              "created_at": "<any>",
              "deleted_at": "<any>",
              "description": "<any>",
              "id": "<any>",
              "severity": "<any>",
              "status": "<any>",
              "tags": "<any>",
              "title": "<any>",
              "type": "<any>",
              "updated_at": "<any>",
              "version": "<any>",
              "api_groups": "<any>",
              "cluster_role_uid": "<any>",
              "namespace": "<any>",
              "resource_names": "<any>",
              "resources": "<any>",
              "role_uid": "<any>",
              "verbs": "<any>"
            }
          ],
          "resource_version": "<string>",
          "role_bindings": [
            {}
          ],
          "uid": "<string>",
          "updated_at": "<string>"
        }
      ],
      "uid": "<string>",
      "updated_at": "<string>",
      "users": [
        {
          "account_id": "<string>",
          "api_group": "<string>",
          "assigned_roles": [
            {
              "kind": "<any>",
              "name": "<any>",
              "namespace": "<any>",
              "uid": "<any>",
              "account_id": "<any>",
              "cluster_id": "<any>",
              "created_at": "<any>",
              "id": "<any>",
              "updated_at": "<any>"
            }
          ],
          "cluster_id": "<string>",
          "cluster_role_bindings": [
            {}
          ],
          "created_at": "<string>",
          "graph": {
            "edges": [
              "<any>"
            ],
            "nodes": [
              "<any>"
            ]
          },
          "id": "<string>",
          "name": "<string>",
          "namespace": "<string>",
          "permissions": [
            {
              "category": "<any>",
              "content": "<any>",
              "created_at": "<any>",
              "deleted_at": "<any>",
              "description": "<any>",
              "id": "<any>",
              "severity": "<any>",
              "status": "<any>",
              "tags": "<any>",
              "title": "<any>",
              "type": "<any>",
              "updated_at": "<any>",
              "version": "<any>",
              "api_groups": "<any>",
              "cluster_role_uid": "<any>",
              "namespace": "<any>",
              "resource_names": "<any>",
              "resources": "<any>",
              "role_uid": "<any>",
              "verbs": "<any>"
            }
          ],
          "role_bindings": [
            {}
          ],
          "updated_at": "<string>"
        }
      ]
    }
  ],
  "created_at": "<string>",
  "graph": {
    "edges": [
      "<any>"
    ],
    "nodes": [
      "<any>"
    ]
  },
  "name": "<string>",
  "resource_version": "<string>",
  "role_bindings": [
    {
      "account_id": "<string>",
      "cluster_id": "<string>",
      "cluster_role": {},
      "created_at": "<string>",
      "graph": {
        "edges": [
          "<any>"
        ],
        "nodes": [
          "<any>"
        ]
      },
      "groups": [
        {}
      ],
      "name": "<string>",
      "namespace": "<string>",
      "resource_version": "<string>",
      "role": {
        "account_id": "<string>",
        "assigned_subjects": [
          {
            "kind": "<any>",
            "name": "<any>",
            "namespace": "<any>",
            "uid": "<any>",
            "account_id": "<any>",
            "cluster_id": "<any>",
            "created_at": "<any>",
            "id": "<any>",
            "updated_at": "<any>"
          }
        ],
        "cluster_id": "<string>",
        "created_at": "<string>",
        "graph": {
          "edges": [
            "<any>"
          ],
          "nodes": [
            "<any>"
          ]
        },
        "name": "<string>",
        "namespace": "<string>",
        "resource_version": "<string>",
        "role_bindings": [
          {}
        ],
        "rules": [
          {
            "category": "<any>",
            "content": "<any>",
            "created_at": "<any>",
            "deleted_at": "<any>",
            "description": "<any>",
            "id": "<any>",
            "severity": "<any>",
            "status": "<any>",
            "tags": "<any>",
            "title": "<any>",
            "type": "<any>",
            "updated_at": "<any>",
            "version": "<any>",
            "api_groups": "<any>",
            "cluster_role_uid": "<any>",
            "namespace": "<any>",
            "resource_names": "<any>",
            "resources": "<any>",
            "role_uid": "<any>",
            "verbs": "<any>"
          }
        ],
        "uid": "<string>",
        "updated_at": "<string>"
      },
      "role_ref_api_group": "<string>",
      "role_ref_kind": "<string>",
      "role_ref_name": "<string>",
      "service_accounts": [
        {
          "account_id": "<string>",
          "assigned_roles": [
            {
              "kind": "<any>",
              "name": "<any>",
              "namespace": "<any>",
              "uid": "<any>",
              "account_id": "<any>",
              "cluster_id": "<any>",
              "created_at": "<any>",
              "id": "<any>",
              "updated_at": "<any>"
            }
          ],
          "cluster_id": "<string>",
          "cluster_role_bindings": [
            {}
          ],
          "created_at": "<string>",
          "graph": {
            "edges": [
              "<any>"
            ],
            "nodes": [
              "<any>"
            ]
          },
          "name": "<string>",
          "namespace": "<string>",
          "permissions": [
            {
              "category": "<any>",
              "content": "<any>",
              "created_at": "<any>",
              "deleted_at": "<any>",
              "description": "<any>",
              "id": "<any>",
              "severity": "<any>",
              "status": "<any>",
              "tags": "<any>",
              "title": "<any>",
              "type": "<any>",
              "updated_at": "<any>",
              "version": "<any>",
              "api_groups": "<any>",
              "cluster_role_uid": "<any>",
              "namespace": "<any>",
              "resource_names": "<any>",
              "resources": "<any>",
              "role_uid": "<any>",
              "verbs": "<any>"
            }
          ],
          "resource_version": "<string>",
          "role_bindings": [
            {}
          ],
          "uid": "<string>",
          "updated_at": "<string>"
        }
      ],
      "uid": "<string>",
      "updated_at": "<string>",
      "users": [
        {
          "account_id": "<string>",
          "api_group": "<string>",
          "assigned_roles": [
            {
              "kind": "<any>",
              "name": "<any>",
              "namespace": "<any>",
              "uid": "<any>",
              "account_id": "<any>",
              "cluster_id": "<any>",
              "created_at": "<any>",
              "id": "<any>",
              "updated_at": "<any>"
            }
          ],
          "cluster_id": "<string>",
          "cluster_role_bindings": [
            {}
          ],
          "created_at": "<string>",
          "graph": {
            "edges": [
              "<any>"
            ],
            "nodes": [
              "<any>"
            ]
          },
          "id": "<string>",
          "name": "<string>",
          "namespace": "<string>",
          "permissions": [
            {
              "category": "<any>",
              "content": "<any>",
              "created_at": "<any>",
              "deleted_at": "<any>",
              "description": "<any>",
              "id": "<any>",
              "severity": "<any>",
              "status": "<any>",
              "tags": "<any>",
              "title": "<any>",
              "type": "<any>",
              "updated_at": "<any>",
              "version": "<any>",
              "api_groups": "<any>",
              "cluster_role_uid": "<any>",
              "namespace": "<any>",
              "resource_names": "<any>",
              "resources": "<any>",
              "role_uid": "<any>",
              "verbs": "<any>"
            }
          ],
          "role_bindings": [
            {}
          ],
          "updated_at": "<string>"
        }
      ]
    }
  ],
  "rules": [
    {
      "category": "<any>",
      "content": "<any>",
      "created_at": "<any>",
      "deleted_at": "<any>",
      "description": "<any>",
      "id": "<any>",
      "severity": "<any>",
      "status": "<any>",
      "tags": "<any>",
      "title": "<any>",
      "type": "<any>",
      "updated_at": "<any>",
      "version": "<any>",
      "api_groups": "<any>",
      "cluster_role_uid": "<any>",
      "namespace": "<any>",
      "resource_names": "<any>",
      "resources": "<any>",
      "role_uid": "<any>",
      "verbs": "<any>"
    }
  ],
  "uid": "<string>",
  "updated_at": "<string>"
}

Path Parameters

account_id
string
required

Account id

uid
string
required

Cluster role uid

Response

OK

account_id
string
assigned_subjects
object[]
cluster_id
string
cluster_role_bindings
object[]
created_at
string
graph
object
name
string
resource_version
string
role_bindings
object[]
rules
object[]
uid
string
updated_at
string