Configures custom check rules for sensitive files.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:SetSensitiveDefineRuleConfig |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Config |
string |
No |
The custom check rule configuration in JSON format. Valid keys:
|
[{\"classKey\": \"password\", \"ruleList\": [\"huaweicloud_ak\", \"ak_leak\"]}] |
| Source |
string |
No |
The source of the check rules. Valid values:
|
agentless |
| EnableNewRule |
integer |
No |
Specifies whether to enable the new rule for automatic checks in agentless detection only. Valid values:
|
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Data |
object |
The returned data. |
|
| Id |
integer |
The custom primary key. |
44616 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Code |
string |
The HTTP status code. |
200 |
| Message |
string |
The returned message. |
successful |
| RequestId |
string |
The request ID. |
0B48AB3C-84FC-424D-A01D-B9270EF4**** |
Examples
Success response
JSON format
{
"Data": {
"Id": 44616
},
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "0B48AB3C-84FC-424D-A01D-B9270EF4****"
}
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.