1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCisWafGroups
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getCisWafGroups

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Retrieve information of an existing IBM Cloud Internet Services WAF rule groups. For more information, about WAF refer to Web Application Firewall concepts.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const wafGroups = ibm.getCisWafGroups({
        cisId: data.ibm_cis.cis.id,
        domainId: data.ibm_cis_domain.cis_domain.id,
        packageId: "c504870194831cd12c3fc0284f294abb",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    waf_groups = ibm.get_cis_waf_groups(cis_id=data["ibm_cis"]["cis"]["id"],
        domain_id=data["ibm_cis_domain"]["cis_domain"]["id"],
        package_id="c504870194831cd12c3fc0284f294abb")
    
    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 {
    		_, err := ibm.GetCisWafGroups(ctx, &ibm.GetCisWafGroupsArgs{
    			CisId:     data.Ibm_cis.Cis.Id,
    			DomainId:  data.Ibm_cis_domain.Cis_domain.Id,
    			PackageId: "c504870194831cd12c3fc0284f294abb",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var wafGroups = Ibm.GetCisWafGroups.Invoke(new()
        {
            CisId = data.Ibm_cis.Cis.Id,
            DomainId = data.Ibm_cis_domain.Cis_domain.Id,
            PackageId = "c504870194831cd12c3fc0284f294abb",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetCisWafGroupsArgs;
    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) {
            final var wafGroups = IbmFunctions.getCisWafGroups(GetCisWafGroupsArgs.builder()
                .cisId(data.ibm_cis().cis().id())
                .domainId(data.ibm_cis_domain().cis_domain().id())
                .packageId("c504870194831cd12c3fc0284f294abb")
                .build());
    
        }
    }
    
    variables:
      wafGroups:
        fn::invoke:
          function: ibm:getCisWafGroups
          arguments:
            cisId: ${data.ibm_cis.cis.id}
            domainId: ${data.ibm_cis_domain.cis_domain.id}
            packageId: c504870194831cd12c3fc0284f294abb
    

    Using getCisWafGroups

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCisWafGroups(args: GetCisWafGroupsArgs, opts?: InvokeOptions): Promise<GetCisWafGroupsResult>
    function getCisWafGroupsOutput(args: GetCisWafGroupsOutputArgs, opts?: InvokeOptions): Output<GetCisWafGroupsResult>
    def get_cis_waf_groups(cis_id: Optional[str] = None,
                           domain_id: Optional[str] = None,
                           id: Optional[str] = None,
                           package_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetCisWafGroupsResult
    def get_cis_waf_groups_output(cis_id: Optional[pulumi.Input[str]] = None,
                           domain_id: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           package_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetCisWafGroupsResult]
    func GetCisWafGroups(ctx *Context, args *GetCisWafGroupsArgs, opts ...InvokeOption) (*GetCisWafGroupsResult, error)
    func GetCisWafGroupsOutput(ctx *Context, args *GetCisWafGroupsOutputArgs, opts ...InvokeOption) GetCisWafGroupsResultOutput

    > Note: This function is named GetCisWafGroups in the Go SDK.

    public static class GetCisWafGroups 
    {
        public static Task<GetCisWafGroupsResult> InvokeAsync(GetCisWafGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetCisWafGroupsResult> Invoke(GetCisWafGroupsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCisWafGroupsResult> getCisWafGroups(GetCisWafGroupsArgs args, InvokeOptions options)
    public static Output<GetCisWafGroupsResult> getCisWafGroups(GetCisWafGroupsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCisWafGroups:getCisWafGroups
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CisId string
    The resource CRN ID of the CIS on which zones were created.
    DomainId string
    The ID of the domain to retrieve the Load Balancers.
    PackageId string
    The WAF Rule Package ID.
    Id string
    CisId string
    The resource CRN ID of the CIS on which zones were created.
    DomainId string
    The ID of the domain to retrieve the Load Balancers.
    PackageId string
    The WAF Rule Package ID.
    Id string
    cisId String
    The resource CRN ID of the CIS on which zones were created.
    domainId String
    The ID of the domain to retrieve the Load Balancers.
    packageId String
    The WAF Rule Package ID.
    id String
    cisId string
    The resource CRN ID of the CIS on which zones were created.
    domainId string
    The ID of the domain to retrieve the Load Balancers.
    packageId string
    The WAF Rule Package ID.
    id string
    cis_id str
    The resource CRN ID of the CIS on which zones were created.
    domain_id str
    The ID of the domain to retrieve the Load Balancers.
    package_id str
    The WAF Rule Package ID.
    id str
    cisId String
    The resource CRN ID of the CIS on which zones were created.
    domainId String
    The ID of the domain to retrieve the Load Balancers.
    packageId String
    The WAF Rule Package ID.
    id String

    getCisWafGroups Result

    The following output properties are available:

    Supporting Types

    GetCisWafGroupsWafGroup

    Description string
    (String) The WAF rule group description.
    GroupId string
    (String) The WAF group ID.
    Id string
    Mode string
    (String) The on, or off mode setting of the WAF rule group.
    ModifiedRulesCount double
    (Integer) Number of rules modified in WAF Group.
    Name string
    (String) The name of the WAF rule group.
    RulesCount double
    (Integer) Number of rules in WAF Group.
    Description string
    (String) The WAF rule group description.
    GroupId string
    (String) The WAF group ID.
    Id string
    Mode string
    (String) The on, or off mode setting of the WAF rule group.
    ModifiedRulesCount float64
    (Integer) Number of rules modified in WAF Group.
    Name string
    (String) The name of the WAF rule group.
    RulesCount float64
    (Integer) Number of rules in WAF Group.
    description String
    (String) The WAF rule group description.
    groupId String
    (String) The WAF group ID.
    id String
    mode String
    (String) The on, or off mode setting of the WAF rule group.
    modifiedRulesCount Double
    (Integer) Number of rules modified in WAF Group.
    name String
    (String) The name of the WAF rule group.
    rulesCount Double
    (Integer) Number of rules in WAF Group.
    description string
    (String) The WAF rule group description.
    groupId string
    (String) The WAF group ID.
    id string
    mode string
    (String) The on, or off mode setting of the WAF rule group.
    modifiedRulesCount number
    (Integer) Number of rules modified in WAF Group.
    name string
    (String) The name of the WAF rule group.
    rulesCount number
    (Integer) Number of rules in WAF Group.
    description str
    (String) The WAF rule group description.
    group_id str
    (String) The WAF group ID.
    id str
    mode str
    (String) The on, or off mode setting of the WAF rule group.
    modified_rules_count float
    (Integer) Number of rules modified in WAF Group.
    name str
    (String) The name of the WAF rule group.
    rules_count float
    (Integer) Number of rules in WAF Group.
    description String
    (String) The WAF rule group description.
    groupId String
    (String) The WAF group ID.
    id String
    mode String
    (String) The on, or off mode setting of the WAF rule group.
    modifiedRulesCount Number
    (Integer) Number of rules modified in WAF Group.
    name String
    (String) The name of the WAF rule group.
    rulesCount Number
    (Integer) Number of rules in WAF Group.

    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.0 published on Wednesday, Apr 30, 2025 by ibm-cloud