Permission

check api

post/v1/tenants/{tenant_id}/permissions/check

Path parameters

tenant_idstring required

Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \“[a-zA-Z0-9-,]+\“, max 64 bytes.

Request body

permissionstring

The action the user wants to perform on the resource

Response

A successful response.

can'CHECK_RESULT_UNSPECIFIED' | 'CHECK_RESULT_ALLOWED' | 'CHECK_RESULT_DENIED'

Enumerates results of a check operation.

  • CHECK_RESULT_UNSPECIFIED: Not specified check result. This is the default value.
  • CHECK_RESULT_ALLOWED: Represents a successful check (the check allowed the operation).
  • CHECK_RESULT_DENIED: Represents a failed check (the check denied the operation).

Changes

Changed in 4 of the 35 revisions of this API.813

  • f37e45046dd221See the full diff
    • the context/attributes/items/value/additionalProperties/ request property type/format changed from object/ to /

      request-property-type-changed

    • the details/items/additionalProperties/ response's property type/format changed from object/ to / for status default

      response-property-type-changed

    • removed the request property arguments/items/contextAttribute

      request-property-removed

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • f3b10e35081b12See the full diff
    • added required request body

      request-body-added-required

    • added the media type application/json for the response with the status 200

      response-media-type-added

    • added the media type application/json for the response with the status default

      response-media-type-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the request body

      request-body-removed

    • removed the media type application/json for the response with the status 200

      response-media-type-removed

    • removed the media type application/json for the response with the status default

      response-media-type-removed

    This revision also has 127 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 0bc305aa169f21See the full diff
    • the context/attributes/items/value/additionalProperties/ request property type/format changed from / to object/

      request-property-type-changed

    • the details/items/additionalProperties/ response's property type/format changed from / to object/ for status default

      response-property-type-changed

    • added the new optional request property arguments/items/contextAttribute

      new-optional-request-property

    This revision also has 32 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog