Firewalls
Firewalls
Firewalls
is the entity that handles firewall operations to a cloud server. Currently only assigning and unassigning a firewall are supported by our API. Creation of firewall and editing firewall rules should be done in our LayerPanel.
Endpoints Summary
ENDPOINT (CLICK TO READ FULL SPECIFICATION) | METHOD | DESCRIPTION |
---|---|---|
POST | assign firewall(s) to an object (cloud server). | |
POST | unassign firewall(s) from an object (cloud server). | |
GET | get firewall list from an object (cloud server). |
Assign Firewalls to a Cloud Server
Request: POST /firewalls/assign/object/$vm_object_id
where $vm_object_id
is the object id of the cloud server.
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| ids of firewall to be assigned. ID of firewall can be obtained from Firewall Details page in LayerPanel. |
Sample Payload:
Unassign Firewalls from a Cloud Server
Request: POST /firewalls/unassign/object/$vm_object_id
where $vm_object_id
is the object id of the cloud server.
NAME | TYPE | DESCRIPTION |
---|---|---|
|
| ids of firewall to be assigned. ID of firewall can be obtained from Firewall Details page in LayerPanel. |
Sample Payload:
Get Firewalls List of a Cloud Server
Request: GET /firewalls/object/$vm_object_id
where $vm_object_id
is the object id of the cloud server.
Last updated