Resources - Get By Id

依標識碼取得資源。

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

URI 參數

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

string

資源的完整標識碼,包括資源名稱和資源類型。 使用格式 /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}

api-version
query True

string

要用於作業的 API 版本。

回應

名稱 類型 Description
200 OK

GenericResource

確定 - 傳回資源的相關信息。

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

錯誤回應

ExtendedLocation

資源擴充位置。

ExtendedLocationType

擴充位置類型。

GenericResource

資源資訊。

Identity

資源的身分識別。

Plan

規劃資源。

ResourceIdentityType

識別類型。

Sku

資源的 SKU。

UserAssignedIdentities

與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。

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

錯誤目標。

ExtendedLocation

資源擴充位置。

名稱 類型 Description
name

string

擴充位置名稱。

type

ExtendedLocationType

擴充位置類型。

ExtendedLocationType

擴充位置類型。

名稱 類型 Description
EdgeZone

string

GenericResource

資源資訊。

名稱 類型 Description
extendedLocation

ExtendedLocation

資源擴充位置。

id

string

資源識別碼

identity

Identity

資源的身分識別。

kind

string

資源的種類。

location

string

資源位置

managedBy

string

管理此資源之資源的識別碼。

name

string

資源名稱

plan

Plan

資源的計劃。

properties

object

資源屬性。

sku

Sku

資源的 SKU。

tags

object

資源標籤

type

string

資源類型

Identity

資源的身分識別。

名稱 類型 Description
principalId

string

資源識別的主要標識碼。

tenantId

string

資源的租用戶標識碼。

type

ResourceIdentityType

識別類型。

userAssignedIdentities

UserAssignedIdentities

與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。

Plan

規劃資源。

名稱 類型 Description
name

string

方案標識碼。

product

string

供應項目標識碼。

promotionCode

string

促銷碼。

publisher

string

發行者標識碼。

version

string

方案的版本。

ResourceIdentityType

識別類型。

名稱 類型 Description
None

string

SystemAssigned

string

SystemAssigned, UserAssigned

string

UserAssigned

string

Sku

資源的 SKU。

名稱 類型 Description
capacity

integer

SKU 容量。

family

string

SKU 系列。

model

string

SKU 模型。

name

string

SKU 名稱。

size

string

SKU 大小。

tier

string

SKU 層。

UserAssignedIdentities

與資源相關聯的使用者身分識別清單。 使用者身分識別字典索引鍵參考的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'。

名稱 類型 Description