Binding a Virtual IP Address to a Layer 2 Connection
Function
This API is used to bind a virtual IP address to 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:bindVport |
Write |
- |
- |
- |
- |
URI
POST /v3/{project_id}/l2cg/connections/{connection_id}/vports/bind
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
connection_id |
Yes |
String |
|
|
project_id |
Yes |
String |
|
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
vport |
Yes |
Vport object |
|
Response Parameters
Status code: 204
The POST operation is successful. For more status codes, see Status Codes.
None
Example Requests
POST https://{endpoint}/v3/05137572fa00d5eb2fdcc014b0f5c751/l2cg/connections/6a9c6b1a-0d5c-495a-8e0c-4f631bde397f/vports/bind
{
"vport" : {
"id" : "84beed10-ef3e-42a8-902c-9d6cdc0d4e20"
}
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
The POST 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