PolicyDefinitionsOperations.Get(String, CancellationToken) Method

Definition

This operation retrieves the policy definition in the given subscription with the given name.

public virtual Azure.Response<Azure.ResourceManager.Resources.Models.PolicyDefinition> Get (string policyDefinitionName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.Models.PolicyDefinition>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Resources.Models.PolicyDefinition>
Public Overridable Function Get (policyDefinitionName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of PolicyDefinition)

Parameters

policyDefinitionName
System.String

The name of the policy definition to get.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Response<PolicyDefinition>

Applies to