UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

107 lines (106 loc) 3.79 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Retrieve protection policy with specified name within a resource group. * * Uses Azure REST API version 2024-02-01. * * Other available API versions: 2019-03-01, 2019-10-01, 2020-04-01, 2020-11-01, 2021-06-01, 2022-05-01, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native frontdoor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetPolicyResult>; export interface GetPolicyArgs { /** * The name of the Web Application Firewall Policy. */ policyName: string; /** * Name of the Resource group within the Azure subscription. */ resourceGroupName: string; } /** * Defines web application firewall policy. */ export interface GetPolicyResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Describes custom rules inside the policy. */ readonly customRules?: outputs.frontdoor.CustomRuleListResponse; /** * Gets a unique read-only string that changes whenever the resource is updated. */ readonly etag?: string; /** * Describes Frontend Endpoints associated with this Web Application Firewall policy. */ readonly frontendEndpointLinks: outputs.frontdoor.FrontendEndpointLinkResponse[]; /** * Resource ID. */ readonly id: string; /** * Resource location. */ readonly location?: string; /** * Describes managed rules inside the policy. */ readonly managedRules?: outputs.frontdoor.ManagedRuleSetListResponse; /** * Resource name. */ readonly name: string; /** * Describes settings for the policy. */ readonly policySettings?: outputs.frontdoor.PolicySettingsResponse; /** * Provisioning state of the policy. */ readonly provisioningState: string; readonly resourceState: string; /** * Describes Routing Rules associated with this Web Application Firewall policy. */ readonly routingRuleLinks: outputs.frontdoor.RoutingRuleLinkResponse[]; /** * Describes Security Policy associated with this Web Application Firewall policy. */ readonly securityPolicyLinks: outputs.frontdoor.SecurityPolicyLinkResponse[]; /** * The pricing tier of web application firewall policy. Defaults to Classic_AzureFrontDoor if not specified. */ readonly sku?: outputs.frontdoor.SkuResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * Resource type. */ readonly type: string; } /** * Retrieve protection policy with specified name within a resource group. * * Uses Azure REST API version 2024-02-01. * * Other available API versions: 2019-03-01, 2019-10-01, 2020-04-01, 2020-11-01, 2021-06-01, 2022-05-01, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native frontdoor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPolicyResult>; export interface GetPolicyOutputArgs { /** * The name of the Web Application Firewall Policy. */ policyName: pulumi.Input<string>; /** * Name of the Resource group within the Azure subscription. */ resourceGroupName: pulumi.Input<string>; }