Skip to main content

actions

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

Overview

Nameactions
TypeResource
Iddigitalocean.reserved_ips.actions

Fields

NameDatatypeDescription
column_anon``

Methods

NameAccessible byRequired ParamsDescription
reserved_ips_actions_getSELECTaction_id, reserved_ipTo retrieve the status of a reserved IP action, send a GET request to /v2/reserved_ips/$RESERVED_IP/actions/$ACTION_ID.
reserved_ips_actions_listSELECTreserved_ipTo retrieve all actions that have been executed on a reserved IP, send a GET request to /v2/reserved_ips/$RESERVED_IP/actions.
reserved_ips_actions_postEXECreserved_ipTo initiate an action on a reserved IP send a POST request to /v2/reserved_ips/$RESERVED_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 reserved IP to a Droplet | unassign | Unassign a reserved IP from a Droplet

SELECT examples

To retrieve all actions that have been executed on a reserved IP, send a GET request to /v2/reserved_ips/$RESERVED_IP/actions.

SELECT
column_anon
FROM digitalocean.reserved_ips.actions
WHERE reserved_ip = '{{ reserved_ip }}';