Provisions an access configuration for an account in your resource directory.
Operation description
When you call this operation, an asynchronous task is automatically created. You can call the GetTask operation to query the progress of the task based on the value of the TaskId response parameter.
This topic provides an example on how to provision the access configuration ac-00jhtfl8thteu6uj**** for the account 114240524784**** in your resource directory.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:ProvisionAccessConfiguration |
update |
*AccessConfiguration
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The directory ID. |
d-00fc2p61**** |
| AccessConfigurationId |
string |
Yes |
The ID of the access configuration. |
ac-00jhtfl8thteu6uj**** |
| TargetType |
string |
Yes |
The type of the task object. Set the value to RD-Account, which specifies the accounts in the resource directory. |
RD-Account |
| TargetId |
string |
Yes |
The ID of the task object. |
114240524784**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned results. |
||
| Tasks |
array<object> |
The task information. |
|
|
object |
|||
| Status |
string |
The task status. Valid values:
|
InProgress |
| TaskId |
string |
The task ID. |
t-shqlhd8uvt280rtm**** |
| TargetPath |
string |
The path ID of the task object in the resource directory. |
rd-3G****/r-Wm****/114240524784**** |
| TargetName |
string |
The name of the task object. |
dev-test |
| TargetId |
string |
The ID of the task object. |
114240524784**** |
| AccessConfigurationName |
string |
The name of the access configuration. |
ECS-Admin |
| TargetPathName |
string |
The path name of the task object in the resource directory. |
rd-3G****/root/dev-test |
| TaskType |
string |
The task type. The value is fixed as ProvisionAccessConfiguration, which indicates that an access configuration is provisioned. |
ProvisionAccessConfiguration |
| TargetType |
string |
The type of the task object. The value is fixed as RD-Account, which indicates the accounts in the resource directory. |
RD-Account |
| AccessConfigurationId |
string |
The ID of the access configuration. |
ac-00jhtfl8thteu6uj**** |
| RequestId |
string |
The request ID. |
DFDC16B2-4509-5FA6-9FA5-3CD35E4292FB |
Examples
Success response
JSON format
{
"Tasks": [
{
"Status": "InProgress",
"TaskId": "t-shqlhd8uvt280rtm****",
"TargetPath": "rd-3G****/r-Wm****/114240524784****",
"TargetName": "dev-test",
"TargetId": "114240524784****",
"AccessConfigurationName": "ECS-Admin",
"TargetPathName": "rd-3G****/root/dev-test",
"TaskType": "ProvisionAccessConfiguration",
"TargetType": "RD-Account",
"AccessConfigurationId": "ac-00jhtfl8thteu6uj****"
}
],
"RequestId": "DFDC16B2-4509-5FA6-9FA5-3CD35E4292FB"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.