Freigeben über


ManagedBackupShortTermRetentionPolicyCollection.GetIfExists Methode

Definition

Versucht, Details für diese Ressource vom Dienst abzurufen.

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}
  • Vorgangs-IdManagedBackupShortTermRetentionPolicies_Get
public virtual Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedBackupShortTermRetentionPolicyResource> GetIfExists (Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName policyName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedBackupShortTermRetentionPolicyResource>
override this.GetIfExists : Azure.ResourceManager.Sql.Models.ManagedShortTermRetentionPolicyName * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.Sql.ManagedBackupShortTermRetentionPolicyResource>
Public Overridable Function GetIfExists (policyName As ManagedShortTermRetentionPolicyName, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of ManagedBackupShortTermRetentionPolicyResource)

Parameter

policyName
ManagedShortTermRetentionPolicyName

Der Richtlinienname.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Gilt für: