TagsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:tags> attribute.
- Inheritance
-
builtins.objectTagsOperations
Constructor
TagsOperations(*args, **kwargs)
Methods
create_or_update |
Create a subscription resource tag. |
create_or_update_value |
Create a subscription resource tag value. |
delete |
Delete a subscription resource tag. |
delete_value |
Delete a subscription resource tag value. |
list |
Get a list of subscription resource tags. |
create_or_update
Create a subscription resource tag.
create_or_update(tag_name: str, **kwargs: Any) -> TagDetails
Parameters
Name | Description |
---|---|
tag_name
Required
|
The name of the tag. Required. |
Returns
Type | Description |
---|---|
TagDetails or the result of cls(response) |
Exceptions
Type | Description |
---|---|
create_or_update_value
Create a subscription resource tag value.
create_or_update_value(tag_name: str, tag_value: str, **kwargs: Any) -> TagValue
Parameters
Name | Description |
---|---|
tag_name
Required
|
The name of the tag. Required. |
tag_value
Required
|
The value of the tag. Required. |
Returns
Type | Description |
---|---|
TagValue or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Delete a subscription resource tag.
delete(tag_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
tag_name
Required
|
The name of the tag. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete_value
Delete a subscription resource tag value.
delete_value(tag_name: str, tag_value: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
tag_name
Required
|
The name of the tag. Required. |
tag_value
Required
|
The value of the tag. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Get a list of subscription resource tags.
list(**kwargs: Any) -> Iterable[TagDetails]
Returns
Type | Description |
---|---|
An iterator like instance of either TagDetails or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.resource.resources.v2016_02_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\resource\\resources\\v2016_02_01\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for