API
Floating IPs
Create floating IP

Create a New Floating IP Assigned to a Stacklet

When creating Floating IP, it must be either assigned to a specific Stacklet or reserved to a region within the user infrastructure.

  • Name
    post
    Type
    /v1/floating_ips
    Description

    Send POST request to create a new Floating IP.

Request

Required Attributes

  • Name
    stacklet_id
    Type
    integer
    Description

    The Stacklet id which the Floating IP will be assigned to.

Example

curl -X POST "https://api.simplystack.com/v1/floating_ips" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"stacklet_id": 1}'

Response

JSON object with key named floating_ip which is an array of the following attributes for the Floating IP object:

Attributes

See floating ip model.

Example

json
{
  "floating_ip": {
    "address": "192.168.1.241",
    "region": {
      "available": true,
      "features": ["floating_ips"],
      "name": "Frankfurt",
      "slug": "fra"
    },
    "task": {
      "id": 1,
      "name": "assign",
      "description": {
        "completed": "Floating IP was assigned to a Stacklet.",
        "progress": "Assigning Floating IP to a Stacklet."
      }
    },
    "stacklet": null
  }
}