v4

latestOpenAPI 3.1.02026-08-02261331761.5 KB
OPAL Data ( EAP )

Get All Data

get/v2/internal/opal_data/{org_id}/{proj_id}/{env_id}

Path parameters

org_idstring uuid required

Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").

Either the unique id of the organization, or the URL-friendly key of the organization (i.e: the "slug").

proj_idstring required

Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").

env_idstring required

Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

Query parameters

timeoutnumber

Timeout for the data generation in the new data generation mode

Timeout for the data generation in the new data generation mode

Headers

X-Shard-IDinteger

Response

Successful Response

OR

Example response

{
  "use_debugger": true,
  "mapping_rules": {
    "all": [
      {
        "action": "read",
        "http_method": "get",
        "resource": "document",
        "url": "https://example.com/{var}/resources/{var2}"
      }
    ]
  },
  "users": {
    "user1": {
      "roleAssignments": {
        "default": [
          "viewer"
        ]
      },
      "attributes": {
        "email": "user1@permit.io",
        "key": "user1"
      }
    }
  },
  "tenants": {
    "default": {
      "attributes": {
        "attr1": "value1"
      }
    }
  },
  "role_permissions": {
    "community": {
      "admin": {
        "grants": {}
      },
      "viewer": {
        "grants": {}
      }
    },
    "document": {
      "editor": {
        "grants": {
          "document": [
            "update",
            "read"
          ]
        }
      },
      "viewer": {
        "grants": {
          "document": [
            "read"
          ]
        }
      }
    }
  },
  "roles": {
    "viewer": {
      "grants": {
        "document": [
          "read"
        ]
      }
    }
  },
  "condition_sets": {
    "resourceset_big_5ffiles": {
      "type": "resourceset",
      "key": "big_files"
    },
    "userset_permit_57users": {
      "type": "userset",
      "key": "permit_users"
    }
  },
  "condition_set_rules": {
    "permit_users": {
      "big_files": {
        "document": [
          "read",
          "update"
        ]
      }
    }
  },
  "resource_instances": {
    "community:community-0": {
      "attributes": {}
    },
    "document:document-0": {
      "attributes": {}
    },
    "document:document-1": {
      "attributes": {}
    }
  },
  "relationships": {
    "document:document-0": {
      "relation:community": {
        "community": [
          "community-0"
        ]
      }
    },
    "document:document-1": {
      "relation:community": {
        "community": [
          "community-0"
        ]
      }
    }
  },
  "resource_types": {
    "__tenant": {
      "actions": [],
      "derived_roles": {}
    },
    "__user": {
      "actions": [],
      "derived_roles": {}
    },
    "community": {
      "actions": [],
      "derived_roles": {}
    },
    "document": {
      "actions": [
        "read",
        "update"
      ],
      "derived_roles": {
        "editor": {
          "rules": [
            {
              "related_resource": "community",
              "related_role": "admin",
              "relation": "community",
              "settings": {
                "superseded_by_direct_role": false
              }
            }
          ],
          "settings": {
            "superseded_by_direct_role": false
          }
        },
        "viewer": {
          "rules": [
            {
              "related_resource": "community",
              "related_role": "admin",
              "relation": "community",
              "settings": {
                "superseded_by_direct_role": false
              }
            },
            {
              "related_resource": "community",
              "related_role": "viewer",
              "relation": "community",
              "settings": {
                "superseded_by_direct_role": false
              }
            }
          ],
          "settings": {
            "superseded_by_direct_role": false
          }
        }
      }
    }
  },
  "role_assignments": {
    "user:user1": {
      "__tenant:default": [
        "viewer"
      ],
      "document:document-1": [
        "editor"
      ]
    }
  }
}