ibm.CisPageRule
Explore with Pulumi AI
Provides an IBM Cloud Internet Services page rule resource, to create, update, delete page rules of a domain. This resource is associated with an IBM Cloud Internet Services instance and an IBM Cloud Internet Services domain resource. For more information, about IBM Cloud Internet Services page rules, see using page rules.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
// Add a page rule to the domain
const pageRule = new ibm.CisPageRule("pageRule", {
cisId: _var.cis_crn,
domainId: _var.zone_id,
targets: [{
target: "url",
constraint: {
operator: "matches",
value: "example.com",
},
}],
actions: [
{
id: "email_obfuscation",
value: "on",
},
{
id: "forwarding_url",
url: "https://ibm.travis-kuganes1.sdk.cistest-load.com/*",
statusCode: 302,
},
{
id: "minify",
html: "off",
css: "on",
js: "off",
},
],
});
import pulumi
import pulumi_ibm as ibm
# Add a page rule to the domain
page_rule = ibm.CisPageRule("pageRule",
cis_id=var["cis_crn"],
domain_id=var["zone_id"],
targets=[{
"target": "url",
"constraint": {
"operator": "matches",
"value": "example.com",
},
}],
actions=[
{
"id": "email_obfuscation",
"value": "on",
},
{
"id": "forwarding_url",
"url": "https://ibm.travis-kuganes1.sdk.cistest-load.com/*",
"status_code": 302,
},
{
"id": "minify",
"html": "off",
"css": "on",
"js": "off",
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Add a page rule to the domain
_, err := ibm.NewCisPageRule(ctx, "pageRule", &ibm.CisPageRuleArgs{
CisId: pulumi.Any(_var.Cis_crn),
DomainId: pulumi.Any(_var.Zone_id),
Targets: ibm.CisPageRuleTargetArray{
&ibm.CisPageRuleTargetArgs{
Target: pulumi.String("url"),
Constraint: &ibm.CisPageRuleTargetConstraintArgs{
Operator: pulumi.String("matches"),
Value: pulumi.String("example.com"),
},
},
},
Actions: ibm.CisPageRuleActionArray{
&ibm.CisPageRuleActionArgs{
Id: pulumi.String("email_obfuscation"),
Value: pulumi.String("on"),
},
&ibm.CisPageRuleActionArgs{
Id: pulumi.String("forwarding_url"),
Url: pulumi.String("https://ibm.travis-kuganes1.sdk.cistest-load.com/*"),
StatusCode: pulumi.Float64(302),
},
&ibm.CisPageRuleActionArgs{
Id: pulumi.String("minify"),
Html: pulumi.String("off"),
Css: pulumi.String("on"),
Js: pulumi.String("off"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
// Add a page rule to the domain
var pageRule = new Ibm.CisPageRule("pageRule", new()
{
CisId = @var.Cis_crn,
DomainId = @var.Zone_id,
Targets = new[]
{
new Ibm.Inputs.CisPageRuleTargetArgs
{
Target = "url",
Constraint = new Ibm.Inputs.CisPageRuleTargetConstraintArgs
{
Operator = "matches",
Value = "example.com",
},
},
},
Actions = new[]
{
new Ibm.Inputs.CisPageRuleActionArgs
{
Id = "email_obfuscation",
Value = "on",
},
new Ibm.Inputs.CisPageRuleActionArgs
{
Id = "forwarding_url",
Url = "https://ibm.travis-kuganes1.sdk.cistest-load.com/*",
StatusCode = 302,
},
new Ibm.Inputs.CisPageRuleActionArgs
{
Id = "minify",
Html = "off",
Css = "on",
Js = "off",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CisPageRule;
import com.pulumi.ibm.CisPageRuleArgs;
import com.pulumi.ibm.inputs.CisPageRuleTargetArgs;
import com.pulumi.ibm.inputs.CisPageRuleTargetConstraintArgs;
import com.pulumi.ibm.inputs.CisPageRuleActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Add a page rule to the domain
var pageRule = new CisPageRule("pageRule", CisPageRuleArgs.builder()
.cisId(var_.cis_crn())
.domainId(var_.zone_id())
.targets(CisPageRuleTargetArgs.builder()
.target("url")
.constraint(CisPageRuleTargetConstraintArgs.builder()
.operator("matches")
.value("example.com")
.build())
.build())
.actions(
CisPageRuleActionArgs.builder()
.id("email_obfuscation")
.value("on")
.build(),
CisPageRuleActionArgs.builder()
.id("forwarding_url")
.url("https://ibm.travis-kuganes1.sdk.cistest-load.com/*")
.statusCode(302)
.build(),
CisPageRuleActionArgs.builder()
.id("minify")
.html("off")
.css("on")
.js("off")
.build())
.build());
}
}
resources:
# Add a page rule to the domain
pageRule:
type: ibm:CisPageRule
properties:
cisId: ${var.cis_crn}
domainId: ${var.zone_id}
targets:
- target: url
constraint:
operator: matches
value: example.com
actions:
- id: email_obfuscation
value: on
- id: forwarding_url
url: https://ibm.travis-kuganes1.sdk.cistest-load.com/*
statusCode: 302
- id: minify
html: off
css: on
js: off
Create CisPageRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CisPageRule(name: string, args: CisPageRuleArgs, opts?: CustomResourceOptions);
@overload
def CisPageRule(resource_name: str,
args: CisPageRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CisPageRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[CisPageRuleActionArgs]] = None,
cis_id: Optional[str] = None,
domain_id: Optional[str] = None,
targets: Optional[Sequence[CisPageRuleTargetArgs]] = None,
cis_page_rule_id: Optional[str] = None,
priority: Optional[float] = None,
status: Optional[str] = None)
func NewCisPageRule(ctx *Context, name string, args CisPageRuleArgs, opts ...ResourceOption) (*CisPageRule, error)
public CisPageRule(string name, CisPageRuleArgs args, CustomResourceOptions? opts = null)
public CisPageRule(String name, CisPageRuleArgs args)
public CisPageRule(String name, CisPageRuleArgs args, CustomResourceOptions options)
type: ibm:CisPageRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CisPageRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CisPageRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CisPageRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CisPageRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CisPageRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cisPageRuleResource = new Ibm.CisPageRule("cisPageRuleResource", new()
{
Actions = new[]
{
new Ibm.Inputs.CisPageRuleActionArgs
{
Id = "string",
Css = "string",
Html = "string",
Js = "string",
StatusCode = 0,
Url = "string",
Value = "string",
},
},
CisId = "string",
DomainId = "string",
Targets = new[]
{
new Ibm.Inputs.CisPageRuleTargetArgs
{
Constraint = new Ibm.Inputs.CisPageRuleTargetConstraintArgs
{
Operator = "string",
Value = "string",
},
Target = "string",
},
},
CisPageRuleId = "string",
Priority = 0,
Status = "string",
});
example, err := ibm.NewCisPageRule(ctx, "cisPageRuleResource", &ibm.CisPageRuleArgs{
Actions: ibm.CisPageRuleActionArray{
&ibm.CisPageRuleActionArgs{
Id: pulumi.String("string"),
Css: pulumi.String("string"),
Html: pulumi.String("string"),
Js: pulumi.String("string"),
StatusCode: pulumi.Float64(0),
Url: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
CisId: pulumi.String("string"),
DomainId: pulumi.String("string"),
Targets: ibm.CisPageRuleTargetArray{
&ibm.CisPageRuleTargetArgs{
Constraint: &ibm.CisPageRuleTargetConstraintArgs{
Operator: pulumi.String("string"),
Value: pulumi.String("string"),
},
Target: pulumi.String("string"),
},
},
CisPageRuleId: pulumi.String("string"),
Priority: pulumi.Float64(0),
Status: pulumi.String("string"),
})
var cisPageRuleResource = new CisPageRule("cisPageRuleResource", CisPageRuleArgs.builder()
.actions(CisPageRuleActionArgs.builder()
.id("string")
.css("string")
.html("string")
.js("string")
.statusCode(0)
.url("string")
.value("string")
.build())
.cisId("string")
.domainId("string")
.targets(CisPageRuleTargetArgs.builder()
.constraint(CisPageRuleTargetConstraintArgs.builder()
.operator("string")
.value("string")
.build())
.target("string")
.build())
.cisPageRuleId("string")
.priority(0)
.status("string")
.build());
cis_page_rule_resource = ibm.CisPageRule("cisPageRuleResource",
actions=[{
"id": "string",
"css": "string",
"html": "string",
"js": "string",
"status_code": 0,
"url": "string",
"value": "string",
}],
cis_id="string",
domain_id="string",
targets=[{
"constraint": {
"operator": "string",
"value": "string",
},
"target": "string",
}],
cis_page_rule_id="string",
priority=0,
status="string")
const cisPageRuleResource = new ibm.CisPageRule("cisPageRuleResource", {
actions: [{
id: "string",
css: "string",
html: "string",
js: "string",
statusCode: 0,
url: "string",
value: "string",
}],
cisId: "string",
domainId: "string",
targets: [{
constraint: {
operator: "string",
value: "string",
},
target: "string",
}],
cisPageRuleId: "string",
priority: 0,
status: "string",
});
type: ibm:CisPageRule
properties:
actions:
- css: string
html: string
id: string
js: string
statusCode: 0
url: string
value: string
cisId: string
cisPageRuleId: string
domainId: string
priority: 0
status: string
targets:
- constraint:
operator: string
value: string
target: string
CisPageRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CisPageRule resource accepts the following input properties:
- Actions
List<Cis
Page Rule Action> The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Domain
Id string - The ID of the IBM Cloud Internet Services domain.
- Targets
List<Cis
Page Rule Target> The targets, where rule is added.
Nested scheme for
targets
:- Cis
Page stringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - Priority double
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - Status string
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
.
- Actions
[]Cis
Page Rule Action Args The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Domain
Id string - The ID of the IBM Cloud Internet Services domain.
- Targets
[]Cis
Page Rule Target Args The targets, where rule is added.
Nested scheme for
targets
:- Cis
Page stringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - Priority float64
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - Status string
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
.
- actions
List<Cis
Page Rule Action> The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- domain
Id String - The ID of the IBM Cloud Internet Services domain.
- targets
List<Cis
Page Rule Target> The targets, where rule is added.
Nested scheme for
targets
:- cis
Page StringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - priority Double
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - status String
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
.
- actions
Cis
Page Rule Action[] The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- cis
Id string - The ID of the IBM Cloud Internet Services instance.
- domain
Id string - The ID of the IBM Cloud Internet Services domain.
- targets
Cis
Page Rule Target[] The targets, where rule is added.
Nested scheme for
targets
:- cis
Page stringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - priority number
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - status string
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
.
- actions
Sequence[Cis
Page Rule Action Args] The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- cis_
id str - The ID of the IBM Cloud Internet Services instance.
- domain_
id str - The ID of the IBM Cloud Internet Services domain.
- targets
Sequence[Cis
Page Rule Target Args] The targets, where rule is added.
Nested scheme for
targets
:- cis_
page_ strrule_ id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - priority float
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - status str
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
.
- actions List<Property Map>
The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- domain
Id String - The ID of the IBM Cloud Internet Services domain.
- targets List<Property Map>
The targets, where rule is added.
Nested scheme for
targets
:- cis
Page StringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - priority Number
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - status String
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CisPageRule resource produces the following output properties:
Look up Existing CisPageRule Resource
Get an existing CisPageRule 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?: CisPageRuleState, opts?: CustomResourceOptions): CisPageRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[CisPageRuleActionArgs]] = None,
cis_id: Optional[str] = None,
cis_page_rule_id: Optional[str] = None,
domain_id: Optional[str] = None,
priority: Optional[float] = None,
rule_id: Optional[str] = None,
status: Optional[str] = None,
targets: Optional[Sequence[CisPageRuleTargetArgs]] = None) -> CisPageRule
func GetCisPageRule(ctx *Context, name string, id IDInput, state *CisPageRuleState, opts ...ResourceOption) (*CisPageRule, error)
public static CisPageRule Get(string name, Input<string> id, CisPageRuleState? state, CustomResourceOptions? opts = null)
public static CisPageRule get(String name, Output<String> id, CisPageRuleState state, CustomResourceOptions options)
resources: _: type: ibm:CisPageRule get: id: ${id}
- 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.
- 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.
- Actions
List<Cis
Page Rule Action> The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Cis
Page stringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - Domain
Id string - The ID of the IBM Cloud Internet Services domain.
- Priority double
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - Rule
Id string - (String) The page rule ID.
- Status string
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
. - Targets
List<Cis
Page Rule Target> The targets, where rule is added.
Nested scheme for
targets
:
- Actions
[]Cis
Page Rule Action Args The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- Cis
Id string - The ID of the IBM Cloud Internet Services instance.
- Cis
Page stringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - Domain
Id string - The ID of the IBM Cloud Internet Services domain.
- Priority float64
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - Rule
Id string - (String) The page rule ID.
- Status string
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
. - Targets
[]Cis
Page Rule Target Args The targets, where rule is added.
Nested scheme for
targets
:
- actions
List<Cis
Page Rule Action> The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- cis
Page StringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - domain
Id String - The ID of the IBM Cloud Internet Services domain.
- priority Double
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - rule
Id String - (String) The page rule ID.
- status String
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
. - targets
List<Cis
Page Rule Target> The targets, where rule is added.
Nested scheme for
targets
:
- actions
Cis
Page Rule Action[] The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- cis
Id string - The ID of the IBM Cloud Internet Services instance.
- cis
Page stringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - domain
Id string - The ID of the IBM Cloud Internet Services domain.
- priority number
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - rule
Id string - (String) The page rule ID.
- status string
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
. - targets
Cis
Page Rule Target[] The targets, where rule is added.
Nested scheme for
targets
:
- actions
Sequence[Cis
Page Rule Action Args] The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- cis_
id str - The ID of the IBM Cloud Internet Services instance.
- cis_
page_ strrule_ id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - domain_
id str - The ID of the IBM Cloud Internet Services domain.
- priority float
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - rule_
id str - (String) The page rule ID.
- status str
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
. - targets
Sequence[Cis
Page Rule Target Args] The targets, where rule is added.
Nested scheme for
targets
:
- actions List<Property Map>
The list of actions performed on URL. Minimum items is
1
.Nested scheme for
actions
:- cis
Id String - The ID of the IBM Cloud Internet Services instance.
- cis
Page StringRule Id - (String) The record ID. It is a combination of
<rule_id>:<domain_id>:<cis_id>
attributes of the origin pool. - domain
Id String - The ID of the IBM Cloud Internet Services domain.
- priority Number
- The priority of the page rule. Default value is
1
.Set
andUpdate
are not supported yet. - rule
Id String - (String) The page rule ID.
- status String
- The status of the page rule. Valid values are
active
anddisabled
. Default value isdisabled
. - targets List<Property Map>
The targets, where rule is added.
Nested scheme for
targets
:
Supporting Types
CisPageRuleAction, CisPageRuleActionArgs
- Id string
- The action ID. Valid values are
page rule action field map from console
toAPI CF-UI map API
). - Css string
- The required attribute for
minify
action. CSS supported values areon
andoff
. - Html string
- The required attribute for
minify
action. HTML supported values areon
andoff
. - Js string
- The required attribute for
minify
action. JS supported values areon
andoff
. - Status
Code double - The status code to check for URL forwarding. The required attribute for
forwarding_url
action. Valid values are301
and302
. It returns0
for all other actions. - Url string
- The forward rule URL, a required attribute for
forwarding_url
action. - Value string
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
id
andvalue
ofactions
argument| id | description |valid values| |---------------------------|-----------------------------------------------|------------| |
always_online
|The action conflicts with all other settings. |on
,off
| |always_use_https
|The action conflicts with all other settings. |The value is not required.| |automatic_https_rewrites
|The automatic HTTPS rewrites. |on
,off
| |browser_cache_ttl
|The browser cache TTL. |0
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,691200
,1382400
,2073600
,2678400
,5356800
,16070400
,31536000
| |bypass_cache_on_cookie
|The bypass cache on cookie. |cookie tags| |browser_check
|The browser integrity check. |on
,off
| |cache_level
|The cache level. |bypass
,aggressive
,basic
,simplified
,cache_everything
| |cache_on_cookie
|The cache on cookie. |The cookie value| |cache_deception_armor
|The cache deception armor. |on
,off
| |disable_security
|The action conflicts withemail_obfuscation
,server_side_exclude
,waf
.|The value is not required.| |disable_apps
|The disable apps. |The value is not required| |disable_performance
|The disable performance. |The value is not required.| |edge_cache_ttl
|The edge cache TTL. |0
,30
,60
,300
,600
,1200
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,518400
,604800
,1209600
,2419200
| |email_obfuscation
|The Email obfuscation. |on
,off
| |explicit_cache_control
|The origin cache control. |on
,off
| |forwarding_url
|The action conflicts with all other settings. |The value is not required.| |host_header_override
|The host header override. |The header value.| |image_load_optimization
|The image load optimization. |on
,off
| |image_size_optimization
|The image size optimization. |on
,off
| |ip_geolocation
|The IP geography location header. |on
,off
| |opportunistic_encryption
|The opportunistic encryption. |on
,off
| |origin_error_page_pass_thru
|The origin error page pass-through. |on
,off
| |resolve_override
|The resolve override. |The value for resolving URL override.| |response_buffering
|The response buffering. |on
,off
| |script_load_optimization
|The script load optimization. |off
,lossless
,lossy
| |ssl
|The TLS settings. |off
,flexible
,full
,strict
,origin_pull
| |security_level
|The security level. |disable_security
,always_use_https
| |server_side_exclude
|The server side excludes. |on
,off
| |server_stale_content
|The server stale content. |on
,off
| |sort_query_string_for_cache
|The sort query string. |on
,off
| |true_client_ip_header
|The true client IP header. |on
,off
| |waf
|The Web Application Firewall. |on
,off
| |minify
|The Minify web content |The value is not required|
- Id string
- The action ID. Valid values are
page rule action field map from console
toAPI CF-UI map API
). - Css string
- The required attribute for
minify
action. CSS supported values areon
andoff
. - Html string
- The required attribute for
minify
action. HTML supported values areon
andoff
. - Js string
- The required attribute for
minify
action. JS supported values areon
andoff
. - Status
Code float64 - The status code to check for URL forwarding. The required attribute for
forwarding_url
action. Valid values are301
and302
. It returns0
for all other actions. - Url string
- The forward rule URL, a required attribute for
forwarding_url
action. - Value string
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
id
andvalue
ofactions
argument| id | description |valid values| |---------------------------|-----------------------------------------------|------------| |
always_online
|The action conflicts with all other settings. |on
,off
| |always_use_https
|The action conflicts with all other settings. |The value is not required.| |automatic_https_rewrites
|The automatic HTTPS rewrites. |on
,off
| |browser_cache_ttl
|The browser cache TTL. |0
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,691200
,1382400
,2073600
,2678400
,5356800
,16070400
,31536000
| |bypass_cache_on_cookie
|The bypass cache on cookie. |cookie tags| |browser_check
|The browser integrity check. |on
,off
| |cache_level
|The cache level. |bypass
,aggressive
,basic
,simplified
,cache_everything
| |cache_on_cookie
|The cache on cookie. |The cookie value| |cache_deception_armor
|The cache deception armor. |on
,off
| |disable_security
|The action conflicts withemail_obfuscation
,server_side_exclude
,waf
.|The value is not required.| |disable_apps
|The disable apps. |The value is not required| |disable_performance
|The disable performance. |The value is not required.| |edge_cache_ttl
|The edge cache TTL. |0
,30
,60
,300
,600
,1200
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,518400
,604800
,1209600
,2419200
| |email_obfuscation
|The Email obfuscation. |on
,off
| |explicit_cache_control
|The origin cache control. |on
,off
| |forwarding_url
|The action conflicts with all other settings. |The value is not required.| |host_header_override
|The host header override. |The header value.| |image_load_optimization
|The image load optimization. |on
,off
| |image_size_optimization
|The image size optimization. |on
,off
| |ip_geolocation
|The IP geography location header. |on
,off
| |opportunistic_encryption
|The opportunistic encryption. |on
,off
| |origin_error_page_pass_thru
|The origin error page pass-through. |on
,off
| |resolve_override
|The resolve override. |The value for resolving URL override.| |response_buffering
|The response buffering. |on
,off
| |script_load_optimization
|The script load optimization. |off
,lossless
,lossy
| |ssl
|The TLS settings. |off
,flexible
,full
,strict
,origin_pull
| |security_level
|The security level. |disable_security
,always_use_https
| |server_side_exclude
|The server side excludes. |on
,off
| |server_stale_content
|The server stale content. |on
,off
| |sort_query_string_for_cache
|The sort query string. |on
,off
| |true_client_ip_header
|The true client IP header. |on
,off
| |waf
|The Web Application Firewall. |on
,off
| |minify
|The Minify web content |The value is not required|
- id String
- The action ID. Valid values are
page rule action field map from console
toAPI CF-UI map API
). - css String
- The required attribute for
minify
action. CSS supported values areon
andoff
. - html String
- The required attribute for
minify
action. HTML supported values areon
andoff
. - js String
- The required attribute for
minify
action. JS supported values areon
andoff
. - status
Code Double - The status code to check for URL forwarding. The required attribute for
forwarding_url
action. Valid values are301
and302
. It returns0
for all other actions. - url String
- The forward rule URL, a required attribute for
forwarding_url
action. - value String
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
id
andvalue
ofactions
argument| id | description |valid values| |---------------------------|-----------------------------------------------|------------| |
always_online
|The action conflicts with all other settings. |on
,off
| |always_use_https
|The action conflicts with all other settings. |The value is not required.| |automatic_https_rewrites
|The automatic HTTPS rewrites. |on
,off
| |browser_cache_ttl
|The browser cache TTL. |0
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,691200
,1382400
,2073600
,2678400
,5356800
,16070400
,31536000
| |bypass_cache_on_cookie
|The bypass cache on cookie. |cookie tags| |browser_check
|The browser integrity check. |on
,off
| |cache_level
|The cache level. |bypass
,aggressive
,basic
,simplified
,cache_everything
| |cache_on_cookie
|The cache on cookie. |The cookie value| |cache_deception_armor
|The cache deception armor. |on
,off
| |disable_security
|The action conflicts withemail_obfuscation
,server_side_exclude
,waf
.|The value is not required.| |disable_apps
|The disable apps. |The value is not required| |disable_performance
|The disable performance. |The value is not required.| |edge_cache_ttl
|The edge cache TTL. |0
,30
,60
,300
,600
,1200
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,518400
,604800
,1209600
,2419200
| |email_obfuscation
|The Email obfuscation. |on
,off
| |explicit_cache_control
|The origin cache control. |on
,off
| |forwarding_url
|The action conflicts with all other settings. |The value is not required.| |host_header_override
|The host header override. |The header value.| |image_load_optimization
|The image load optimization. |on
,off
| |image_size_optimization
|The image size optimization. |on
,off
| |ip_geolocation
|The IP geography location header. |on
,off
| |opportunistic_encryption
|The opportunistic encryption. |on
,off
| |origin_error_page_pass_thru
|The origin error page pass-through. |on
,off
| |resolve_override
|The resolve override. |The value for resolving URL override.| |response_buffering
|The response buffering. |on
,off
| |script_load_optimization
|The script load optimization. |off
,lossless
,lossy
| |ssl
|The TLS settings. |off
,flexible
,full
,strict
,origin_pull
| |security_level
|The security level. |disable_security
,always_use_https
| |server_side_exclude
|The server side excludes. |on
,off
| |server_stale_content
|The server stale content. |on
,off
| |sort_query_string_for_cache
|The sort query string. |on
,off
| |true_client_ip_header
|The true client IP header. |on
,off
| |waf
|The Web Application Firewall. |on
,off
| |minify
|The Minify web content |The value is not required|
- id string
- The action ID. Valid values are
page rule action field map from console
toAPI CF-UI map API
). - css string
- The required attribute for
minify
action. CSS supported values areon
andoff
. - html string
- The required attribute for
minify
action. HTML supported values areon
andoff
. - js string
- The required attribute for
minify
action. JS supported values areon
andoff
. - status
Code number - The status code to check for URL forwarding. The required attribute for
forwarding_url
action. Valid values are301
and302
. It returns0
for all other actions. - url string
- The forward rule URL, a required attribute for
forwarding_url
action. - value string
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
id
andvalue
ofactions
argument| id | description |valid values| |---------------------------|-----------------------------------------------|------------| |
always_online
|The action conflicts with all other settings. |on
,off
| |always_use_https
|The action conflicts with all other settings. |The value is not required.| |automatic_https_rewrites
|The automatic HTTPS rewrites. |on
,off
| |browser_cache_ttl
|The browser cache TTL. |0
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,691200
,1382400
,2073600
,2678400
,5356800
,16070400
,31536000
| |bypass_cache_on_cookie
|The bypass cache on cookie. |cookie tags| |browser_check
|The browser integrity check. |on
,off
| |cache_level
|The cache level. |bypass
,aggressive
,basic
,simplified
,cache_everything
| |cache_on_cookie
|The cache on cookie. |The cookie value| |cache_deception_armor
|The cache deception armor. |on
,off
| |disable_security
|The action conflicts withemail_obfuscation
,server_side_exclude
,waf
.|The value is not required.| |disable_apps
|The disable apps. |The value is not required| |disable_performance
|The disable performance. |The value is not required.| |edge_cache_ttl
|The edge cache TTL. |0
,30
,60
,300
,600
,1200
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,518400
,604800
,1209600
,2419200
| |email_obfuscation
|The Email obfuscation. |on
,off
| |explicit_cache_control
|The origin cache control. |on
,off
| |forwarding_url
|The action conflicts with all other settings. |The value is not required.| |host_header_override
|The host header override. |The header value.| |image_load_optimization
|The image load optimization. |on
,off
| |image_size_optimization
|The image size optimization. |on
,off
| |ip_geolocation
|The IP geography location header. |on
,off
| |opportunistic_encryption
|The opportunistic encryption. |on
,off
| |origin_error_page_pass_thru
|The origin error page pass-through. |on
,off
| |resolve_override
|The resolve override. |The value for resolving URL override.| |response_buffering
|The response buffering. |on
,off
| |script_load_optimization
|The script load optimization. |off
,lossless
,lossy
| |ssl
|The TLS settings. |off
,flexible
,full
,strict
,origin_pull
| |security_level
|The security level. |disable_security
,always_use_https
| |server_side_exclude
|The server side excludes. |on
,off
| |server_stale_content
|The server stale content. |on
,off
| |sort_query_string_for_cache
|The sort query string. |on
,off
| |true_client_ip_header
|The true client IP header. |on
,off
| |waf
|The Web Application Firewall. |on
,off
| |minify
|The Minify web content |The value is not required|
- id str
- The action ID. Valid values are
page rule action field map from console
toAPI CF-UI map API
). - css str
- The required attribute for
minify
action. CSS supported values areon
andoff
. - html str
- The required attribute for
minify
action. HTML supported values areon
andoff
. - js str
- The required attribute for
minify
action. JS supported values areon
andoff
. - status_
code float - The status code to check for URL forwarding. The required attribute for
forwarding_url
action. Valid values are301
and302
. It returns0
for all other actions. - url str
- The forward rule URL, a required attribute for
forwarding_url
action. - value str
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
id
andvalue
ofactions
argument| id | description |valid values| |---------------------------|-----------------------------------------------|------------| |
always_online
|The action conflicts with all other settings. |on
,off
| |always_use_https
|The action conflicts with all other settings. |The value is not required.| |automatic_https_rewrites
|The automatic HTTPS rewrites. |on
,off
| |browser_cache_ttl
|The browser cache TTL. |0
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,691200
,1382400
,2073600
,2678400
,5356800
,16070400
,31536000
| |bypass_cache_on_cookie
|The bypass cache on cookie. |cookie tags| |browser_check
|The browser integrity check. |on
,off
| |cache_level
|The cache level. |bypass
,aggressive
,basic
,simplified
,cache_everything
| |cache_on_cookie
|The cache on cookie. |The cookie value| |cache_deception_armor
|The cache deception armor. |on
,off
| |disable_security
|The action conflicts withemail_obfuscation
,server_side_exclude
,waf
.|The value is not required.| |disable_apps
|The disable apps. |The value is not required| |disable_performance
|The disable performance. |The value is not required.| |edge_cache_ttl
|The edge cache TTL. |0
,30
,60
,300
,600
,1200
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,518400
,604800
,1209600
,2419200
| |email_obfuscation
|The Email obfuscation. |on
,off
| |explicit_cache_control
|The origin cache control. |on
,off
| |forwarding_url
|The action conflicts with all other settings. |The value is not required.| |host_header_override
|The host header override. |The header value.| |image_load_optimization
|The image load optimization. |on
,off
| |image_size_optimization
|The image size optimization. |on
,off
| |ip_geolocation
|The IP geography location header. |on
,off
| |opportunistic_encryption
|The opportunistic encryption. |on
,off
| |origin_error_page_pass_thru
|The origin error page pass-through. |on
,off
| |resolve_override
|The resolve override. |The value for resolving URL override.| |response_buffering
|The response buffering. |on
,off
| |script_load_optimization
|The script load optimization. |off
,lossless
,lossy
| |ssl
|The TLS settings. |off
,flexible
,full
,strict
,origin_pull
| |security_level
|The security level. |disable_security
,always_use_https
| |server_side_exclude
|The server side excludes. |on
,off
| |server_stale_content
|The server stale content. |on
,off
| |sort_query_string_for_cache
|The sort query string. |on
,off
| |true_client_ip_header
|The true client IP header. |on
,off
| |waf
|The Web Application Firewall. |on
,off
| |minify
|The Minify web content |The value is not required|
- id String
- The action ID. Valid values are
page rule action field map from console
toAPI CF-UI map API
). - css String
- The required attribute for
minify
action. CSS supported values areon
andoff
. - html String
- The required attribute for
minify
action. HTML supported values areon
andoff
. - js String
- The required attribute for
minify
action. JS supported values areon
andoff
. - status
Code Number - The status code to check for URL forwarding. The required attribute for
forwarding_url
action. Valid values are301
and302
. It returns0
for all other actions. - url String
- The forward rule URL, a required attribute for
forwarding_url
action. - value String
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
id
andvalue
ofactions
argument| id | description |valid values| |---------------------------|-----------------------------------------------|------------| |
always_online
|The action conflicts with all other settings. |on
,off
| |always_use_https
|The action conflicts with all other settings. |The value is not required.| |automatic_https_rewrites
|The automatic HTTPS rewrites. |on
,off
| |browser_cache_ttl
|The browser cache TTL. |0
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,691200
,1382400
,2073600
,2678400
,5356800
,16070400
,31536000
| |bypass_cache_on_cookie
|The bypass cache on cookie. |cookie tags| |browser_check
|The browser integrity check. |on
,off
| |cache_level
|The cache level. |bypass
,aggressive
,basic
,simplified
,cache_everything
| |cache_on_cookie
|The cache on cookie. |The cookie value| |cache_deception_armor
|The cache deception armor. |on
,off
| |disable_security
|The action conflicts withemail_obfuscation
,server_side_exclude
,waf
.|The value is not required.| |disable_apps
|The disable apps. |The value is not required| |disable_performance
|The disable performance. |The value is not required.| |edge_cache_ttl
|The edge cache TTL. |0
,30
,60
,300
,600
,1200
,1800
,3600
,7200
,10800
,14400
,18000
,28800
,43200
,57600
,72000
,86400
,172800
,259200
,345600
,432000
,518400
,604800
,1209600
,2419200
| |email_obfuscation
|The Email obfuscation. |on
,off
| |explicit_cache_control
|The origin cache control. |on
,off
| |forwarding_url
|The action conflicts with all other settings. |The value is not required.| |host_header_override
|The host header override. |The header value.| |image_load_optimization
|The image load optimization. |on
,off
| |image_size_optimization
|The image size optimization. |on
,off
| |ip_geolocation
|The IP geography location header. |on
,off
| |opportunistic_encryption
|The opportunistic encryption. |on
,off
| |origin_error_page_pass_thru
|The origin error page pass-through. |on
,off
| |resolve_override
|The resolve override. |The value for resolving URL override.| |response_buffering
|The response buffering. |on
,off
| |script_load_optimization
|The script load optimization. |off
,lossless
,lossy
| |ssl
|The TLS settings. |off
,flexible
,full
,strict
,origin_pull
| |security_level
|The security level. |disable_security
,always_use_https
| |server_side_exclude
|The server side excludes. |on
,off
| |server_stale_content
|The server stale content. |on
,off
| |sort_query_string_for_cache
|The sort query string. |on
,off
| |true_client_ip_header
|The true client IP header. |on
,off
| |waf
|The Web Application Firewall. |on
,off
| |minify
|The Minify web content |The value is not required|
CisPageRuleTarget, CisPageRuleTargetArgs
- Constraint
Cis
Page Rule Target Constraint The constraint of the page rule. Maximum item is
1
.Nested scheme for
constraint
:- Target string
- The target type. Valid value is
url
.
- Constraint
Cis
Page Rule Target Constraint The constraint of the page rule. Maximum item is
1
.Nested scheme for
constraint
:- Target string
- The target type. Valid value is
url
.
- constraint
Cis
Page Rule Target Constraint The constraint of the page rule. Maximum item is
1
.Nested scheme for
constraint
:- target String
- The target type. Valid value is
url
.
- constraint
Cis
Page Rule Target Constraint The constraint of the page rule. Maximum item is
1
.Nested scheme for
constraint
:- target string
- The target type. Valid value is
url
.
- constraint
Cis
Page Rule Target Constraint The constraint of the page rule. Maximum item is
1
.Nested scheme for
constraint
:- target str
- The target type. Valid value is
url
.
- constraint Property Map
The constraint of the page rule. Maximum item is
1
.Nested scheme for
constraint
:- target String
- The target type. Valid value is
url
.
CisPageRuleTargetConstraint, CisPageRuleTargetConstraintArgs
Import
The ibm_cis_page_rule
resource can be imported by using the ID. The ID is formed from the rule ID, the domain ID of the domain and the CRN concatenated by using a :
character.
The domain ID and CRN is located on the Overview page of the Internet Services instance under the Domain heading of the console, or via the ibmcloud cis
CLI.
Domain ID is a 32 digit character string of the form:
9caf68812ae9b3f0377fdf986751a78f
.CRN is a 120 digit character string of the format
crn:v1:bluemix:public:internet-svcs:global:a/1aa1111a1a1111aa1a111111111111aa:11aa111a-11a1-1a11-111a-111aaa11a1a1::
Rule ID is a 32 digit character string in the format
489d96f0da6ed76251b475971b097205c
.
syntax
$ pulumi import ibm:index/cisPageRule:CisPageRule myorg <rule_id>:<domain-id>:<crn>
Example
$ pulumi import ibm:index/cisPageRule:CisPageRule myorg page_rule 48996f0da6ed76251b475971b097205c:9caf68812ae9b3f0377fdf986751a78f:crn:v1:bluemix:public:internet-svcs:global:a/4ea1882a2d3401ed1e459979941966ea:31fa970d-51d0-4b05-893e-251cba75a7b3::
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.