View a markdown version of this page

GetPublicBuild - AWS CodeBuild

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

GetPublicBuild

注意

AWS CLI 或 AWS 软件开发工具包中不包含此 API 元素。

请求语法

{ "publicBuildAlias": "string" }

请求参数

有关所有操作的通用参数的信息,请参阅常用参数

请求接受采用 JSON 格式的以下数据。

注意

下表中首先描述了必需参数。

公众 BuildAlias

类型:字符串

长度限制:最小长度为 1。长度上限为 1024。

模式:^[0-9a-zA-Z%+=]+:\p{XDigit}{8}(-\p{XDigit}{4}){3}-\p{XDigit}{12}$

必需:是

响应语法

{ "build": { "artifacts": { "artifactIdentifier": "string", "packaging": "string", "type": "string" }, "buildComplete": boolean, "buildNumber": number, "buildStatus": "string", "endTime": number, "environment": { "computeType": "string", "environmentVariables": [ { "name": "string", "type": "string", "value": "string" } ], "image": "string", "type": "string" }, "id": "string", "initiator": "string", "logsStatus": { "cloudWatchLogsStatus": "string", "s3LogsStatus": "string" }, "phases": [ { "contexts": [ { "message": "string", "statusCode": "string" } ], "durationInSeconds": number, "endTime": number, "phaseStatus": "string", "phaseType": "string", "startTime": number } ], "projectName": "string", "queuedTimeoutInMinutes": number, "resolvedSourceVersion": "string", "secondaryArtifacts": [ { "artifactIdentifier": "string", "packaging": "string", "type": "string" } ], "secondarySources": [ { "buildspec": "string", "gitCloneDepth": number, "gitSubmodulesConfig": { "fetchSubmodules": boolean }, "location": "string", "sourceIdentifier": "string", "type": "string" } ], "secondarySourceVersions": [ { "sourceIdentifier": "string", "sourceVersion": "string" } ], "source": { "buildspec": "string", "gitCloneDepth": number, "gitSubmodulesConfig": { "fetchSubmodules": boolean }, "location": "string", "sourceIdentifier": "string", "type": "string" }, "sourceVersion": "string", "startTime": number, "timeoutInMinutes": number } }

响应元素

如果此操作成功,则该服务将会发送回 HTTP 200 响应。

服务以 JSON 格式返回以下数据。

建造

类型:PublicBuild 对象

错误

有关所有操作中常见的错误的信息,请参阅常见错误

InvalidInputException

HTTP 状态代码:400

ResourceNotFoundException

HTTP 状态代码:400