GetAuthorizationRule
Queries the details of an authorization rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:GetAuthorizationRule |
get |
*AuthorizationRule
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| AuthorizationRuleId |
string |
Yes |
The authorization rule ID. |
arrule_01kf143ug06fg7m9f43u7vahxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| AuthorizationRule |
object |
The authorization rule object. |
|
| InstanceId |
string |
The instance ID. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| AuthorizationRuleId |
string |
The authorization rule ID. |
arrule_01kf143ug06fg7m9f43u7vahxxxx |
| AuthorizationRuleName |
string |
The authorization rule name. |
test-name |
| Status |
string |
The authorization rule status. Valid values:
|
enabled |
| ProjectId |
string |
The ID of the project associated with the authorization rule. |
iprj_system_default |
| AuthorizationResourceScope |
string |
The authorization resource scope. Valid values:
|
custom |
| AuthorizationRuleCreationType |
string |
The creation type of the authorization rule. Valid values:
|
user_custom |
| AuthorizationRuleScenarioLabel |
string |
The scenario label of the authorization rule. Valid values:
Valid values:
|
privileged_cloud_account |
| AuthorizationRuleSubjectScope |
string |
The subject scope of the authorization rule. Valid values:
Valid values:
|
shared |
| AuthorizationRuleSubjectType |
string |
The subject category to which the authorization rule applies. For an exclusive rule, this field indicates the type of the specified subject. For a shared rule with a configured subject category, this field indicates the subject category that the rule allows to be associated with. Valid values:
Valid values:
|
user |
| AuthorizationRuleSubjectId |
string |
The ID of the subject associated with the authorization rule. |
user_d6sbsuumeta4h66ec3il7yxxxx |
| Description |
string |
The description of the authorization rule. |
this is a test |
| CreateTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
| UpdateTime |
integer |
The last update time. The value is a UNIX timestamp in milliseconds. |
1652085686179 |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"AuthorizationRule": {
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"AuthorizationRuleId": "arrule_01kf143ug06fg7m9f43u7vahxxxx",
"AuthorizationRuleName": "test-name",
"Status": "enabled",
"ProjectId": "iprj_system_default",
"AuthorizationResourceScope": "global",
"AuthorizationRuleCreationType": "user_custom",
"AuthorizationRuleScenarioLabel": "Asset",
"AuthorizationRuleSubjectScope": "shared",
"AuthorizationRuleSubjectType": "user",
"AuthorizationRuleSubjectId": "user_d6sbsuumeta4h66ec3il7yxxxx",
"Description": "this is a test",
"CreateTime": 1652085686179,
"UpdateTime": 1652085686179
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.