Skip to main content
GET
/
api
/
govern
/
data-access
/
metadata
/
service-def
Ranger service-def slice (resource keys + access types)
curl --request GET \
  --url https://api.example.com/api/govern/data-access/metadata/service-def \
  --header 'Authorization: Bearer <token>'
{
  "resources": [
    {
      "name": "<string>",
      "recursiveSupported": false,
      "excludesSupported": false,
      "mandatory": false,
      "lookupSupported": false,
      "parent": "<string>",
      "level": 0
    }
  ],
  "accessTypes": [
    "<string>"
  ],
  "maskTypes": [
    {
      "name": "<string>",
      "label": "<string>",
      "description": ""
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Response

Successful Response

Ranger service-def slice needed to populate the policy form.

resources
ResourceDefMetadata · object[]
accessTypes
string[]
maskTypes
MaskTypeMetadata · object[]