PolicyOperationsExtensions.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.