Freigeben über


ManagedInstanceLongTermRetentionPolicyCollection.GetIfExists Methode

Definition

Versucht, Details für diese Ressource aus dem Dienst abzurufen.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}
  • Vorgang IdManagedInstanceLongTermRetentionPolicies_Get
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)

Parameter

policyName
ManagedInstanceLongTermRetentionPolicyName

Der Richtlinienname. Sollte immer Standard sein.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Gilt für: