opal-queries

Run an ad-hoc OpalQuery

Changed on

Executes an ad-hoc OpalQuery and returns paginated results. Two query types are supported: a Node query filters and returns entities (users, resources, or groups); an Access query returns the access grants between principals and their entitlements, one per (principal, entitlement, access level). Set type to NODE or ACCESS in the request body to select the query type.

This endpoint is available to OpalQuery beta participants. To request access, contact Opal support.

post/queries/run

Request

  • Base URL
    https://api.opal.dev/v1
  • Auth
    HTTP bearer

Request body

OR

Example request

{
  "type": "NODE",
  "query": {
    "nodeFilters": {
      "entityTypes": [
        "RESOURCE"
      ],
      "entityTag": {
        "key": "env",
        "value": "prod"
      }
    },
    "accessFilters": {
      "isAccessibleBy": {
        "entityTypes": [
          "USER"
        ],
        "entityTag": {
          "key": "contractor"
        }
      }
    }
  },
  "first": 50
}

Response

The results of the OpalQuery.

OR

Example response

{
  "edges": [
    {
      "node": {
        "entityItemType": "OPAL_ROLE"
      }
    }
  ]
}

Changes

    • info

      added the new optional request property ////

    • info

      added the new optional request property ////

    • info

      added the new optional request property ///

    • info

      added the new optional request property ////

    • info

      added the new optional request property ////

    • info

      added the new optional request property ///

    • info

      added the new optional request property ////

    • info

      added the new optional request property ////

    • info

      added the new optional request property ///

    • warning

      added the new AWS_AGENTCORE_GATEWAY enum value to the /////// response property for the response status

    • warning

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the /////// response property for the response status

    • warning

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the /////// response property for the response status

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property ////

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property ////

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY enum value to the request property ////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property ////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property ////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TARGET enum value to the request property ////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property ////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property ////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property /////

    • info

      added the new AWS_AGENTCORE_GATEWAY_TOOL enum value to the request property ////