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

# Get Connection Info

> SSH coordinates for one RUNNING Slurm cluster deployment.

Team-member gated like the roster reads; ownership follows the same
visibility boundary (`assert_job_visible_to_team` normalizes every
cross-team/wrong-type/missing probe to a generic 404, so probing
other teams' job ids distinguishes nothing). The payload carries
only the connect flags and coordinates — no release names or
namespaces.



## OpenAPI

````yaml https://api.primeintellect.ai/openapi.json get /api/v1/slurm-clusters/{cluster_id}/connection
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/slurm-clusters/{cluster_id}/connection:
    get:
      tags:
        - slurm-clusters
      summary: Get Connection Info
      description: |-
        SSH coordinates for one RUNNING Slurm cluster deployment.

        Team-member gated like the roster reads; ownership follows the same
        visibility boundary (`assert_job_visible_to_team` normalizes every
        cross-team/wrong-type/missing probe to a generic 404, so probing
        other teams' job ids distinguishes nothing). The payload carries
        only the connect flags and coordinates — no release names or
        namespaces.
      operationId: get_connection_info_api_v1_slurm_clusters__cluster_id__connection_get
      parameters:
        - name: cluster_id
          in: path
          required: true
          schema:
            type: string
            title: Cluster Id
        - name: team_id
          in: query
          required: true
          schema:
            type: string
            description: Team the cluster must belong to
            title: Team Id
          description: Team the cluster must belong to
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SlurmClusterConnectionResponse'
        '401':
          description: Authorization failed
        '422':
          description: Invalid request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - HTTPBearer: []
components:
  schemas:
    SlurmClusterConnectionResponse:
      properties:
        connectable:
          type: boolean
          title: Connectable
        ssh_host:
          anyOf:
            - type: string
            - type: 'null'
          title: Ssh Host
        ssh_port:
          anyOf:
            - type: integer
            - type: 'null'
          title: Ssh Port
        ssh_command:
          anyOf:
            - type: string
            - type: 'null'
          title: Ssh Command
      type: object
      required:
        - connectable
      title: SlurmClusterConnectionResponse
      description: |-
        SSH coordinates for one Slurm cluster deployment.

        Same audience and same resolution as the Model Factory web UI's
        connect box (`modelFactoryClusters.ts` listMyWorkloads, which calls
        `buildSlurmSshCommand` with the tailnet fallback inputs nulled out):
        RUNNING deployments get the login coordinates; non-RUNNING ones (the
        ssh-proxy pod isn't up yet for a PENDING/DEPLOYING release) report
        `connectable=False` with null fields.

        `ssh_command` is the authoritative, fully-resolved copy-paste
        command — identical to what the dashboard renders, with the same
        bare `username` placeholder for the caller's cluster login.

        `ssh_port` is `Job.publicSshPort`, and `None` means the DEFAULT
        PORT 22, not "unknown" — same as the dashboard omitting `-p`. It is
        never the chart-internal ssh-proxy hostPort (`config.sshNodePort`),
        which backs only the tailnet-address fallback the customer surface
        deliberately does not offer.

        When an admin has set a full command override
        (`Job.publicSshCommand` — jump hosts, custom identity files), that
        command is returned verbatim and `ssh_host`/`ssh_port` are null:
        the override is opaque and must not be decomposed into coordinates
        that may not describe it.
    ErrorResponse:
      properties:
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
          title: Errors
      type: object
      required:
        - errors
      title: ErrorResponse
    ErrorDetail:
      properties:
        param:
          type: string
          title: Param
        details:
          type: string
          title: Details
      type: object
      required:
        - param
        - details
      title: ErrorDetail
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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