适用版本 | 中心版、Region版 |
服务接入点与授权信息
产品 | 资源 | 所需权限 |
应用交付 | 变更 | 只读 |
请求语法
中心版
GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/changeRequests/{sn}/auditItems
Region版
GET https://{domain}/oapi/v1/appstack/apps/{appName}/changeRequests/{sn}/auditItems
请求头
参数 | 类型 | 是否必填 | 描述 | 示例值 |
x-yunxiao-token | string | 是 | 个人访问令牌。 | pt-0fh3****0fbG_35af****0484 |
请求参数
参数 | 类型 | 位置 | 是否必填 | 描述 | 示例值 |
appName | string | path | 是 | 应用名。 | my-web-service |
sn | string | path | 是 | 变更标识符。 | f1e78f22428e4e2496a01691812a17af |
refType | string | query | 是 | 关联类型。 | CR |
organizationId | string | path |
| 组织 ID。 | ec766e63aee3437d9a51f334d6exe671 |
请求示例
中心版
curl -X 'GET' \
'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-web-service/changeRequests/f1e78f22428e4e2496a01691812a17af/auditItems?refType=CR' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region版
curl -X 'GET' \
'https://{domain}/oapi/v1/appstack/apps/my-web-service/changeRequests/f1e78f22428e4e2496a01691812a17af/auditItems?refType=CR' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
返回参数 #1
参数 | 类型 | 描述 | 示例值 |
| - | array | ||
| - | object | 代码审核审批项。 | |
| auditOrderSn | string | 审批单编号。 | 4d6697f2376940aa889fbe9f3b7b8da7 |
| commitId | string | 代码提交 ID。 | c229f22024535638af41838daa43af1e6d468116 |
| crId | string | 变更 ID。 | cr-123 |
| operatorId | string | 代码提交人 ID。 | 10df6011-2837-4fdb-ad92-356a679a60ca |
| refSn | string | 审批关联对象标识符。 | |
| refType | string | 审批关联类型。 | |
| sourceVersion | string | 代码来源分支版本。 | sha-123 |
| state | string | 审批状态。 | SUCCESS |
| targetVersion | string | 代码目标分支版本。 | sha-456 |
| type | string | 审批类型。 | CODE_REVIEW |
| url | string | 代码提交 URL。 | http://www.aliyun..... |
返回参数 #2
参数 | 类型 | 描述 | 示例值 |
| - | array | ||
| - | object | 代码安全审批项 | |
| auditOrderSn | string | 审批单编号 | 10df6011-2837-4fui-ad92-356a679a60ca |
| commitDate | string | 提交时间 | 2024-09-01 00:00:00 |
| commitEmployeeId | string | 提交人 | 10df6011-2837-4fdb-ad92-356a679a60ca |
| commitMsg | string | 提交信息 | fix unit test |
| crId | string | 变更 ID | cr-123 |
| refSn | string | 审批关联对象标识符 | |
| refType | string | 审批关联类型 | |
| state | string | 审批状态 | SUCCESS |
| type | string | 审批类型 | CODE_SPLC |
返回示例 #1
[
{
"auditOrderSn": "4d6697f2376940aa889fbe9f3b7b8da7",
"commitId": "c229f22024535638af41838daa43af1e6d468116",
"crId": "cr-123",
"operatorId": "10df6011-2837-4fdb-ad92-356a679a60ca",
"refSn": "",
"refType": "",
"sourceVersion": "sha-123",
"state": "SUCCESS",
"targetVersion": "sha-456",
"type": "CODE_REVIEW",
"url": "http://www.aliyun....."
}
]
返回示例 #2
[
{
"auditOrderSn": "10df6011-2837-4fui-ad92-356a679a60ca",
"commitDate": "2024-09-01 00:00:00",
"commitEmployeeId": "10df6011-2837-4fdb-ad92-356a679a60ca",
"commitMsg": "fix unit test",
"crId": "cr-123",
"refSn": "",
"refType": "",
"state": "SUCCESS",
"type": "CODE_SPLC"
}
]
错误码
访问错误码中心查看 API 相关错误码。