Generates a RAM policy.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RequireBasePolicy | boolean | No | Specifies whether to generate the policy based on an existing instance-specific rule. Valid values:
| true |
ActionType | string | Yes | The type of the policy that you want to generate. Valid values:
| system |
VaultId | string | Yes | The ID of the backup vault. | v-0007al3m******7ao |
ResourceGroupId | string | No | The ID of the resource group. | rg-********************* |
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": "200",
"Message": "successful",
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"PolicyDocument": "{ \"Version\": \"1\", \"Statement\": [ { \"Effect\": \"Deny\", \"Action\": [ \"hbr:CreateRestore\", \"hbr:CreateRestoreJob\", \"hbr:CreateHanaRestore\", \"hbr:CreateUniRestorePlan\", \"hbr:CreateSqlServerRestore\" ], \"Resource\": [ \"acs:hbr:*:1178******531:vault/v-000******blx06\", \"acs:hbr:*:1178******531:vault/v-000******blx06/client/*\" ] } ] }",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
No change history