Class 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",
});
}
}
Inherited Members
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class CustomPages : CustomResource
Constructors
View SourceCustomPages(String, CustomPagesArgs, CustomResourceOptions)
Create a CustomPages resource with the given unique name, arguments, and options.
Declaration
public CustomPages(string name, CustomPagesArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| CustomPagesArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccountId
The account ID where the custom pages should be
updated. Either account_id or zone_id must be provided. If
account_id is present, it will override the zone setting.
Declaration
public Output<string> AccountId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
State
Declaration
public Output<string> State { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Type
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.
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Url
URL of where the custom page source is located.
Declaration
public Output<string> Url { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ZoneId
The zone ID where the custom pages should be
updated. Either zone_id or account_id must be provided.
Declaration
public Output<string> ZoneId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, CustomPagesState, CustomResourceOptions)
Get an existing CustomPages resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static CustomPages Get(string name, Input<string> id, CustomPagesState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| CustomPagesState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| CustomPages |