Bind EIPs to a DevServer
Function
EIPs bound to a DevServer.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
POST /v1/{project_id}/dev-servers/{id}/publicips
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
id |
Yes |
String |
Definition: DevServer ID Constraints: Mandatory Range: 1 to 64 characters Default Value: N/A |
|
project_id |
Yes |
String |
Definition: Project ID. For details, see Obtaining a Project ID and Name. Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed. Range: N/A Default Value: N/A |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
public_ip_id |
No |
String |
Definition: EIP ID. Constraints: Mandatory Range: 1 to 64 characters Default Value: N/A |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
X-Request-Id |
String |
Link trace ID. |
|
Parameter |
Type |
Description |
|---|---|---|
|
public_ips |
Array of ServerPublicIp objects |
Definition: Array of EIP information. |
Example Requests
POST https://{endpoint}/v1/{project_id}/dev-servers/{id}/publicips
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
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