Share via


CSMProtectionPolicyOperationsExtensions.AddAsync Methode

Definitie

Nieuw beveiligingsbeleid maken.

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>
<Extension()>
Public Function AddAsync (operations As ICSMProtectionPolicyOperations, resourceGroupName As String, resourceName As String, policyName As String, cSMAddProtectionPolicyRequest As CSMAddProtectionPolicyRequest, customRequestHeaders As CustomRequestHeaders) As Task(Of AzureOperationResponse)

Parameters

operations
ICSMProtectionPolicyOperations

Verwijzing naar de Microsoft.Azure.Management.BackupServices.ICSMProtectionPolicyOperations.

resourceGroupName
String

Vereist.

resourceName
String

Vereist.

policyName
String

Vereist. De naam van het beveiligingsbeleid die moet worden bijgewerkt.

cSMAddProtectionPolicyRequest
CSMAddProtectionPolicyRequest

Vereist. De aanvraag voor het maken van beveiligingsbeleid.

customRequestHeaders
CustomRequestHeaders

Optioneel. Aanvraagheaderparameters.

Retouren

Task<Microsoft.Azure.AzureOperationResponse>

Een standaardserviceantwoord met een HTTP-statuscode en aanvraag-id.

Van toepassing op