tencentcloud.SqlserverWanIpConfig
Explore with Pulumi AI
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:
- Enable
Wan boolIp - Whether to open wan ip, true: enable; false: disable.
- Instance
Id string - Instance ID.
- Ro
Group stringId - Read only group ID.
- Sqlserver
Wan stringIp Config Id - ID of the resource.
- Enable
Wan boolIp - Whether to open wan ip, true: enable; false: disable.
- Instance
Id string - Instance ID.
- Ro
Group stringId - Read only group ID.
- Sqlserver
Wan stringIp Config Id - ID of the resource.
- enable
Wan BooleanIp - Whether to open wan ip, true: enable; false: disable.
- instance
Id String - Instance ID.
- ro
Group StringId - Read only group ID.
- sqlserver
Wan StringIp Config Id - ID of the resource.
- enable
Wan booleanIp - Whether to open wan ip, true: enable; false: disable.
- instance
Id string - Instance ID.
- ro
Group stringId - Read only group ID.
- sqlserver
Wan stringIp Config Id - ID of the resource.
- enable_
wan_ boolip - Whether to open wan ip, true: enable; false: disable.
- instance_
id str - Instance ID.
- ro_
group_ strid - Read only group ID.
- sqlserver_
wan_ strip_ config_ id - ID of the resource.
- enable
Wan BooleanIp - Whether to open wan ip, true: enable; false: disable.
- instance
Id String - Instance ID.
- ro
Group StringId - Read only group ID.
- sqlserver
Wan StringIp Config Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlserverWanIpConfig resource produces the following output properties:
- Dns
Pod stringDomain - Internet address domain name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ro
Groups List<SqlserverWan Ip Config Ro Group> - Read only group.
- Tgw
Wan doubleVport - External port number.
- Dns
Pod stringDomain - Internet address domain name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ro
Groups []SqlserverWan Ip Config Ro Group - Read only group.
- Tgw
Wan float64Vport - External port number.
- dns
Pod StringDomain - Internet address domain name.
- id String
- The provider-assigned unique ID for this managed resource.
- ro
Groups List<SqlserverWan Ip Config Ro Group> - Read only group.
- tgw
Wan DoubleVport - External port number.
- dns
Pod stringDomain - Internet address domain name.
- id string
- The provider-assigned unique ID for this managed resource.
- ro
Groups SqlserverWan Ip Config Ro Group[] - Read only group.
- tgw
Wan numberVport - External port number.
- dns_
pod_ strdomain - Internet address domain name.
- id str
- The provider-assigned unique ID for this managed resource.
- ro_
groups Sequence[SqlserverWan Ip Config Ro Group] - Read only group.
- tgw_
wan_ floatvport - External port number.
- dns
Pod StringDomain - Internet address domain name.
- id String
- The provider-assigned unique ID for this managed resource.
- ro
Groups List<Property Map> - Read only group.
- tgw
Wan NumberVport - 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.
- Dns
Pod stringDomain - Internet address domain name.
- Enable
Wan boolIp - Whether to open wan ip, true: enable; false: disable.
- Instance
Id string - Instance ID.
- Ro
Group stringId - Read only group ID.
- Ro
Groups List<SqlserverWan Ip Config Ro Group> - Read only group.
- Sqlserver
Wan stringIp Config Id - ID of the resource.
- Tgw
Wan doubleVport - External port number.
- Dns
Pod stringDomain - Internet address domain name.
- Enable
Wan boolIp - Whether to open wan ip, true: enable; false: disable.
- Instance
Id string - Instance ID.
- Ro
Group stringId - Read only group ID.
- Ro
Groups []SqlserverWan Ip Config Ro Group Args - Read only group.
- Sqlserver
Wan stringIp Config Id - ID of the resource.
- Tgw
Wan float64Vport - External port number.
- dns
Pod StringDomain - Internet address domain name.
- enable
Wan BooleanIp - Whether to open wan ip, true: enable; false: disable.
- instance
Id String - Instance ID.
- ro
Group StringId - Read only group ID.
- ro
Groups List<SqlserverWan Ip Config Ro Group> - Read only group.
- sqlserver
Wan StringIp Config Id - ID of the resource.
- tgw
Wan DoubleVport - External port number.
- dns
Pod stringDomain - Internet address domain name.
- enable
Wan booleanIp - Whether to open wan ip, true: enable; false: disable.
- instance
Id string - Instance ID.
- ro
Group stringId - Read only group ID.
- ro
Groups SqlserverWan Ip Config Ro Group[] - Read only group.
- sqlserver
Wan stringIp Config Id - ID of the resource.
- tgw
Wan numberVport - External port number.
- dns_
pod_ strdomain - Internet address domain name.
- enable_
wan_ boolip - Whether to open wan ip, true: enable; false: disable.
- instance_
id str - Instance ID.
- ro_
group_ strid - Read only group ID.
- ro_
groups Sequence[SqlserverWan Ip Config Ro Group Args] - Read only group.
- sqlserver_
wan_ strip_ config_ id - ID of the resource.
- tgw_
wan_ floatvport - External port number.
- dns
Pod StringDomain - Internet address domain name.
- enable
Wan BooleanIp - Whether to open wan ip, true: enable; false: disable.
- instance
Id String - Instance ID.
- ro
Group StringId - Read only group ID.
- ro
Groups List<Property Map> - Read only group.
- sqlserver
Wan StringIp Config Id - ID of the resource.
- tgw
Wan NumberVport - External port number.
Supporting Types
SqlserverWanIpConfigRoGroup, SqlserverWanIpConfigRoGroupArgs
- Dns
Pod stringDomain - Internet address domain name.
- Tgw
Wan doubleVport - External port number.
- Dns
Pod stringDomain - Internet address domain name.
- Tgw
Wan float64Vport - External port number.
- dns
Pod StringDomain - Internet address domain name.
- tgw
Wan DoubleVport - External port number.
- dns
Pod stringDomain - Internet address domain name.
- tgw
Wan numberVport - External port number.
- dns_
pod_ strdomain - Internet address domain name.
- tgw_
wan_ floatvport - External port number.
- dns
Pod StringDomain - Internet address domain name.
- tgw
Wan NumberVport - External port number.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.