Skip to main content

actions

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

Overview

Nameactions
TypeResource
Iddigitalocean.floating_ips.actions

Fields

NameDatatypeDescription
column_anon``

Methods

NameAccessible byRequired ParamsDescription
floating_ips_action_getSELECTaction_id, floating_ipTo retrieve the status of a floating IP action, send a GET request to /v2/floating_ips/$FLOATING_IP/actions/$ACTION_ID.
floating_ips_action_listSELECTfloating_ipTo 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_postEXECfloating_ipTo 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 }}';