Updates the virtual private cloud (VPC) direct connection configuration for a dedicated resource group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateResourceDLink |
update |
*Resource
|
None | None |
Request syntax
PUT /api/v2/resources/{ClusterId}/{ResourceId}/dlink HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the region to which the resource group belongs. |
cn-shanghai |
| ResourceId |
string |
Yes |
The ID of the resource group. For more information about how to query the ID of a resource group, see ListResources. |
eas-r-w1ttszneb9n994**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| VSwitchId |
string |
Yes |
The ID of the peer primary vSwitch. When specified, an elastic network interface (ENI) is created in the vSwitch. |
vpc-uf66uio7md**** |
| SecurityGroupId |
string |
Yes |
The ID of the security group to which the Elastic Compute Service (ECS) instance belongs. |
sg-bp149cedsfx2rfs**** |
| VSwitchIdList |
array |
No |
The vSwitches of the clients to connect to. When specified, the CIDR blocks of these vSwitches are added to the back-to-origin route of the server. |
|
|
string |
No |
The vSwitch ID. |
["vsw-8ersw98sgmlgkxxxxxx","vsw-4dsgg2at0kljjxxxxxxxx"] |
|
| DestinationCIDRs |
string |
No |
The CIDR blocks of the clients to connect to. When specified, these CIDR blocks are added to the back-to-origin route of the server. You can use either this parameter or VSwitchIdList to specify CIDR blocks. |
172.16.0.0/16 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The returned message. |
Network interfaces are updating |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Network interfaces are updating"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.