Associates a virtual private cloud (VPC) with a Container Registry instance.
Operation description
The VPC quota must be purchased separately.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cr:CreateInstanceVpcEndpointLinkedVpc |
create |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
cri-xkx6vujuhay0**** |
| VpcId |
string |
Yes |
The VPC ID. |
vpc-uf6pa68zxnnlc48dd**** |
| VswitchId |
string |
Yes |
The ID of the vSwitch that is associated with the specified VPC. |
vsw-uf6u0kn8x2gbzxfn2**** |
| ModuleName |
string |
No |
The name of the module that you want to access. Valid values:
|
Registry |
| EnableCreateDNSRecordInPvzt |
boolean |
No |
Specifies whether to automatically create Alibaba Cloud DNS PrivateZone records. Valid values: Note
If you enable automatic creation of PrivateZone records, a PrivateZone record is automatically created when you associate a VPC with the instance.
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The return value. |
success |
| IsSuccess |
boolean |
Indicates whether the request is successful.
|
true |
| RequestId |
string |
The request ID. |
D4978DCC-ECBD-40B0-A714-EE6959B22C77 |
Examples
Success response
JSON format
{
"Code": "success",
"IsSuccess": true,
"RequestId": "D4978DCC-ECBD-40B0-A714-EE6959B22C77"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | SystemError | Unknown error. | |
| 403 | NoPrivilege | Access denied for this user. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.