tags_values
Creates, updates, deletes, gets or lists a tags_values
resource.
Overview
Name | tags_values |
Type | Resource |
Id | azure.resources.tags_values |
Fields
The following fields are returned by SELECT
queries:
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
create_or_update | insert | tagName , tagValue , subscriptionId | This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters. | |
delete | delete | tagName , tagValue , subscriptionId | This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
tagName | string | The name of the tag. |
tagValue | string | The value of the tag to delete. |
INSERT
examples
- create_or_update
- Manifest
This operation allows adding a value to the list of predefined values for an existing predefined tag name. A tag value can have a maximum of 256 characters.
INSERT INTO azure.resources.tags_values (
tagName,
tagValue,
subscriptionId
)
SELECT
'{{ tagName }}',
'{{ tagValue }}',
'{{ subscriptionId }}'
RETURNING
id,
count,
tagValue
;
# Description fields are for documentation purposes
- name: tags_values
props:
- name: tagName
value: string
description: Required parameter for the tags_values resource.
- name: tagValue
value: string
description: Required parameter for the tags_values resource.
- name: subscriptionId
value: string (uuid)
description: Required parameter for the tags_values resource.
DELETE
examples
- delete
This operation allows deleting a value from the list of predefined values for an existing predefined tag name. The value being deleted must not be in use as a tag value for the given tag name for any resource.
DELETE FROM azure.resources.tags_values
WHERE tagName = '{{ tagName }}' --required
AND tagValue = '{{ tagValue }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;