本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
DescribeBuildsForPublicProject
注意
AWS CLI 或 AWS 软件开发工具包中不包含此 API 元素。
请求语法
{
"maxResults": number,
"nextToken": "string",
"publicProjectAlias": "string",
"sortOrder": "string"
}
请求参数
有关所有操作的通用参数的信息,请参阅常用参数。
请求接受采用 JSON 格式的以下数据。
注意
下表中首先描述了必需参数。
- 公众 ProjectAlias
-
类型:字符串
长度限制:最小长度为 1。长度上限为 1024。
模式:
^[0-9a-zA-Z%+=]+$是否必需:是
- 最大结果
-
类型:整数
有效范围:最小值为 1。最大值为 100。
必需:否
- nextToken
-
类型:字符串
必需:否
- 排序顺序
-
类型:字符串
有效值:
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