Partager via


ApiCenterExtensions.GetApiCenterServiceAsync Méthode

Définition

Obtenir le service

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}
  • IdServices_Get d’opération
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource>> GetApiCenterServiceAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serviceName, System.Threading.CancellationToken cancellationToken = default);
static member GetApiCenterServiceAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource>>
<Extension()>
Public Function GetApiCenterServiceAsync (resourceGroupResource As ResourceGroupResource, serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApiCenterServiceResource))

Paramètres

resourceGroupResource
ResourceGroupResource

Instance ResourceGroupResource sur laquelle la méthode s’exécute.

serviceName
String

Nom du 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 à