Grants permission to a CEN instance.
Before you begin
Before you can attach a network instance to a CEN instance that is under another account, you must authorize the CEN instance from the account to which the network instance belongs.
vpc.aliyuncs.com
as the domain name. The API version is the one released on April 28, 2016.
Make the API call
Request parameters
Parameter | Type | Required? | Example value | Description |
---|---|---|---|---|
Action | String | Yes | GrantInstanceToCen |
The name of this action. Value: GrantInstanceToCen. |
CenId | String | Yes | cen-7qthudw0ll6jmc**** |
The ID of the CEN instance to be authorized. |
CenOwnerId | Long | Yes | 123456789 |
The UID of the account to which the target CEN instance belongs. |
InstanceId | String | Yes | vpc-uf6o8d1dj8sjwxi6o**** |
The ID of the network instance. |
InstanceType | String | Yes | VPC |
The type of the network instance. Valid values:
|
RegionId | String | Yes | cn-hangzhou |
The ID of the region to which the network instance belongs. |
ClientToken | String | No | 0c593ea1-3bea-11e9-b96b-88e9fe637760 |
The client token that guarantees the idempotence of the request. The value of this parameter is generated by the client and is unique among different requests. The ClientToken can contain only ASCII characters, and cannot exceed 64 characters in length. For more information, see How to ensure idempotence. |
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
The ID of the request. |
Examples
Request example
http(s)://vpc.aliyuncs.com/? Action=GrantInstanceToCen
&CenId=cen-7qthudw0ll6jmc****
&CenOwnerId=123456789
&InstanceId=vpc-uf6o8d1dj8sjwxi6o****
&InstanceType=VPC
&RegionId=cn-hangzhou
&<CommonParameters>
Response example
XML
format
<GrantInstanceToCenResponse>
<RequestId>0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50</RequestId>
</GrantInstanceToCenResponse>
JSON
format
{
"RequestId":"0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
}
Errors
For a list of error codes, visit the API Error Center.