Share via


MockableAppPlatformResourceGroupResource.GetAppPlatformServiceAsync Method

Definition

Get a Service and its properties.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}
  • Operation Id: Services_Get
  • Default Api Version: 2022-12-01
  • Resource: AppPlatformServiceResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.AppPlatformServiceResource>> GetAppPlatformServiceAsync(string serviceName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAppPlatformServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.AppPlatformServiceResource>>
override this.GetAppPlatformServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.AppPlatform.AppPlatformServiceResource>>
Public Overridable Function GetAppPlatformServiceAsync (serviceName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AppPlatformServiceResource))

Parameters

serviceName
System.String

The name of the Service resource.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

System.Threading.Tasks.Task<Azure.Response<AppPlatformServiceResource>>

Exceptions

System.ArgumentNullException

serviceName is null.

System.ArgumentException

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

Applies to