Generates a Resource Access Management (RAM) policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hbr:GenerateRamPolicy |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RequireBasePolicy |
boolean |
No |
Whether to generate the policy based on an existing instance-specific rule. Valid values:
|
true |
| ActionType |
string |
Yes |
The type of policy 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 elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. A value of 200 indicates success. |
200 |
| Message |
string |
The returned message. A successful request returns "successful". A failed request returns an error message. |
successful |
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PolicyDocument |
string |
The content of the policy. |
{ "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 |
boolean |
Whether the request was successful. Valid values:
|
true |
Examples
Success response
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
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.