Policy

List Policies

Returns a list of policies that can be added to RBAC roles. Assigning these policies to a user provides them with access to commonly used sets of permissions, allowing specific resource actions.

get/auth/policies

Request

  • Base URL: https://infrahub-api.nexgencloud.com/v1
  • URL: https://infrahub-api.nexgencloud.com/v1/auth/policies
  • Auth: API key in header api_key

Response

Success

statusboolean

Whether the request succeeded.

messagestring

Human-readable description of the result.

Example response

{
  "status": true,
  "message": "Getting policies success",
  "policies": [
    {
      "id": 6190,
      "name": "policy:AllPermissions",
      "description": "Grants all permissions to all resources",
      "permissions": [
        {
          "id": 6190,
          "resource": "Environment",
          "permission": "environment:list"
        }
      ],
      "created_at": "2026-05-06T14:32:11Z"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.