调用PutEvaluations接口提交评估结果。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | PutEvaluations | 要执行的操作,取值:PutEvaluations。 | 
| ResultToken | String | 是 | =lAUbfkWp7GL9AFoQEIStinqBMc4FC8sHvip/1F1npkWUDNS2GEm6xwL6Zl/fSr0bbkWY+aiCLjTJxnp4H/yp/8p/Q8VCAtqG5uhRii4sfnYRnTPnE**** | 回调令牌。 | 
| Evaluations | String | 否 | [{"annotation":"Resource type is ACS::CEN::Flowlog, not in ACS::ECS::Instance,ACS::ECS::NetworkInterface.","complianceResourceId":"flowlog-o6wdfo1yvgo4i8****","complianceResourceType":"ACS::CEN::Flowlog","complianceType":"NOT_APPLICABLE","orderingTimestamp":1588907220408}] | 评估结果。 | 
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| RequestId | String | A7A0FFF8-0B44-40C6-8BBF-3A185EFDF3F7 | 请求ID。 | 
| Result | Boolean | true | 执行状态。取值: 
 | 
示例
请求示例
http(s)://[Endpoint]/?Action=PutEvaluations
&ResultToken==lAUbfkWp7GL9AFoQEIStinqBMc4FC8sHvip/1F1npkWUDNS2GEm6xwL6Zl/fSr0bbkWY+aiCLjTJxnp4H/yp/8p/Q8VCAtqG5uhRii4sfnYRnTPnE****
&<公共请求参数>正常返回示例
XML 格式
                  
<PutEvaluationsResponse>
      <RequestId>A7A0FFF8-0B44-40C6-8BBF-3A185EFDF3F7</RequestId>
      <Result>true</Result>
</PutEvaluationsResponse>JSON 格式
                  
{
  "RequestId": "A7A0FFF8-0B44-40C6-8BBF-3A185EFDF3F7",
  "Result": true
}错误码
| HttpCode | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | 您无权执行此操作。 | 
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 | 
| 404 | AccountNotExisted | Your account does not exist. | 您的账号不存在。 | 
访问错误中心查看更多错误码。