Policies interface
Interface representing a Policies.
Methods
begin |
Create or update policy with specified rule set name within a resource group. |
begin |
Create or update policy with specified rule set name within a resource group. |
begin |
Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group |
begin |
Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group |
delete(string, string, Policies |
Deletes Policy |
get(string, string, Policies |
Retrieve protection policy with specified name within a resource group. |
list(string, Policies |
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.
The options parameters.
Returns
Promise<@azure/core-lro.SimplePollerLike<OperationState<CdnWebApplicationFirewallPolicy>, CdnWebApplicationFirewallPolicy>>
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.
The options parameters.
Returns
Promise<CdnWebApplicationFirewallPolicy>
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
Promise<@azure/core-lro.SimplePollerLike<OperationState<CdnWebApplicationFirewallPolicy>, CdnWebApplicationFirewallPolicy>>
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
Promise<CdnWebApplicationFirewallPolicy>
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
Promise<CdnWebApplicationFirewallPolicy>
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.