Share via


ApiCenterExtensions.GetApiCenterService Method

Definition

Get service

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiCenter/services/{serviceName}
  • Operation Id: Services_Get
public static Azure.Response<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource> GetApiCenterService (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serviceName, System.Threading.CancellationToken cancellationToken = default);
static member GetApiCenterService : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiCenter.ApiCenterServiceResource>
<Extension()>
Public Function GetApiCenterService (resourceGroupResource As ResourceGroupResource, serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As 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