> ## 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.

# Get Connection



## OpenAPI

````yaml get /api/hadoop-connections/{name}
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/hadoop-connections/{name}:
    get:
      tags:
        - Hadoop connections
      summary: Get Connection
      operationId: get_connection_api_hadoop_connections__name__get
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            description: The connection's name.
            title: Name
          description: The connection's name.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HadoopConnection'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Conflict
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    HadoopConnection:
      properties:
        name:
          type: string
          title: Name
        description:
          type: string
          title: Description
        principal:
          anyOf:
            - type: string
            - type: 'null'
          title: Principal
        kerberos:
          type: boolean
          title: Kerberos
          description: core-site.xml asks for Kerberos.
        files:
          additionalProperties:
            $ref: '#/components/schemas/HadoopSiteFile'
          type: object
          title: Files
        keytab:
          anyOf:
            - $ref: '#/components/schemas/HadoopKeytab'
            - type: 'null'
        missing:
          items:
            type: string
          type: array
          title: Missing
          description: What a catalog still needs.
        catalogs:
          items:
            type: string
          type: array
          title: Catalogs
          description: Catalogs using this connection.
        last_check:
          anyOf:
            - $ref: '#/components/schemas/HadoopCheckRun'
            - type: 'null'
        created_by:
          type: string
          title: Created By
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      type: object
      required:
        - name
        - description
        - principal
        - kerberos
        - files
        - keytab
        - missing
        - catalogs
        - last_check
        - created_by
        - created_at
        - updated_at
      title: HadoopConnection
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HadoopSiteFile:
      properties:
        size:
          type: integer
          title: Size
        sha256:
          type: string
          title: Sha256
        uploaded_by:
          type: string
          title: Uploaded By
        uploaded_at:
          type: string
          title: Uploaded At
        values:
          additionalProperties:
            type: string
          type: object
          title: Values
          description: The values read from the file.
      type: object
      required:
        - size
        - sha256
        - uploaded_by
        - uploaded_at
      title: HadoopSiteFile
    HadoopKeytab:
      properties:
        size:
          type: integer
          title: Size
        sha256:
          type: string
          title: Sha256
        uploaded_by:
          type: string
          title: Uploaded By
        uploaded_at:
          type: string
          title: Uploaded At
        principals:
          items:
            $ref: '#/components/schemas/HadoopKeytabPrincipal'
          type: array
          title: Principals
      type: object
      required:
        - size
        - sha256
        - uploaded_by
        - uploaded_at
        - principals
      title: HadoopKeytab
    HadoopCheckRun:
      properties:
        status:
          type: string
          title: Status
        ran_at:
          type: string
          title: Ran At
        results:
          items:
            $ref: '#/components/schemas/HadoopCheckResult'
          type: array
          title: Results
      type: object
      required:
        - status
        - ran_at
        - results
      title: HadoopCheckRun
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HadoopKeytabPrincipal:
      properties:
        principal:
          type: string
          title: Principal
        kvno:
          type: integer
          title: Kvno
        enctypes:
          items:
            type: string
          type: array
          title: Enctypes
        weak_only:
          type: boolean
          title: Weak Only
          description: Only RC4 or DES keys, which Java refuses.
      type: object
      required:
        - principal
        - kvno
        - enctypes
        - weak_only
      title: HadoopKeytabPrincipal
    HadoopCheckResult:
      properties:
        name:
          type: string
          title: Name
        status:
          type: string
          title: Status
          description: passed, failed or skipped.
        message:
          type: string
          title: Message
      type: object
      required:
        - name
        - status
        - message
      title: HadoopCheckResult
  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.