Partager via


StorageMoverAgentCollection.Get(String, CancellationToken) Méthode

Définition

Obtient une ressource Agent.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}
  • IdAgents_Get d’opération
public virtual Azure.Response<Azure.ResourceManager.StorageMover.StorageMoverAgentResource> Get (string agentName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.StorageMover.StorageMoverAgentResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.StorageMover.StorageMoverAgentResource>
Public Overridable Function Get (agentName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of StorageMoverAgentResource)

Paramètres

agentName
String

Nom de la ressource Agent.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

agentName est une chaîne vide et devait être non vide.

agentName a la valeur null.

S’applique à