Partager via


ServiceTopologyResource.GetServiceResource(String, CancellationToken) Méthode

Définition

Obtient le service.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
  • IdServices_Get d’opération
public virtual Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource> GetServiceResource (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceResource : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>
override this.GetServiceResource : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DeploymentManager.ServiceResource>
Public Overridable Function GetServiceResource (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As 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 devait être non vide.

serviceName a la valeur null.

S’applique à