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

ibm.getCisWafPackages

Explore with Pulumi AI

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

    Retrieve information about an existing IBM Cloud Internet Services WAF package resource. For more information, about WAF refer to CIS rule sets.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const ratelimit = ibm.getCisRateLimit({
        cisId: data.ibm_cis.cis.id,
        domainId: data.ibm_cis_domain.cis_domain.domain_id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    ratelimit = ibm.get_cis_rate_limit(cis_id=data["ibm_cis"]["cis"]["id"],
        domain_id=data["ibm_cis_domain"]["cis_domain"]["domain_id"])
    
    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.LookupCisRateLimit(ctx, &ibm.LookupCisRateLimitArgs{
    			CisId:    data.Ibm_cis.Cis.Id,
    			DomainId: data.Ibm_cis_domain.Cis_domain.Domain_id,
    		}, 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 ratelimit = Ibm.GetCisRateLimit.Invoke(new()
        {
            CisId = data.Ibm_cis.Cis.Id,
            DomainId = data.Ibm_cis_domain.Cis_domain.Domain_id,
        });
    
    });
    
    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.GetCisRateLimitArgs;
    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 ratelimit = IbmFunctions.getCisRateLimit(GetCisRateLimitArgs.builder()
                .cisId(data.ibm_cis().cis().id())
                .domainId(data.ibm_cis_domain().cis_domain().domain_id())
                .build());
    
        }
    }
    
    variables:
      ratelimit:
        fn::invoke:
          function: ibm:getCisRateLimit
          arguments:
            cisId: ${data.ibm_cis.cis.id}
            domainId: ${data.ibm_cis_domain.cis_domain.domain_id}
    

    Using getCisWafPackages

    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 getCisWafPackages(args: GetCisWafPackagesArgs, opts?: InvokeOptions): Promise<GetCisWafPackagesResult>
    function getCisWafPackagesOutput(args: GetCisWafPackagesOutputArgs, opts?: InvokeOptions): Output<GetCisWafPackagesResult>
    def get_cis_waf_packages(cis_id: Optional[str] = None,
                             domain_id: Optional[str] = None,
                             id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetCisWafPackagesResult
    def get_cis_waf_packages_output(cis_id: Optional[pulumi.Input[str]] = None,
                             domain_id: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetCisWafPackagesResult]
    func GetCisWafPackages(ctx *Context, args *GetCisWafPackagesArgs, opts ...InvokeOption) (*GetCisWafPackagesResult, error)
    func GetCisWafPackagesOutput(ctx *Context, args *GetCisWafPackagesOutputArgs, opts ...InvokeOption) GetCisWafPackagesResultOutput

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

    public static class GetCisWafPackages 
    {
        public static Task<GetCisWafPackagesResult> InvokeAsync(GetCisWafPackagesArgs args, InvokeOptions? opts = null)
        public static Output<GetCisWafPackagesResult> Invoke(GetCisWafPackagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCisWafPackagesResult> getCisWafPackages(GetCisWafPackagesArgs args, InvokeOptions options)
    public static Output<GetCisWafPackagesResult> getCisWafPackages(GetCisWafPackagesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCisWafPackages:getCisWafPackages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CisId string
    The ID of the IBM Cloud Internet Services service instance.
    DomainId string
    The ID of the domain.
    Id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    CisId string
    The ID of the IBM Cloud Internet Services service instance.
    DomainId string
    The ID of the domain.
    Id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    cisId String
    The ID of the IBM Cloud Internet Services service instance.
    domainId String
    The ID of the domain.
    id String
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    cisId string
    The ID of the IBM Cloud Internet Services service instance.
    domainId string
    The ID of the domain.
    id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    cis_id str
    The ID of the IBM Cloud Internet Services service instance.
    domain_id str
    The ID of the domain.
    id str
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    cisId String
    The ID of the IBM Cloud Internet Services service instance.
    domainId String
    The ID of the domain.
    id String
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.

    getCisWafPackages Result

    The following output properties are available:

    CisId string
    DomainId string
    Id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    WafPackages List<GetCisWafPackagesWafPackage>
    CisId string
    DomainId string
    Id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    WafPackages []GetCisWafPackagesWafPackage
    cisId String
    domainId String
    id String
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    wafPackages List<GetCisWafPackagesWafPackage>
    cisId string
    domainId string
    id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    wafPackages GetCisWafPackagesWafPackage[]
    cis_id str
    domain_id str
    id str
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    waf_packages Sequence[GetCisWafPackagesWafPackage]
    cisId String
    domainId String
    id String
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    wafPackages List<Property Map>

    Supporting Types

    GetCisWafPackagesWafPackage

    Description string
    (String) The WAF package description.
    DetectionMode string
    (String) The WAF package detection mode.
    Id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    Name string
    PackageId string
    (String) The WAF package ID.
    Description string
    (String) The WAF package description.
    DetectionMode string
    (String) The WAF package detection mode.
    Id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    Name string
    PackageId string
    (String) The WAF package ID.
    description String
    (String) The WAF package description.
    detectionMode String
    (String) The WAF package detection mode.
    id String
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    name String
    packageId String
    (String) The WAF package ID.
    description string
    (String) The WAF package description.
    detectionMode string
    (String) The WAF package detection mode.
    id string
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    name string
    packageId string
    (String) The WAF package ID.
    description str
    (String) The WAF package description.
    detection_mode str
    (String) The WAF package detection mode.
    id str
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    name str
    package_id str
    (String) The WAF package ID.
    description String
    (String) The WAF package description.
    detectionMode String
    (String) The WAF package detection mode.
    id String
    (String) The ID of resource. It is the combination of <package_id>:<domain_id>:<cis_id>.
    name String
    packageId String
    (String) The WAF package ID.

    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