1. Packages
  2. Gcore Provider
  3. API Docs
  4. getWaapDomain
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 exampleWaapDomain = gcore.getWaapDomain({
        domainId: 1,
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_waap_domain = gcore.get_waap_domain(domain_id=1)
    
    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.LookupWaapDomain(ctx, &gcore.LookupWaapDomainArgs{
    			DomainId: 1,
    		}, 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 exampleWaapDomain = Gcore.GetWaapDomain.Invoke(new()
        {
            DomainId = 1,
        });
    
    });
    
    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.GetWaapDomainArgs;
    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 exampleWaapDomain = GcoreFunctions.getWaapDomain(GetWaapDomainArgs.builder()
                .domainId(1)
                .build());
    
        }
    }
    
    variables:
      exampleWaapDomain:
        fn::invoke:
          function: gcore:getWaapDomain
          arguments:
            domainId: 1
    

    Using getWaapDomain

    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 getWaapDomain(args: GetWaapDomainArgs, opts?: InvokeOptions): Promise<GetWaapDomainResult>
    function getWaapDomainOutput(args: GetWaapDomainOutputArgs, opts?: InvokeOptions): Output<GetWaapDomainResult>
    def get_waap_domain(domain_id: Optional[float] = None,
                        opts: Optional[InvokeOptions] = None) -> GetWaapDomainResult
    def get_waap_domain_output(domain_id: Optional[pulumi.Input[float]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetWaapDomainResult]
    func LookupWaapDomain(ctx *Context, args *LookupWaapDomainArgs, opts ...InvokeOption) (*LookupWaapDomainResult, error)
    func LookupWaapDomainOutput(ctx *Context, args *LookupWaapDomainOutputArgs, opts ...InvokeOption) LookupWaapDomainResultOutput

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

    public static class GetWaapDomain 
    {
        public static Task<GetWaapDomainResult> InvokeAsync(GetWaapDomainArgs args, InvokeOptions? opts = null)
        public static Output<GetWaapDomainResult> Invoke(GetWaapDomainInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWaapDomainResult> getWaapDomain(GetWaapDomainArgs args, InvokeOptions options)
    public static Output<GetWaapDomainResult> getWaapDomain(GetWaapDomainArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gcore:index/getWaapDomain:getWaapDomain
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DomainId double
    The domain ID
    DomainId float64
    The domain ID
    domainId Double
    The domain ID
    domainId number
    The domain ID
    domain_id float
    The domain ID
    domainId Number
    The domain ID

    getWaapDomain Result

    The following output properties are available:

    CreatedAt string
    The date and time the domain was created in ISO 8601 format
    CustomPageSet double
    The ID of the custom page set
    DomainId double
    The domain ID
    Id double
    The domain ID
    Name string
    The domain name
    Quotas Dictionary<string, GetWaapDomainQuotas>
    Domain level quotas
    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
    DomainId float64
    The domain ID
    Id float64
    The domain ID
    Name string
    The domain name
    Quotas map[string]GetWaapDomainQuotas
    Domain level quotas
    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
    domainId Double
    The domain ID
    id Double
    The domain ID
    name String
    The domain name
    quotas Map<String,GetWaapDomainQuotas>
    Domain level quotas
    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
    domainId number
    The domain ID
    id number
    The domain ID
    name string
    The domain name
    quotas {[key: string]: GetWaapDomainQuotas}
    Domain level quotas
    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
    domain_id float
    The domain ID
    id float
    The domain ID
    name str
    The domain name
    quotas Mapping[str, GetWaapDomainQuotas]
    Domain level quotas
    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
    domainId Number
    The domain ID
    id Number
    The domain ID
    name String
    The domain name
    quotas Map<Property Map>
    Domain level quotas
    status String
    The different statuses a domain can have Available values: "active", "bypass", "monitor", "locked".

    Supporting Types

    GetWaapDomainQuotas

    Allowed double
    The maximum allowed number of this resource
    Current double
    The current number of this resource
    Allowed float64
    The maximum allowed number of this resource
    Current float64
    The current number of this resource
    allowed Double
    The maximum allowed number of this resource
    current Double
    The current number of this resource
    allowed number
    The maximum allowed number of this resource
    current number
    The current number of this resource
    allowed float
    The maximum allowed number of this resource
    current float
    The current number of this resource
    allowed Number
    The maximum allowed number of this resource
    current Number
    The current number of this resource

    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.