Skip to main content

droplets

Creates, updates, deletes, gets or lists a droplets resource.

Overview

Namedroplets
TypeResource
Iddigitalocean.firewalls.droplets

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
firewalls_delete_dropletsDELETEfirewall_id, data__droplet_idsTo remove a Droplet from a firewall, send a DELETE request to /v2/firewalls/$FIREWALL_ID/droplets. In the body of the request, there should be a droplet_ids attribute containing a list of Droplet IDs. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.
firewalls_assign_dropletsEXECfirewall_id, data__droplet_idsTo assign a Droplet to a firewall, send a POST request to /v2/firewalls/$FIREWALL_ID/droplets. In the body of the request, there should be a droplet_ids attribute containing a list of Droplet IDs. No response body will be sent back, but the response code will indicate success. Specifically, the response code will be a 204, which means that the action was successful with no returned body data.

DELETE example

Deletes the specified droplets resource.

/*+ delete */
DELETE FROM digitalocean.firewalls.droplets
WHERE firewall_id = '{{ firewall_id }}'
AND data__droplet_ids = '{{ data__droplet_ids }}';