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

Definition

Create new Protection Policy.

public static Microsoft.Azure.AzureOperationResponse Add (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 Add : Microsoft.Azure.Management.BackupServices.ICSMProtectionPolicyOperations * string * string * string * Microsoft.Azure.Management.BackupServices.Models.CSMAddProtectionPolicyRequest * Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders -> 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

Microsoft.Azure.AzureOperationResponse

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

Applies to