DataSourceOperationsExtensions.EnableProtectionCSMAsync(IDataSourceOperations, String, String, CustomRequestHeaders, String, String, CSMSetProtectionRequest) Method

Definition

Enable protection for given item.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.BackupServices.OperationResponse> EnableProtectionCSMAsync (this Microsoft.Azure.Management.BackupServices.IDataSourceOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders customRequestHeaders, string containerName, string itemName, Microsoft.Azure.Management.BackupServices.Models.CSMSetProtectionRequest csmparameters);
static member EnableProtectionCSMAsync : Microsoft.Azure.Management.BackupServices.IDataSourceOperations * string * string * Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders * string * string * Microsoft.Azure.Management.BackupServices.Models.CSMSetProtectionRequest -> System.Threading.Tasks.Task<Microsoft.Azure.Management.BackupServices.OperationResponse>

Parameters

operations
IDataSourceOperations

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

resourceGroupName
System.String

Required.

resourceName
System.String

Required.

customRequestHeaders
CustomRequestHeaders

Optional. Request header parameters.

containerName
System.String

Required. containerName.

itemName
System.String

Required. itemName.

csmparameters
CSMSetProtectionRequest

Required. Set protection request input.

Returns

System.Threading.Tasks.Task<OperationResponse>

The definition of a Operation Response.

Applies to