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

116 lines (115 loc) 4.41 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 2025-06-01. * * Other available API versions: 2023-05-01, 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-09-01, 2025-01-01-preview, 2025-04-15, 2025-07-01-preview, 2025-09-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cdn [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 CdnWebApplicationFirewallPolicy. */ policyName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } /** * Defines web application firewall policy for Azure CDN. */ export interface GetPolicyResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Describes custom rules inside the policy. */ readonly customRules?: outputs.cdn.CustomRuleListResponse; /** * Describes Azure CDN endpoints associated with this Web Application Firewall policy. */ readonly endpointLinks: outputs.cdn.CdnEndpointResponse[]; /** * Gets a unique read-only string that changes whenever the resource is updated. */ readonly etag?: string; /** * Key-Value pair representing additional properties for Web Application Firewall policy. */ readonly extendedProperties?: { [key: string]: string; }; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * The geo-location where the resource lives */ readonly location: string; /** * Describes managed rules inside the policy. */ readonly managedRules?: outputs.cdn.ManagedRuleSetListResponse; /** * The name of the resource */ readonly name: string; /** * Describes policySettings for policy */ readonly policySettings?: outputs.cdn.PolicySettingsResponse; /** * Provisioning state of the WebApplicationFirewallPolicy. */ readonly provisioningState: string; /** * Describes rate limit rules inside the policy. */ readonly rateLimitRules?: outputs.cdn.RateLimitRuleListResponse; /** * Resource status of the policy. */ readonly resourceState: string; /** * The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy. */ readonly sku: outputs.cdn.SkuResponse; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.cdn.SystemDataResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; } /** * Retrieve protection policy with specified name within a resource group. * * Uses Azure REST API version 2025-06-01. * * Other available API versions: 2023-05-01, 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-09-01, 2025-01-01-preview, 2025-04-15, 2025-07-01-preview, 2025-09-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native cdn [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 CdnWebApplicationFirewallPolicy. */ policyName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }