Modifying a BMS NIC
Function
This API is used to modify a BMS NIC.
Debugging
You can debug this API in API Explorer.
URI
PUT /v1/{project_id}/baremetalservers/nics/{nic_id}
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
|
nic_id |
Yes |
Specifies the NIC ID. |
Request
Table 2 describes the request parameters.
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
nic |
No |
Object |
Specifies the NIC details. For details, see Table 3. |
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
port_id |
String |
Specifies the NIC ID. |
Example Request
PUT https://{endpoint}/v1/{project_id}/baremetalservers/nics/{nic_id}
{
"nic": {
"subnet_id": "feb858e0-2111-4e47-98f4-275b87baaf1d",
"ip_addresses": "192.168.1.1",
"device_owner": "device_owner",
"reverse_binding": false
}
}
Example Response
{
"port_id": "ce531f90-199f-48c0-816c-13e38010b442"
}
Returned Values
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