Assign a Floating IP to a Stacklet
- Name
- post
- Type
- /v1/floating_ips/:address
- Description
- Send POST request to assign floating ip to stacklet. 
 
Request
Required Attributes
- Name
- action
- Type
- string
- Description
- Action needed for this tasks is - assign.
 
- 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/192.168.1.241" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"action": "assign", "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
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": {...},
  }
}