Updating a Layer 2 Connection
Function
This API is used to update the name of a Layer 2 connection.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
esw:connection:update |
Write |
- |
- |
- |
- |
URI
PUT /v3/{project_id}/l2cg/instances/{instance_id}/connections/{connection_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
connection_id |
Yes |
String |
|
|
instance_id |
Yes |
String |
|
|
project_id |
Yes |
String |
|
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
connection |
Yes |
UpdateConnectionOption object |
|
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
request_id |
String |
|
|
connection |
Connection object |
|
|
Parameter |
Type |
Description |
|---|---|---|
|
fixed_ips |
Array of strings |
|
|
id |
String |
|
|
instance_id |
String |
|
|
name |
String |
|
|
project_id |
String |
|
|
remote_infos |
Array of RemoteInfosResult objects |
|
|
status |
String |
|
|
virsubnet_id |
String |
|
|
vpc_id |
String |
|
|
created_at |
String |
|
|
updated_at |
String |
|
|
Parameter |
Type |
Description |
|---|---|---|
|
segmentation_id |
Integer |
|
|
tunnel_ip |
String |
|
|
tunnel_port |
Integer |
|
|
tunnel_type |
String |
|
Example Requests
PUT https://{endpoint}/v3/dd9e484e058b48e18b820948dcbd480e/l2cg/instances/87fea8df-3e0d-473a-a1bd-e6a76157f4ce/connections/b6eb65d0-0079-4432-86b9-60a066fe21d4
{
"connection" : {
"name" : "test"
}
}
Example Responses
Status code: 200
The PUT operation is successful. For more status codes, see Status Codes.
{
"request_id" : "861c233f7fa7ace487a565ac1e2a6f19",
"connection" : {
"name" : "l2conn-update",
"id" : "b6eb65d0-0079-4432-86b9-60a066fe21d4",
"status" : "disconnect",
"created_at" : "2025-07-28T08:22:21Z",
"updated_at" : "2025-07-28T08:25:59Z",
"project_id" : "dd9e484e058b48e18b820948dcbd480e",
"instance_id" : "87fea8df-3e0d-473a-a1bd-e6a76157f4ce",
"vpc_id" : "6ae030de-f630-476e-8284-7bcfbd94929d",
"virsubnet_id" : "2c649856-0d44-400c-8194-f6d67603e0eb",
"fixed_ips" : [ "192.168.0.116", "192.168.0.96" ],
"remote_infos" : [ {
"segmentation_id" : 7127,
"tunnel_ip" : "192.168.111.111",
"tunnel_port" : 4789,
"tunnel_type" : "vxlan"
} ]
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
The PUT operation is successful. For more status codes, see Status Codes. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot