Compartir a través de


StorageMoverAgentCollection.GetIfExists(String, CancellationToken) Método

Definición

Intenta obtener detalles de este recurso del servicio.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}
  • IdAgents_Get de operaciones
public virtual Azure.NullableResponse<Azure.ResourceManager.StorageMover.StorageMoverAgentResource> GetIfExists (string agentName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.StorageMover.StorageMoverAgentResource>
override this.GetIfExists : string * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.StorageMover.StorageMoverAgentResource>
Public Overridable Function GetIfExists (agentName As String, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of StorageMoverAgentResource)

Parámetros

agentName
String

Nombre del recurso del agente.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

agentName es una cadena vacía y se esperaba que no estuviera vacía.

agentName es null.

Se aplica a