Resources - Get By Id

Hämtar en resurs efter ID.

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

URI-parametrar

Name I Obligatorisk Typ Description
resourceId
path True

string

Det fullständigt kvalificerade ID:t för resursen, inklusive resursnamnet och resurstypen. Använd formatet /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}

api-version
query True

string

DEN API-version som ska användas för åtgärden.

Svar

Name Typ Description
200 OK

GenericResource

OK – Returnerar information om resursen.

Other Status Codes

CloudError

Felsvar som beskriver varför åtgärden misslyckades.

Säkerhet

azure_auth

Azure Active Directory OAuth2 Flow

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

Scopes

Name Description
user_impersonation personifiera ditt användarkonto

Definitioner

Name Description
CloudError

Ett felsvar för en resurshanteringsbegäran.

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

ErrorResponse

Felsvar

ExtendedLocation

Utökad plats för resurs.

ExtendedLocationType

Den utökade platstypen.

GenericResource

Resursinformation.

Identity

Identitet för resursen.

Plan

Planera för resursen.

ResourceIdentityType

Identitetstypen.

Sku

SKU för resursen.

UserAssignedIdentities

Listan över användaridentiteter som är associerade med resursen. Nyckelreferenserna för användaridentitetsordlistan är ARM-resurs-ID:er i formatet: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

CloudError

Ett felsvar för en resurshanteringsbegäran.

Name Typ Description
error

ErrorResponse

Felsvar
Vanligt felsvar för alla Azure Resource Manager-API:er för att returnera felinformation för misslyckade åtgärder. (Detta följer även OData-felsvarsformatet.)

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

Name Typ Description
info

object

Den ytterligare informationen.

type

string

Ytterligare informationstyp.

ErrorResponse

Felsvar

Name Typ Description
additionalInfo

ErrorAdditionalInfo[]

Ytterligare information om felet.

code

string

Felkoden.

details

ErrorResponse[]

Felinformationen.

message

string

Felmeddelandet.

target

string

Felmålet.

ExtendedLocation

Utökad plats för resurs.

Name Typ Description
name

string

Namnet på den utökade platsen.

type

ExtendedLocationType

Den utökade platstypen.

ExtendedLocationType

Den utökade platstypen.

Name Typ Description
EdgeZone

string

GenericResource

Resursinformation.

Name Typ Description
extendedLocation

ExtendedLocation

Utökad plats för resurs.

id

string

Resurs-ID

identity

Identity

Resursens identitet.

kind

string

Typen av resurs.

location

string

Resursplats

managedBy

string

ID för resursen som hanterar den här resursen.

name

string

Resursnamn

plan

Plan

Planen för resursen.

properties

object

Resursegenskaperna.

sku

Sku

Resursens SKU.

tags

object

Resurstaggar

type

string

Resurstyp

Identity

Identitet för resursen.

Name Typ Description
principalId

string

Huvud-ID för resursidentitet.

tenantId

string

Klientorganisations-ID för resursen.

type

ResourceIdentityType

Identitetstypen.

userAssignedIdentities

UserAssignedIdentities

Listan över användaridentiteter som är associerade med resursen. Nyckelreferenserna för användaridentitetsordlistan är ARM-resurs-ID:er i formatet: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Plan

Planera för resursen.

Name Typ Description
name

string

Plan-ID:t.

product

string

Erbjudande-ID.

promotionCode

string

Upphöjningskoden.

publisher

string

Utgivarens ID.

version

string

Planens version.

ResourceIdentityType

Identitetstypen.

Name Typ Description
None

string

SystemAssigned

string

SystemAssigned, UserAssigned

string

UserAssigned

string

Sku

SKU för resursen.

Name Typ Description
capacity

integer

SKU-kapaciteten.

family

string

SKU-familjen.

model

string

SKU-modellen.

name

string

SKU-namnet.

size

string

SKU-storleken.

tier

string

SKU-nivån.

UserAssignedIdentities

Listan över användaridentiteter som är associerade med resursen. Nyckelreferenserna för användaridentitetsordlistan är ARM-resurs-ID:er i formatet: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

Name Typ Description