PolicyCmdletHelpers.GetProtectionPolicyByName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetProtectionPolicyByName(String, ServiceClientAdapter) | |
GetProtectionPolicyByName(String, ServiceClientAdapter, String, String) |
Fetches policies by name |
GetProtectionPolicyByName(String, ServiceClientAdapter)
public static Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource GetProtectionPolicyByName (string policyName, Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter serviceClientAdapter);
static member GetProtectionPolicyByName : string * Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter -> Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource
Public Shared Function GetProtectionPolicyByName (policyName As String, serviceClientAdapter As ServiceClientAdapter) As ProtectionPolicyResource
Parameters
- policyName
- String
- serviceClientAdapter
- ServiceClientAdapter
Returns
Applies to
GetProtectionPolicyByName(String, ServiceClientAdapter, String, String)
Fetches policies by name
public static Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource GetProtectionPolicyByName (string policyName, Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter serviceClientAdapter, string vaultName = default, string resourceGroupName = default);
static member GetProtectionPolicyByName : string * Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter * string * string -> Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectionPolicyResource
Public Shared Function GetProtectionPolicyByName (policyName As String, serviceClientAdapter As ServiceClientAdapter, Optional vaultName As String = Nothing, Optional resourceGroupName As String = Nothing) As ProtectionPolicyResource
Parameters
- policyName
- String
Name of the policy to be fetched
- serviceClientAdapter
- ServiceClientAdapter
Service client adapter with which to make calls
- vaultName
- String
- resourceGroupName
- String