Partager via


ServiceFabricManagedApplicationResource.GetServiceFabricManagedServiceAsync Méthode

Définition

Obtenez une ressource de service Service Fabric créée ou en cours de création dans la ressource d’application managée Service Fabric.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedclusters/{clusterName}/applications/{applicationName}/services/{serviceName}
  • IdServices_Get d’opération
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceResource>> GetServiceFabricManagedServiceAsync (string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetServiceFabricManagedServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceResource>>
override this.GetServiceFabricManagedServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ServiceFabricManagedClusters.ServiceFabricManagedServiceResource>>
Public Overridable Function GetServiceFabricManagedServiceAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ServiceFabricManagedServiceResource))

Paramètres

serviceName
String

Nom de la ressource de service au format {applicationName}~{serviceName}.

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 à