1. Packages
  2. Ibm Provider
  3. API Docs
  4. CisRuleset
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.CisRuleset

Explore with Pulumi AI

Provides an IBM Cloud Internet Services ruleset resource to update and delete the ruleset of an instance or domain. To deploy the managed rulesets see entrypoint ruleset. For more information about IBM Cloud Internet Services rulesets, see ruleset instance. As there is no option to create a ruleset resource, it is required to use import module to generate the respective resource configurations(Reference) and use the import command to populate the state file, as stated at the end of this page.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

// update ruleset of a domain or instance
const config = new ibm.CisRuleset("config", {
    cisId: ibm_cis.instance.id,
    domainId: data.ibm_cis_domain.cis_domain.domain_id,
    rulesetId: "943c5da120114ea5831dc1edf8b6f769",
    rulesets: [{
        description: "Entry point ruleset",
        rules: [{
            id: _var.rule.id,
            action: "execute",
            actionParameters: [{
                id: _var.to_be_deployed_ruleset.id,
                overrides: [{
                    action: "log",
                    enabled: true,
                    overrideRules: [{
                        ruleId: _var.overriden_rule.id,
                        enabled: true,
                        action: "block",
                        scoreThreshold: 60,
                    }],
                    categories: [{
                        category: "wordpress",
                        enabled: true,
                        action: "block",
                    }],
                }],
            }],
            description: _var.rule.description,
            enabled: false,
            expression: "true",
            ref: _var.reference_rule.id,
        }],
    }],
});
Copy
import pulumi
import pulumi_ibm as ibm

# update ruleset of a domain or instance
config = ibm.CisRuleset("config",
    cis_id=ibm_cis["instance"]["id"],
    domain_id=data["ibm_cis_domain"]["cis_domain"]["domain_id"],
    ruleset_id="943c5da120114ea5831dc1edf8b6f769",
    rulesets=[{
        "description": "Entry point ruleset",
        "rules": [{
            "id": var["rule"]["id"],
            "action": "execute",
            "action_parameters": [{
                "id": var["to_be_deployed_ruleset"]["id"],
                "overrides": [{
                    "action": "log",
                    "enabled": True,
                    "override_rules": [{
                        "rule_id": var["overriden_rule"]["id"],
                        "enabled": True,
                        "action": "block",
                        "score_threshold": 60,
                    }],
                    "categories": [{
                        "category": "wordpress",
                        "enabled": True,
                        "action": "block",
                    }],
                }],
            }],
            "description": var["rule"]["description"],
            "enabled": False,
            "expression": "true",
            "ref": var["reference_rule"]["id"],
        }],
    }])
Copy
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 {
		// update ruleset of a domain or instance
		_, err := ibm.NewCisRuleset(ctx, "config", &ibm.CisRulesetArgs{
			CisId:     pulumi.Any(ibm_cis.Instance.Id),
			DomainId:  pulumi.Any(data.Ibm_cis_domain.Cis_domain.Domain_id),
			RulesetId: pulumi.String("943c5da120114ea5831dc1edf8b6f769"),
			Rulesets: ibm.CisRulesetRulesetArray{
				&ibm.CisRulesetRulesetArgs{
					Description: pulumi.String("Entry point ruleset"),
					Rules: ibm.CisRulesetRulesetRuleArray{
						&ibm.CisRulesetRulesetRuleArgs{
							Id:     pulumi.Any(_var.Rule.Id),
							Action: pulumi.String("execute"),
							ActionParameters: ibm.CisRulesetRulesetRuleActionParameterArray{
								&ibm.CisRulesetRulesetRuleActionParameterArgs{
									Id: pulumi.Any(_var.To_be_deployed_ruleset.Id),
									Overrides: ibm.CisRulesetRulesetRuleActionParameterOverrideArray{
										&ibm.CisRulesetRulesetRuleActionParameterOverrideArgs{
											Action:  pulumi.String("log"),
											Enabled: pulumi.Bool(true),
											OverrideRules: ibm.CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArray{
												&ibm.CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArgs{
													RuleId:         pulumi.Any(_var.Overriden_rule.Id),
													Enabled:        pulumi.Bool(true),
													Action:         pulumi.String("block"),
													ScoreThreshold: pulumi.Float64(60),
												},
											},
											Categories: ibm.CisRulesetRulesetRuleActionParameterOverrideCategoryArray{
												&ibm.CisRulesetRulesetRuleActionParameterOverrideCategoryArgs{
													Category: pulumi.String("wordpress"),
													Enabled:  pulumi.Bool(true),
													Action:   pulumi.String("block"),
												},
											},
										},
									},
								},
							},
							Description: pulumi.Any(_var.Rule.Description),
							Enabled:     pulumi.Bool(false),
							Expression:  pulumi.String("true"),
							Ref:         pulumi.Any(_var.Reference_rule.Id),
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    // update ruleset of a domain or instance
    var config = new Ibm.CisRuleset("config", new()
    {
        CisId = ibm_cis.Instance.Id,
        DomainId = data.Ibm_cis_domain.Cis_domain.Domain_id,
        RulesetId = "943c5da120114ea5831dc1edf8b6f769",
        Rulesets = new[]
        {
            new Ibm.Inputs.CisRulesetRulesetArgs
            {
                Description = "Entry point ruleset",
                Rules = new[]
                {
                    new Ibm.Inputs.CisRulesetRulesetRuleArgs
                    {
                        Id = @var.Rule.Id,
                        Action = "execute",
                        ActionParameters = new[]
                        {
                            new Ibm.Inputs.CisRulesetRulesetRuleActionParameterArgs
                            {
                                Id = @var.To_be_deployed_ruleset.Id,
                                Overrides = new[]
                                {
                                    new Ibm.Inputs.CisRulesetRulesetRuleActionParameterOverrideArgs
                                    {
                                        Action = "log",
                                        Enabled = true,
                                        OverrideRules = new[]
                                        {
                                            new Ibm.Inputs.CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArgs
                                            {
                                                RuleId = @var.Overriden_rule.Id,
                                                Enabled = true,
                                                Action = "block",
                                                ScoreThreshold = 60,
                                            },
                                        },
                                        Categories = new[]
                                        {
                                            new Ibm.Inputs.CisRulesetRulesetRuleActionParameterOverrideCategoryArgs
                                            {
                                                Category = "wordpress",
                                                Enabled = true,
                                                Action = "block",
                                            },
                                        },
                                    },
                                },
                            },
                        },
                        Description = @var.Rule.Description,
                        Enabled = false,
                        Expression = "true",
                        Ref = @var.Reference_rule.Id,
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CisRuleset;
import com.pulumi.ibm.CisRulesetArgs;
import com.pulumi.ibm.inputs.CisRulesetRulesetArgs;
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) {
        // update ruleset of a domain or instance
        var config = new CisRuleset("config", CisRulesetArgs.builder()
            .cisId(ibm_cis.instance().id())
            .domainId(data.ibm_cis_domain().cis_domain().domain_id())
            .rulesetId("943c5da120114ea5831dc1edf8b6f769")
            .rulesets(CisRulesetRulesetArgs.builder()
                .description("Entry point ruleset")
                .rules(CisRulesetRulesetRuleArgs.builder()
                    .id(var_.rule().id())
                    .action("execute")
                    .actionParameters(CisRulesetRulesetRuleActionParameterArgs.builder()
                        .id(var_.to_be_deployed_ruleset().id())
                        .overrides(CisRulesetRulesetRuleActionParameterOverrideArgs.builder()
                            .action("log")
                            .enabled(true)
                            .overrideRules(CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArgs.builder()
                                .ruleId(var_.overriden_rule().id())
                                .enabled(true)
                                .action("block")
                                .scoreThreshold(60)
                                .build())
                            .categories(CisRulesetRulesetRuleActionParameterOverrideCategoryArgs.builder()
                                .category("wordpress")
                                .enabled(true)
                                .action("block")
                                .build())
                            .build())
                        .build())
                    .description(var_.rule().description())
                    .enabled(false)
                    .expression("true")
                    .ref(var_.reference_rule().id())
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  # update ruleset of a domain or instance
  config:
    type: ibm:CisRuleset
    properties:
      cisId: ${ibm_cis.instance.id}
      domainId: ${data.ibm_cis_domain.cis_domain.domain_id}
      rulesetId: 943c5da120114ea5831dc1edf8b6f769
      rulesets:
        - description: Entry point ruleset
          rules:
            - id: ${var.rule.id}
              action: execute
              actionParameters:
                - id: ${var.to_be_deployed_ruleset.id}
                  overrides:
                    - action: log
                      enabled: true
                      overrideRules:
                        - ruleId: ${var.overriden_rule.id}
                          enabled: true
                          action: block
                          scoreThreshold: 60
                      categories:
                        - category: wordpress
                          enabled: true
                          action: block
              description: ${var.rule.description}
              enabled: false
              expression: 'true'
              ref: ${var.reference_rule.id}
Copy

Create CisRuleset Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CisRuleset(name: string, args: CisRulesetArgs, opts?: CustomResourceOptions);
@overload
def CisRuleset(resource_name: str,
               args: CisRulesetArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def CisRuleset(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               cis_id: Optional[str] = None,
               cis_ruleset_id: Optional[str] = None,
               domain_id: Optional[str] = None,
               ruleset_id: Optional[str] = None,
               rulesets: Optional[Sequence[CisRulesetRulesetArgs]] = None)
func NewCisRuleset(ctx *Context, name string, args CisRulesetArgs, opts ...ResourceOption) (*CisRuleset, error)
public CisRuleset(string name, CisRulesetArgs args, CustomResourceOptions? opts = null)
public CisRuleset(String name, CisRulesetArgs args)
public CisRuleset(String name, CisRulesetArgs args, CustomResourceOptions options)
type: ibm:CisRuleset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CisRulesetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CisRulesetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CisRulesetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CisRulesetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CisRulesetArgs
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 cisRulesetResource = new Ibm.CisRuleset("cisRulesetResource", new()
{
    CisId = "string",
    CisRulesetId = "string",
    DomainId = "string",
    RulesetId = "string",
    Rulesets = new[]
    {
        new Ibm.Inputs.CisRulesetRulesetArgs
        {
            Description = "string",
            Kind = "string",
            LastUpdated = "string",
            Name = "string",
            Phase = "string",
            Rules = new[]
            {
                new Ibm.Inputs.CisRulesetRulesetRuleArgs
                {
                    Action = "string",
                    ActionParameters = new[]
                    {
                        new Ibm.Inputs.CisRulesetRulesetRuleActionParameterArgs
                        {
                            Id = "string",
                            Overrides = new[]
                            {
                                new Ibm.Inputs.CisRulesetRulesetRuleActionParameterOverrideArgs
                                {
                                    Action = "string",
                                    Categories = new[]
                                    {
                                        new Ibm.Inputs.CisRulesetRulesetRuleActionParameterOverrideCategoryArgs
                                        {
                                            Action = "string",
                                            Category = "string",
                                            Enabled = false,
                                        },
                                    },
                                    Enabled = false,
                                    OverrideRules = new[]
                                    {
                                        new Ibm.Inputs.CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArgs
                                        {
                                            Action = "string",
                                            Enabled = false,
                                            RuleId = "string",
                                            ScoreThreshold = 0,
                                            SensitivityLevel = "string",
                                        },
                                    },
                                },
                            },
                            Responses = new[]
                            {
                                new Ibm.Inputs.CisRulesetRulesetRuleActionParameterResponseArgs
                                {
                                    Content = "string",
                                    ContentType = "string",
                                    StatusCode = 0,
                                },
                            },
                            Ruleset = "string",
                            Rulesets = new[]
                            {
                                "string",
                            },
                            Version = "string",
                        },
                    },
                    Categories = new[]
                    {
                        "string",
                    },
                    Description = "string",
                    Enabled = false,
                    Expression = "string",
                    Id = "string",
                    LastUpdatedAt = "string",
                    Logging = 
                    {
                        { "string", false },
                    },
                    Positions = new[]
                    {
                        new Ibm.Inputs.CisRulesetRulesetRulePositionArgs
                        {
                            After = "string",
                            Before = "string",
                            Index = 0,
                        },
                    },
                    Ref = "string",
                    Version = "string",
                },
            },
            RulesetId = "string",
            Version = "string",
        },
    },
});
Copy
example, err := ibm.NewCisRuleset(ctx, "cisRulesetResource", &ibm.CisRulesetArgs{
CisId: pulumi.String("string"),
CisRulesetId: pulumi.String("string"),
DomainId: pulumi.String("string"),
RulesetId: pulumi.String("string"),
Rulesets: .CisRulesetRulesetArray{
&.CisRulesetRulesetArgs{
Description: pulumi.String("string"),
Kind: pulumi.String("string"),
LastUpdated: pulumi.String("string"),
Name: pulumi.String("string"),
Phase: pulumi.String("string"),
Rules: .CisRulesetRulesetRuleArray{
&.CisRulesetRulesetRuleArgs{
Action: pulumi.String("string"),
ActionParameters: .CisRulesetRulesetRuleActionParameterArray{
&.CisRulesetRulesetRuleActionParameterArgs{
Id: pulumi.String("string"),
Overrides: .CisRulesetRulesetRuleActionParameterOverrideArray{
&.CisRulesetRulesetRuleActionParameterOverrideArgs{
Action: pulumi.String("string"),
Categories: .CisRulesetRulesetRuleActionParameterOverrideCategoryArray{
&.CisRulesetRulesetRuleActionParameterOverrideCategoryArgs{
Action: pulumi.String("string"),
Category: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
},
Enabled: pulumi.Bool(false),
OverrideRules: .CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArray{
&.CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArgs{
Action: pulumi.String("string"),
Enabled: pulumi.Bool(false),
RuleId: pulumi.String("string"),
ScoreThreshold: pulumi.Float64(0),
SensitivityLevel: pulumi.String("string"),
},
},
},
},
Responses: .CisRulesetRulesetRuleActionParameterResponseArray{
&.CisRulesetRulesetRuleActionParameterResponseArgs{
Content: pulumi.String("string"),
ContentType: pulumi.String("string"),
StatusCode: pulumi.Float64(0),
},
},
Ruleset: pulumi.String("string"),
Rulesets: pulumi.StringArray{
pulumi.String("string"),
},
Version: pulumi.String("string"),
},
},
Categories: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Expression: pulumi.String("string"),
Id: pulumi.String("string"),
LastUpdatedAt: pulumi.String("string"),
Logging: pulumi.BoolMap{
"string": pulumi.Bool(false),
},
Positions: .CisRulesetRulesetRulePositionArray{
&.CisRulesetRulesetRulePositionArgs{
After: pulumi.String("string"),
Before: pulumi.String("string"),
Index: pulumi.Float64(0),
},
},
Ref: pulumi.String("string"),
Version: pulumi.String("string"),
},
},
RulesetId: pulumi.String("string"),
Version: pulumi.String("string"),
},
},
})
Copy
var cisRulesetResource = new CisRuleset("cisRulesetResource", CisRulesetArgs.builder()
    .cisId("string")
    .cisRulesetId("string")
    .domainId("string")
    .rulesetId("string")
    .rulesets(CisRulesetRulesetArgs.builder()
        .description("string")
        .kind("string")
        .lastUpdated("string")
        .name("string")
        .phase("string")
        .rules(CisRulesetRulesetRuleArgs.builder()
            .action("string")
            .actionParameters(CisRulesetRulesetRuleActionParameterArgs.builder()
                .id("string")
                .overrides(CisRulesetRulesetRuleActionParameterOverrideArgs.builder()
                    .action("string")
                    .categories(CisRulesetRulesetRuleActionParameterOverrideCategoryArgs.builder()
                        .action("string")
                        .category("string")
                        .enabled(false)
                        .build())
                    .enabled(false)
                    .overrideRules(CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArgs.builder()
                        .action("string")
                        .enabled(false)
                        .ruleId("string")
                        .scoreThreshold(0)
                        .sensitivityLevel("string")
                        .build())
                    .build())
                .responses(CisRulesetRulesetRuleActionParameterResponseArgs.builder()
                    .content("string")
                    .contentType("string")
                    .statusCode(0)
                    .build())
                .ruleset("string")
                .rulesets("string")
                .version("string")
                .build())
            .categories("string")
            .description("string")
            .enabled(false)
            .expression("string")
            .id("string")
            .lastUpdatedAt("string")
            .logging(Map.of("string", false))
            .positions(CisRulesetRulesetRulePositionArgs.builder()
                .after("string")
                .before("string")
                .index(0)
                .build())
            .ref("string")
            .version("string")
            .build())
        .rulesetId("string")
        .version("string")
        .build())
    .build());
Copy
cis_ruleset_resource = ibm.CisRuleset("cisRulesetResource",
    cis_id="string",
    cis_ruleset_id="string",
    domain_id="string",
    ruleset_id="string",
    rulesets=[{
        "description": "string",
        "kind": "string",
        "last_updated": "string",
        "name": "string",
        "phase": "string",
        "rules": [{
            "action": "string",
            "action_parameters": [{
                "id": "string",
                "overrides": [{
                    "action": "string",
                    "categories": [{
                        "action": "string",
                        "category": "string",
                        "enabled": False,
                    }],
                    "enabled": False,
                    "override_rules": [{
                        "action": "string",
                        "enabled": False,
                        "rule_id": "string",
                        "score_threshold": 0,
                        "sensitivity_level": "string",
                    }],
                }],
                "responses": [{
                    "content": "string",
                    "content_type": "string",
                    "status_code": 0,
                }],
                "ruleset": "string",
                "rulesets": ["string"],
                "version": "string",
            }],
            "categories": ["string"],
            "description": "string",
            "enabled": False,
            "expression": "string",
            "id": "string",
            "last_updated_at": "string",
            "logging": {
                "string": False,
            },
            "positions": [{
                "after": "string",
                "before": "string",
                "index": 0,
            }],
            "ref": "string",
            "version": "string",
        }],
        "ruleset_id": "string",
        "version": "string",
    }])
Copy
const cisRulesetResource = new ibm.CisRuleset("cisRulesetResource", {
    cisId: "string",
    cisRulesetId: "string",
    domainId: "string",
    rulesetId: "string",
    rulesets: [{
        description: "string",
        kind: "string",
        lastUpdated: "string",
        name: "string",
        phase: "string",
        rules: [{
            action: "string",
            actionParameters: [{
                id: "string",
                overrides: [{
                    action: "string",
                    categories: [{
                        action: "string",
                        category: "string",
                        enabled: false,
                    }],
                    enabled: false,
                    overrideRules: [{
                        action: "string",
                        enabled: false,
                        ruleId: "string",
                        scoreThreshold: 0,
                        sensitivityLevel: "string",
                    }],
                }],
                responses: [{
                    content: "string",
                    contentType: "string",
                    statusCode: 0,
                }],
                ruleset: "string",
                rulesets: ["string"],
                version: "string",
            }],
            categories: ["string"],
            description: "string",
            enabled: false,
            expression: "string",
            id: "string",
            lastUpdatedAt: "string",
            logging: {
                string: false,
            },
            positions: [{
                after: "string",
                before: "string",
                index: 0,
            }],
            ref: "string",
            version: "string",
        }],
        rulesetId: "string",
        version: "string",
    }],
});
Copy
type: ibm:CisRuleset
properties:
    cisId: string
    cisRulesetId: string
    domainId: string
    rulesetId: string
    rulesets:
        - description: string
          kind: string
          lastUpdated: string
          name: string
          phase: string
          rules:
            - action: string
              actionParameters:
                - id: string
                  overrides:
                    - action: string
                      categories:
                        - action: string
                          category: string
                          enabled: false
                      enabled: false
                      overrideRules:
                        - action: string
                          enabled: false
                          ruleId: string
                          scoreThreshold: 0
                          sensitivityLevel: string
                  responses:
                    - content: string
                      contentType: string
                      statusCode: 0
                  ruleset: string
                  rulesets:
                    - string
                  version: string
              categories:
                - string
              description: string
              enabled: false
              expression: string
              id: string
              lastUpdatedAt: string
              logging:
                string: false
              positions:
                - after: string
                  before: string
                  index: 0
              ref: string
              version: string
          rulesetId: string
          version: string
Copy

CisRuleset 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 CisRuleset resource accepts the following input properties:

CisId This property is required. string
The ID of the CIS service instance.
CisRulesetId string
DomainId string
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
RulesetId string
ID of the ruleset.
Rulesets List<CisRulesetRuleset>

Values that will be updated.

Nested scheme of rulesets

CisId This property is required. string
The ID of the CIS service instance.
CisRulesetId string
DomainId string
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
RulesetId string
ID of the ruleset.
Rulesets []CisRulesetRulesetArgs

Values that will be updated.

Nested scheme of rulesets

cisId This property is required. String
The ID of the CIS service instance.
cisRulesetId String
domainId String
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
rulesetId String
ID of the ruleset.
rulesets List<CisRulesetRuleset>

Values that will be updated.

Nested scheme of rulesets

cisId This property is required. string
The ID of the CIS service instance.
cisRulesetId string
domainId string
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
rulesetId string
ID of the ruleset.
rulesets CisRulesetRuleset[]

Values that will be updated.

Nested scheme of rulesets

cis_id This property is required. str
The ID of the CIS service instance.
cis_ruleset_id str
domain_id str
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
ruleset_id str
ID of the ruleset.
rulesets Sequence[CisRulesetRulesetArgs]

Values that will be updated.

Nested scheme of rulesets

cisId This property is required. String
The ID of the CIS service instance.
cisRulesetId String
domainId String
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
rulesetId String
ID of the ruleset.
rulesets List<Property Map>

Values that will be updated.

Nested scheme of rulesets

Outputs

All input properties are implicitly available as output properties. Additionally, the CisRuleset resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CisRuleset Resource

Get an existing CisRuleset 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?: CisRulesetState, opts?: CustomResourceOptions): CisRuleset
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cis_id: Optional[str] = None,
        cis_ruleset_id: Optional[str] = None,
        domain_id: Optional[str] = None,
        ruleset_id: Optional[str] = None,
        rulesets: Optional[Sequence[CisRulesetRulesetArgs]] = None) -> CisRuleset
func GetCisRuleset(ctx *Context, name string, id IDInput, state *CisRulesetState, opts ...ResourceOption) (*CisRuleset, error)
public static CisRuleset Get(string name, Input<string> id, CisRulesetState? state, CustomResourceOptions? opts = null)
public static CisRuleset get(String name, Output<String> id, CisRulesetState state, CustomResourceOptions options)
resources:  _:    type: ibm:CisRuleset    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CisId string
The ID of the CIS service instance.
CisRulesetId string
DomainId string
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
RulesetId string
ID of the ruleset.
Rulesets List<CisRulesetRuleset>

Values that will be updated.

Nested scheme of rulesets

CisId string
The ID of the CIS service instance.
CisRulesetId string
DomainId string
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
RulesetId string
ID of the ruleset.
Rulesets []CisRulesetRulesetArgs

Values that will be updated.

Nested scheme of rulesets

cisId String
The ID of the CIS service instance.
cisRulesetId String
domainId String
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
rulesetId String
ID of the ruleset.
rulesets List<CisRulesetRuleset>

Values that will be updated.

Nested scheme of rulesets

cisId string
The ID of the CIS service instance.
cisRulesetId string
domainId string
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
rulesetId string
ID of the ruleset.
rulesets CisRulesetRuleset[]

Values that will be updated.

Nested scheme of rulesets

cis_id str
The ID of the CIS service instance.
cis_ruleset_id str
domain_id str
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
ruleset_id str
ID of the ruleset.
rulesets Sequence[CisRulesetRulesetArgs]

Values that will be updated.

Nested scheme of rulesets

cisId String
The ID of the CIS service instance.
cisRulesetId String
domainId String
The Domain/Zone ID of the CIS service instance. If domain_id is provided, the request is made at the zone/domain level; otherwise, the request is made at the instance level.
rulesetId String
ID of the ruleset.
rulesets List<Property Map>

Values that will be updated.

Nested scheme of rulesets

Supporting Types

CisRulesetRuleset
, CisRulesetRulesetArgs

Description string
Description of the ruleset.
Kind string
Kind of the rulesets
LastUpdated string
Rulesets last updated at
Name string
Name of the rulesets
Phase string
Phase of the rulesets
Rules List<CisRulesetRulesetRule>
Rules that are required to be added/modified. Nested scheme of rules
RulesetId string
ID of the ruleset.
Version string
Version of the rulesets
Description string
Description of the ruleset.
Kind string
Kind of the rulesets
LastUpdated string
Rulesets last updated at
Name string
Name of the rulesets
Phase string
Phase of the rulesets
Rules []CisRulesetRulesetRule
Rules that are required to be added/modified. Nested scheme of rules
RulesetId string
ID of the ruleset.
Version string
Version of the rulesets
description String
Description of the ruleset.
kind String
Kind of the rulesets
lastUpdated String
Rulesets last updated at
name String
Name of the rulesets
phase String
Phase of the rulesets
rules List<CisRulesetRulesetRule>
Rules that are required to be added/modified. Nested scheme of rules
rulesetId String
ID of the ruleset.
version String
Version of the rulesets
description string
Description of the ruleset.
kind string
Kind of the rulesets
lastUpdated string
Rulesets last updated at
name string
Name of the rulesets
phase string
Phase of the rulesets
rules CisRulesetRulesetRule[]
Rules that are required to be added/modified. Nested scheme of rules
rulesetId string
ID of the ruleset.
version string
Version of the rulesets
description str
Description of the ruleset.
kind str
Kind of the rulesets
last_updated str
Rulesets last updated at
name str
Name of the rulesets
phase str
Phase of the rulesets
rules Sequence[CisRulesetRulesetRule]
Rules that are required to be added/modified. Nested scheme of rules
ruleset_id str
ID of the ruleset.
version str
Version of the rulesets
description String
Description of the ruleset.
kind String
Kind of the rulesets
lastUpdated String
Rulesets last updated at
name String
Name of the rulesets
phase String
Phase of the rulesets
rules List<Property Map>
Rules that are required to be added/modified. Nested scheme of rules
rulesetId String
ID of the ruleset.
version String
Version of the rulesets

CisRulesetRulesetRule
, CisRulesetRulesetRuleArgs

Action string
. Action of the rule.
ActionParameters List<CisRulesetRulesetRuleActionParameter>
Parameters that are used to modify the rules. Nested scheme of action parameters
Categories List<string>
Categories of the rulesets rule
Description string
Description of the rule.
Enabled bool
Enable/Disable ruleset rule
Expression string
Expression used by the rule to match the incoming request.
Id string
ID of the rule.
LastUpdatedAt string
Rulesets rule last updated at
Logging Dictionary<string, bool>
Logging of the rulesets rule
Positions List<CisRulesetRulesetRulePosition>
Position of rulesets rule
Ref string
ID of an existing rule. If not provided, it is populated by the ID of the created rule.
Version string
Version of the rulesets rule
Action string
. Action of the rule.
ActionParameters []CisRulesetRulesetRuleActionParameter
Parameters that are used to modify the rules. Nested scheme of action parameters
Categories []string
Categories of the rulesets rule
Description string
Description of the rule.
Enabled bool
Enable/Disable ruleset rule
Expression string
Expression used by the rule to match the incoming request.
Id string
ID of the rule.
LastUpdatedAt string
Rulesets rule last updated at
Logging map[string]bool
Logging of the rulesets rule
Positions []CisRulesetRulesetRulePosition
Position of rulesets rule
Ref string
ID of an existing rule. If not provided, it is populated by the ID of the created rule.
Version string
Version of the rulesets rule
action String
. Action of the rule.
actionParameters List<CisRulesetRulesetRuleActionParameter>
Parameters that are used to modify the rules. Nested scheme of action parameters
categories List<String>
Categories of the rulesets rule
description String
Description of the rule.
enabled Boolean
Enable/Disable ruleset rule
expression String
Expression used by the rule to match the incoming request.
id String
ID of the rule.
lastUpdatedAt String
Rulesets rule last updated at
logging Map<String,Boolean>
Logging of the rulesets rule
positions List<CisRulesetRulesetRulePosition>
Position of rulesets rule
ref String
ID of an existing rule. If not provided, it is populated by the ID of the created rule.
version String
Version of the rulesets rule
action string
. Action of the rule.
actionParameters CisRulesetRulesetRuleActionParameter[]
Parameters that are used to modify the rules. Nested scheme of action parameters
categories string[]
Categories of the rulesets rule
description string
Description of the rule.
enabled boolean
Enable/Disable ruleset rule
expression string
Expression used by the rule to match the incoming request.
id string
ID of the rule.
lastUpdatedAt string
Rulesets rule last updated at
logging {[key: string]: boolean}
Logging of the rulesets rule
positions CisRulesetRulesetRulePosition[]
Position of rulesets rule
ref string
ID of an existing rule. If not provided, it is populated by the ID of the created rule.
version string
Version of the rulesets rule
action str
. Action of the rule.
action_parameters Sequence[CisRulesetRulesetRuleActionParameter]
Parameters that are used to modify the rules. Nested scheme of action parameters
categories Sequence[str]
Categories of the rulesets rule
description str
Description of the rule.
enabled bool
Enable/Disable ruleset rule
expression str
Expression used by the rule to match the incoming request.
id str
ID of the rule.
last_updated_at str
Rulesets rule last updated at
logging Mapping[str, bool]
Logging of the rulesets rule
positions Sequence[CisRulesetRulesetRulePosition]
Position of rulesets rule
ref str
ID of an existing rule. If not provided, it is populated by the ID of the created rule.
version str
Version of the rulesets rule
action String
. Action of the rule.
actionParameters List<Property Map>
Parameters that are used to modify the rules. Nested scheme of action parameters
categories List<String>
Categories of the rulesets rule
description String
Description of the rule.
enabled Boolean
Enable/Disable ruleset rule
expression String
Expression used by the rule to match the incoming request.
id String
ID of the rule.
lastUpdatedAt String
Rulesets rule last updated at
logging Map<Boolean>
Logging of the rulesets rule
positions List<Property Map>
Position of rulesets rule
ref String
ID of an existing rule. If not provided, it is populated by the ID of the created rule.
version String
Version of the rulesets rule

CisRulesetRulesetRuleActionParameter
, CisRulesetRulesetRuleActionParameterArgs

Id string
ID of the managed ruleset to be deployed.
Overrides List<CisRulesetRulesetRuleActionParameterOverride>

Provides the parameters that are to be overridden.

Nested scheme of overrides

Responses List<CisRulesetRulesetRuleActionParameterResponse>
Action parameters response of the rulesets rule
Ruleset string
Ruleset ID of the ruleset to apply action to
Rulesets List<string>

Values that will be updated.

Nested scheme of rulesets

Version string
Version of the ruleset
Id string
ID of the managed ruleset to be deployed.
Overrides []CisRulesetRulesetRuleActionParameterOverride

Provides the parameters that are to be overridden.

Nested scheme of overrides

Responses []CisRulesetRulesetRuleActionParameterResponse
Action parameters response of the rulesets rule
Ruleset string
Ruleset ID of the ruleset to apply action to
Rulesets []string

Values that will be updated.

Nested scheme of rulesets

Version string
Version of the ruleset
id String
ID of the managed ruleset to be deployed.
overrides List<CisRulesetRulesetRuleActionParameterOverride>

Provides the parameters that are to be overridden.

Nested scheme of overrides

responses List<CisRulesetRulesetRuleActionParameterResponse>
Action parameters response of the rulesets rule
ruleset String
Ruleset ID of the ruleset to apply action to
rulesets List<String>

Values that will be updated.

Nested scheme of rulesets

version String
Version of the ruleset
id string
ID of the managed ruleset to be deployed.
overrides CisRulesetRulesetRuleActionParameterOverride[]

Provides the parameters that are to be overridden.

Nested scheme of overrides

responses CisRulesetRulesetRuleActionParameterResponse[]
Action parameters response of the rulesets rule
ruleset string
Ruleset ID of the ruleset to apply action to
rulesets string[]

Values that will be updated.

Nested scheme of rulesets

version string
Version of the ruleset
id str
ID of the managed ruleset to be deployed.
overrides Sequence[CisRulesetRulesetRuleActionParameterOverride]

Provides the parameters that are to be overridden.

Nested scheme of overrides

responses Sequence[CisRulesetRulesetRuleActionParameterResponse]
Action parameters response of the rulesets rule
ruleset str
Ruleset ID of the ruleset to apply action to
rulesets Sequence[str]

Values that will be updated.

Nested scheme of rulesets

version str
Version of the ruleset
id String
ID of the managed ruleset to be deployed.
overrides List<Property Map>

Provides the parameters that are to be overridden.

Nested scheme of overrides

responses List<Property Map>
Action parameters response of the rulesets rule
ruleset String
Ruleset ID of the ruleset to apply action to
rulesets List<String>

Values that will be updated.

Nested scheme of rulesets

version String
Version of the ruleset

CisRulesetRulesetRuleActionParameterOverride
, CisRulesetRulesetRuleActionParameterOverrideArgs

Action string
Action of the rule. Examples: log, block, skip.
Categories List<CisRulesetRulesetRuleActionParameterOverrideCategory>
Nested scheme of categories
Enabled bool
Enables/Disables the rule.
OverrideRules List<CisRulesetRulesetRuleActionParameterOverrideOverrideRule>

List of details of rules to be overridden. These rules are already present in the managed ruleset.

Nested scheme of override_rules

Action string
Action of the rule. Examples: log, block, skip.
Categories []CisRulesetRulesetRuleActionParameterOverrideCategory
Nested scheme of categories
Enabled bool
Enables/Disables the rule.
OverrideRules []CisRulesetRulesetRuleActionParameterOverrideOverrideRule

List of details of rules to be overridden. These rules are already present in the managed ruleset.

Nested scheme of override_rules

action String
Action of the rule. Examples: log, block, skip.
categories List<CisRulesetRulesetRuleActionParameterOverrideCategory>
Nested scheme of categories
enabled Boolean
Enables/Disables the rule.
overrideRules List<CisRulesetRulesetRuleActionParameterOverrideOverrideRule>

List of details of rules to be overridden. These rules are already present in the managed ruleset.

Nested scheme of override_rules

action string
Action of the rule. Examples: log, block, skip.
categories CisRulesetRulesetRuleActionParameterOverrideCategory[]
Nested scheme of categories
enabled boolean
Enables/Disables the rule.
overrideRules CisRulesetRulesetRuleActionParameterOverrideOverrideRule[]

List of details of rules to be overridden. These rules are already present in the managed ruleset.

Nested scheme of override_rules

action str
Action of the rule. Examples: log, block, skip.
categories Sequence[CisRulesetRulesetRuleActionParameterOverrideCategory]
Nested scheme of categories
enabled bool
Enables/Disables the rule.
override_rules Sequence[CisRulesetRulesetRuleActionParameterOverrideOverrideRule]

List of details of rules to be overridden. These rules are already present in the managed ruleset.

Nested scheme of override_rules

action String
Action of the rule. Examples: log, block, skip.
categories List<Property Map>
Nested scheme of categories
enabled Boolean
Enables/Disables the rule.
overrideRules List<Property Map>

List of details of rules to be overridden. These rules are already present in the managed ruleset.

Nested scheme of override_rules

CisRulesetRulesetRuleActionParameterOverrideCategory
, CisRulesetRulesetRuleActionParameterOverrideCategoryArgs

Action string
Action of the rule.
Category string
Category of the rule.
Enabled bool
Enables/Disables the rule.
Action string
Action of the rule.
Category string
Category of the rule.
Enabled bool
Enables/Disables the rule.
action String
Action of the rule.
category String
Category of the rule.
enabled Boolean
Enables/Disables the rule.
action string
Action of the rule.
category string
Category of the rule.
enabled boolean
Enables/Disables the rule.
action str
Action of the rule.
category str
Category of the rule.
enabled bool
Enables/Disables the rule.
action String
Action of the rule.
category String
Category of the rule.
enabled Boolean
Enables/Disables the rule.

CisRulesetRulesetRuleActionParameterOverrideOverrideRule
, CisRulesetRulesetRuleActionParameterOverrideOverrideRuleArgs

Action string
Action of the rule.
Enabled bool
Enables/Disables the rule.
RuleId string
ID of the rule.
ScoreThreshold double
Score threshold of the rule. Allowed values are 25, 40, 60 for high, medium and low sensitivity respectively.
SensitivityLevel string
Sensitivity level
Action string
Action of the rule.
Enabled bool
Enables/Disables the rule.
RuleId string
ID of the rule.
ScoreThreshold float64
Score threshold of the rule. Allowed values are 25, 40, 60 for high, medium and low sensitivity respectively.
SensitivityLevel string
Sensitivity level
action String
Action of the rule.
enabled Boolean
Enables/Disables the rule.
ruleId String
ID of the rule.
scoreThreshold Double
Score threshold of the rule. Allowed values are 25, 40, 60 for high, medium and low sensitivity respectively.
sensitivityLevel String
Sensitivity level
action string
Action of the rule.
enabled boolean
Enables/Disables the rule.
ruleId string
ID of the rule.
scoreThreshold number
Score threshold of the rule. Allowed values are 25, 40, 60 for high, medium and low sensitivity respectively.
sensitivityLevel string
Sensitivity level
action str
Action of the rule.
enabled bool
Enables/Disables the rule.
rule_id str
ID of the rule.
score_threshold float
Score threshold of the rule. Allowed values are 25, 40, 60 for high, medium and low sensitivity respectively.
sensitivity_level str
Sensitivity level
action String
Action of the rule.
enabled Boolean
Enables/Disables the rule.
ruleId String
ID of the rule.
scoreThreshold Number
Score threshold of the rule. Allowed values are 25, 40, 60 for high, medium and low sensitivity respectively.
sensitivityLevel String
Sensitivity level

CisRulesetRulesetRuleActionParameterResponse
, CisRulesetRulesetRuleActionParameterResponseArgs

Content string
Action parameters response content of the rulesets rule
ContentType string
Action parameters response type of the rulesets rule
StatusCode double
Action parameters response status code of the rulesets rule
Content string
Action parameters response content of the rulesets rule
ContentType string
Action parameters response type of the rulesets rule
StatusCode float64
Action parameters response status code of the rulesets rule
content String
Action parameters response content of the rulesets rule
contentType String
Action parameters response type of the rulesets rule
statusCode Double
Action parameters response status code of the rulesets rule
content string
Action parameters response content of the rulesets rule
contentType string
Action parameters response type of the rulesets rule
statusCode number
Action parameters response status code of the rulesets rule
content str
Action parameters response content of the rulesets rule
content_type str
Action parameters response type of the rulesets rule
status_code float
Action parameters response status code of the rulesets rule
content String
Action parameters response content of the rulesets rule
contentType String
Action parameters response type of the rulesets rule
statusCode Number
Action parameters response status code of the rulesets rule

CisRulesetRulesetRulePosition
, CisRulesetRulesetRulePositionArgs

After string
Ruleset before position of rulesets rule
Before string
Ruleset after position of rulesets rule
Index double
Index of rulesets rule
After string
Ruleset before position of rulesets rule
Before string
Ruleset after position of rulesets rule
Index float64
Index of rulesets rule
after String
Ruleset before position of rulesets rule
before String
Ruleset after position of rulesets rule
index Double
Index of rulesets rule
after string
Ruleset before position of rulesets rule
before string
Ruleset after position of rulesets rule
index number
Index of rulesets rule
after str
Ruleset before position of rulesets rule
before str
Ruleset after position of rulesets rule
index float
Index of rulesets rule
after String
Ruleset before position of rulesets rule
before String
Ruleset after position of rulesets rule
index Number
Index of rulesets rule

Import

Example

terraform

$ pulumi import ibm:index/cisRuleset:CisRuleset config 48996f0da6ed76251b475971b097205c:9caf68812ae9b3f0377fdf986751a78f:crn:v1:bluemix:public:internet-svcs:global:a/4ea1882a2d3401ed1e459979941966ea:31fa970d-51d0-4b05-893e-251cba75a7b3::
Copy

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.