Grants cross-account authorization for a VPC.
Operation description
Limits
Cross-account authorization is supported only for Alibaba Cloud accounts. RAM users are not supported. You can only associate accounts that are on the same site, such as two accounts on the China site (aliyun.com) or two accounts on the international site (alibabacloud.com). You cannot associate an account on the China site with an account on the international site.
An API is not provided to send verification codes for authorization.
Notes
When you configure cross-account authorization, billing is settled based on the account that manages the built-in authoritative domain name.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:AddUserVpcAuthorization |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AuthorizedUserId |
integer |
Yes |
The ID of the Alibaba Cloud account that owns the authorized resources. Note
Only Alibaba Cloud accounts are supported. RAM users are not supported. You can associate accounts only if they are on the same site, such as the China site (aliyun.com) or the international site (alibabacloud.com). Cross-site association is not supported. |
141339776561**** |
| AuthCode |
string |
No |
The verification code. Note
|
123456 |
| AuthType |
string |
No |
The authorization type. Valid values:
|
NORMAL |
| AuthChannel |
string |
No |
The authorization channel. Valid values:
Default: AUTH_CODE. |
AUTH_CODE |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique request ID. |
46973D4C-E3E4-4ABA-9190-9A9DE406C7E |
Examples
Success response
JSON format
{
"RequestId": "46973D4C-E3E4-4ABA-9190-9A9DE406C7E"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.