TagsOperations interface
代表 TagsOperations 的介面。
方法
| begin |
此作業允許在指定的資源或訂用帳戶上新增或取代整個標記集。 指定的實體最多可以有50個標籤。 |
| begin |
此作業允許在指定的資源或訂用帳戶上新增或取代整個標記集。 指定的實體最多可以有50個標籤。 |
| begin |
刪除資源或訂用帳戶上的整個標記集。 |
| begin |
刪除資源或訂用帳戶上的整個標記集。 |
| begin |
此作業允許取代、合併或選擇性刪除指定資源或訂用帳戶上的標記。 指定的實體在作業結束時最多可以有50個標記。 [取代] 選項會以新的集合取代整個現有標記集。 [合併] 選項允許新增具有新名稱的標籤,並更新具有現有名稱的標籤值。 [刪除] 選項允許根據指定的名稱或名稱/值組選擇性地刪除標記。 |
| begin |
此作業允許取代、合併或選擇性刪除指定資源或訂用帳戶上的標記。 指定的實體在作業結束時最多可以有50個標記。 [取代] 選項會以新的集合取代整個現有標記集。 [合併] 選項允許新增具有新名稱的標籤,並更新具有現有名稱的標籤值。 [刪除] 選項允許根據指定的名稱或名稱/值組選擇性地刪除標記。 |
| create |
這項作業允許將名稱新增至指定訂用帳戶的預先定義標籤名稱清單。 標記名稱最多可以有 512 個字元,而且不區分大小寫。 標記名稱不能有下列保留給 Azure 使用的前置詞:『microsoft』、『azure』、『windows』。 |
| create |
這項作業允許將值新增至現有預先定義標籤名稱的預先定義值清單。 標記值最多可以有 256 個字元。 |
| delete(string, Tags |
這項作業允許從指定訂用帳戶的預先定義標籤名稱清單中刪除名稱。 要刪除的名稱不得做為任何資源的標記名稱使用中。 指定名稱的所有預先定義值都必須已經刪除。 |
| delete |
這項作業允許從現有預先定義標籤名稱的預先定義值清單中刪除值。 要刪除的值不得做為任何資源的指定標籤名稱的標記值。 |
| get |
取得資源或訂用帳戶上的整個標記集。 |
| list(Tags |
此作業會執行預先定義標籤、資源標記、資源群組標籤和訂用帳戶標籤的聯集,並傳回指定訂用帳戶下每個標記名稱和值的使用量摘要。 如果是大量標記,此作業可能會傳回先前快取的結果。 |
方法詳細資料
beginCreateOrUpdateAtScope(string, TagsResource, TagsCreateOrUpdateAtScopeOptionalParams)
此作業允許在指定的資源或訂用帳戶上新增或取代整個標記集。 指定的實體最多可以有50個標籤。
function beginCreateOrUpdateAtScope(scope: string, parameters: TagsResource, options?: TagsCreateOrUpdateAtScopeOptionalParams): Promise<SimplePollerLike<OperationState<TagsResource>, TagsResource>>
參數
- scope
-
string
資源範圍。
- parameters
- TagsResource
標記 API 要求和回應的包裝函式資源。
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<TagsResource>, TagsResource>>
beginCreateOrUpdateAtScopeAndWait(string, TagsResource, TagsCreateOrUpdateAtScopeOptionalParams)
此作業允許在指定的資源或訂用帳戶上新增或取代整個標記集。 指定的實體最多可以有50個標籤。
function beginCreateOrUpdateAtScopeAndWait(scope: string, parameters: TagsResource, options?: TagsCreateOrUpdateAtScopeOptionalParams): Promise<TagsResource>
參數
- scope
-
string
資源範圍。
- parameters
- TagsResource
標記 API 要求和回應的包裝函式資源。
選項參數。
傳回
Promise<TagsResource>
beginDeleteAtScope(string, TagsDeleteAtScopeOptionalParams)
刪除資源或訂用帳戶上的整個標記集。
function beginDeleteAtScope(scope: string, options?: TagsDeleteAtScopeOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>
參數
- scope
-
string
資源範圍。
- options
- TagsDeleteAtScopeOptionalParams
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>
beginDeleteAtScopeAndWait(string, TagsDeleteAtScopeOptionalParams)
刪除資源或訂用帳戶上的整個標記集。
function beginDeleteAtScopeAndWait(scope: string, options?: TagsDeleteAtScopeOptionalParams): Promise<void>
參數
- scope
-
string
資源範圍。
- options
- TagsDeleteAtScopeOptionalParams
選項參數。
傳回
Promise<void>
beginUpdateAtScope(string, TagsPatchResource, TagsUpdateAtScopeOptionalParams)
此作業允許取代、合併或選擇性刪除指定資源或訂用帳戶上的標記。 指定的實體在作業結束時最多可以有50個標記。 [取代] 選項會以新的集合取代整個現有標記集。 [合併] 選項允許新增具有新名稱的標籤,並更新具有現有名稱的標籤值。 [刪除] 選項允許根據指定的名稱或名稱/值組選擇性地刪除標記。
function beginUpdateAtScope(scope: string, parameters: TagsPatchResource, options?: TagsUpdateAtScopeOptionalParams): Promise<SimplePollerLike<OperationState<TagsResource>, TagsResource>>
參數
- scope
-
string
資源範圍。
- parameters
- TagsPatchResource
卷標修補 API 要求的包裝函式資源。
- options
- TagsUpdateAtScopeOptionalParams
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<TagsResource>, TagsResource>>
beginUpdateAtScopeAndWait(string, TagsPatchResource, TagsUpdateAtScopeOptionalParams)
此作業允許取代、合併或選擇性刪除指定資源或訂用帳戶上的標記。 指定的實體在作業結束時最多可以有50個標記。 [取代] 選項會以新的集合取代整個現有標記集。 [合併] 選項允許新增具有新名稱的標籤,並更新具有現有名稱的標籤值。 [刪除] 選項允許根據指定的名稱或名稱/值組選擇性地刪除標記。
function beginUpdateAtScopeAndWait(scope: string, parameters: TagsPatchResource, options?: TagsUpdateAtScopeOptionalParams): Promise<TagsResource>
參數
- scope
-
string
資源範圍。
- parameters
- TagsPatchResource
卷標修補 API 要求的包裝函式資源。
- options
- TagsUpdateAtScopeOptionalParams
選項參數。
傳回
Promise<TagsResource>
createOrUpdate(string, TagsCreateOrUpdateOptionalParams)
這項作業允許將名稱新增至指定訂用帳戶的預先定義標籤名稱清單。 標記名稱最多可以有 512 個字元,而且不區分大小寫。 標記名稱不能有下列保留給 Azure 使用的前置詞:『microsoft』、『azure』、『windows』。
function createOrUpdate(tagName: string, options?: TagsCreateOrUpdateOptionalParams): Promise<TagDetails>
參數
- tagName
-
string
要建立的標記名稱。
- options
- TagsCreateOrUpdateOptionalParams
選項參數。
傳回
Promise<TagDetails>
createOrUpdateValue(string, string, TagsCreateOrUpdateValueOptionalParams)
這項作業允許將值新增至現有預先定義標籤名稱的預先定義值清單。 標記值最多可以有 256 個字元。
function createOrUpdateValue(tagName: string, tagValue: string, options?: TagsCreateOrUpdateValueOptionalParams): Promise<TagValue>
參數
- tagName
-
string
標記的名稱。
- tagValue
-
string
要建立之標記的值。
選項參數。
傳回
Promise<TagValue>
delete(string, TagsDeleteOptionalParams)
這項作業允許從指定訂用帳戶的預先定義標籤名稱清單中刪除名稱。 要刪除的名稱不得做為任何資源的標記名稱使用中。 指定名稱的所有預先定義值都必須已經刪除。
function delete(tagName: string, options?: TagsDeleteOptionalParams): Promise<void>
參數
- tagName
-
string
標記的名稱。
- options
- TagsDeleteOptionalParams
選項參數。
傳回
Promise<void>
deleteValue(string, string, TagsDeleteValueOptionalParams)
這項作業允許從現有預先定義標籤名稱的預先定義值清單中刪除值。 要刪除的值不得做為任何資源的指定標籤名稱的標記值。
function deleteValue(tagName: string, tagValue: string, options?: TagsDeleteValueOptionalParams): Promise<void>
參數
- tagName
-
string
標記的名稱。
- tagValue
-
string
要刪除之標記的值。
- options
- TagsDeleteValueOptionalParams
選項參數。
傳回
Promise<void>
getAtScope(string, TagsGetAtScopeOptionalParams)
取得資源或訂用帳戶上的整個標記集。
function getAtScope(scope: string, options?: TagsGetAtScopeOptionalParams): Promise<TagsResource>
參數
- scope
-
string
資源範圍。
- options
- TagsGetAtScopeOptionalParams
選項參數。
傳回
Promise<TagsResource>
list(TagsListOptionalParams)
此作業會執行預先定義標籤、資源標記、資源群組標籤和訂用帳戶標籤的聯集,並傳回指定訂用帳戶下每個標記名稱和值的使用量摘要。 如果是大量標記,此作業可能會傳回先前快取的結果。
function list(options?: TagsListOptionalParams): PagedAsyncIterableIterator<TagDetails, TagDetails[], PageSettings>
參數
- options
- TagsListOptionalParams
選項參數。