Delen via


Resources - Get

Hiermee haalt u een resource op.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}?api-version=2021-04-01

URI-parameters

Name In Vereist Type Description
parentResourcePath
path True

string

De bovenliggende resource-id.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+$

De naam van de resourcegroep die de resource bevat die u wilt ophalen. De naam is niet hoofdlettergevoelig.

resourceName
path True

string

De naam van de resource die u wilt ophalen.

resourceProviderNamespace
path True

string

De naamruimte van de resourceprovider.

resourceType
path True

string

Het resourcetype van de resource.

subscriptionId
path True

string

De microsoft Azure-abonnements-id.

api-version
query True

string

De API-versie die moet worden gebruikt voor de bewerking.

Antwoorden

Name Type Description
200 OK

GenericResource

OK: retourneert informatie over de resource.

Other Status Codes

CloudError

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Definities

Name Description
CloudError

Een foutbericht voor een aanvraag voor resourcebeheer.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorResponse

Foutreactie

ExtendedLocation

Uitgebreide resourcelocatie.

ExtendedLocationType

Het uitgebreide locatietype.

GenericResource

Resourcegegevens.

Identity

Identiteit voor de resource.

Plan

Plan de resource.

ResourceIdentityType

Het identiteitstype.

Sku

SKU voor de resource.

UserAssignedIdentities

De lijst met gebruikersidentiteiten die zijn gekoppeld aan de resource. De sleutelverwijzingen voor de gebruikersidentiteitswoordenlijst zijn ARM-resource-id's in de vorm: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.

CloudError

Een foutbericht voor een aanvraag voor resourcebeheer.

Name Type Description
error

ErrorResponse

Foutreactie
Veelvoorkomende foutreactie voor alle Azure Resource Manager-API's om foutdetails te retourneren voor mislukte bewerkingen. (Dit volgt ook de OData-foutreactie-indeling.)

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorResponse

Foutreactie

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorResponse[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ExtendedLocation

Uitgebreide resourcelocatie.

Name Type Description
name

string

De naam van de uitgebreide locatie.

type

ExtendedLocationType

Het uitgebreide locatietype.

ExtendedLocationType

Het uitgebreide locatietype.

Waarde Description
EdgeZone

GenericResource

Resourcegegevens.

Name Type Description
extendedLocation

ExtendedLocation

Uitgebreide resourcelocatie.

id

string

Resource-ID

identity

Identity

De identiteit van de resource.

kind

string

pattern: ^[-\w\._,\(\)]+$

Het type resource.

location

string

Resourcelocatie

managedBy

string

Id van de resource die deze resource beheert.

name

string

Resourcenaam

plan

Plan

Het plan van de resource.

properties

object

De resource-eigenschappen.

sku

Sku

De SKU van de resource.

tags

object

Resourcetags

type

string

Type hulpbron

Identity

Identiteit voor de resource.

Name Type Description
principalId

string

De principal-id van de resource-id.

tenantId

string

De tenant-id van de resource.

type

ResourceIdentityType

Het identiteitstype.

userAssignedIdentities

UserAssignedIdentities

De lijst met gebruikersidentiteiten die zijn gekoppeld aan de resource. De sleutelverwijzingen voor de gebruikersidentiteitswoordenlijst zijn ARM-resource-id's in de vorm: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.

Plan

Plan de resource.

Name Type Description
name

string

De plan-id.

product

string

De aanbiedings-id.

promotionCode

string

De promotiecode.

publisher

string

De uitgever-id.

version

string

De versie van het plan.

ResourceIdentityType

Het identiteitstype.

Waarde Description
None
SystemAssigned
SystemAssigned, UserAssigned
UserAssigned

Sku

SKU voor de resource.

Name Type Description
capacity

integer (int32)

De SKU-capaciteit.

family

string

De SKU-familie.

model

string

Het SKU-model.

name

string

De SKU-naam.

size

string

De SKU-grootte.

tier

string

De SKU-laag.

UserAssignedIdentities

De lijst met gebruikersidentiteiten die zijn gekoppeld aan de resource. De sleutelverwijzingen voor de gebruikersidentiteitswoordenlijst zijn ARM-resource-id's in de vorm: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.

Name Type Description