Share via


Tags - List

取得訂用帳戶下標記使用量的摘要。
此作業會執行預先定義標籤、資源標籤、資源群組標籤和訂用帳戶標籤的聯集,並傳回指定訂用帳戶下每個標記名稱和值的使用量摘要。 如果是大量標記,此作業可能會傳回先前快取的結果。

GET https://management.azure.com/subscriptions/{subscriptionId}/tagNames?api-version=2021-04-01

URI 參數

名稱 位於 必要 類型 Description
subscriptionId
path True

string

Microsoft Azure 訂用帳戶標識碼。

api-version
query True

string

用於此作業的 API 版本。

回應

名稱 類型 Description
200 OK

TagsListResult

確定 - 傳回標記名稱和值的陣列。

Other Status Codes

CloudError

描述作業失敗原因的錯誤回應。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

名稱 Description
user_impersonation 模擬您的用戶帳戶

定義

名稱 Description
CloudError

資源管理要求的錯誤回應。

ErrorAdditionalInfo

資源管理錯誤其他資訊。

ErrorResponse

錯誤回應

TagCount

標記計數。

TagDetails

標記詳細資料。

TagsListResult

訂用帳戶標記的清單。

TagValue

標記資訊。

CloudError

資源管理要求的錯誤回應。

名稱 類型 Description
error

ErrorResponse

錯誤回應
所有 Azure Resource Manager API 的常見錯誤回應,以傳回失敗作業的錯誤詳細數據。 (這也會遵循 OData 錯誤回應格式。)

ErrorAdditionalInfo

資源管理錯誤其他資訊。

名稱 類型 Description
info

object

其他資訊。

type

string

其他信息類型。

ErrorResponse

錯誤回應

名稱 類型 Description
additionalInfo

ErrorAdditionalInfo[]

錯誤其他資訊。

code

string

錯誤碼。

details

ErrorResponse[]

錯誤詳細資料。

message

string

錯誤訊息。

target

string

錯誤目標。

TagCount

標記計數。

名稱 類型 Description
type

string

計數的類型。

value

integer

計數的值。

TagDetails

標記詳細資料。

名稱 類型 Description
count

TagCount

使用資源標籤的資源總數。 一開始建立標記且沒有相關聯的資源時,此值為 0。

id

string

標記名稱識別碼。

tagName

string

標記名稱。

values

TagValue[]

標記值的清單。

TagsListResult

訂用帳戶標記的清單。

名稱 類型 Description
nextLink

string

要用於取得下一組結果的URL。

value

TagDetails[]

標記的陣列。

TagValue

標記資訊。

名稱 類型 Description
count

TagCount

標籤值計數。

id

string

標籤值識別碼。

tagValue

string

標籤值。