

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 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. 최대 길이는 1024입니다.  
패턴: `^[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