1. Packages
  2. Gcore Provider
  3. API Docs
  4. getWaapDomains
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core
gcore logo
Viewing docs for gcore 2.0.0-alpha.2
published on Tuesday, Mar 24, 2026 by g-core

    WAAP domains enable Web Application and API Protection for monitoring and defending web applications against security threats.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleWaapDomains = gcore.getWaapDomains({
        ids: [1],
        name: "*example.com",
        ordering: "id",
        status: "active",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_waap_domains = gcore.get_waap_domains(ids=[1],
        name="*example.com",
        ordering="id",
        status="active")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gcore.GetWaapDomains(ctx, &gcore.GetWaapDomainsArgs{
    			Ids: []float64{
    				1,
    			},
    			Name:     pulumi.StringRef("*example.com"),
    			Ordering: pulumi.StringRef("id"),
    			Status:   pulumi.StringRef("active"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcore = Pulumi.Gcore;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleWaapDomains = Gcore.GetWaapDomains.Invoke(new()
        {
            Ids = new[]
            {
                1,
            },
            Name = "*example.com",
            Ordering = "id",
            Status = "active",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.GcoreFunctions;
    import com.pulumi.gcore.inputs.GetWaapDomainsArgs;
    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 exampleWaapDomains = GcoreFunctions.getWaapDomains(GetWaapDomainsArgs.builder()
                .ids(1)
                .name("*example.com")
                .ordering("id")
                .status("active")
                .build());
    
        }
    }
    
    variables:
      exampleWaapDomains:
        fn::invoke:
          function: gcore:getWaapDomains
          arguments:
            ids:
              - 1
            name: '*example.com'
            ordering: id
            status: active
    

    Using getWaapDomains

    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 getWaapDomains(args: GetWaapDomainsArgs, opts?: InvokeOptions): Promise<GetWaapDomainsResult>
    function getWaapDomainsOutput(args: GetWaapDomainsOutputArgs, opts?: InvokeOptions): Output<GetWaapDomainsResult>
    def get_waap_domains(ids: Optional[Sequence[float]] = None,
                         max_items: Optional[float] = None,
                         name: Optional[str] = None,
                         ordering: Optional[str] = None,
                         status: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetWaapDomainsResult
    def get_waap_domains_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                         max_items: Optional[pulumi.Input[float]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         ordering: Optional[pulumi.Input[str]] = None,
                         status: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetWaapDomainsResult]
    func GetWaapDomains(ctx *Context, args *GetWaapDomainsArgs, opts ...InvokeOption) (*GetWaapDomainsResult, error)
    func GetWaapDomainsOutput(ctx *Context, args *GetWaapDomainsOutputArgs, opts ...InvokeOption) GetWaapDomainsResultOutput

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

    public static class GetWaapDomains 
    {
        public static Task<GetWaapDomainsResult> InvokeAsync(GetWaapDomainsArgs args, InvokeOptions? opts = null)
        public static Output<GetWaapDomainsResult> Invoke(GetWaapDomainsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWaapDomainsResult> getWaapDomains(GetWaapDomainsArgs args, InvokeOptions options)
    public static Output<GetWaapDomainsResult> getWaapDomains(GetWaapDomainsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getWaapDomains:getWaapDomains
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<double>
    Filter domains based on their IDs
    MaxItems double
    Max items to fetch, default: 1000
    Name string
    Filter domains based on the domain name. Supports '*' as a wildcard character
    Ordering string
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    Status string
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    Ids []float64
    Filter domains based on their IDs
    MaxItems float64
    Max items to fetch, default: 1000
    Name string
    Filter domains based on the domain name. Supports '*' as a wildcard character
    Ordering string
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    Status string
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    ids List<Double>
    Filter domains based on their IDs
    maxItems Double
    Max items to fetch, default: 1000
    name String
    Filter domains based on the domain name. Supports '*' as a wildcard character
    ordering String
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    status String
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    ids number[]
    Filter domains based on their IDs
    maxItems number
    Max items to fetch, default: 1000
    name string
    Filter domains based on the domain name. Supports '*' as a wildcard character
    ordering string
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    status string
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    ids Sequence[float]
    Filter domains based on their IDs
    max_items float
    Max items to fetch, default: 1000
    name str
    Filter domains based on the domain name. Supports '*' as a wildcard character
    ordering str
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    status str
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    ids List<Number>
    Filter domains based on their IDs
    maxItems Number
    Max items to fetch, default: 1000
    name String
    Filter domains based on the domain name. Supports '*' as a wildcard character
    ordering String
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    status String
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".

    getWaapDomains Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetWaapDomainsItem>
    The items returned by the data source
    Ids List<double>
    Filter domains based on their IDs
    MaxItems double
    Max items to fetch, default: 1000
    Name string
    Filter domains based on the domain name. Supports '*' as a wildcard character
    Ordering string
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    Status string
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetWaapDomainsItem
    The items returned by the data source
    Ids []float64
    Filter domains based on their IDs
    MaxItems float64
    Max items to fetch, default: 1000
    Name string
    Filter domains based on the domain name. Supports '*' as a wildcard character
    Ordering string
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    Status string
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetWaapDomainsItem>
    The items returned by the data source
    ids List<Double>
    Filter domains based on their IDs
    maxItems Double
    Max items to fetch, default: 1000
    name String
    Filter domains based on the domain name. Supports '*' as a wildcard character
    ordering String
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    status String
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    id string
    The provider-assigned unique ID for this managed resource.
    items GetWaapDomainsItem[]
    The items returned by the data source
    ids number[]
    Filter domains based on their IDs
    maxItems number
    Max items to fetch, default: 1000
    name string
    Filter domains based on the domain name. Supports '*' as a wildcard character
    ordering string
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    status string
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[GetWaapDomainsItem]
    The items returned by the data source
    ids Sequence[float]
    Filter domains based on their IDs
    max_items float
    Max items to fetch, default: 1000
    name str
    Filter domains based on the domain name. Supports '*' as a wildcard character
    ordering str
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    status str
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    The items returned by the data source
    ids List<Number>
    Filter domains based on their IDs
    maxItems Number
    Max items to fetch, default: 1000
    name String
    Filter domains based on the domain name. Supports '*' as a wildcard character
    ordering String
    Sort the response by given field. Available values: "id", "name", "status", "createdat", "-id", "-name", "-status", "-createdat".
    status String
    Filter domains based on the domain status Available values: "active", "bypass", "monitor", "locked".

    Supporting Types

    GetWaapDomainsItem

    CreatedAt string
    The date and time the domain was created in ISO 8601 format
    CustomPageSet double
    The ID of the custom page set
    Id double
    The domain ID
    Name string
    The domain name
    Status string
    The different statuses a domain can have Available values: "active", "bypass", "monitor", "locked".
    CreatedAt string
    The date and time the domain was created in ISO 8601 format
    CustomPageSet float64
    The ID of the custom page set
    Id float64
    The domain ID
    Name string
    The domain name
    Status string
    The different statuses a domain can have Available values: "active", "bypass", "monitor", "locked".
    createdAt String
    The date and time the domain was created in ISO 8601 format
    customPageSet Double
    The ID of the custom page set
    id Double
    The domain ID
    name String
    The domain name
    status String
    The different statuses a domain can have Available values: "active", "bypass", "monitor", "locked".
    createdAt string
    The date and time the domain was created in ISO 8601 format
    customPageSet number
    The ID of the custom page set
    id number
    The domain ID
    name string
    The domain name
    status string
    The different statuses a domain can have Available values: "active", "bypass", "monitor", "locked".
    created_at str
    The date and time the domain was created in ISO 8601 format
    custom_page_set float
    The ID of the custom page set
    id float
    The domain ID
    name str
    The domain name
    status str
    The different statuses a domain can have Available values: "active", "bypass", "monitor", "locked".
    createdAt String
    The date and time the domain was created in ISO 8601 format
    customPageSet Number
    The ID of the custom page set
    id Number
    The domain ID
    name String
    The domain name
    status String
    The different statuses a domain can have Available values: "active", "bypass", "monitor", "locked".

    Package Details

    Repository
    gcore g-core/terraform-provider-gcore
    License
    Notes
    This Pulumi package is based on the gcore Terraform Provider.
    gcore logo
    Viewing docs for gcore 2.0.0-alpha.2
    published on Tuesday, Mar 24, 2026 by g-core
      Try Pulumi Cloud free. Your team will thank you.