> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List access levels and the Ranger access types behind each

> Resolves read, write, manage and owner (data) and read and write (storage) against the live Ranger service-def, lists its mask types, and names the tag service tag grants go to (`tag_service`, null when there is none) with the namespaced types a tag grant uses (`tag`).



## OpenAPI

````yaml get /api/govern/data-access/levels
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/govern/data-access/levels:
    get:
      tags:
        - Data access
      summary: List access levels and the Ranger access types behind each
      description: >-
        Resolves read, write, manage and owner (data) and read and write
        (storage) against the live Ranger service-def, lists its mask types, and
        names the tag service tag grants go to (`tag_service`, null when there
        is none) with the namespaced types a tag grant uses (`tag`).
      operationId: get_levels_api_govern_data_access_levels_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessLevelsResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    AccessLevelsResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/AccessLevelInfo'
          type: array
          title: Data
        storage:
          items:
            $ref: '#/components/schemas/AccessLevelInfo'
          type: array
          title: Storage
        tag:
          items:
            $ref: '#/components/schemas/AccessLevelInfo'
          type: array
          title: Tag
        mask_types:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Mask Types
        tag_service:
          anyOf:
            - type: string
            - type: 'null'
          title: Tag Service
          description: >-
            The Ranger tag service tag grants go to; null when none is
            configured or linked (hide the Tag option).
      type: object
      required:
        - data
        - storage
      title: AccessLevelsResponse
      description: The levels as this deployment's service-def resolves them.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse
    AccessLevelInfo:
      properties:
        level:
          $ref: '#/components/schemas/AccessLevel'
        access_types:
          items:
            type: string
          type: array
          title: Access Types
      type: object
      required:
        - level
        - access_types
      title: AccessLevelInfo
    AccessLevel:
      type: string
      enum:
        - read
        - write
        - manage
        - owner
      title: AccessLevel
      description: |-
        A named bundle of Ranger access types.

        Data targets use all four. Storage locations (``url``) use only READ
        and WRITE. The access types behind each level are resolved against the
        live service-def, so a level never sends a type Ranger doesn't know.
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.