Share via


ManagedInstanceLongTermRetentionPolicyCollection.GetIfExists Method

Definition

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}
  • Operation Id: ManagedInstanceLongTermRetentionPolicies_Get
  • Default Api Version: 2020-11-01-preview
  • Resource: ManagedInstanceLongTermRetentionPolicyResource
public virtual Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource> GetIfExists (Azure.ResourceManager.Sql.Models.ManagedInstanceLongTermRetentionPolicyName policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : Azure.ResourceManager.Sql.Models.ManagedInstanceLongTermRetentionPolicyName * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource>
override this.GetIfExists : Azure.ResourceManager.Sql.Models.ManagedInstanceLongTermRetentionPolicyName * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedInstanceLongTermRetentionPolicyResource>
Public Overridable Function GetIfExists (policyName As ManagedInstanceLongTermRetentionPolicyName, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ManagedInstanceLongTermRetentionPolicyResource)

Parameters

policyName
ManagedInstanceLongTermRetentionPolicyName

The policy name. Should always be Default.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to