共用方式為


Policies interface

Interface representing a Policies.

Methods

beginCreateOrUpdate(string, string, CdnWebApplicationFirewallPolicy, PoliciesCreateOrUpdateOptionalParams)

Create or update policy with specified rule set name within a resource group.

beginCreateOrUpdateAndWait(string, string, CdnWebApplicationFirewallPolicy, PoliciesCreateOrUpdateOptionalParams)

Create or update policy with specified rule set name within a resource group.

beginUpdate(string, string, CdnWebApplicationFirewallPolicyPatchParameters, PoliciesUpdateOptionalParams)

Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group

beginUpdateAndWait(string, string, CdnWebApplicationFirewallPolicyPatchParameters, PoliciesUpdateOptionalParams)

Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group

delete(string, string, PoliciesDeleteOptionalParams)

Deletes Policy

get(string, string, PoliciesGetOptionalParams)

Retrieve protection policy with specified name within a resource group.

list(string, PoliciesListOptionalParams)

Lists all of the protection policies within a resource group.

Method Details

beginCreateOrUpdate(string, string, CdnWebApplicationFirewallPolicy, PoliciesCreateOrUpdateOptionalParams)

Create or update policy with specified rule set name within a resource group.

function beginCreateOrUpdate(resourceGroupName: string, policyName: string, cdnWebApplicationFirewallPolicy: CdnWebApplicationFirewallPolicy, options?: PoliciesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CdnWebApplicationFirewallPolicy>, CdnWebApplicationFirewallPolicy>>

Parameters

resourceGroupName

string

Name of the Resource group within the Azure subscription.

policyName

string

The name of the CdnWebApplicationFirewallPolicy.

cdnWebApplicationFirewallPolicy
CdnWebApplicationFirewallPolicy

Policy to be created.

options
PoliciesCreateOrUpdateOptionalParams

The options parameters.

Returns

beginCreateOrUpdateAndWait(string, string, CdnWebApplicationFirewallPolicy, PoliciesCreateOrUpdateOptionalParams)

Create or update policy with specified rule set name within a resource group.

function beginCreateOrUpdateAndWait(resourceGroupName: string, policyName: string, cdnWebApplicationFirewallPolicy: CdnWebApplicationFirewallPolicy, options?: PoliciesCreateOrUpdateOptionalParams): Promise<CdnWebApplicationFirewallPolicy>

Parameters

resourceGroupName

string

Name of the Resource group within the Azure subscription.

policyName

string

The name of the CdnWebApplicationFirewallPolicy.

cdnWebApplicationFirewallPolicy
CdnWebApplicationFirewallPolicy

Policy to be created.

options
PoliciesCreateOrUpdateOptionalParams

The options parameters.

Returns

beginUpdate(string, string, CdnWebApplicationFirewallPolicyPatchParameters, PoliciesUpdateOptionalParams)

Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group

function beginUpdate(resourceGroupName: string, policyName: string, cdnWebApplicationFirewallPolicyPatchParameters: CdnWebApplicationFirewallPolicyPatchParameters, options?: PoliciesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CdnWebApplicationFirewallPolicy>, CdnWebApplicationFirewallPolicy>>

Parameters

resourceGroupName

string

Name of the Resource group within the Azure subscription.

policyName

string

The name of the CdnWebApplicationFirewallPolicy.

cdnWebApplicationFirewallPolicyPatchParameters
CdnWebApplicationFirewallPolicyPatchParameters

CdnWebApplicationFirewallPolicy parameters to be patched.

options
PoliciesUpdateOptionalParams

The options parameters.

Returns

beginUpdateAndWait(string, string, CdnWebApplicationFirewallPolicyPatchParameters, PoliciesUpdateOptionalParams)

Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group

function beginUpdateAndWait(resourceGroupName: string, policyName: string, cdnWebApplicationFirewallPolicyPatchParameters: CdnWebApplicationFirewallPolicyPatchParameters, options?: PoliciesUpdateOptionalParams): Promise<CdnWebApplicationFirewallPolicy>

Parameters

resourceGroupName

string

Name of the Resource group within the Azure subscription.

policyName

string

The name of the CdnWebApplicationFirewallPolicy.

cdnWebApplicationFirewallPolicyPatchParameters
CdnWebApplicationFirewallPolicyPatchParameters

CdnWebApplicationFirewallPolicy parameters to be patched.

options
PoliciesUpdateOptionalParams

The options parameters.

Returns

delete(string, string, PoliciesDeleteOptionalParams)

Deletes Policy

function delete(resourceGroupName: string, policyName: string, options?: PoliciesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

Name of the Resource group within the Azure subscription.

policyName

string

The name of the CdnWebApplicationFirewallPolicy.

options
PoliciesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, PoliciesGetOptionalParams)

Retrieve protection policy with specified name within a resource group.

function get(resourceGroupName: string, policyName: string, options?: PoliciesGetOptionalParams): Promise<CdnWebApplicationFirewallPolicy>

Parameters

resourceGroupName

string

Name of the Resource group within the Azure subscription.

policyName

string

The name of the CdnWebApplicationFirewallPolicy.

options
PoliciesGetOptionalParams

The options parameters.

Returns

list(string, PoliciesListOptionalParams)

Lists all of the protection policies within a resource group.

function list(resourceGroupName: string, options?: PoliciesListOptionalParams): PagedAsyncIterableIterator<CdnWebApplicationFirewallPolicy, CdnWebApplicationFirewallPolicy[], PageSettings>

Parameters

resourceGroupName

string

Name of the Resource group within the Azure subscription.

options
PoliciesListOptionalParams

The options parameters.

Returns