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.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應