CreateAuthorizationResource
Creates an authorization resource.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:CreateAuthorizationResource |
create |
*AuthorizationResource
|
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 |
| AuthorizationResourceEntityType |
string |
Yes |
The type of the resource entity associated with the authorization resource. Valid values:
|
cloud_account_role |
| AuthorizationResourceEntityId |
string |
Yes |
The ID of the resource entity associated with the authorization resource. |
carole_01kmek49aqxxxx |
| ClientToken |
string |
Yes |
The client token that is used to ensure the idempotence of the request. You can generate a parameter value on your client and ensure that the parameter value is unique across different requests. The client token can contain only ASCII characters and cannot exceed 64 characters in length. For more information, see References: How to ensure idempotence. |
client-token-example |
| Condition |
object |
No |
The effective condition. |
|
| CredentialCondition |
object |
No |
The effective condition when used as a credential. |
|
| AllowSameNameIdentity |
boolean |
No |
Specifies whether to allow identity accounts with the same name. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| AuthorizationResourceId |
string |
The authorization resource ID. |
arres_01kgh3jvt7pk093rv6giu0c0qxxxx |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"AuthorizationResourceId": "arres_01kgh3jvt7pk093rv6giu0c0qxxxx"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.