1. Packages
  2. Ibm Provider
  3. API Docs
  4. CisFirewallRule
ibm 1.78.2 published on Tuesday, May 13, 2025 by ibm-cloud

ibm.CisFirewallRule

Explore with Pulumi AI

ibm logo
ibm 1.78.2 published on Tuesday, May 13, 2025 by ibm-cloud

    Create CisFirewallRule Resource

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

    Constructor syntax

    new CisFirewallRule(name: string, args: CisFirewallRuleArgs, opts?: CustomResourceOptions);
    @overload
    def CisFirewallRule(resource_name: str,
                        args: CisFirewallRuleArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CisFirewallRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        action: Optional[str] = None,
                        cis_id: Optional[str] = None,
                        domain_id: Optional[str] = None,
                        filter_id: Optional[str] = None,
                        cis_firewall_rule_id: Optional[str] = None,
                        description: Optional[str] = None,
                        paused: Optional[bool] = None,
                        priority: Optional[float] = None)
    func NewCisFirewallRule(ctx *Context, name string, args CisFirewallRuleArgs, opts ...ResourceOption) (*CisFirewallRule, error)
    public CisFirewallRule(string name, CisFirewallRuleArgs args, CustomResourceOptions? opts = null)
    public CisFirewallRule(String name, CisFirewallRuleArgs args)
    public CisFirewallRule(String name, CisFirewallRuleArgs args, CustomResourceOptions options)
    
    type: ibm:CisFirewallRule
    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 CisFirewallRuleArgs
    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 CisFirewallRuleArgs
    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 CisFirewallRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CisFirewallRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CisFirewallRuleArgs
    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 cisFirewallRuleResource = new Ibm.CisFirewallRule("cisFirewallRuleResource", new()
    {
        Action = "string",
        CisId = "string",
        DomainId = "string",
        FilterId = "string",
        CisFirewallRuleId = "string",
        Description = "string",
        Paused = false,
        Priority = 0,
    });
    
    example, err := ibm.NewCisFirewallRule(ctx, "cisFirewallRuleResource", &ibm.CisFirewallRuleArgs{
    	Action:            pulumi.String("string"),
    	CisId:             pulumi.String("string"),
    	DomainId:          pulumi.String("string"),
    	FilterId:          pulumi.String("string"),
    	CisFirewallRuleId: pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	Paused:            pulumi.Bool(false),
    	Priority:          pulumi.Float64(0),
    })
    
    var cisFirewallRuleResource = new CisFirewallRule("cisFirewallRuleResource", CisFirewallRuleArgs.builder()
        .action("string")
        .cisId("string")
        .domainId("string")
        .filterId("string")
        .cisFirewallRuleId("string")
        .description("string")
        .paused(false)
        .priority(0.0)
        .build());
    
    cis_firewall_rule_resource = ibm.CisFirewallRule("cisFirewallRuleResource",
        action="string",
        cis_id="string",
        domain_id="string",
        filter_id="string",
        cis_firewall_rule_id="string",
        description="string",
        paused=False,
        priority=0)
    
    const cisFirewallRuleResource = new ibm.CisFirewallRule("cisFirewallRuleResource", {
        action: "string",
        cisId: "string",
        domainId: "string",
        filterId: "string",
        cisFirewallRuleId: "string",
        description: "string",
        paused: false,
        priority: 0,
    });
    
    type: ibm:CisFirewallRule
    properties:
        action: string
        cisFirewallRuleId: string
        cisId: string
        description: string
        domainId: string
        filterId: string
        paused: false
        priority: 0
    

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

    Action string
    Firewallrules Action
    CisId string
    CIS instance crn
    DomainId string
    Associated CIS domain
    FilterId string
    Firewallrules Existing FilterID
    CisFirewallRuleId string
    Description string
    Firewallrules Description
    Paused bool
    Firewallrules Paused
    Priority double
    Firewallrules Action
    Action string
    Firewallrules Action
    CisId string
    CIS instance crn
    DomainId string
    Associated CIS domain
    FilterId string
    Firewallrules Existing FilterID
    CisFirewallRuleId string
    Description string
    Firewallrules Description
    Paused bool
    Firewallrules Paused
    Priority float64
    Firewallrules Action
    action String
    Firewallrules Action
    cisId String
    CIS instance crn
    domainId String
    Associated CIS domain
    filterId String
    Firewallrules Existing FilterID
    cisFirewallRuleId String
    description String
    Firewallrules Description
    paused Boolean
    Firewallrules Paused
    priority Double
    Firewallrules Action
    action string
    Firewallrules Action
    cisId string
    CIS instance crn
    domainId string
    Associated CIS domain
    filterId string
    Firewallrules Existing FilterID
    cisFirewallRuleId string
    description string
    Firewallrules Description
    paused boolean
    Firewallrules Paused
    priority number
    Firewallrules Action
    action str
    Firewallrules Action
    cis_id str
    CIS instance crn
    domain_id str
    Associated CIS domain
    filter_id str
    Firewallrules Existing FilterID
    cis_firewall_rule_id str
    description str
    Firewallrules Description
    paused bool
    Firewallrules Paused
    priority float
    Firewallrules Action
    action String
    Firewallrules Action
    cisId String
    CIS instance crn
    domainId String
    Associated CIS domain
    filterId String
    Firewallrules Existing FilterID
    cisFirewallRuleId String
    description String
    Firewallrules Description
    paused Boolean
    Firewallrules Paused
    priority Number
    Firewallrules Action

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CisFirewallRule 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 CisFirewallRule Resource

    Get an existing CisFirewallRule 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?: CisFirewallRuleState, opts?: CustomResourceOptions): CisFirewallRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            cis_firewall_rule_id: Optional[str] = None,
            cis_id: Optional[str] = None,
            description: Optional[str] = None,
            domain_id: Optional[str] = None,
            filter_id: Optional[str] = None,
            paused: Optional[bool] = None,
            priority: Optional[float] = None) -> CisFirewallRule
    func GetCisFirewallRule(ctx *Context, name string, id IDInput, state *CisFirewallRuleState, opts ...ResourceOption) (*CisFirewallRule, error)
    public static CisFirewallRule Get(string name, Input<string> id, CisFirewallRuleState? state, CustomResourceOptions? opts = null)
    public static CisFirewallRule get(String name, Output<String> id, CisFirewallRuleState state, CustomResourceOptions options)
    resources:  _:    type: ibm:CisFirewallRule    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.
    The following state arguments are supported:
    Action string
    Firewallrules Action
    CisFirewallRuleId string
    CisId string
    CIS instance crn
    Description string
    Firewallrules Description
    DomainId string
    Associated CIS domain
    FilterId string
    Firewallrules Existing FilterID
    Paused bool
    Firewallrules Paused
    Priority double
    Firewallrules Action
    Action string
    Firewallrules Action
    CisFirewallRuleId string
    CisId string
    CIS instance crn
    Description string
    Firewallrules Description
    DomainId string
    Associated CIS domain
    FilterId string
    Firewallrules Existing FilterID
    Paused bool
    Firewallrules Paused
    Priority float64
    Firewallrules Action
    action String
    Firewallrules Action
    cisFirewallRuleId String
    cisId String
    CIS instance crn
    description String
    Firewallrules Description
    domainId String
    Associated CIS domain
    filterId String
    Firewallrules Existing FilterID
    paused Boolean
    Firewallrules Paused
    priority Double
    Firewallrules Action
    action string
    Firewallrules Action
    cisFirewallRuleId string
    cisId string
    CIS instance crn
    description string
    Firewallrules Description
    domainId string
    Associated CIS domain
    filterId string
    Firewallrules Existing FilterID
    paused boolean
    Firewallrules Paused
    priority number
    Firewallrules Action
    action str
    Firewallrules Action
    cis_firewall_rule_id str
    cis_id str
    CIS instance crn
    description str
    Firewallrules Description
    domain_id str
    Associated CIS domain
    filter_id str
    Firewallrules Existing FilterID
    paused bool
    Firewallrules Paused
    priority float
    Firewallrules Action
    action String
    Firewallrules Action
    cisFirewallRuleId String
    cisId String
    CIS instance crn
    description String
    Firewallrules Description
    domainId String
    Associated CIS domain
    filterId String
    Firewallrules Existing FilterID
    paused Boolean
    Firewallrules Paused
    priority Number
    Firewallrules Action

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.2 published on Tuesday, May 13, 2025 by ibm-cloud