调用 OpenAPI 后,所有返回结果都会携带RequestId
、Action
、Version
、Service
、Region
等字段。
接口调用成功后,会返回请求 ID 和接口返回参数。HTTP 状态码为2xx
。示例如下:
HTTP/1.1 200 OK Content-Type:application/json { "ResponseMetadata": { "RequestId": "2025302208****", "Action": "CreateArtifactRegistry", "Version": "2025-01-01", "Service": "atrifacts", "Region": "cn-beijing" }, "Result": {} }
接口调用出错后,会返回请求 ID 和错误信息。HTTP 状态码为4xx
或5xx
。示例如下:
{ "ResponseMetadata": { "RequestId": "2025020172****", "Action": "DeleteArtifactRegistry", "Version": "2025-01-01", "Service": "artifacts", "Region": "cn-beijing", "Error": {} } }