POST /floating_ips/{id}/change_ip

This will change the IP address that your floating ip points to.

Path parameters

  • id integer Required

    Floating IPs ID number

Body Required

  • ip string Required

    IP Address

Body Required

  • ip string Required

    IP Address

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • success boolean Required

      Indicates whether or not the command was successful or not.

    • text string

      Text associated with the response.

    • action string

      Optional Action relating to the response.

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code string Required
    • message string Required
POST /floating_ips/{id}/change_ip
curl \
 --request POST 'https://my.interserver.net/apiv2/floating_ips/{id}/change_ip' \
 --header "X-API-KEY: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"ip":"1.2.3.4"}'
curl \
 --request POST 'https://my.interserver.net/apiv2/floating_ips/{id}/change_ip' \
 --header "X-API-KEY: $API_KEY" \
 --header "Content-Type: multipart/form-data" \
 --form "ip=1.2.3.4"
Request examples
{
  "ip": "1.2.3.4"
}
Response examples (200)
{
  "text": "Ok",
  "success": true
}
Response examples (401)
{
  "code": "string",
  "message": "string"
}