actions
Creates, updates, deletes, gets or lists a actions
resource.
Overview
Name | actions |
Type | Resource |
Id | digitalocean.reserved_ips.actions |
Fields
Name | Datatype | Description |
---|---|---|
column_anon | `` |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
reserved_ips_actions_get | SELECT | action_id, reserved_ip | To retrieve the status of a reserved IP action, send a GET request to /v2/reserved_ips/$RESERVED_IP/actions/$ACTION_ID . |
reserved_ips_actions_list | SELECT | reserved_ip | To 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_post | EXEC | reserved_ip | To 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 }}';