View a markdown version of this page

DescribeBuildsForPublicProject - AWS CodeBuild

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

DescribeBuildsForPublicProject

注意

此 API 元素不包含在 AWS CLI AWS SDKs中。

請求語法

{ "maxResults": number, "nextToken": "string", "publicProjectAlias": "string", "sortOrder": "string" }

請求參數

如需所有動作的一般參數資訊,請參閱《Common Parameters》。

請求接受採用 JSON 格式的下列資料。

注意

在下列清單中,會先描述必要的參數。

publicProjectAlias

類型:字串

長度限制:長度下限為 1。長度上限為 1024。

模式:^[0-9a-zA-Z%+=]+$

必要:是

maxResults

類型:整數

有效範圍:最小值為 1。最大值為 100。

必要:否

nextToken

類型:字串

必要:否

sortOrder

類型:字串

有效值: ASCENDING | DESCENDING

必要:否

回應語法

{ "builds": [ { "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 } ], "nextToken": "string" }

回應元素

如果動作成功,則服務傳回 HTTP 200 回應。

服務會傳回下列 JSON 格式的資料。

組建

類型:PublicBuild 物件陣列

nextToken

類型:字串

錯誤

如需所有動作常見錯誤的相關資訊,請參閱常見錯誤

InvalidInputException

HTTP 狀態碼:400

ResourceNotFoundException

HTTP 狀態碼:400