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

De naam van de resourcegroep die de op te halen resource bevat. De naam is niet hoofdlettergevoelig.

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

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
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Uw gebruikersaccount imiteren

Definities

Name Description
CloudError

Een foutreactie voor een resourcebeheeraanvraag.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorResponse

Foutreactie

ExtendedLocation

Uitgebreide resourcelocatie.

ExtendedLocationType

Het uitgebreide locatietype.

GenericResource

Resourcegegevens.

Identity

Identiteit voor de resource.

Plan

Plan voor de resource.

ResourceIdentityType

Het identiteitstype.

Sku

SKU voor de resource.

UserAssignedIdentities

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

CloudError

Een foutreactie voor een resourcebeheeraanvraag.

Name Type Description
error

ErrorResponse

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

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorResponse

Foutreactie

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout 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.

Name Type Description
EdgeZone

string

GenericResource

Resourcegegevens.

Name Type Description
extendedLocation

ExtendedLocation

Uitgebreide resourcelocatie.

id

string

Resource-id

identity

Identity

De identiteit van de resource.

kind

string

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

Resourcetype

Identity

Identiteit voor de resource.

Name Type Description
principalId

string

De principal-id van 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 naar de gebruikersidentiteitswoordenlijst zijn ARM-resource-id's in de vorm: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.

Plan

Plan voor 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.

Name Type Description
None

string

SystemAssigned

string

SystemAssigned, UserAssigned

string

UserAssigned

string

Sku

SKU voor de resource.

Name Type Description
capacity

integer

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 naar de gebruikersidentiteitswoordenlijst zijn ARM-resource-id's in de vorm: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.

Name Type Description