1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. WafDedicatedReferenceTableV1
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.WafDedicatedReferenceTableV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for WAF dedicated reference table you can get at documentation portal.

    Manages a WAF Dedicated Reference Table resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const table = new opentelekomcloud.WafDedicatedReferenceTableV1("table", {
        conditions: [
            "/admin",
            "/manage",
        ],
        type: "url",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    table = opentelekomcloud.WafDedicatedReferenceTableV1("table",
        conditions=[
            "/admin",
            "/manage",
        ],
        type="url")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewWafDedicatedReferenceTableV1(ctx, "table", &opentelekomcloud.WafDedicatedReferenceTableV1Args{
    			Conditions: pulumi.StringArray{
    				pulumi.String("/admin"),
    				pulumi.String("/manage"),
    			},
    			Type: pulumi.String("url"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var table = new Opentelekomcloud.WafDedicatedReferenceTableV1("table", new()
        {
            Conditions = new[]
            {
                "/admin",
                "/manage",
            },
            Type = "url",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.WafDedicatedReferenceTableV1;
    import com.pulumi.opentelekomcloud.WafDedicatedReferenceTableV1Args;
    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 table = new WafDedicatedReferenceTableV1("table", WafDedicatedReferenceTableV1Args.builder()
                .conditions(            
                    "/admin",
                    "/manage")
                .type("url")
                .build());
    
        }
    }
    
    resources:
      table:
        type: opentelekomcloud:WafDedicatedReferenceTableV1
        properties:
          conditions:
            - /admin
            - /manage
          type: url
    

    Create WafDedicatedReferenceTableV1 Resource

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

    Constructor syntax

    new WafDedicatedReferenceTableV1(name: string, args: WafDedicatedReferenceTableV1Args, opts?: CustomResourceOptions);
    @overload
    def WafDedicatedReferenceTableV1(resource_name: str,
                                     args: WafDedicatedReferenceTableV1Args,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafDedicatedReferenceTableV1(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     type: Optional[str] = None,
                                     conditions: Optional[Sequence[str]] = None,
                                     description: Optional[str] = None,
                                     name: Optional[str] = None,
                                     region: Optional[str] = None,
                                     waf_dedicated_reference_table_v1_id: Optional[str] = None)
    func NewWafDedicatedReferenceTableV1(ctx *Context, name string, args WafDedicatedReferenceTableV1Args, opts ...ResourceOption) (*WafDedicatedReferenceTableV1, error)
    public WafDedicatedReferenceTableV1(string name, WafDedicatedReferenceTableV1Args args, CustomResourceOptions? opts = null)
    public WafDedicatedReferenceTableV1(String name, WafDedicatedReferenceTableV1Args args)
    public WafDedicatedReferenceTableV1(String name, WafDedicatedReferenceTableV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:WafDedicatedReferenceTableV1
    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 WafDedicatedReferenceTableV1Args
    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 WafDedicatedReferenceTableV1Args
    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 WafDedicatedReferenceTableV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafDedicatedReferenceTableV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafDedicatedReferenceTableV1Args
    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 wafDedicatedReferenceTableV1Resource = new Opentelekomcloud.WafDedicatedReferenceTableV1("wafDedicatedReferenceTableV1Resource", new()
    {
        Type = "string",
        Conditions = new[]
        {
            "string",
        },
        Description = "string",
        Name = "string",
        Region = "string",
        WafDedicatedReferenceTableV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewWafDedicatedReferenceTableV1(ctx, "wafDedicatedReferenceTableV1Resource", &opentelekomcloud.WafDedicatedReferenceTableV1Args{
    	Type: pulumi.String("string"),
    	Conditions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description:                    pulumi.String("string"),
    	Name:                           pulumi.String("string"),
    	Region:                         pulumi.String("string"),
    	WafDedicatedReferenceTableV1Id: pulumi.String("string"),
    })
    
    var wafDedicatedReferenceTableV1Resource = new WafDedicatedReferenceTableV1("wafDedicatedReferenceTableV1Resource", WafDedicatedReferenceTableV1Args.builder()
        .type("string")
        .conditions("string")
        .description("string")
        .name("string")
        .region("string")
        .wafDedicatedReferenceTableV1Id("string")
        .build());
    
    waf_dedicated_reference_table_v1_resource = opentelekomcloud.WafDedicatedReferenceTableV1("wafDedicatedReferenceTableV1Resource",
        type="string",
        conditions=["string"],
        description="string",
        name="string",
        region="string",
        waf_dedicated_reference_table_v1_id="string")
    
    const wafDedicatedReferenceTableV1Resource = new opentelekomcloud.WafDedicatedReferenceTableV1("wafDedicatedReferenceTableV1Resource", {
        type: "string",
        conditions: ["string"],
        description: "string",
        name: "string",
        region: "string",
        wafDedicatedReferenceTableV1Id: "string",
    });
    
    type: opentelekomcloud:WafDedicatedReferenceTableV1
    properties:
        conditions:
            - string
        description: string
        name: string
        region: string
        type: string
        wafDedicatedReferenceTableV1Id: string
    

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

    Type string
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    Conditions List<string>
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    Description string
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    Name string
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    Region string
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    WafDedicatedReferenceTableV1Id string
    The id of the reference table.
    Type string
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    Conditions []string
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    Description string
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    Name string
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    Region string
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    WafDedicatedReferenceTableV1Id string
    The id of the reference table.
    type String
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    conditions List<String>
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    description String
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    name String
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    region String
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    wafDedicatedReferenceTableV1Id String
    The id of the reference table.
    type string
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    conditions string[]
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    description string
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    name string
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    region string
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    wafDedicatedReferenceTableV1Id string
    The id of the reference table.
    type str
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    conditions Sequence[str]
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    description str
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    name str
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    region str
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    waf_dedicated_reference_table_v1_id str
    The id of the reference table.
    type String
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    conditions List<String>
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    description String
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    name String
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    region String
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    wafDedicatedReferenceTableV1Id String
    The id of the reference table.

    Outputs

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

    CreatedAt string
    The time when reference table was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreatedAt string
    The time when reference table was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    createdAt String
    The time when reference table was created.
    id String
    The provider-assigned unique ID for this managed resource.
    createdAt string
    The time when reference table was created.
    id string
    The provider-assigned unique ID for this managed resource.
    created_at str
    The time when reference table was created.
    id str
    The provider-assigned unique ID for this managed resource.
    createdAt String
    The time when reference table was created.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing WafDedicatedReferenceTableV1 Resource

    Get an existing WafDedicatedReferenceTableV1 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?: WafDedicatedReferenceTableV1State, opts?: CustomResourceOptions): WafDedicatedReferenceTableV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            conditions: Optional[Sequence[str]] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            type: Optional[str] = None,
            waf_dedicated_reference_table_v1_id: Optional[str] = None) -> WafDedicatedReferenceTableV1
    func GetWafDedicatedReferenceTableV1(ctx *Context, name string, id IDInput, state *WafDedicatedReferenceTableV1State, opts ...ResourceOption) (*WafDedicatedReferenceTableV1, error)
    public static WafDedicatedReferenceTableV1 Get(string name, Input<string> id, WafDedicatedReferenceTableV1State? state, CustomResourceOptions? opts = null)
    public static WafDedicatedReferenceTableV1 get(String name, Output<String> id, WafDedicatedReferenceTableV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:WafDedicatedReferenceTableV1    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:
    Conditions List<string>
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    CreatedAt string
    The time when reference table was created.
    Description string
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    Name string
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    Region string
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    Type string
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    WafDedicatedReferenceTableV1Id string
    The id of the reference table.
    Conditions []string
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    CreatedAt string
    The time when reference table was created.
    Description string
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    Name string
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    Region string
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    Type string
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    WafDedicatedReferenceTableV1Id string
    The id of the reference table.
    conditions List<String>
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    createdAt String
    The time when reference table was created.
    description String
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    name String
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    region String
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    type String
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    wafDedicatedReferenceTableV1Id String
    The id of the reference table.
    conditions string[]
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    createdAt string
    The time when reference table was created.
    description string
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    name string
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    region string
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    type string
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    wafDedicatedReferenceTableV1Id string
    The id of the reference table.
    conditions Sequence[str]
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    created_at str
    The time when reference table was created.
    description str
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    name str
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    region str
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    type str
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    waf_dedicated_reference_table_v1_id str
    The id of the reference table.
    conditions List<String>
    The conditions of the reference table. The maximum length is 30. The maximum length of condition is 2048 characters.
    createdAt String
    The time when reference table was created.
    description String
    The description of the reference table. The maximum length is 128 characters. Currently, could be set only on update.
    name String
    The name of the reference table. Only letters, digits, and underscores(_) are allowed. The maximum length is 64 characters.
    region String
    The region in which to create the WAF reference table resource. If omitted, the provider-level region will be used. Changing this setting will push a new reference table.
    type String
    The type of the reference table, The options are url, user-agent, ip, params, cookie, referer and header. Changing this setting will push a new reference table.
    wafDedicatedReferenceTableV1Id String
    The id of the reference table.

    Import

    Dedicated WAF Reference Table can be imported using id, e.g.

    bash

    $ pulumi import opentelekomcloud:index/wafDedicatedReferenceTableV1:WafDedicatedReferenceTableV1 table <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud