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

# Devin Connect gatewayの一覧

> アカウントの gateway と、各 gateway 経由でルーティングされる宛先。

エンタープライズの [Devin Connect](https://docs.devin.ai/ja/enterprise/deployment/devin-connect.md) の gateway と、各 gateway のルーティング先を返します。取得した gateway の `gateway_id` は、[gateway の宛先を追加](https://docs.devin.ai/ja/api-reference/v3/devin-connect/post-enterprise-devin-connect-gateway-destinations.md)、[gateway の宛先を削除](https://docs.devin.ai/ja/api-reference/v3/devin-connect/delete-enterprise-devin-connect-gateway-destinations.md)、[gateway の宛先を置き換え](https://docs.devin.ai/ja/api-reference/v3/devin-connect/put-enterprise-devin-connect-gateway-destinations.md) で利用できます。

## 権限

エンタープライズレベルで `ManageEnterpriseSettings` 権限を持つ[サービスユーザー](https://docs.devin.ai/ja/api-reference/v3/service-users/members-service-users.md)または[個人用アクセストークン](https://docs.devin.ai/ja/api-reference/personal-access-tokens.md)が必要です。また、エンタープライズで Devin Connect を有効にしておく必要があります。有効になっていない場合、このエンドポイントは `403` を返します。

## 動作

* 結果はページ分割されます。`has_next_page` が `true` の間は、`first` (ページサイズ) と `after` (前のページの `end_cursor`) を指定してください。
* `kind` は、顧客側の gateway から接続する場合は `tunnel`、Devin から gateway に接続する場合 (例えば AWS PrivateLink 経由) は `direct` になります。トンネル型の gateway では、`connected` と `last_connected_at` により、gateway から最近接続の報告があったかどうかを確認できます。direct 型の gateway では、どちらも `null` になります。
* gateway の作成、登録、削除はウェブアプリで行います。この API で行えるのは、gateway の読み取りと宛先の変更のみです。


## OpenAPI

````yaml ja/v3-openapi.yaml GET /v3beta1/enterprise/devin-connect/gateways
openapi: 3.1.0
info:
  description: Service User 認証および RBAC に対応した Devin v3 API
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/devin-connect/gateways:
    get:
      tags:
        - devin-connect
      summary: Devin Connect gatewayの一覧
      description: アカウントの gateway と、各 gateway 経由でルーティングされる宛先。
      operationId: >-
        handle_list_devin_connect_gateways_v3beta1_enterprise_devin_connect_gateways_get
      parameters:
        - in: query
          name: after
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: After
        - in: query
          name: first
          required: false
          schema:
            default: 100
            maximum: 200
            minimum: 1
            title: First
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_DevinConnectGateway_'
          description: 成功レスポンス
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 認証されていません
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: アクセスが禁止されています
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 見つかりません
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 競合
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 削除済み
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 処理できないコンテンツ
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: リクエスト過多
components:
  schemas:
    PaginatedResponse_DevinConnectGateway_:
      properties:
        end_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: 次のページを取得するためのカーソル。最後のページの場合はNone。
          title: End Cursor
        has_next_page:
          default: false
          description: このページの後にさらにアイテムがあるかどうか。
          title: Has Next Page
          type: boolean
        items:
          items:
            $ref: '#/components/schemas/DevinConnectGateway'
          title: Items
          type: array
        total:
          anyOf:
            - type: integer
            - type: 'null'
          description: 合計件数（省略可能。パフォーマンス上の理由で省略できます）。
          title: Total
      required:
        - items
      title: PaginatedResponse[DevinConnectGateway]
      type: object
    ProblemDetail:
      description: >-
        v3 API 用の RFC 9457 application/problem+json エラーボディ。


        detail は後方互換性のため、レガシーな {"detail": ...}
        ボディから引き継がれます。その他のメンバーは追加式です。errors にはフィールドレベルのバリデーションエラーが含まれます（422
        の場合のみ）。
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: この事象に固有の、人が読める説明。
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: ブロックされた操作の拒否理由を示す機械可読コード（例："user_frozen"、"migrated_session"）。
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: フィールド単位のバリデーションエラー（422 レスポンスのみ）。
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: この発生箇所の URI 参照（リクエストパス）。
          title: Instance
        status:
          description: HTTP ステータスコード。
          title: Status
          type: integer
        title:
          description: 問題タイプを人が読める短い要約。
          title: Title
          type: string
        type:
          default: about:blank
          description: 問題タイプを識別する URI 参照。
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
    DevinConnectGateway:
      description: Devin Connect gatewayと、それを経由してルーティングされる宛先。
      properties:
        connected:
          anyOf:
            - type: boolean
            - type: 'null'
          description: トンネルgatewayが現在接続されているかどうか。directの場合はnull
          title: Connected
        destinations:
          description: このgateway経由でルーティングされる宛先
          items:
            $ref: '#/components/schemas/DevinConnectDestination'
          title: Destinations
          type: array
        gateway_id:
          description: gatewayのID
          title: Gateway Id
          type: string
        kind:
          description: >-
            tunnel：顧客側のgatewayから接続します。direct：Devinからgatewayに接続します（例：AWS
            PrivateLink経由）
          enum:
            - tunnel
            - direct
          title: Kind
          type: string
        last_connected_at:
          anyOf:
            - type: integer
            - type: 'null'
          description: トンネルgatewayから最後に通信があった日時
          title: Last Connected At
        name:
          description: gateway名
          title: Name
          type: string
      required:
        - gateway_id
        - name
        - kind
        - destinations
      title: DevinConnectGateway
      type: object
    DevinConnectDestination:
      description: 1つの宛先：``hostname``または``ipv4``のいずれか一方のみ。
      properties:
        hostname:
          anyOf:
            - type: string
            - type: 'null'
          description: 完全一致のDNS名（ワイルドカード不可）。例：git.corp.example
          title: Hostname
        ipv4:
          anyOf:
            - type: string
            - type: 'null'
          description: IPv4アドレスまたはCIDR。例：10.20.0.0/16。アドレスのみの場合は/32として扱われます
          title: Ipv4
      title: DevinConnectDestination
      type: object
  securitySchemes:
    bearerAuth:
      description: 'サービスユーザーの認証情報（接頭辞: cog_）'
      scheme: bearer
      type: http

````

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