CustomPages
Provides a resource which manages Cloudflare custom error pages.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var basicChallenge = new Cloudflare.CustomPages("basicChallenge", new Cloudflare.CustomPagesArgs
{
State = "customized",
Type = "basic_challenge",
Url = "https://example.com/challenge.html",
ZoneId = "d41d8cd98f00b204e9800998ecf8427e",
});
}
}
Coming soon!
import pulumi
import pulumi_cloudflare as cloudflare
basic_challenge = cloudflare.CustomPages("basicChallenge",
state="customized",
type="basic_challenge",
url="https://example.com/challenge.html",
zone_id="d41d8cd98f00b204e9800998ecf8427e")import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const basicChallenge = new cloudflare.CustomPages("basic_challenge", {
state: "customized",
type: "basic_challenge",
url: "https://example.com/challenge.html",
zoneId: "d41d8cd98f00b204e9800998ecf8427e",
});Create a CustomPages Resource
new CustomPages(name: string, args: CustomPagesArgs, opts?: CustomResourceOptions);def CustomPages(resource_name, opts=None, account_id=None, state=None, type=None, url=None, zone_id=None, __props__=None);func NewCustomPages(ctx *Context, name string, args CustomPagesArgs, opts ...ResourceOption) (*CustomPages, error)public CustomPages(string name, CustomPagesArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args CustomPagesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CustomPagesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomPagesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
CustomPages Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The CustomPages resource accepts the following input properties:
- Type string
The type of custom page you wish to update. Must be one of
basic_challenge,waf_challenge,waf_block,ratelimit_block,country_challenge,ip_block,under_attack,500_errors,1000_errors,always_online.- Url string
URL of where the custom page source is located.
- Account
Id string The account ID where the custom pages should be updated. Either
account_idorzone_idmust be provided. Ifaccount_idis present, it will override the zone setting.- State string
- Zone
Id string The zone ID where the custom pages should be updated. Either
zone_idoraccount_idmust be provided.
- Type string
The type of custom page you wish to update. Must be one of
basic_challenge,waf_challenge,waf_block,ratelimit_block,country_challenge,ip_block,under_attack,500_errors,1000_errors,always_online.- Url string
URL of where the custom page source is located.
- Account
Id string The account ID where the custom pages should be updated. Either
account_idorzone_idmust be provided. Ifaccount_idis present, it will override the zone setting.- State string
- Zone
Id string The zone ID where the custom pages should be updated. Either
zone_idoraccount_idmust be provided.
- type string
The type of custom page you wish to update. Must be one of
basic_challenge,waf_challenge,waf_block,ratelimit_block,country_challenge,ip_block,under_attack,500_errors,1000_errors,always_online.- url string
URL of where the custom page source is located.
- account
Id string The account ID where the custom pages should be updated. Either
account_idorzone_idmust be provided. Ifaccount_idis present, it will override the zone setting.- state string
- zone
Id string The zone ID where the custom pages should be updated. Either
zone_idoraccount_idmust be provided.
- type str
The type of custom page you wish to update. Must be one of
basic_challenge,waf_challenge,waf_block,ratelimit_block,country_challenge,ip_block,under_attack,500_errors,1000_errors,always_online.- url str
URL of where the custom page source is located.
- account_
id str The account ID where the custom pages should be updated. Either
account_idorzone_idmust be provided. Ifaccount_idis present, it will override the zone setting.- state str
- zone_
id str The zone ID where the custom pages should be updated. Either
zone_idoraccount_idmust be provided.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomPages resource produces the following output properties:
Look up an Existing CustomPages Resource
Get an existing CustomPages resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CustomPagesState, opts?: CustomResourceOptions): CustomPagesstatic get(resource_name, id, opts=None, account_id=None, state=None, type=None, url=None, zone_id=None, __props__=None);func GetCustomPages(ctx *Context, name string, id IDInput, state *CustomPagesState, opts ...ResourceOption) (*CustomPages, error)public static CustomPages Get(string name, Input<string> id, CustomPagesState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Account
Id string The account ID where the custom pages should be updated. Either
account_idorzone_idmust be provided. Ifaccount_idis present, it will override the zone setting.- State string
- Type string
The type of custom page you wish to update. Must be one of
basic_challenge,waf_challenge,waf_block,ratelimit_block,country_challenge,ip_block,under_attack,500_errors,1000_errors,always_online.- Url string
URL of where the custom page source is located.
- Zone
Id string The zone ID where the custom pages should be updated. Either
zone_idoraccount_idmust be provided.
- Account
Id string The account ID where the custom pages should be updated. Either
account_idorzone_idmust be provided. Ifaccount_idis present, it will override the zone setting.- State string
- Type string
The type of custom page you wish to update. Must be one of
basic_challenge,waf_challenge,waf_block,ratelimit_block,country_challenge,ip_block,under_attack,500_errors,1000_errors,always_online.- Url string
URL of where the custom page source is located.
- Zone
Id string The zone ID where the custom pages should be updated. Either
zone_idoraccount_idmust be provided.
- account
Id string The account ID where the custom pages should be updated. Either
account_idorzone_idmust be provided. Ifaccount_idis present, it will override the zone setting.- state string
- type string
The type of custom page you wish to update. Must be one of
basic_challenge,waf_challenge,waf_block,ratelimit_block,country_challenge,ip_block,under_attack,500_errors,1000_errors,always_online.- url string
URL of where the custom page source is located.
- zone
Id string The zone ID where the custom pages should be updated. Either
zone_idoraccount_idmust be provided.
- account_
id str The account ID where the custom pages should be updated. Either
account_idorzone_idmust be provided. Ifaccount_idis present, it will override the zone setting.- state str
- type str
The type of custom page you wish to update. Must be one of
basic_challenge,waf_challenge,waf_block,ratelimit_block,country_challenge,ip_block,under_attack,500_errors,1000_errors,always_online.- url str
URL of where the custom page source is located.
- zone_
id str The zone ID where the custom pages should be updated. Either
zone_idoraccount_idmust be provided.
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.