Grants the permission of a network instance to a CEN instance.
Limits
Before you can attach a network instance under an account to a CEN instance under another account, you must use this API to authorize the CEN instance from the account where the network instance is located.
vpc.aliyuncs.com
as the domain name. The API version is the one released on April 28, 2016.
Debug
Use OpenAPI Explorer to perform debug operations and generate SDK code examples.
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 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. The value must be unique among different requests and must be 1 to 64 ASCII characters in length. |
Response parameters
Parameter | Type | Example value | Description |
---|---|---|---|
RequestId | String | 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
The ID of the request. |
Examples
Request example
http(s)://[Endpoint]/? Action=GrantInstanceToCen
&CenId=cen-7qthudw0ll6jmc****
&CenOwnerId=123456789
&InstanceId=vpc-uf6o8d1dj8sjwxi6o****
&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.