--- title: "SourceCommitリポジトリリストの照会" slug: "devtools-sourcebuild-sourcecommitrepolist" updated: 2026-09-17T09:57:53Z published: 2026-09-17T09:57:53Z canonical: "api.ncloud-docs.com/devtools-sourcebuild-sourcecommitrepolist" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # SourceCommitリポジトリリストの照会 Classic/VPC環境で利用できます。 SourceCommitリポジトリリストを照会します。 ## リクエスト リクエスト形式を説明します。リクエスト形式は次の通りです。 | メソッド | URI | | --- | --- | | GET | /api/v1/sourcecommit/repository | ### リクエストヘッダ SourceBuild APIで共通して使用されるヘッダの詳細は、[SourceBuildのリクエストヘッダ](/docs/ja/devtools-sourcebuild#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)をご参照ください。 ### リクエスト例 リクエストのサンプルコードは次の通りです。 ``` curl --location --request GET 'https://sourcebuild.apigw.ntruss.com/api/v1/sourcecommit/repository' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## レスポンス レスポンス形式を説明します。 ### レスポンスボディ レスポンスボディの説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `result` | Object | - | レスポンス結果 | | `result.repository` | Array | - | リポジトリリスト: [repository](/docs/ja/devtools-sourcebuild-sourcecommitrepolist#repository) | #### `repository` `repository`の説明は次の通りです。 | フィールド | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `name` | String | - | リポジトリ名 | | `permission` | String | - | 詳細情報の照会権限を持っているか - `Allow` \| `Deny` - `Allow`: 持っている - `Deny`: 持っていない | | `actionName` | String | - | 詳細情報照会権限名 | ### レスポンスステータスコード SourceBuild APIで共通して使用されるレスポンスステータスコードの詳細は、[SourceBuildのレスポンスステータスコード](/docs/ja/devtools-sourcebuild#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)をご参照ください。 ### レスポンス例 レスポンスのサンプルコードは次の通りです。 ``` { "result": { "repository": [ { "name": "repository002", "permission": "Allow", "actionName": "View/getRepositoryDetail" }, { "name": "repository001", "permission": "Allow", "actionName": "View/getRepositoryDetail" } ] } } ```