ProvisionAccessConfiguration
Invokes ProvisionAccessConfiguration to perform access configuration provisioning and deployment for an account in a resource directory.
Operation description
This API operation is asynchronous. You can use the TaskId returned in the response to call GetTask and query the task execution status.
This topic provides an example of provisioning the access configuration ac-00jhtfl8thteu6uj**** to the account in a resource directory 114240524784****.
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 access configuration ID. |
ac-00jhtfl8thteu6uj**** |
| TargetType |
string |
Yes |
The target type of the task. Valid values:
|
RD-Account |
| TargetId |
string |
Yes |
The ID of the task target. |
114240524784**** |
| OriginTargetId |
string |
No |
The ID of the Alibaba Cloud account to which the deployment target belongs. |
114240524784**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| Tasks |
array<object> |
The task information. |
|
|
object |
The task information. |
||
| Status |
string |
The status of the task. Valid values:
|
InProgress |
| TaskId |
string |
The task ID. |
t-shqlhd8uvt280rtm**** |
| TargetPath |
string |
The path ID of the task target in the resource directory. |
rd-3G****/r-Wm****/114240524784**** |
| TargetName |
string |
The name of the task target. |
dev-test |
| TargetId |
string |
The ID of the deployment target. |
114240524784**** |
| AccessConfigurationName |
string |
The name of the access configuration. |
ECS-Admin |
| TargetPathName |
string |
The path name of the task target in the resource directory. |
rd-3G****/root/dev-test |
| TaskType |
string |
The task type. Valid values:
|
ProvisionAccessConfiguration |
| TargetType |
string |
The target type of the task. Valid values:
|
RD-Account |
| AccessConfigurationId |
string |
The access configuration ID. |
ac-00jhtfl8thteu6uj**** |
| OriginTargetId |
string |
The ID of the Alibaba Cloud account to which the deployment target belongs. |
114240524784**** |
| 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****",
"OriginTargetId": "114240524784****"
}
],
"RequestId": "DFDC16B2-4509-5FA6-9FA5-3CD35E4292FB"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.