published on Monday, Mar 30, 2026 by ibm-cloud
published on Monday, Mar 30, 2026 by ibm-cloud
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("page_rule", {
cisId: cisCrn,
domainId: zoneId,
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("page_rule",
cis_id=cis_crn,
domain_id=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/v2/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, "page_rule", &ibm.CisPageRuleArgs{
CisId: pulumi.Any(cisCrn),
DomainId: pulumi.Any(zoneId),
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("page_rule", new()
{
CisId = cisCrn,
DomainId = zoneId,
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(cisCrn)
.domainId(zoneId)
.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.0)
.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
name: page_rule
properties:
cisId: ${cisCrn}
domainId: ${zoneId}
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.Index.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.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.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.SetandUpdateare not supported yet. - Status string
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - Status string
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - status String
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - status string
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - status str
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - status String
- The status of the page rule. Valid values are
activeanddisabled. 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) -> CisPageRulefunc 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.SetandUpdateare not supported yet. - Rule
Id string - (String) The page rule ID.
- Status string
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - Rule
Id string - (String) The page rule ID.
- Status string
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - rule
Id String - (String) The page rule ID.
- status String
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - rule
Id string - (String) The page rule ID.
- status string
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - rule_
id str - (String) The page rule ID.
- status str
- The status of the page rule. Valid values are
activeanddisabled. 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.SetandUpdateare not supported yet. - rule
Id String - (String) The page rule ID.
- status String
- The status of the page rule. Valid values are
activeanddisabled. 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 consoletoAPI CF-UI map API). - Css string
- The required attribute for
minifyaction. CSS supported values areonandoff. - Html string
- The required attribute for
minifyaction. HTML supported values areonandoff. - Js string
- The required attribute for
minifyaction. JS supported values areonandoff. - Status
Code double - The status code to check for URL forwarding. The required attribute for
forwarding_urlaction. Valid values are301and302. It returns0for all other actions. - Url string
- The forward rule URL, a required attribute for
forwarding_urlaction. - Value string
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
idandvalueofactionsargumentid description valid values always_onlineThe action conflicts with all other settings. on,offalways_use_httpsThe action conflicts with all other settings. The value is not required. automatic_https_rewritesThe automatic HTTPS rewrites. on,offbrowser_cache_ttlThe 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,31536000bypass_cache_on_cookieThe bypass cache on cookie. cookie tags browser_checkThe browser integrity check. on,offcache_levelThe cache level. bypass,aggressive,basic,simplified,cache_everythingcache_on_cookieThe cache on cookie. The cookie value cache_deception_armorThe cache deception armor. on,offdisable_securityThe action conflicts with email_obfuscation,server_side_exclude,waf.The value is not required. disable_appsThe disable apps. The value is not required disable_performanceThe disable performance. The value is not required. edge_cache_ttlThe 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,2419200email_obfuscationThe Email obfuscation. on,offexplicit_cache_controlThe origin cache control. on,offforwarding_urlThe action conflicts with all other settings. The value is not required. host_header_overrideThe host header override. The header value. image_load_optimizationThe image load optimization. on,offimage_size_optimizationThe image size optimization. on,offip_geolocationThe IP geography location header. on,offopportunistic_encryptionThe opportunistic encryption. on,offorigin_error_page_pass_thruThe origin error page pass-through. on,offresolve_overrideThe resolve override. The value for resolving URL override. response_bufferingThe response buffering. on,offscript_load_optimizationThe script load optimization. off,lossless,lossysslThe TLS settings. off,flexible,full,strict,origin_pullsecurity_levelThe security level. disable_security,always_use_httpsserver_side_excludeThe server side excludes. on,offserver_stale_contentThe server stale content. on,offsort_query_string_for_cacheThe sort query string. on,offtrue_client_ip_headerThe true client IP header. on,offwafThe Web Application Firewall. on,offminifyThe Minify web content The value is not required
- Id string
- The action ID. Valid values are
page rule action field map from consoletoAPI CF-UI map API). - Css string
- The required attribute for
minifyaction. CSS supported values areonandoff. - Html string
- The required attribute for
minifyaction. HTML supported values areonandoff. - Js string
- The required attribute for
minifyaction. JS supported values areonandoff. - Status
Code float64 - The status code to check for URL forwarding. The required attribute for
forwarding_urlaction. Valid values are301and302. It returns0for all other actions. - Url string
- The forward rule URL, a required attribute for
forwarding_urlaction. - Value string
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
idandvalueofactionsargumentid description valid values always_onlineThe action conflicts with all other settings. on,offalways_use_httpsThe action conflicts with all other settings. The value is not required. automatic_https_rewritesThe automatic HTTPS rewrites. on,offbrowser_cache_ttlThe 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,31536000bypass_cache_on_cookieThe bypass cache on cookie. cookie tags browser_checkThe browser integrity check. on,offcache_levelThe cache level. bypass,aggressive,basic,simplified,cache_everythingcache_on_cookieThe cache on cookie. The cookie value cache_deception_armorThe cache deception armor. on,offdisable_securityThe action conflicts with email_obfuscation,server_side_exclude,waf.The value is not required. disable_appsThe disable apps. The value is not required disable_performanceThe disable performance. The value is not required. edge_cache_ttlThe 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,2419200email_obfuscationThe Email obfuscation. on,offexplicit_cache_controlThe origin cache control. on,offforwarding_urlThe action conflicts with all other settings. The value is not required. host_header_overrideThe host header override. The header value. image_load_optimizationThe image load optimization. on,offimage_size_optimizationThe image size optimization. on,offip_geolocationThe IP geography location header. on,offopportunistic_encryptionThe opportunistic encryption. on,offorigin_error_page_pass_thruThe origin error page pass-through. on,offresolve_overrideThe resolve override. The value for resolving URL override. response_bufferingThe response buffering. on,offscript_load_optimizationThe script load optimization. off,lossless,lossysslThe TLS settings. off,flexible,full,strict,origin_pullsecurity_levelThe security level. disable_security,always_use_httpsserver_side_excludeThe server side excludes. on,offserver_stale_contentThe server stale content. on,offsort_query_string_for_cacheThe sort query string. on,offtrue_client_ip_headerThe true client IP header. on,offwafThe Web Application Firewall. on,offminifyThe Minify web content The value is not required
- id String
- The action ID. Valid values are
page rule action field map from consoletoAPI CF-UI map API). - css String
- The required attribute for
minifyaction. CSS supported values areonandoff. - html String
- The required attribute for
minifyaction. HTML supported values areonandoff. - js String
- The required attribute for
minifyaction. JS supported values areonandoff. - status
Code Double - The status code to check for URL forwarding. The required attribute for
forwarding_urlaction. Valid values are301and302. It returns0for all other actions. - url String
- The forward rule URL, a required attribute for
forwarding_urlaction. - value String
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
idandvalueofactionsargumentid description valid values always_onlineThe action conflicts with all other settings. on,offalways_use_httpsThe action conflicts with all other settings. The value is not required. automatic_https_rewritesThe automatic HTTPS rewrites. on,offbrowser_cache_ttlThe 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,31536000bypass_cache_on_cookieThe bypass cache on cookie. cookie tags browser_checkThe browser integrity check. on,offcache_levelThe cache level. bypass,aggressive,basic,simplified,cache_everythingcache_on_cookieThe cache on cookie. The cookie value cache_deception_armorThe cache deception armor. on,offdisable_securityThe action conflicts with email_obfuscation,server_side_exclude,waf.The value is not required. disable_appsThe disable apps. The value is not required disable_performanceThe disable performance. The value is not required. edge_cache_ttlThe 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,2419200email_obfuscationThe Email obfuscation. on,offexplicit_cache_controlThe origin cache control. on,offforwarding_urlThe action conflicts with all other settings. The value is not required. host_header_overrideThe host header override. The header value. image_load_optimizationThe image load optimization. on,offimage_size_optimizationThe image size optimization. on,offip_geolocationThe IP geography location header. on,offopportunistic_encryptionThe opportunistic encryption. on,offorigin_error_page_pass_thruThe origin error page pass-through. on,offresolve_overrideThe resolve override. The value for resolving URL override. response_bufferingThe response buffering. on,offscript_load_optimizationThe script load optimization. off,lossless,lossysslThe TLS settings. off,flexible,full,strict,origin_pullsecurity_levelThe security level. disable_security,always_use_httpsserver_side_excludeThe server side excludes. on,offserver_stale_contentThe server stale content. on,offsort_query_string_for_cacheThe sort query string. on,offtrue_client_ip_headerThe true client IP header. on,offwafThe Web Application Firewall. on,offminifyThe Minify web content The value is not required
- id string
- The action ID. Valid values are
page rule action field map from consoletoAPI CF-UI map API). - css string
- The required attribute for
minifyaction. CSS supported values areonandoff. - html string
- The required attribute for
minifyaction. HTML supported values areonandoff. - js string
- The required attribute for
minifyaction. JS supported values areonandoff. - status
Code number - The status code to check for URL forwarding. The required attribute for
forwarding_urlaction. Valid values are301and302. It returns0for all other actions. - url string
- The forward rule URL, a required attribute for
forwarding_urlaction. - value string
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
idandvalueofactionsargumentid description valid values always_onlineThe action conflicts with all other settings. on,offalways_use_httpsThe action conflicts with all other settings. The value is not required. automatic_https_rewritesThe automatic HTTPS rewrites. on,offbrowser_cache_ttlThe 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,31536000bypass_cache_on_cookieThe bypass cache on cookie. cookie tags browser_checkThe browser integrity check. on,offcache_levelThe cache level. bypass,aggressive,basic,simplified,cache_everythingcache_on_cookieThe cache on cookie. The cookie value cache_deception_armorThe cache deception armor. on,offdisable_securityThe action conflicts with email_obfuscation,server_side_exclude,waf.The value is not required. disable_appsThe disable apps. The value is not required disable_performanceThe disable performance. The value is not required. edge_cache_ttlThe 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,2419200email_obfuscationThe Email obfuscation. on,offexplicit_cache_controlThe origin cache control. on,offforwarding_urlThe action conflicts with all other settings. The value is not required. host_header_overrideThe host header override. The header value. image_load_optimizationThe image load optimization. on,offimage_size_optimizationThe image size optimization. on,offip_geolocationThe IP geography location header. on,offopportunistic_encryptionThe opportunistic encryption. on,offorigin_error_page_pass_thruThe origin error page pass-through. on,offresolve_overrideThe resolve override. The value for resolving URL override. response_bufferingThe response buffering. on,offscript_load_optimizationThe script load optimization. off,lossless,lossysslThe TLS settings. off,flexible,full,strict,origin_pullsecurity_levelThe security level. disable_security,always_use_httpsserver_side_excludeThe server side excludes. on,offserver_stale_contentThe server stale content. on,offsort_query_string_for_cacheThe sort query string. on,offtrue_client_ip_headerThe true client IP header. on,offwafThe Web Application Firewall. on,offminifyThe Minify web content The value is not required
- id str
- The action ID. Valid values are
page rule action field map from consoletoAPI CF-UI map API). - css str
- The required attribute for
minifyaction. CSS supported values areonandoff. - html str
- The required attribute for
minifyaction. HTML supported values areonandoff. - js str
- The required attribute for
minifyaction. JS supported values areonandoff. - status_
code float - The status code to check for URL forwarding. The required attribute for
forwarding_urlaction. Valid values are301and302. It returns0for all other actions. - url str
- The forward rule URL, a required attribute for
forwarding_urlaction. - value str
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
idandvalueofactionsargumentid description valid values always_onlineThe action conflicts with all other settings. on,offalways_use_httpsThe action conflicts with all other settings. The value is not required. automatic_https_rewritesThe automatic HTTPS rewrites. on,offbrowser_cache_ttlThe 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,31536000bypass_cache_on_cookieThe bypass cache on cookie. cookie tags browser_checkThe browser integrity check. on,offcache_levelThe cache level. bypass,aggressive,basic,simplified,cache_everythingcache_on_cookieThe cache on cookie. The cookie value cache_deception_armorThe cache deception armor. on,offdisable_securityThe action conflicts with email_obfuscation,server_side_exclude,waf.The value is not required. disable_appsThe disable apps. The value is not required disable_performanceThe disable performance. The value is not required. edge_cache_ttlThe 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,2419200email_obfuscationThe Email obfuscation. on,offexplicit_cache_controlThe origin cache control. on,offforwarding_urlThe action conflicts with all other settings. The value is not required. host_header_overrideThe host header override. The header value. image_load_optimizationThe image load optimization. on,offimage_size_optimizationThe image size optimization. on,offip_geolocationThe IP geography location header. on,offopportunistic_encryptionThe opportunistic encryption. on,offorigin_error_page_pass_thruThe origin error page pass-through. on,offresolve_overrideThe resolve override. The value for resolving URL override. response_bufferingThe response buffering. on,offscript_load_optimizationThe script load optimization. off,lossless,lossysslThe TLS settings. off,flexible,full,strict,origin_pullsecurity_levelThe security level. disable_security,always_use_httpsserver_side_excludeThe server side excludes. on,offserver_stale_contentThe server stale content. on,offsort_query_string_for_cacheThe sort query string. on,offtrue_client_ip_headerThe true client IP header. on,offwafThe Web Application Firewall. on,offminifyThe Minify web content The value is not required
- id String
- The action ID. Valid values are
page rule action field map from consoletoAPI CF-UI map API). - css String
- The required attribute for
minifyaction. CSS supported values areonandoff. - html String
- The required attribute for
minifyaction. HTML supported values areonandoff. - js String
- The required attribute for
minifyaction. JS supported values areonandoff. - status
Code Number - The status code to check for URL forwarding. The required attribute for
forwarding_urlaction. Valid values are301and302. It returns0for all other actions. - url String
- The forward rule URL, a required attribute for
forwarding_urlaction. - value String
The values for corresponding actions.
NOTE Below table shows corresponding valid values of
idandvalueofactionsargumentid description valid values always_onlineThe action conflicts with all other settings. on,offalways_use_httpsThe action conflicts with all other settings. The value is not required. automatic_https_rewritesThe automatic HTTPS rewrites. on,offbrowser_cache_ttlThe 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,31536000bypass_cache_on_cookieThe bypass cache on cookie. cookie tags browser_checkThe browser integrity check. on,offcache_levelThe cache level. bypass,aggressive,basic,simplified,cache_everythingcache_on_cookieThe cache on cookie. The cookie value cache_deception_armorThe cache deception armor. on,offdisable_securityThe action conflicts with email_obfuscation,server_side_exclude,waf.The value is not required. disable_appsThe disable apps. The value is not required disable_performanceThe disable performance. The value is not required. edge_cache_ttlThe 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,2419200email_obfuscationThe Email obfuscation. on,offexplicit_cache_controlThe origin cache control. on,offforwarding_urlThe action conflicts with all other settings. The value is not required. host_header_overrideThe host header override. The header value. image_load_optimizationThe image load optimization. on,offimage_size_optimizationThe image size optimization. on,offip_geolocationThe IP geography location header. on,offopportunistic_encryptionThe opportunistic encryption. on,offorigin_error_page_pass_thruThe origin error page pass-through. on,offresolve_overrideThe resolve override. The value for resolving URL override. response_bufferingThe response buffering. on,offscript_load_optimizationThe script load optimization. off,lossless,lossysslThe TLS settings. off,flexible,full,strict,origin_pullsecurity_levelThe security level. disable_security,always_use_httpsserver_side_excludeThe server side excludes. on,offserver_stale_contentThe server stale content. on,offsort_query_string_for_cacheThe sort query string. on,offtrue_client_ip_headerThe true client IP header. on,offwafThe Web Application Firewall. on,offminifyThe 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
ibmTerraform Provider.
published on Monday, Mar 30, 2026 by ibm-cloud
