Partager via


ServiceTopologyResource.GetServiceResourceAsync Méthode

Définition

Obtient le service.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • IdServices_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>> GetServiceResourceAsync (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>>
override this.GetServiceResourceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>>
Public Overridable Function GetServiceResourceAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceResource))

Paramètres

serviceName
String

Nom de la ressource de service.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

serviceName est une chaîne vide, et on s’attendait à ce qu’elle ne soit pas vide.

serviceName a la valeur null.

S’applique à