tags
Creates, updates, deletes, gets or lists a tags
resource.
Overview
Name | tags |
Type | Resource |
Id | digitalocean.firewalls.tags |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
firewalls_add_tags | INSERT | firewall_id, data__tags | To assign a tag representing a group of Droplets to a firewall, send a POST request to /v2/firewalls/$FIREWALL_ID/tags . In the body of the request, there should be a tags attribute containing a list of tag names. 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_delete_tags | DELETE | firewall_id, data__tags | To remove a tag representing a group of Droplets from a firewall, send a DELETE request to /v2/firewalls/$FIREWALL_ID/tags . In the body of the request, there should be a tags attribute containing a list of tag names. 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. |
INSERT
example
Use the following StackQL query and manifest file to create a new tags
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO digitalocean.firewalls.tags (
data__tags,
firewall_id
)
SELECT
'{{ tags }}',
'{{ firewall_id }}'
;
- name: tags
props:
- name: firewall_id
value: string
- name: data__tags
value: string
- name: tags
value: array
DELETE
example
Deletes the specified tags
resource.
/*+ delete */
DELETE FROM digitalocean.firewalls.tags
WHERE firewall_id = '{{ firewall_id }}'
AND data__tags = '{{ data__tags }}';