1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CynosdbWan
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.CynosdbWan

Explore with Pulumi AI

Provides a resource to create a cynosdb wan

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const wan = new tencentcloud.CynosdbWan("wan", {
    clusterId: "cynosdbmysql-bws8h88b",
    instanceGrpId: "cynosdbmysql-grp-lxav0p9z",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

wan = tencentcloud.CynosdbWan("wan",
    cluster_id="cynosdbmysql-bws8h88b",
    instance_grp_id="cynosdbmysql-grp-lxav0p9z")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewCynosdbWan(ctx, "wan", &tencentcloud.CynosdbWanArgs{
			ClusterId:     pulumi.String("cynosdbmysql-bws8h88b"),
			InstanceGrpId: pulumi.String("cynosdbmysql-grp-lxav0p9z"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var wan = new Tencentcloud.CynosdbWan("wan", new()
    {
        ClusterId = "cynosdbmysql-bws8h88b",
        InstanceGrpId = "cynosdbmysql-grp-lxav0p9z",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbWan;
import com.pulumi.tencentcloud.CynosdbWanArgs;
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 wan = new CynosdbWan("wan", CynosdbWanArgs.builder()
            .clusterId("cynosdbmysql-bws8h88b")
            .instanceGrpId("cynosdbmysql-grp-lxav0p9z")
            .build());

    }
}
Copy
resources:
  wan:
    type: tencentcloud:CynosdbWan
    properties:
      clusterId: cynosdbmysql-bws8h88b
      instanceGrpId: cynosdbmysql-grp-lxav0p9z
Copy

Create CynosdbWan Resource

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

Constructor syntax

new CynosdbWan(name: string, args: CynosdbWanArgs, opts?: CustomResourceOptions);
@overload
def CynosdbWan(resource_name: str,
               args: CynosdbWanArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def CynosdbWan(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               cluster_id: Optional[str] = None,
               instance_grp_id: Optional[str] = None,
               cynosdb_wan_id: Optional[str] = None)
func NewCynosdbWan(ctx *Context, name string, args CynosdbWanArgs, opts ...ResourceOption) (*CynosdbWan, error)
public CynosdbWan(string name, CynosdbWanArgs args, CustomResourceOptions? opts = null)
public CynosdbWan(String name, CynosdbWanArgs args)
public CynosdbWan(String name, CynosdbWanArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbWan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CynosdbWanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CynosdbWanArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CynosdbWanArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CynosdbWanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CynosdbWanArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ClusterId This property is required. string
Cluster ID.
InstanceGrpId This property is required. string
Instance Group ID.
CynosdbWanId string
ID of the resource.
ClusterId This property is required. string
Cluster ID.
InstanceGrpId This property is required. string
Instance Group ID.
CynosdbWanId string
ID of the resource.
clusterId This property is required. String
Cluster ID.
instanceGrpId This property is required. String
Instance Group ID.
cynosdbWanId String
ID of the resource.
clusterId This property is required. string
Cluster ID.
instanceGrpId This property is required. string
Instance Group ID.
cynosdbWanId string
ID of the resource.
cluster_id This property is required. str
Cluster ID.
instance_grp_id This property is required. str
Instance Group ID.
cynosdb_wan_id str
ID of the resource.
clusterId This property is required. String
Cluster ID.
instanceGrpId This property is required. String
Instance Group ID.
cynosdbWanId String
ID of the resource.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
WanDomain string
Domain name.
WanIp string
Network ip.
WanPort double
Internet port.
WanStatus string
Internet status.
Id string
The provider-assigned unique ID for this managed resource.
WanDomain string
Domain name.
WanIp string
Network ip.
WanPort float64
Internet port.
WanStatus string
Internet status.
id String
The provider-assigned unique ID for this managed resource.
wanDomain String
Domain name.
wanIp String
Network ip.
wanPort Double
Internet port.
wanStatus String
Internet status.
id string
The provider-assigned unique ID for this managed resource.
wanDomain string
Domain name.
wanIp string
Network ip.
wanPort number
Internet port.
wanStatus string
Internet status.
id str
The provider-assigned unique ID for this managed resource.
wan_domain str
Domain name.
wan_ip str
Network ip.
wan_port float
Internet port.
wan_status str
Internet status.
id String
The provider-assigned unique ID for this managed resource.
wanDomain String
Domain name.
wanIp String
Network ip.
wanPort Number
Internet port.
wanStatus String
Internet status.

Look up Existing CynosdbWan Resource

Get an existing CynosdbWan 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?: CynosdbWanState, opts?: CustomResourceOptions): CynosdbWan
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cluster_id: Optional[str] = None,
        cynosdb_wan_id: Optional[str] = None,
        instance_grp_id: Optional[str] = None,
        wan_domain: Optional[str] = None,
        wan_ip: Optional[str] = None,
        wan_port: Optional[float] = None,
        wan_status: Optional[str] = None) -> CynosdbWan
func GetCynosdbWan(ctx *Context, name string, id IDInput, state *CynosdbWanState, opts ...ResourceOption) (*CynosdbWan, error)
public static CynosdbWan Get(string name, Input<string> id, CynosdbWanState? state, CustomResourceOptions? opts = null)
public static CynosdbWan get(String name, Output<String> id, CynosdbWanState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CynosdbWan    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
ClusterId string
Cluster ID.
CynosdbWanId string
ID of the resource.
InstanceGrpId string
Instance Group ID.
WanDomain string
Domain name.
WanIp string
Network ip.
WanPort double
Internet port.
WanStatus string
Internet status.
ClusterId string
Cluster ID.
CynosdbWanId string
ID of the resource.
InstanceGrpId string
Instance Group ID.
WanDomain string
Domain name.
WanIp string
Network ip.
WanPort float64
Internet port.
WanStatus string
Internet status.
clusterId String
Cluster ID.
cynosdbWanId String
ID of the resource.
instanceGrpId String
Instance Group ID.
wanDomain String
Domain name.
wanIp String
Network ip.
wanPort Double
Internet port.
wanStatus String
Internet status.
clusterId string
Cluster ID.
cynosdbWanId string
ID of the resource.
instanceGrpId string
Instance Group ID.
wanDomain string
Domain name.
wanIp string
Network ip.
wanPort number
Internet port.
wanStatus string
Internet status.
cluster_id str
Cluster ID.
cynosdb_wan_id str
ID of the resource.
instance_grp_id str
Instance Group ID.
wan_domain str
Domain name.
wan_ip str
Network ip.
wan_port float
Internet port.
wan_status str
Internet status.
clusterId String
Cluster ID.
cynosdbWanId String
ID of the resource.
instanceGrpId String
Instance Group ID.
wanDomain String
Domain name.
wanIp String
Network ip.
wanPort Number
Internet port.
wanStatus String
Internet status.

Import

cynosdb wan can be imported using the id, e.g.

$ pulumi import tencentcloud:index/cynosdbWan:CynosdbWan wan cynosdbmysql-bws8h88b#cynosdbmysql-grp-lxav0p9z
Copy

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

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.