Setting Up Firewalls Around Instances

To set up a firewall around a group of Compute Classic instances, you must create a security list and add your instances to the security list.

Task REST API Call
1. Create a security list. POST /seclist/
2. Find out the vcable ID of each instance that you want to add to the security list. GET /instance/{name}

Note the value of the vcable_id parameter in the response.

3. Associate each vcable ID (that you identified in the previous step) with the security list, by creating security associations. POST /secassociation/

See Also: