1. Packages
  2. Gcore Provider
  3. API Docs
  4. WaapDomain
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

    All attributes

    The following example shows all configurable attributes for this resource.

    import * as pulumi from "@pulumi/pulumi";
    import * as gcore from "@pulumi/gcore";
    
    const exampleWaapDomain = new gcore.WaapDomain("example_waap_domain", {
        domainId: 1,
        status: "active",
    });
    
    import pulumi
    import pulumi_gcore as gcore
    
    example_waap_domain = gcore.WaapDomain("example_waap_domain",
        domain_id=1,
        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.NewWaapDomain(ctx, "example_waap_domain", &gcore.WaapDomainArgs{
    			DomainId: pulumi.Float64(1),
    			Status:   pulumi.String("active"),
    		})
    		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 = new Gcore.WaapDomain("example_waap_domain", new()
        {
            DomainId = 1,
            Status = "active",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcore.WaapDomain;
    import com.pulumi.gcore.WaapDomainArgs;
    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) {
            var exampleWaapDomain = new WaapDomain("exampleWaapDomain", WaapDomainArgs.builder()
                .domainId(1.0)
                .status("active")
                .build());
    
        }
    }
    
    resources:
      exampleWaapDomain:
        type: gcore:WaapDomain
        name: example_waap_domain
        properties:
          domainId: 1
          status: active
    

    Create WaapDomain Resource

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

    Constructor syntax

    new WaapDomain(name: string, args: WaapDomainArgs, opts?: CustomResourceOptions);
    @overload
    def WaapDomain(resource_name: str,
                   args: WaapDomainArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def WaapDomain(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   domain_id: Optional[float] = None,
                   status: Optional[str] = None)
    func NewWaapDomain(ctx *Context, name string, args WaapDomainArgs, opts ...ResourceOption) (*WaapDomain, error)
    public WaapDomain(string name, WaapDomainArgs args, CustomResourceOptions? opts = null)
    public WaapDomain(String name, WaapDomainArgs args)
    public WaapDomain(String name, WaapDomainArgs args, CustomResourceOptions options)
    
    type: gcore:WaapDomain
    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 WaapDomainArgs
    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 WaapDomainArgs
    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 WaapDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WaapDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WaapDomainArgs
    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 waapDomainResource = new Gcore.WaapDomain("waapDomainResource", new()
    {
        DomainId = 0,
        Status = "string",
    });
    
    example, err := gcore.NewWaapDomain(ctx, "waapDomainResource", &gcore.WaapDomainArgs{
    	DomainId: pulumi.Float64(0),
    	Status:   pulumi.String("string"),
    })
    
    var waapDomainResource = new WaapDomain("waapDomainResource", WaapDomainArgs.builder()
        .domainId(0.0)
        .status("string")
        .build());
    
    waap_domain_resource = gcore.WaapDomain("waapDomainResource",
        domain_id=0,
        status="string")
    
    const waapDomainResource = new gcore.WaapDomain("waapDomainResource", {
        domainId: 0,
        status: "string",
    });
    
    type: gcore:WaapDomain
    properties:
        domainId: 0
        status: string
    

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

    DomainId double
    The domain ID
    Status string
    The current status of the domain Available values: "active", "monitor".
    DomainId float64
    The domain ID
    Status string
    The current status of the domain Available values: "active", "monitor".
    domainId Double
    The domain ID
    status String
    The current status of the domain Available values: "active", "monitor".
    domainId number
    The domain ID
    status string
    The current status of the domain Available values: "active", "monitor".
    domain_id float
    The domain ID
    status str
    The current status of the domain Available values: "active", "monitor".
    domainId Number
    The domain ID
    status String
    The current status of the domain Available values: "active", "monitor".

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WaapDomain resource produces the following output properties:

    CreatedAt string
    The date and time the domain was created in ISO 8601 format
    CustomPageSet double
    The ID of the custom page set
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The domain name
    Quotas Dictionary<string, WaapDomainQuotas>
    Domain level quotas
    WaapDomainId double
    The domain ID
    CreatedAt string
    The date and time the domain was created in ISO 8601 format
    CustomPageSet float64
    The ID of the custom page set
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The domain name
    Quotas map[string]WaapDomainQuotas
    Domain level quotas
    WaapDomainId float64
    The domain ID
    createdAt String
    The date and time the domain was created in ISO 8601 format
    customPageSet Double
    The ID of the custom page set
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The domain name
    quotas Map<String,WaapDomainQuotas>
    Domain level quotas
    waapDomainId Double
    The domain ID
    createdAt string
    The date and time the domain was created in ISO 8601 format
    customPageSet number
    The ID of the custom page set
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The domain name
    quotas {[key: string]: WaapDomainQuotas}
    Domain level quotas
    waapDomainId number
    The domain ID
    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 str
    The provider-assigned unique ID for this managed resource.
    name str
    The domain name
    quotas Mapping[str, WaapDomainQuotas]
    Domain level quotas
    waap_domain_id float
    The domain ID
    createdAt String
    The date and time the domain was created in ISO 8601 format
    customPageSet Number
    The ID of the custom page set
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The domain name
    quotas Map<Property Map>
    Domain level quotas
    waapDomainId Number
    The domain ID

    Look up Existing WaapDomain Resource

    Get an existing WaapDomain 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?: WaapDomainState, opts?: CustomResourceOptions): WaapDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            custom_page_set: Optional[float] = None,
            domain_id: Optional[float] = None,
            name: Optional[str] = None,
            quotas: Optional[Mapping[str, WaapDomainQuotasArgs]] = None,
            status: Optional[str] = None,
            waap_domain_id: Optional[float] = None) -> WaapDomain
    func GetWaapDomain(ctx *Context, name string, id IDInput, state *WaapDomainState, opts ...ResourceOption) (*WaapDomain, error)
    public static WaapDomain Get(string name, Input<string> id, WaapDomainState? state, CustomResourceOptions? opts = null)
    public static WaapDomain get(String name, Output<String> id, WaapDomainState state, CustomResourceOptions options)
    resources:  _:    type: gcore:WaapDomain    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:
    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
    Name string
    The domain name
    Quotas Dictionary<string, WaapDomainQuotasArgs>
    Domain level quotas
    Status string
    The current status of the domain Available values: "active", "monitor".
    WaapDomainId double
    The domain ID
    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
    Name string
    The domain name
    Quotas map[string]WaapDomainQuotasArgs
    Domain level quotas
    Status string
    The current status of the domain Available values: "active", "monitor".
    WaapDomainId float64
    The domain ID
    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
    name String
    The domain name
    quotas Map<String,WaapDomainQuotasArgs>
    Domain level quotas
    status String
    The current status of the domain Available values: "active", "monitor".
    waapDomainId Double
    The domain ID
    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
    name string
    The domain name
    quotas {[key: string]: WaapDomainQuotasArgs}
    Domain level quotas
    status string
    The current status of the domain Available values: "active", "monitor".
    waapDomainId number
    The domain ID
    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
    name str
    The domain name
    quotas Mapping[str, WaapDomainQuotasArgs]
    Domain level quotas
    status str
    The current status of the domain Available values: "active", "monitor".
    waap_domain_id float
    The domain ID
    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
    name String
    The domain name
    quotas Map<Property Map>
    Domain level quotas
    status String
    The current status of the domain Available values: "active", "monitor".
    waapDomainId Number
    The domain ID

    Supporting Types

    WaapDomainQuotas, WaapDomainQuotasArgs

    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.