Attach AddOn IPv4
POST
/api/v1/reserve_ips/{addon_ip}/actions/Path parameters
addon_ipPathstringrequiredPath parameter
addon_ip.
Query parameters
project_idQueryintegerrequiredIdentifier of the project to scope the request to. Required integer project ID.
- required
- must be a valid integer project ID
example{{project_id}}apikeyQuerystringrequiredAPI key used to authenticate the request
- required
- must be a valid non-empty string
example{{api_key}}locationQuerystringrequiredSpecifies the target location for attaching the IPv4 add-on.
- required
- must be a non-empty string
example{{location}}
Request body
application/json
JSON string with parameters to attach an IPv4 add-on to a VM
example
{
"vm_id": {{vm_id}},
"type": "attach"
}- must be valid JSON
- must contain a "vm_id" field
- must contain a "type" field set to "attach"
Responses
200Successful response
HTTP status code of the response
example
200- integer between 100 and 599
- non-negative
Status message indicating the result of the IPv4 attachment operation.
example
IP assigned Successfully.- must be a non-empty string
- maximum length of 255 characters