CSMProtectionPolicyOperationsExtensions.AddAsync(ICSMProtectionPolicyOperations, String, String, String, CSMAddProtectionPolicyRequest, CustomRequestHeaders) Method

Definition

Create new Protection Policy.

public static System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> AddAsync (this Microsoft.Azure.Management.BackupServices.ICSMProtectionPolicyOperations operations, string resourceGroupName, string resourceName, string policyName, Microsoft.Azure.Management.BackupServices.Models.CSMAddProtectionPolicyRequest cSMAddProtectionPolicyRequest, Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders customRequestHeaders);
static member AddAsync : Microsoft.Azure.Management.BackupServices.ICSMProtectionPolicyOperations * string * string * string * Microsoft.Azure.Management.BackupServices.Models.CSMAddProtectionPolicyRequest * Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>

Parameters

operations
ICSMProtectionPolicyOperations

Reference to the Microsoft.Azure.Management.BackupServices.ICSMProtectionPolicyOperations.

resourceGroupName
System.String

Required.

resourceName
System.String

Required.

policyName
System.String

Required. The protection policy Name to be updated.

cSMAddProtectionPolicyRequest
CSMAddProtectionPolicyRequest

Required. The protection policy creation request.

customRequestHeaders
CustomRequestHeaders

Optional. Request header parameters.

Returns

System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to