

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# GetPublicProject
<a name="API_GetPublicProject"></a>

**注記**  
この API 要素は、 AWS CLI または AWS SDKsに含まれていません。

## リクエストの構文
<a name="API_GetPublicProject_RequestSyntax"></a>

```
{
   "publicProjectAlias": "{{string}}"
}
```

## リクエストパラメーター
<a name="API_GetPublicProject_RequestParameters"></a>

すべてのアクションに共通のパラメータの詳細については、「[共通パラメータ](https://docs.aws.amazon.com/codebuild/latest/APIReference/CommonParameters.html)」を参照してください。

リクエストは以下のデータを JSON 形式で受け入れます。

**注記**  
次のリストで必須のパラメーターを説明します。

 ** [publicProjectAlias](#API_GetPublicProject_RequestSyntax) **   <a name="CodeBuild-GetPublicProject-request-publicProjectAlias"></a>
タイプ: 文字列  
長さの制限: 最小長は 1 です。最大長は 1,024 です。  
パターン: `^[0-9a-zA-Z%+=]+$`   
必須: はい

## レスポンスの構文
<a name="API_GetPublicProject_ResponseSyntax"></a>

```
{
   "project": { 
      "artifacts": { 
         "artifactIdentifier": "string",
         "location": "string",
         "type": "string"
      },
      "buildBatchConfig": { 
         "combineArtifacts": boolean,
         "restrictions": { 
            "[computeTypesAllowed](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BatchRestrictions.html)": [ "string" ],
            "[maximumBuildsAllowed](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BatchRestrictions.html)": number
         },
         "timeoutInMins": number
      },
      "concurrentBuildLimit": number,
      "description": "string",
      "environment": { 
         "computeType": "string",
         "environmentVariables": [ 
            { 
               "[name](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string",
               "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string",
               "[value](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string"
            }
         ],
         "image": "string",
         "type": "string"
      },
      "name": "string",
      "queuedTimeoutInMinutes": number,
      "secondaryArtifacts": [ 
         { 
            "artifactIdentifier": "string",
            "location": "string",
            "type": "string"
         }
      ],
      "secondarySources": [ 
         { 
            "buildspec": "string",
            "gitCloneDepth": number,
            "gitSubmodulesConfig": { 
               "[fetchSubmodules](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_GitSubmodulesConfig.html)": boolean
            },
            "location": "string",
            "sourceIdentifier": "string",
            "type": "string"
         }
      ],
      "secondarySourceVersions": [ 
         { 
            "[sourceIdentifier](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectSourceVersion.html)": "string",
            "[sourceVersion](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectSourceVersion.html)": "string"
         }
      ],
      "source": { 
         "buildspec": "string",
         "gitCloneDepth": number,
         "gitSubmodulesConfig": { 
            "[fetchSubmodules](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_GitSubmodulesConfig.html)": boolean
         },
         "location": "string",
         "sourceIdentifier": "string",
         "type": "string"
      },
      "sourceVersion": "string",
      "timeoutInMinutes": number,
      "webhook": { 
         "branchFilter": "string",
         "buildType": "string",
         "filterGroups": [ 
            [ 
               { 
                  "[excludeMatchedPattern](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_WebhookFilter.html)": boolean,
                  "[pattern](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_WebhookFilter.html)": "string",
                  "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_WebhookFilter.html)": "string"
               }
            ]
         ],
         "payloadUrl": "string",
         "url": "string"
      }
   }
}
```

## レスポンス要素
<a name="API_GetPublicProject_ResponseElements"></a>

アクションが成功すると、サービスは HTTP 200 レスポンスを返します。

サービスから以下のデータが JSON 形式で返されます。

 ** [プロジェクト](#API_GetPublicProject_ResponseSyntax) **   <a name="CodeBuild-GetPublicProject-response-project"></a>
型: [PublicProject](API_PublicProject.md) オブジェクト

## エラー
<a name="API_GetPublicProject_Errors"></a>

すべてのアクションに共通するエラーの詳細については、[「一般的なエラー](https://docs.aws.amazon.com/codebuild/latest/APIReference/CommonErrors.html)」を参照してください。

 **InvalidInputException**   
HTTP ステータスコード: 400

 **ResourceNotFoundException**   
HTTP ステータスコード: 400