Compartir a través de


GenericResourceCollection.Get(ResourceIdentifier, CancellationToken) Método

Definición

Obtiene un recurso por identificador.

public virtual Azure.Response<Azure.ResourceManager.Resources.GenericResource> Get (Azure.Core.ResourceIdentifier resourceId, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.GenericResource>
override this.Get : Azure.Core.ResourceIdentifier * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.GenericResource>
Public Overridable Function Get (resourceId As ResourceIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Response(Of GenericResource)

Parámetros

resourceId
ResourceIdentifier

Identificador completo del recurso, incluido el nombre del recurso y el tipo de recurso. Use el formato /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

resourceId es null.

Se aplica a