ApiCenterExtensions.GetApiCenterServiceAsync Method

Definition

Get service

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}
  • Operation Id: Services_Get
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))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

serviceName
String

Service name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or serviceName is null.

serviceName is an empty string, and was expected to be non-empty.

Applies to