Skip to main content

tags_at_scopes

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

Overview

Nametags_at_scopes
TypeResource
Idazure.resources.tags_at_scopes

Fields

The following fields are returned by SELECT queries:

Returns tags from the specified object.

NameDatatypeDescription
idstringThe ID of the tags wrapper resource.
namestringThe name of the tags wrapper resource.
propertiesobjectThe set of tags.
typestringThe type of the tags wrapper resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope
create_or_updateinsertscope, data__propertiesThis operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.
updateupdatescopeThis operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.
deletedeletescope

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.

NameDatatypeDescription
scopestringThe scope at which the operation is performed.

SELECT examples

Returns tags from the specified object.

SELECT
id,
name,
properties,
type
FROM azure.resources.tags_at_scopes
WHERE scope = '{{ scope }}' -- required
;

INSERT examples

This operation allows adding or replacing the entire set of tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags.

INSERT INTO azure.resources.tags_at_scopes (
data__properties,
scope
)
SELECT
'{{ properties }}' /* required */,
'{{ scope }}'
RETURNING
id,
name,
properties,
type
;

UPDATE examples

This operation allows replacing, merging or selectively deleting tags on the specified resource or subscription. The specified entity can have a maximum of 50 tags at the end of the operation. The 'replace' option replaces the entire set of existing tags with a new set. The 'merge' option allows adding tags with new names and updating the values of tags with existing names. The 'delete' option allows selectively deleting tags based on given names or name/value pairs.

UPDATE azure.resources.tags_at_scopes
SET
data__operation = '{{ operation }}',
data__properties = '{{ properties }}'
WHERE
scope = '{{ scope }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

No description available.

DELETE FROM azure.resources.tags_at_scopes
WHERE scope = '{{ scope }}' --required
;