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

# Get

> Retrieves a tunnel by its identifier.



## OpenAPI

````yaml https://api.nebius.cloud/openapi.json get /tunnel/v1/tunnels/{id}
openapi: 3.0.3
info:
  title: Nebius API
  version: version not set
servers:
  - url: https://api.nebius.cloud
security:
  - bearerAuth: []
tags:
  - name: nebius.ai.v1.DevlabService
  - name: nebius.ai.v1.EndpointService
  - name: nebius.ai.v1.HardwareService
  - name: nebius.ai.v1.JobService
  - name: nebius.applications.v1alpha1.K8sReleaseService
  - name: nebius.applications.v1alpha1.VmAppTemplateService
  - name: nebius.audit.v2.AuditEventExportService
  - name: nebius.audit.v2.AuditEventService
  - name: nebius.billing.v1.CalculatorService
  - name: nebius.billing.v1.PricingPolicyService
  - name: nebius.billing.v1alpha1.CalculatorService
  - name: nebius.billing.v1alpha1.OneTimeExportService
  - name: nebius.billing.v1alpha1.SpotPriceService
  - name: nebius.capacity.v1.CapacityAllowanceService
  - name: nebius.capacity.v1.CapacityBlockGroupService
  - name: nebius.capacity.v1.CapacityIntervalService
  - name: nebius.capacity.v1.ResourceAdviceService
  - name: nebius.compute.v1.DiskService
  - name: nebius.compute.v1.DiskSnapshotService
  - name: nebius.compute.v1.FilesystemService
  - name: nebius.compute.v1.GpuClusterService
  - name: nebius.compute.v1.ImageService
  - name: nebius.compute.v1.InstanceService
  - name: nebius.compute.v1.MaintenanceService
  - name: nebius.compute.v1.NVLInstanceGroupService
  - name: nebius.compute.v1.NodeService
  - name: nebius.compute.v1.PlatformService
  - name: nebius.dns.v1.RecordService
  - name: nebius.dns.v1.ZoneService
  - name: nebius.iam.v1.AccessKeyService
  - name: nebius.iam.v1.AccessPermitService
  - name: nebius.iam.v1.AuthPublicKeyService
  - name: nebius.iam.v1.FederatedCredentialsService
  - name: nebius.iam.v1.FederationCertificateService
  - name: nebius.iam.v1.FederationService
  - name: nebius.iam.v1.GroupMembershipService
  - name: nebius.iam.v1.GroupService
  - name: nebius.iam.v1.InvitationService
  - name: nebius.iam.v1.ProfileService
  - name: nebius.iam.v1.ProjectService
  - name: nebius.iam.v1.ServiceAccountService
  - name: nebius.iam.v1.SessionManagementService
  - name: nebius.iam.v1.StaticKeyService
  - name: nebius.iam.v1.TenantService
  - name: nebius.iam.v1.TenantUserAccountService
  - name: nebius.iam.v1.TenantUserAccountWithAttributesService
  - name: nebius.iam.v2.AccessKeyService
  - name: nebius.iam.v2.ProjectService
  - name: nebius.iam.v2.TenantService
  - name: nebius.kms.v1.AsymmetricCryptoService
  - name: nebius.kms.v1.AsymmetricKeyService
  - name: nebius.kms.v1.SymmetricCryptoService
  - name: nebius.kms.v1.SymmetricKeyService
  - name: nebius.logging.agentmanager.v1.VersionService
  - name: nebius.logging.v1.LogExportService
  - name: nebius.maintenance.v1alpha1.MaintenanceService
  - name: nebius.mk8s.v1.ClusterService
  - name: nebius.mk8s.v1.NodeGroupService
  - name: nebius.mk8s.v1alpha1.ClusterService
  - name: nebius.mk8s.v1alpha1.NodeGroupService
  - name: nebius.msp.mlflow.v1alpha1.ClusterService
  - name: nebius.msp.postgresql.v1alpha1.BackupService
  - name: nebius.msp.postgresql.v1alpha1.ClusterService
  - name: nebius.mysterybox.v1.PayloadService
  - name: nebius.mysterybox.v1.SecretService
  - name: nebius.mysterybox.v1.SecretVersionService
  - name: nebius.quotas.v1.QuotaAllowanceService
  - name: nebius.registry.v1.ArtifactService
  - name: nebius.registry.v1.RegistryService
  - name: nebius.storage.v1.BucketService
  - name: nebius.storage.v1.InventoryService
  - name: nebius.storage.v1.TransferService
  - name: nebius.storage.v1alpha1.TransferService
  - name: nebius.tunnel.v1.TunnelService
  - name: nebius.vpc.v1.AllocationService
  - name: nebius.vpc.v1.NetworkService
  - name: nebius.vpc.v1.PoolService
  - name: nebius.vpc.v1.RouteService
  - name: nebius.vpc.v1.RouteTableService
  - name: nebius.vpc.v1.SecurityGroupService
  - name: nebius.vpc.v1.SecurityRuleService
  - name: nebius.vpc.v1.SubnetService
  - name: nebius.vpc.v1.TargetGroupService
  - name: nebius.vpc.v1alpha1.AllocationService
  - name: nebius.vpc.v1alpha1.NetworkService
  - name: nebius.vpc.v1alpha1.PoolService
  - name: nebius.vpc.v1alpha1.ScopeService
  - name: nebius.vpc.v1alpha1.SubnetService
paths:
  /tunnel/v1/tunnels/{id}:
    get:
      tags:
        - nebius.tunnel.v1.TunnelService
      summary: Get
      description: Retrieves a tunnel by its identifier.
      operationId: TunnelService_Get
      parameters:
        - description: Unique identifier of the tunnel.
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/nebius.tunnel.v1.Tunnel'
          description: A successful response.
components:
  schemas:
    nebius.tunnel.v1.Tunnel:
      description: >-
        Tunnel represents a secure tunnel connection for applications.

        It enables connectivity between applications and external services
        within a parent.
      properties:
        metadata:
          allOf:
            - $ref: '#/components/schemas/nebius.common.v1.ResourceMetadata'
          description: >-
            Resource metadata containing identification and hierarchy
            information.
        spec:
          allOf:
            - $ref: '#/components/schemas/nebius.tunnel.v1.TunnelSpec'
          description: Specification of the tunnel configuration.
        status:
          allOf:
            - $ref: '#/components/schemas/nebius.tunnel.v1.TunnelStatus'
          description: Current status of the tunnel.
          readOnly: true
      type: object
    nebius.common.v1.ResourceMetadata:
      description: Common resource metadata.
      properties:
        createdAt:
          description: Timestamp indicating when the resource was created.
          format: date-time
          readOnly: true
          type: string
        id:
          description: Identifier for the resource, unique for its resource type.
          type: string
        labels:
          additionalProperties:
            type: string
          description: Labels associated with the resource.
          type: object
        name:
          description: Human-readable name for the resource.
          type: string
        parentId:
          description: Identifier of the parent resource to which the resource belongs.
          type: string
        resourceVersion:
          description: >-
            Version of the resource for safe concurrent modifications and
            consistent reads.

            Positive and monotonically increases on each resource spec change
            (but *not* on each change of the

            resource's container(s) or status).

            Service allows zero value or current.
          format: int64
          type: string
        updatedAt:
          description: Timestamp indicating when the resource was last updated.
          format: date-time
          readOnly: true
          type: string
      required:
        - parentId
      type: object
    nebius.tunnel.v1.TunnelSpec:
      description: TunnelSpec defines the configuration for the tunnel.
      properties:
        description:
          description: Arbitrary description of the tunnel provided by the user.
          type: string
        title:
          description: Human-readable display name for the tunnel.
          type: string
      type: object
    nebius.tunnel.v1.TunnelStatus:
      description: TunnelStatus represents the current state of the tunnel.
      properties:
        connectionState:
          allOf:
            - $ref: '#/components/schemas/nebius.tunnel.v1.ConnectionState'
          description: Whether any agent is connected to the tunnel now.
        services:
          description: >-
            Services reachable through the tunnel. A service is listed while at
            least

            one agent announces it, and follows the agents within about 30
            seconds.
          items:
            $ref: '#/components/schemas/nebius.tunnel.v1.ServiceStatus'
          type: array
        state:
          allOf:
            - $ref: '#/components/schemas/nebius.tunnel.v1.TunnelStatus.State'
          description: Current lifecycle state of the tunnel.
      type: object
    nebius.tunnel.v1.ConnectionState:
      default: CONNECTION_STATE_UNSPECIFIED
      description: >-
        ConnectionState reports whether the tunnel has an agent behind it.
        Values are

        prefixed because a top-level enum puts them in the package scope.

         - CONNECTION_STATE_UNSPECIFIED: Proto3 zero value. A read of the tunnel never returns it; a mutation
        records it, because it reports the tunnel that was written.
         - CONNECTION_STATE_DISCONNECTED: No agent is connected. Nothing the tunnel exposes is reachable.
         - CONNECTION_STATE_CONNECTED: At least one agent is connected.
      enum:
        - CONNECTION_STATE_UNSPECIFIED
        - CONNECTION_STATE_DISCONNECTED
        - CONNECTION_STATE_CONNECTED
      type: string
    nebius.tunnel.v1.ServiceStatus:
      description: ServiceStatus is a service reachable through the tunnel.
      properties:
        endpoint:
          description: >-
            Where to reach the service, as host:port. The tunnel terminates TLS,
            so a

            client connects over TLS and sends the host as SNI. What travels
            inside is

            whatever the service speaks, which the tunnel does not interpret.

            For example, "app-hy3wnb3wstpk7dz.tunnel.example.com:443".
          type: string
        name:
          description: >-
            Name of the service, as the agent announced it. 1-20 characters,
            lowercase

            letters and digits only: the hostname joins the name to the tunnel
            id with

            a dash, so a name may not contain one. For example, "app".
          type: string
      type: object
    nebius.tunnel.v1.TunnelStatus.State:
      default: UNSPECIFIED
      description: |-
        State represents the lifecycle state of the tunnel.

         - UNSPECIFIED: Default unspecified state.
         - CREATED: The tunnel has been created and is active.
         - DELETED: The tunnel has been deleted.
      enum:
        - UNSPECIFIED
        - CREATED
        - DELETED
      type: string
  securitySchemes:
    bearerAuth:
      description: The Authorization header expects a Bearer token.
      scheme: bearer
      type: http

````