1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. SqlserverWanIpConfig
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.SqlserverWanIpConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a sqlserver wan ip config

    Example Usage

    Open/Close wan ip for SQL instance

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    // close
    const example = new tencentcloud.SqlserverWanIpConfig("example", {
        enableWanIp: false,
        instanceId: "mssql-gy1lc54f",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    # close
    example = tencentcloud.SqlserverWanIpConfig("example",
        enable_wan_ip=False,
        instance_id="mssql-gy1lc54f")
    
    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 {
    		// close
    		_, err := tencentcloud.NewSqlserverWanIpConfig(ctx, "example", &tencentcloud.SqlserverWanIpConfigArgs{
    			EnableWanIp: pulumi.Bool(false),
    			InstanceId:  pulumi.String("mssql-gy1lc54f"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        // close
        var example = new Tencentcloud.SqlserverWanIpConfig("example", new()
        {
            EnableWanIp = false,
            InstanceId = "mssql-gy1lc54f",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SqlserverWanIpConfig;
    import com.pulumi.tencentcloud.SqlserverWanIpConfigArgs;
    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) {
            // close
            var example = new SqlserverWanIpConfig("example", SqlserverWanIpConfigArgs.builder()
                .enableWanIp(false)
                .instanceId("mssql-gy1lc54f")
                .build());
    
        }
    }
    
    resources:
      # close
      example:
        type: tencentcloud:SqlserverWanIpConfig
        properties:
          enableWanIp: false
          instanceId: mssql-gy1lc54f
    

    Open/Close wan ip for SQL read only group

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    // close
    const example = new tencentcloud.SqlserverWanIpConfig("example", {
        enableWanIp: false,
        instanceId: "mssql-gy1lc54f",
        roGroupId: "mssqlrg-hyxotm31",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    # close
    example = tencentcloud.SqlserverWanIpConfig("example",
        enable_wan_ip=False,
        instance_id="mssql-gy1lc54f",
        ro_group_id="mssqlrg-hyxotm31")
    
    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 {
    		// close
    		_, err := tencentcloud.NewSqlserverWanIpConfig(ctx, "example", &tencentcloud.SqlserverWanIpConfigArgs{
    			EnableWanIp: pulumi.Bool(false),
    			InstanceId:  pulumi.String("mssql-gy1lc54f"),
    			RoGroupId:   pulumi.String("mssqlrg-hyxotm31"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        // close
        var example = new Tencentcloud.SqlserverWanIpConfig("example", new()
        {
            EnableWanIp = false,
            InstanceId = "mssql-gy1lc54f",
            RoGroupId = "mssqlrg-hyxotm31",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.SqlserverWanIpConfig;
    import com.pulumi.tencentcloud.SqlserverWanIpConfigArgs;
    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) {
            // close
            var example = new SqlserverWanIpConfig("example", SqlserverWanIpConfigArgs.builder()
                .enableWanIp(false)
                .instanceId("mssql-gy1lc54f")
                .roGroupId("mssqlrg-hyxotm31")
                .build());
    
        }
    }
    
    resources:
      # close
      example:
        type: tencentcloud:SqlserverWanIpConfig
        properties:
          enableWanIp: false
          instanceId: mssql-gy1lc54f
          roGroupId: mssqlrg-hyxotm31
    

    Create SqlserverWanIpConfig Resource

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

    Constructor syntax

    new SqlserverWanIpConfig(name: string, args: SqlserverWanIpConfigArgs, opts?: CustomResourceOptions);
    @overload
    def SqlserverWanIpConfig(resource_name: str,
                             args: SqlserverWanIpConfigArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def SqlserverWanIpConfig(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             enable_wan_ip: Optional[bool] = None,
                             instance_id: Optional[str] = None,
                             ro_group_id: Optional[str] = None,
                             sqlserver_wan_ip_config_id: Optional[str] = None)
    func NewSqlserverWanIpConfig(ctx *Context, name string, args SqlserverWanIpConfigArgs, opts ...ResourceOption) (*SqlserverWanIpConfig, error)
    public SqlserverWanIpConfig(string name, SqlserverWanIpConfigArgs args, CustomResourceOptions? opts = null)
    public SqlserverWanIpConfig(String name, SqlserverWanIpConfigArgs args)
    public SqlserverWanIpConfig(String name, SqlserverWanIpConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:SqlserverWanIpConfig
    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 SqlserverWanIpConfigArgs
    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 SqlserverWanIpConfigArgs
    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 SqlserverWanIpConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SqlserverWanIpConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SqlserverWanIpConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    EnableWanIp bool
    Whether to open wan ip, true: enable; false: disable.
    InstanceId string
    Instance ID.
    RoGroupId string
    Read only group ID.
    SqlserverWanIpConfigId string
    ID of the resource.
    EnableWanIp bool
    Whether to open wan ip, true: enable; false: disable.
    InstanceId string
    Instance ID.
    RoGroupId string
    Read only group ID.
    SqlserverWanIpConfigId string
    ID of the resource.
    enableWanIp Boolean
    Whether to open wan ip, true: enable; false: disable.
    instanceId String
    Instance ID.
    roGroupId String
    Read only group ID.
    sqlserverWanIpConfigId String
    ID of the resource.
    enableWanIp boolean
    Whether to open wan ip, true: enable; false: disable.
    instanceId string
    Instance ID.
    roGroupId string
    Read only group ID.
    sqlserverWanIpConfigId string
    ID of the resource.
    enable_wan_ip bool
    Whether to open wan ip, true: enable; false: disable.
    instance_id str
    Instance ID.
    ro_group_id str
    Read only group ID.
    sqlserver_wan_ip_config_id str
    ID of the resource.
    enableWanIp Boolean
    Whether to open wan ip, true: enable; false: disable.
    instanceId String
    Instance ID.
    roGroupId String
    Read only group ID.
    sqlserverWanIpConfigId String
    ID of the resource.

    Outputs

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

    DnsPodDomain string
    Internet address domain name.
    Id string
    The provider-assigned unique ID for this managed resource.
    RoGroups List<SqlserverWanIpConfigRoGroup>
    Read only group.
    TgwWanVport double
    External port number.
    DnsPodDomain string
    Internet address domain name.
    Id string
    The provider-assigned unique ID for this managed resource.
    RoGroups []SqlserverWanIpConfigRoGroup
    Read only group.
    TgwWanVport float64
    External port number.
    dnsPodDomain String
    Internet address domain name.
    id String
    The provider-assigned unique ID for this managed resource.
    roGroups List<SqlserverWanIpConfigRoGroup>
    Read only group.
    tgwWanVport Double
    External port number.
    dnsPodDomain string
    Internet address domain name.
    id string
    The provider-assigned unique ID for this managed resource.
    roGroups SqlserverWanIpConfigRoGroup[]
    Read only group.
    tgwWanVport number
    External port number.
    dns_pod_domain str
    Internet address domain name.
    id str
    The provider-assigned unique ID for this managed resource.
    ro_groups Sequence[SqlserverWanIpConfigRoGroup]
    Read only group.
    tgw_wan_vport float
    External port number.
    dnsPodDomain String
    Internet address domain name.
    id String
    The provider-assigned unique ID for this managed resource.
    roGroups List<Property Map>
    Read only group.
    tgwWanVport Number
    External port number.

    Look up Existing SqlserverWanIpConfig Resource

    Get an existing SqlserverWanIpConfig 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?: SqlserverWanIpConfigState, opts?: CustomResourceOptions): SqlserverWanIpConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dns_pod_domain: Optional[str] = None,
            enable_wan_ip: Optional[bool] = None,
            instance_id: Optional[str] = None,
            ro_group_id: Optional[str] = None,
            ro_groups: Optional[Sequence[SqlserverWanIpConfigRoGroupArgs]] = None,
            sqlserver_wan_ip_config_id: Optional[str] = None,
            tgw_wan_vport: Optional[float] = None) -> SqlserverWanIpConfig
    func GetSqlserverWanIpConfig(ctx *Context, name string, id IDInput, state *SqlserverWanIpConfigState, opts ...ResourceOption) (*SqlserverWanIpConfig, error)
    public static SqlserverWanIpConfig Get(string name, Input<string> id, SqlserverWanIpConfigState? state, CustomResourceOptions? opts = null)
    public static SqlserverWanIpConfig get(String name, Output<String> id, SqlserverWanIpConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:SqlserverWanIpConfig    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:
    DnsPodDomain string
    Internet address domain name.
    EnableWanIp bool
    Whether to open wan ip, true: enable; false: disable.
    InstanceId string
    Instance ID.
    RoGroupId string
    Read only group ID.
    RoGroups List<SqlserverWanIpConfigRoGroup>
    Read only group.
    SqlserverWanIpConfigId string
    ID of the resource.
    TgwWanVport double
    External port number.
    DnsPodDomain string
    Internet address domain name.
    EnableWanIp bool
    Whether to open wan ip, true: enable; false: disable.
    InstanceId string
    Instance ID.
    RoGroupId string
    Read only group ID.
    RoGroups []SqlserverWanIpConfigRoGroupArgs
    Read only group.
    SqlserverWanIpConfigId string
    ID of the resource.
    TgwWanVport float64
    External port number.
    dnsPodDomain String
    Internet address domain name.
    enableWanIp Boolean
    Whether to open wan ip, true: enable; false: disable.
    instanceId String
    Instance ID.
    roGroupId String
    Read only group ID.
    roGroups List<SqlserverWanIpConfigRoGroup>
    Read only group.
    sqlserverWanIpConfigId String
    ID of the resource.
    tgwWanVport Double
    External port number.
    dnsPodDomain string
    Internet address domain name.
    enableWanIp boolean
    Whether to open wan ip, true: enable; false: disable.
    instanceId string
    Instance ID.
    roGroupId string
    Read only group ID.
    roGroups SqlserverWanIpConfigRoGroup[]
    Read only group.
    sqlserverWanIpConfigId string
    ID of the resource.
    tgwWanVport number
    External port number.
    dns_pod_domain str
    Internet address domain name.
    enable_wan_ip bool
    Whether to open wan ip, true: enable; false: disable.
    instance_id str
    Instance ID.
    ro_group_id str
    Read only group ID.
    ro_groups Sequence[SqlserverWanIpConfigRoGroupArgs]
    Read only group.
    sqlserver_wan_ip_config_id str
    ID of the resource.
    tgw_wan_vport float
    External port number.
    dnsPodDomain String
    Internet address domain name.
    enableWanIp Boolean
    Whether to open wan ip, true: enable; false: disable.
    instanceId String
    Instance ID.
    roGroupId String
    Read only group ID.
    roGroups List<Property Map>
    Read only group.
    sqlserverWanIpConfigId String
    ID of the resource.
    tgwWanVport Number
    External port number.

    Supporting Types

    SqlserverWanIpConfigRoGroup, SqlserverWanIpConfigRoGroupArgs

    DnsPodDomain string
    Internet address domain name.
    TgwWanVport double
    External port number.
    DnsPodDomain string
    Internet address domain name.
    TgwWanVport float64
    External port number.
    dnsPodDomain String
    Internet address domain name.
    tgwWanVport Double
    External port number.
    dnsPodDomain string
    Internet address domain name.
    tgwWanVport number
    External port number.
    dns_pod_domain str
    Internet address domain name.
    tgw_wan_vport float
    External port number.
    dnsPodDomain String
    Internet address domain name.
    tgwWanVport Number
    External port number.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack