Creates a whitelist rule for a baseline check item.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:AddBaselineCheckWhiteRecord |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response content. Default value: zh. Valid values:
|
zh |
| Source |
string |
No |
The data source. If not specified, the default value is used. Valid values:
|
agentless |
| CheckId |
integer |
No |
The ID of the check item. Note
You can call the ListCheckItemWarningSummary operation to query the IDs of check items. |
76 |
| TargetType |
string |
No |
The type of assets on which the whitelist rule takes effect. Valid values:
|
instance |
| Reason |
string |
No |
The reason for adding the check item to the whitelist. |
Invalid |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Data |
object |
The data returned. |
|
| RecordId |
integer |
The ID of the whitelist rule. |
864153 |
| CheckId |
integer |
The ID of the check item. Note
You can call the ListCheckItemWarningSummary operation to query the IDs of check items. |
76 |
| TargetType |
string |
The type of assets on which the whitelist rule takes effect. Valid values:
|
instance |
| Target |
string |
The object added to the whitelist. |
HOST_BASELINE_WHITE_LIST_21 |
| Reason |
string |
The reason for adding the check item to the whitelist. |
Temporarily ignored |
| Source |
string |
The data source. Valid values:
|
agentless |
| Lang |
string |
The language of the request and response content. Default value: zh. Valid values:
|
zh |
| RequestId |
string |
The request ID. |
7532B7EE-7CE7-5F4D-BF04-B12447DD**** |
Examples
Success response
JSON format
{
"Data": {
"RecordId": 864153,
"CheckId": 76,
"TargetType": "instance",
"Target": "HOST_BASELINE_WHITE_LIST_21",
"Reason": "Temporarily ignored",
"Source": "agentless",
"Lang": "zh"
},
"RequestId": "7532B7EE-7CE7-5F4D-BF04-B12447DD****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.