Open Policy Agent Config API

The Config API from Open Policy Agent — 1 operation(s) for config.

Documentation

Specifications

Schemas & Data

Other Resources

🔗
BrunoCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/policy/bruno.json
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/ https://api-evangelist.postman.co/workspace/Open-Policy-Agentbcc99d6c-728a-4d86-83fd-b6495f5e8fb8/collection/35240-19ce2c88-97b8-4f58-a101-b8be70794a85
🔗
BrunoCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/data/bruno.json
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/ https://api-evangelist.postman.co/workspace/Open-Policy-Agentbcc99d6c-728a-4d86-83fd-b6495f5e8fb8/collection/35240-96c58dc4-3514-48ee-a35f-a9c2aeb14fa0
🔗
BrunoCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/query/bruno.json
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/ https://api-evangelist.postman.co/workspace/Open-Policy-Agentbcc99d6c-728a-4d86-83fd-b6495f5e8fb8/collection/35240-9170dd84-c3d5-45a4-9efc-9ef6ab30744e
🔗
BrunoCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/compile/bruno.json
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/ https://api-evangelist.postman.co/workspace/Open-Policy-Agentbcc99d6c-728a-4d86-83fd-b6495f5e8fb8/collection/35240-1e1d8e0e-7157-4b7f-99cf-611fa56a0c3c
🔗
BrunoCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/health/bruno.json
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/ https://api-evangelist.postman.co/workspace/Open-Policy-Agentbcc99d6c-728a-4d86-83fd-b6495f5e8fb8/collection/35240-198cdb4f-e1d1-44c4-aa1f-ef8f66760d1a
🔗
BrunoCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/config/bruno.json
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/ https://api-evangelist.postman.co/workspace/Open-Policy-Agentbcc99d6c-728a-4d86-83fd-b6495f5e8fb8/collection/35240-979cbaf7-8515-4fd2-8035-134685590967
🔗
BrunoCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/status/bruno.json
🔗
PostmanCollection
https://raw.githubusercontent.com/api-evangelist/open-policy-agent/refs/heads/main/ https://api-evangelist.postman.co/workspace/Open-Policy-Agentbcc99d6c-728a-4d86-83fd-b6495f5e8fb8/collection/35240-b4943ca3-d651-4c68-a003-e6ca7feace03

OpenAPI Specification

open-policy-agent-config-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Compile Config API
  description: API for partially evaluating Rego queries in OPA (Open Policy Agent).
  version: 1.0.0
tags:
- name: Config
paths:
  /v1/config:
    get:
      summary: Get OPA Configuration
      description: Retrieve OPA's active configuration. Credentials and sensitive keys are omitted from the response.
      parameters:
      - name: pretty
        in: query
        required: false
        description: Format response for human readability.
        schema:
          type: boolean
      responses:
        '200':
          description: Configuration retrieved successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    description: OPA's active configuration.
                    properties:
                      services:
                        type: object
                        description: Service configurations.
                        additionalProperties:
                          type: object
                          properties:
                            url:
                              type: string
                              description: URL of the service.
                      labels:
                        type: object
                        description: Labels associated with the OPA instance.
                        properties:
                          id:
                            type: string
                            description: Identifier for the instance.
                          version:
                            type: string
                            description: OPA version.
                      keys:
                        type: object
                        description: Key configurations.
                        additionalProperties:
                          type: object
                          properties:
                            scope:
                              type: string
                              description: Key scope.
                      decision_logs:
                        type: object
                        description: Decision logs configuration.
                        properties:
                          service:
                            type: string
                            description: Service used for decision logs.
                      status:
                        type: object
                        description: Status service configuration.
                        properties:
                          service:
                            type: string
                            description: Service used for status updates.
                      bundles:
                        type: object
                        description: Bundle configurations.
                        additionalProperties:
                          type: object
                          properties:
                            service:
                              type: string
                              description: Service associated with the bundle.
                      default_authorization_decision:
                        type: string
                        description: Default authorization decision path.
                      default_decision:
                        type: string
                        description: Default decision path.
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message.
      examples:
        successful_response:
          summary: Successful Response
          value:
            result:
              services:
                acmecorp:
                  url: https://example.com/control-plane-api/v1
              labels:
                id: test-id
                version: 0.27.0
              keys:
                global_key:
                  scope: read
              decision_logs:
                service: acmecorp
              status:
                service: acmecorp
              bundles:
                authz:
                  service: acmecorp
              default_authorization_decision: /system/authz/allow
              default_decision: /system/main
      tags:
      - Config