API
Firewalls
Add stacklets to firewall

Add Stacklets to a Firewall

  • Name
    post
    Type
    /v1/firewalls/:uuid/stacklets
    Description

    Send a POST request to creata a firewall with the following attributes: inbound_rules and outbound_rules.

Request

Required Attributes

  • Name
    stacklet_ids
    Type
    array
    Description

    An array of the Stacklets which will be added to the firewall.

Example

curl -X POST "https://api.simplystack.com/v1/firewalls/c85b4c53-4b37-4163-b8fa-a6d88b78eda8/stacklets" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"stacklet_ids": "[1, 2]"}'

Response

JSON object with key named stacklet_ids which is an array of the following attributes for the firewall object:

Attribute

  • Name
    stacklet_ids
    Type
    array
    Description

    An array of the Stacklets which will be added to the firewall.

Example

json
{
  "stacklet_ids": [1, 2]
}