你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServiceClientAdapter.GetProtectionPolicy Method

Definition

Overloads

GetProtectionPolicy(String)
GetProtectionPolicy(String, String, String)

Gets a protection policy given the name

GetProtectionPolicy(String)

public Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource GetProtectionPolicy (string policyName);
member this.GetProtectionPolicy : string -> Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource
Public Function GetProtectionPolicy (policyName As String) As ProtectionPolicyResource

Parameters

policyName
String

Returns

Applies to

GetProtectionPolicy(String, String, String)

Gets a protection policy given the name

public Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource GetProtectionPolicy (string policyName, string vaultName = default, string resourceGroupName = default);
member this.GetProtectionPolicy : string * string * string -> Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource
Public Function GetProtectionPolicy (policyName As String, Optional vaultName As String = Nothing, Optional resourceGroupName As String = Nothing) As ProtectionPolicyResource

Parameters

policyName
String

Name of the policy

vaultName
String
resourceGroupName
String

Returns

Policy response returned by the service

Applies to