SubscriptionResource.CreateOrUpdatePredefinedTagValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- Request Path: /subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}
- Operation Id: Tags_CreateOrUpdateValue
- Default Api Version: 2022-09-01
public virtual Azure.Response<Azure.ResourceManager.Resources.Models.PredefinedTagValue> CreateOrUpdatePredefinedTagValue (string tagName, string tagValue, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdatePredefinedTagValue : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.Models.PredefinedTagValue>
override this.CreateOrUpdatePredefinedTagValue : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.Models.PredefinedTagValue>
Public Overridable Function CreateOrUpdatePredefinedTagValue (tagName As String, tagValue As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of PredefinedTagValue)
Parameters
- tagName
- String
The name of the tag.
- tagValue
- String
The value of the tag to create.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
tagName
or tagValue
is an empty string, and was expected to be non-empty.
tagName
or tagValue
is null.