DataSourceOperationsExtensions.UpdateProtectionCSMAsync(IDataSourceOperations, String, String, CustomRequestHeaders, String, String, CSMUpdateProtectionRequest) Method

Definition

Enable protection for given item.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.BackupServices.OperationResponse> UpdateProtectionCSMAsync (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.CSMUpdateProtectionRequest csmparameters);
static member UpdateProtectionCSMAsync : Microsoft.Azure.Management.BackupServices.IDataSourceOperations * string * string * Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders * string * string * Microsoft.Azure.Management.BackupServices.Models.CSMUpdateProtectionRequest -> 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
CSMUpdateProtectionRequest

Required. Set protection request input.

Returns

System.Threading.Tasks.Task<OperationResponse>

The definition of a Operation Response.

Applies to