View a markdown version of this page

DescribeBuildsForPublicProject - AWS CodeBuild

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

DescribeBuildsForPublicProject

注記

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

リクエストの構文

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

リクエストパラメーター

すべてのアクションに共通のパラメータの詳細については、「共通パラメータ」を参照してください。

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

注記

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

publicProjectAlias

タイプ: 文字列

長さの制限: 最小長は 1 です。最大長は 1,024 です。

パターン: ^[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