1. Packages
  2. Packages
  3. Opentelekomcloud Provider
  4. API Docs
  5. WafCloudInstanceV1
Viewing docs for opentelekomcloud 1.36.65
published on Thursday, May 7, 2026 by opentelekomcloud
Viewing docs for opentelekomcloud 1.36.65
published on Thursday, May 7, 2026 by opentelekomcloud

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

    Manages a postpaid cloud WAF instance resource within OpenTelekomCloud.

    Note: This resource uses the current postpaid cloud WAF API only. Updating the resource in place is not supported.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const cloud1 = new opentelekomcloud.WafCloudInstanceV1("cloud_1", {
        chargingMode: "postPaid",
        website: "dt",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    cloud1 = opentelekomcloud.WafCloudInstanceV1("cloud_1",
        charging_mode="postPaid",
        website="dt")
    
    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.NewWafCloudInstanceV1(ctx, "cloud_1", &opentelekomcloud.WafCloudInstanceV1Args{
    			ChargingMode: pulumi.String("postPaid"),
    			Website:      pulumi.String("dt"),
    		})
    		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 cloud1 = new Opentelekomcloud.WafCloudInstanceV1("cloud_1", new()
        {
            ChargingMode = "postPaid",
            Website = "dt",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.WafCloudInstanceV1;
    import com.pulumi.opentelekomcloud.WafCloudInstanceV1Args;
    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 cloud1 = new WafCloudInstanceV1("cloud1", WafCloudInstanceV1Args.builder()
                .chargingMode("postPaid")
                .website("dt")
                .build());
    
        }
    }
    
    resources:
      cloud1:
        type: opentelekomcloud:WafCloudInstanceV1
        name: cloud_1
        properties:
          chargingMode: postPaid
          website: dt
    

    Create WafCloudInstanceV1 Resource

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

    Constructor syntax

    new WafCloudInstanceV1(name: string, args: WafCloudInstanceV1Args, opts?: CustomResourceOptions);
    @overload
    def WafCloudInstanceV1(resource_name: str,
                           args: WafCloudInstanceV1Args,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def WafCloudInstanceV1(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           website: Optional[str] = None,
                           charging_mode: Optional[str] = None,
                           enterprise_project_id: Optional[str] = None,
                           timeouts: Optional[WafCloudInstanceV1TimeoutsArgs] = None,
                           waf_cloud_instance_v1_id: Optional[str] = None)
    func NewWafCloudInstanceV1(ctx *Context, name string, args WafCloudInstanceV1Args, opts ...ResourceOption) (*WafCloudInstanceV1, error)
    public WafCloudInstanceV1(string name, WafCloudInstanceV1Args args, CustomResourceOptions? opts = null)
    public WafCloudInstanceV1(String name, WafCloudInstanceV1Args args)
    public WafCloudInstanceV1(String name, WafCloudInstanceV1Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:WafCloudInstanceV1
    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 WafCloudInstanceV1Args
    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 WafCloudInstanceV1Args
    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 WafCloudInstanceV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WafCloudInstanceV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WafCloudInstanceV1Args
    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 wafCloudInstanceV1Resource = new Opentelekomcloud.WafCloudInstanceV1("wafCloudInstanceV1Resource", new()
    {
        Website = "string",
        ChargingMode = "string",
        EnterpriseProjectId = "string",
        Timeouts = new Opentelekomcloud.Inputs.WafCloudInstanceV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
        },
        WafCloudInstanceV1Id = "string",
    });
    
    example, err := opentelekomcloud.NewWafCloudInstanceV1(ctx, "wafCloudInstanceV1Resource", &opentelekomcloud.WafCloudInstanceV1Args{
    	Website:             pulumi.String("string"),
    	ChargingMode:        pulumi.String("string"),
    	EnterpriseProjectId: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.WafCloudInstanceV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    	},
    	WafCloudInstanceV1Id: pulumi.String("string"),
    })
    
    var wafCloudInstanceV1Resource = new WafCloudInstanceV1("wafCloudInstanceV1Resource", WafCloudInstanceV1Args.builder()
        .website("string")
        .chargingMode("string")
        .enterpriseProjectId("string")
        .timeouts(WafCloudInstanceV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .build())
        .wafCloudInstanceV1Id("string")
        .build());
    
    waf_cloud_instance_v1_resource = opentelekomcloud.WafCloudInstanceV1("wafCloudInstanceV1Resource",
        website="string",
        charging_mode="string",
        enterprise_project_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
        },
        waf_cloud_instance_v1_id="string")
    
    const wafCloudInstanceV1Resource = new opentelekomcloud.WafCloudInstanceV1("wafCloudInstanceV1Resource", {
        website: "string",
        chargingMode: "string",
        enterpriseProjectId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
        },
        wafCloudInstanceV1Id: "string",
    });
    
    type: opentelekomcloud:WafCloudInstanceV1
    properties:
        chargingMode: string
        enterpriseProjectId: string
        timeouts:
            create: string
            delete: string
        wafCloudInstanceV1Id: string
        website: string
    

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

    Website string
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    ChargingMode string
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    EnterpriseProjectId string
    The ID of the enterprise project to which the cloud WAF belongs.
    Timeouts WafCloudInstanceV1Timeouts
    WafCloudInstanceV1Id string
    The resource ID of the postpaid protected-domain WAF subscription item.
    Website string
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    ChargingMode string
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    EnterpriseProjectId string
    The ID of the enterprise project to which the cloud WAF belongs.
    Timeouts WafCloudInstanceV1TimeoutsArgs
    WafCloudInstanceV1Id string
    The resource ID of the postpaid protected-domain WAF subscription item.
    website String
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    chargingMode String
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    enterpriseProjectId String
    The ID of the enterprise project to which the cloud WAF belongs.
    timeouts WafCloudInstanceV1Timeouts
    wafCloudInstanceV1Id String
    The resource ID of the postpaid protected-domain WAF subscription item.
    website string
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    chargingMode string
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    enterpriseProjectId string
    The ID of the enterprise project to which the cloud WAF belongs.
    timeouts WafCloudInstanceV1Timeouts
    wafCloudInstanceV1Id string
    The resource ID of the postpaid protected-domain WAF subscription item.
    website str
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    charging_mode str
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    enterprise_project_id str
    The ID of the enterprise project to which the cloud WAF belongs.
    timeouts WafCloudInstanceV1TimeoutsArgs
    waf_cloud_instance_v1_id str
    The resource ID of the postpaid protected-domain WAF subscription item.
    website String
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    chargingMode String
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    enterpriseProjectId String
    The ID of the enterprise project to which the cloud WAF belongs.
    timeouts Property Map
    wafCloudInstanceV1Id String
    The resource ID of the postpaid protected-domain WAF subscription item.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceSpecCode string
    The specification code returned by the cloud WAF API.
    Status double
    The current resource status. The value can be:
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceSpecCode string
    The specification code returned by the cloud WAF API.
    Status float64
    The current resource status. The value can be:
    id String
    The provider-assigned unique ID for this managed resource.
    resourceSpecCode String
    The specification code returned by the cloud WAF API.
    status Double
    The current resource status. The value can be:
    id string
    The provider-assigned unique ID for this managed resource.
    resourceSpecCode string
    The specification code returned by the cloud WAF API.
    status number
    The current resource status. The value can be:
    id str
    The provider-assigned unique ID for this managed resource.
    resource_spec_code str
    The specification code returned by the cloud WAF API.
    status float
    The current resource status. The value can be:
    id String
    The provider-assigned unique ID for this managed resource.
    resourceSpecCode String
    The specification code returned by the cloud WAF API.
    status Number
    The current resource status. The value can be:

    Look up Existing WafCloudInstanceV1 Resource

    Get an existing WafCloudInstanceV1 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?: WafCloudInstanceV1State, opts?: CustomResourceOptions): WafCloudInstanceV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            charging_mode: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            resource_spec_code: Optional[str] = None,
            status: Optional[float] = None,
            timeouts: Optional[WafCloudInstanceV1TimeoutsArgs] = None,
            waf_cloud_instance_v1_id: Optional[str] = None,
            website: Optional[str] = None) -> WafCloudInstanceV1
    func GetWafCloudInstanceV1(ctx *Context, name string, id IDInput, state *WafCloudInstanceV1State, opts ...ResourceOption) (*WafCloudInstanceV1, error)
    public static WafCloudInstanceV1 Get(string name, Input<string> id, WafCloudInstanceV1State? state, CustomResourceOptions? opts = null)
    public static WafCloudInstanceV1 get(String name, Output<String> id, WafCloudInstanceV1State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:WafCloudInstanceV1    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:
    ChargingMode string
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    EnterpriseProjectId string
    The ID of the enterprise project to which the cloud WAF belongs.
    ResourceSpecCode string
    The specification code returned by the cloud WAF API.
    Status double
    The current resource status. The value can be:
    Timeouts WafCloudInstanceV1Timeouts
    WafCloudInstanceV1Id string
    The resource ID of the postpaid protected-domain WAF subscription item.
    Website string
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    ChargingMode string
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    EnterpriseProjectId string
    The ID of the enterprise project to which the cloud WAF belongs.
    ResourceSpecCode string
    The specification code returned by the cloud WAF API.
    Status float64
    The current resource status. The value can be:
    Timeouts WafCloudInstanceV1TimeoutsArgs
    WafCloudInstanceV1Id string
    The resource ID of the postpaid protected-domain WAF subscription item.
    Website string
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    chargingMode String
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    enterpriseProjectId String
    The ID of the enterprise project to which the cloud WAF belongs.
    resourceSpecCode String
    The specification code returned by the cloud WAF API.
    status Double
    The current resource status. The value can be:
    timeouts WafCloudInstanceV1Timeouts
    wafCloudInstanceV1Id String
    The resource ID of the postpaid protected-domain WAF subscription item.
    website String
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    chargingMode string
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    enterpriseProjectId string
    The ID of the enterprise project to which the cloud WAF belongs.
    resourceSpecCode string
    The specification code returned by the cloud WAF API.
    status number
    The current resource status. The value can be:
    timeouts WafCloudInstanceV1Timeouts
    wafCloudInstanceV1Id string
    The resource ID of the postpaid protected-domain WAF subscription item.
    website string
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    charging_mode str
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    enterprise_project_id str
    The ID of the enterprise project to which the cloud WAF belongs.
    resource_spec_code str
    The specification code returned by the cloud WAF API.
    status float
    The current resource status. The value can be:
    timeouts WafCloudInstanceV1TimeoutsArgs
    waf_cloud_instance_v1_id str
    The resource ID of the postpaid protected-domain WAF subscription item.
    website str
    Website to which the account belongs. The current API expects the cloud website value, for example dt.
    chargingMode String
    The charging mode of the cloud WAF. Defaults to postPaid. Only postPaid is currently supported, but this argument is kept in the schema for forward compatibility.
    enterpriseProjectId String
    The ID of the enterprise project to which the cloud WAF belongs.
    resourceSpecCode String
    The specification code returned by the cloud WAF API.
    status Number
    The current resource status. The value can be:
    timeouts Property Map
    wafCloudInstanceV1Id String
    The resource ID of the postpaid protected-domain WAF subscription item.
    website String
    Website to which the account belongs. The current API expects the cloud website value, for example dt.

    Supporting Types

    WafCloudInstanceV1Timeouts, WafCloudInstanceV1TimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    Cloud WAF instances can be imported using the id, e.g.

    $ pulumi import opentelekomcloud:index/wafCloudInstanceV1:WafCloudInstanceV1 cloud_1 239a19866000479b8d22d4954980f790
    

    The API also does not return charging_mode; keep it in configuration as postPaid.

    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.
    Viewing docs for opentelekomcloud 1.36.65
    published on Thursday, May 7, 2026 by opentelekomcloud
      Try Pulumi Cloud free. Your team will thank you.