Adds a policy to an access configuration.
Operation description
This topic provides an example on how to add the system policy AliyunECSFullAccess to the access configuration ac-00jhtfl8thteu6uj****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:AddPermissionPolicyToAccessConfiguration |
create |
*AccessConfiguration
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
| AccessConfigurationId |
string |
Yes |
The ID of the access configuration. |
ac-00jhtfl8thteu6uj**** |
| PermissionPolicyType |
string |
Yes |
The type of the policy. Valid values:
|
System |
| PermissionPolicyName |
string |
Yes |
The name of the policy.
|
AliyunECSFullAccess |
| InlinePolicyDocument |
string |
No |
The configurations of the inline policy. The value can be up to 4,096 characters in length. If you set |
{"Statement": [{"Action": "*","Effect": "Allow","Resource": "*"}],"Version": "1"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
B7C6E839-FB65-59BE-B753-003AA8AF7DF7 |
Examples
Success response
JSON format
{
"RequestId": "B7C6E839-FB65-59BE-B753-003AA8AF7DF7"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.