Query
query ApiKeyScope($apiKeyId: UUID!) {
apiKeyScope(apiKeyId: $apiKeyId) {
action
resource
}
}Variables
{
"apiKeyId": "value"
}Response
{
"data": {
"apiKeyScope": [
{
"action": "READ",
"resource": "API_KEY"
}
]
}
}Queries
apiKeyScope
Returns the scopes assigned to a specific SCOPED API key
QUERY
apiKeyScope(apiKeyId: UUID!): [ApiKeyScope!]!Arguments
apiKeyId
UUID!
required
Returns
[ApiKeyScope!]!
action
The action allowed on the resource
resource
The resource type for the scope
Query
query ApiKeyScope($apiKeyId: UUID!) {
apiKeyScope(apiKeyId: $apiKeyId) {
action
resource
}
}Variables
{
"apiKeyId": "value"
}Response
{
"data": {
"apiKeyScope": [
{
"action": "READ",
"resource": "API_KEY"
}
]
}
}