Creates or modifies an asset auto-tagging rule on the Asset Management Rule tab.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:CreateOrUpdateAutoTagRule |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuleId |
integer |
No |
The ID of the rule. Note
You can call the ListAutoTagRules operation to query the ID. |
300566 |
| RuleName |
string |
Yes |
The name of the rule. |
text-001 |
| RuleDesc |
string |
No |
The description of the rule. |
describe |
| Expression |
string |
No |
The expression of the rule. |
[{"groups":"0","fieldValueType":"string","field":"internetIp","operator":"equals","value":"12.0.0.1"}] |
| TagType |
string |
Yes |
The operation type of the rule. Valid values:
|
tag |
| TagContext |
string |
No |
The tag associated with the operation type of the rule.
|
{"tagId":7804789} |
| CheckAll |
boolean |
No |
Specifies whether to validate the rule on the backend. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
33DCC98C-824D-55D6-8DC5-47F3A71AD867 |
Examples
Success response
JSON format
{
"RequestId": "33DCC98C-824D-55D6-8DC5-47F3A71AD867"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | -101 | Invalid parameter value. | Invalid parameter. |
| 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.