本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
GetPublicProject
注意
AWS CLI 或 AWS 软件开发工具包中不包含此 API 元素。
请求语法
{
"publicProjectAlias": "string"
}
请求参数
有关所有操作的通用参数的信息,请参阅常用参数。
请求接受采用 JSON 格式的以下数据。
注意
下表中首先描述了必需参数。
- 公众 ProjectAlias
-
类型:字符串
长度限制:最小长度为 1。长度上限为 1024。
模式:
^[0-9a-zA-Z%+=]+$必需:是
响应语法
{
"project": {
"artifacts": {
"artifactIdentifier": "string",
"location": "string",
"type": "string"
},
"buildBatchConfig": {
"combineArtifacts": boolean,
"restrictions": {
"computeTypesAllowed": [ "string" ],
"maximumBuildsAllowed": number
},
"timeoutInMins": number
},
"concurrentBuildLimit": number,
"description": "string",
"environment": {
"computeType": "string",
"environmentVariables": [
{
"name": "string",
"type": "string",
"value": "string"
}
],
"image": "string",
"type": "string"
},
"name": "string",
"queuedTimeoutInMinutes": number,
"secondaryArtifacts": [
{
"artifactIdentifier": "string",
"location": "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",
"timeoutInMinutes": number,
"webhook": {
"branchFilter": "string",
"buildType": "string",
"filterGroups": [
[
{
"excludeMatchedPattern": boolean,
"pattern": "string",
"type": "string"
}
]
],
"payloadUrl": "string",
"url": "string"
}
}
}
响应元素
如果此操作成功,则该服务将会发送回 HTTP 200 响应。
服务以 JSON 格式返回以下数据。
- 项目
-
类型:PublicProject 对象
错误
有关所有操作中常见的错误的信息,请参阅常见错误。
- InvalidInputException
-
HTTP 状态代码:400
- ResourceNotFoundException
-
HTTP 状态代码:400