Udostępnij za pośrednictwem


IDataSourceOperations.EnableProtectionCSMAsync Metoda

Definicja

Włącz ochronę danego elementu.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.BackupServices.OperationResponse> EnableProtectionCSMAsync (string resourceGroupName, string resourceName, Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders customRequestHeaders, string containerName, string itemName, Microsoft.Azure.Management.BackupServices.Models.CSMSetProtectionRequest csmparameters, System.Threading.CancellationToken cancellationToken);
abstract member EnableProtectionCSMAsync : string * string * Microsoft.Azure.Management.BackupServices.Models.CustomRequestHeaders * string * string * Microsoft.Azure.Management.BackupServices.Models.CSMSetProtectionRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.BackupServices.OperationResponse>
Public Function EnableProtectionCSMAsync (resourceGroupName As String, resourceName As String, customRequestHeaders As CustomRequestHeaders, containerName As String, itemName As String, csmparameters As CSMSetProtectionRequest, cancellationToken As CancellationToken) As Task(Of OperationResponse)

Parametry

resourceGroupName
String
resourceName
String
customRequestHeaders
CustomRequestHeaders

Parametry nagłówka żądania.

containerName
String

containerName.

itemName
String

Itemname.

csmparameters
CSMSetProtectionRequest

Ustaw dane wejściowe żądania ochrony.

cancellationToken
CancellationToken

Token anulowania.

Zwraca

Definicja odpowiedzi operacji.

Dotyczy