Udostępnij za pośrednictwem


PolicyOperationsExtensions.GetAsync Method

Definition

Get the Global policy definition of the Api Management service.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.PolicyContract> GetAsync (this Microsoft.Azure.Management.ApiManagement.IPolicyOperations operations, string resourceGroupName, string serviceName, string format = default, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.ApiManagement.IPolicyOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.PolicyContract>
<Extension()>
Public Function GetAsync (operations As IPolicyOperations, resourceGroupName As String, serviceName As String, Optional format As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PolicyContract)

Parameters

operations
IPolicyOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

format
String

Policy Export Format. Possible values include: 'xml', 'rawxml'

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to