AddPermissionPolicyToAccessConfiguration
Adds an access policy to an access configuration.
Operation description
This topic provides an example of adding 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 directory ID. |
d-00fc2p61**** |
| AccessConfigurationId |
string |
Yes |
The access configuration ID. |
ac-00jhtfl8thteu6uj**** |
| PermissionPolicyType |
string |
Yes |
The type of the access policy. Valid values:
|
System |
| PermissionPolicyName |
string |
Yes |
The name of the access policy. Details:
|
AliyunECSFullAccess |
| InlinePolicyDocument |
string |
No |
The content of the inline policy. Length: up to 4,096 characters. This parameter is required when PermissionPolicyType is set to Inline. For more information about the syntax and structure of an access policy, see Access policy syntax and structure. |
{"Statement": [{"Action": "*","Effect": "Allow","Resource": "*"}],"Version": "1"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| 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.