Exports baseline check results.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ExportWarning | none |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceIp | string | No | The source IP address of the request. | 192.0.XX.XX |
Lang | string | No | The language of the content within the request and response. Default value: zh. Valid values:
| zh |
Uuids | string | No | The UUID of the server whose baseline check results you want to export. Separate multiple UUIDs with commas (,). | inet-7c676676-06fa-442e-90fb-b802e****,inet-7c676676-06fa-442e-90fb-b**** |
TypeName | string | No | The type of the baseline based on which baseline checks are performed. Note
You must set the value of this parameter to the value of the TypeName parameter that is returned by calling the DescribeRiskType operation. If both the TypeName and TypeNames parameters are specified, only the TypeName parameter takes effect.
| hc_container |
TypeNames | string | No | The types of the baselines based on which baseline checks are performed. Separate multiple types with commas (,). Note
You must set the value of this parameter to the value of the TypeName parameter that is returned by calling the DescribeRiskType operation. If both the TypeName and TypeNames parameters are specified, only the TypeName parameter takes effect.
| hc_container,cis |
SubTypeNames | string | No | The subtypes of the baselines based on which baseline checks are performed. Separate multiple subtypes with commas (,). Note
You must set the value of this parameter to the value of the TypeName parameter that is contained in the SubTypes parameter. You can call the DescribeRiskType operation to obtain the value of the TypeName parameter.
| hc_middleware_ack_master |
RiskLevels | string | No | The severity of the baseline check item. Separate multiple severities with commas (,). Valid values:
| high,medium |
StatusList | string | No | The status of the check item in the baseline check results. Separate multiple statuses with commas (,). Valid values:
| 1,3 |
RiskName | string | No | The name of the baseline. | Alibaba Cloud Standard - Windows 2016/2019 Security Baseline |
Dealed | string | No | Specifies whether the baseline risks are handled. Valid values:
| N |
IsSummaryExport | integer | No | Specifies whether the baseline check results are aggregated and exported. Valid values:
| 1 |
StrategyId | long | No | The ID of the baseline check policy. | 12 |
RiskIds | string | No | The ID of the risk item in the baseline check results. Separate multiple IDs with commas (,). | 123,124 |
ExportType | string | No | The type of the export task. Set the value to hc_check_warning, which indicates tasks to export baseline check results. | hc_check_warning |
IsCleartextPwd | integer | No | The export method of the results for the weak password baseline check. Valid values:
| 0 |
GroupId | long | No | The ID of the server group. Note
You can call the DescribeAllGroups operation to query the IDs of server groups.
| 13007754 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A7FC828B-C242-1005-9736-C7CC5DC09FF0",
"FileName": "health_check_export_20220407",
"Id": 439316
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | FreeVersionNotPermit | Free version is not permitted. | The free version cannot be used. |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-27 | The Error code has changed | View Change Details |
2024-06-13 | The Error code has changed | View Change Details |
2024-01-18 | The request parameters of the API has changed | View Change Details |
2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2022-08-01 | The internal configuration of the API is changed, but the call is not affected | View Change Details |