actions
Creates, updates, deletes, gets or lists a actions
resource.
Overview
Name | actions |
Type | Resource |
Id | digitalocean.floating_ips.actions |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
floating_ips_action_get | SELECT | action_id, floating_ip | To retrieve the status of a floating IP action, send a GET request to /v2/floating_ips/$FLOATING_IP/actions/$ACTION_ID . |
floating_ips_action_list | SELECT | floating_ip | To retrieve all actions that have been executed on a floating IP, send a GET request to /v2/floating_ips/$FLOATING_IP/actions . |
floating_ips_action_post | EXEC | floating_ip | To initiate an action on a floating IP send a POST request to /v2/floating_ips/$FLOATING_IP/actions . In the JSON body to the request, set the type attribute to on of the supported action types: | Action | Details |------------|-------- | assign | Assigns a floating IP to a Droplet | unassign | Unassign a floating IP from a Droplet |
SELECT
examples
To retrieve all actions that have been executed on a floating IP, send a GET request to /v2/floating_ips/$FLOATING_IP/actions
.
SELECT
column_anon
FROM digitalocean.floating_ips.actions
WHERE floating_ip = '{{ floating_ip }}';