tencentcloud.BiDatasourceCloud
Explore with Pulumi AI
Provides a resource to create a bi datasource_cloud
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const datasourceCloud = new tencentcloud.BiDatasourceCloud("datasourceCloud", {
charset: "utf8",
dbName: "bi_dev",
dbPwd: "xxxxxx",
dbType: "MYSQL",
dbUser: "root",
projectId: "11015056",
regionId: "gz",
serviceType: {
instanceId: "cdb-12viotu5",
region: "ap-guangzhou",
type: "Cloud",
},
sourceName: "tf-test1",
vip: "10.0.0.4",
vpcId: "5292713",
vport: "3306",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
datasource_cloud = tencentcloud.BiDatasourceCloud("datasourceCloud",
charset="utf8",
db_name="bi_dev",
db_pwd="xxxxxx",
db_type="MYSQL",
db_user="root",
project_id="11015056",
region_id="gz",
service_type={
"instance_id": "cdb-12viotu5",
"region": "ap-guangzhou",
"type": "Cloud",
},
source_name="tf-test1",
vip="10.0.0.4",
vpc_id="5292713",
vport="3306")
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.NewBiDatasourceCloud(ctx, "datasourceCloud", &tencentcloud.BiDatasourceCloudArgs{
Charset: pulumi.String("utf8"),
DbName: pulumi.String("bi_dev"),
DbPwd: pulumi.String("xxxxxx"),
DbType: pulumi.String("MYSQL"),
DbUser: pulumi.String("root"),
ProjectId: pulumi.String("11015056"),
RegionId: pulumi.String("gz"),
ServiceType: &tencentcloud.BiDatasourceCloudServiceTypeArgs{
InstanceId: pulumi.String("cdb-12viotu5"),
Region: pulumi.String("ap-guangzhou"),
Type: pulumi.String("Cloud"),
},
SourceName: pulumi.String("tf-test1"),
Vip: pulumi.String("10.0.0.4"),
VpcId: pulumi.String("5292713"),
Vport: pulumi.String("3306"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var datasourceCloud = new Tencentcloud.BiDatasourceCloud("datasourceCloud", new()
{
Charset = "utf8",
DbName = "bi_dev",
DbPwd = "xxxxxx",
DbType = "MYSQL",
DbUser = "root",
ProjectId = "11015056",
RegionId = "gz",
ServiceType = new Tencentcloud.Inputs.BiDatasourceCloudServiceTypeArgs
{
InstanceId = "cdb-12viotu5",
Region = "ap-guangzhou",
Type = "Cloud",
},
SourceName = "tf-test1",
Vip = "10.0.0.4",
VpcId = "5292713",
Vport = "3306",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BiDatasourceCloud;
import com.pulumi.tencentcloud.BiDatasourceCloudArgs;
import com.pulumi.tencentcloud.inputs.BiDatasourceCloudServiceTypeArgs;
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 datasourceCloud = new BiDatasourceCloud("datasourceCloud", BiDatasourceCloudArgs.builder()
.charset("utf8")
.dbName("bi_dev")
.dbPwd("xxxxxx")
.dbType("MYSQL")
.dbUser("root")
.projectId("11015056")
.regionId("gz")
.serviceType(BiDatasourceCloudServiceTypeArgs.builder()
.instanceId("cdb-12viotu5")
.region("ap-guangzhou")
.type("Cloud")
.build())
.sourceName("tf-test1")
.vip("10.0.0.4")
.vpcId(5292713)
.vport("3306")
.build());
}
}
resources:
datasourceCloud:
type: tencentcloud:BiDatasourceCloud
properties:
charset: utf8
dbName: bi_dev
dbPwd: xxxxxx
dbType: MYSQL
dbUser: root
projectId: '11015056'
regionId: gz
serviceType:
instanceId: cdb-12viotu5
region: ap-guangzhou
type: Cloud
sourceName: tf-test1
vip: 10.0.0.4
vpcId: 5.292713e+06
vport: '3306'
Create BiDatasourceCloud Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BiDatasourceCloud(name: string, args: BiDatasourceCloudArgs, opts?: CustomResourceOptions);
@overload
def BiDatasourceCloud(resource_name: str,
args: BiDatasourceCloudArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BiDatasourceCloud(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_user: Optional[str] = None,
charset: Optional[str] = None,
vpc_id: Optional[str] = None,
source_name: Optional[str] = None,
service_type: Optional[BiDatasourceCloudServiceTypeArgs] = None,
project_id: Optional[str] = None,
db_name: Optional[str] = None,
db_pwd: Optional[str] = None,
db_type: Optional[str] = None,
data_origin_datasource_id: Optional[str] = None,
extra_param: Optional[str] = None,
data_origin_project_id: Optional[str] = None,
region_id: Optional[str] = None,
bi_datasource_cloud_id: Optional[str] = None,
data_origin: Optional[str] = None,
uniq_vpc_id: Optional[str] = None,
vip: Optional[str] = None,
cluster_id: Optional[str] = None,
vport: Optional[str] = None)
func NewBiDatasourceCloud(ctx *Context, name string, args BiDatasourceCloudArgs, opts ...ResourceOption) (*BiDatasourceCloud, error)
public BiDatasourceCloud(string name, BiDatasourceCloudArgs args, CustomResourceOptions? opts = null)
public BiDatasourceCloud(String name, BiDatasourceCloudArgs args)
public BiDatasourceCloud(String name, BiDatasourceCloudArgs args, CustomResourceOptions options)
type: tencentcloud:BiDatasourceCloud
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 BiDatasourceCloudArgs
- 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 BiDatasourceCloudArgs
- 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 BiDatasourceCloudArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BiDatasourceCloudArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BiDatasourceCloudArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BiDatasourceCloud 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 BiDatasourceCloud resource accepts the following input properties:
- Charset string
- Charset.
- Db
Name string - Database name.
- Db
Pwd string - Password.
- Db
Type string MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- Db
User string - User name.
- Project
Id string - Project id.
- Service
Type BiDatasource Cloud Service Type - Service type, Own or Cloud.
- Source
Name string - Datasource name in BI.
- Vpc
Id string - Vpc identification.
- Bi
Datasource stringCloud Id - ID of the resource.
- Cluster
Id string - Cluster id.
- Data
Origin string - Third-party datasource identification, this parameter can be ignored.
- Data
Origin stringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- Data
Origin stringProject Id - Third-party datasource project id, this parameter can be ignored.
- Extra
Param string - Extended parameters.
- Region
Id string - Region identifier.
- Uniq
Vpc stringId - Unified vpc identification.
- Vip string
- Public cloud intranet ip.
- Vport string
- Public cloud intranet port.
- Charset string
- Charset.
- Db
Name string - Database name.
- Db
Pwd string - Password.
- Db
Type string MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- Db
User string - User name.
- Project
Id string - Project id.
- Service
Type BiDatasource Cloud Service Type Args - Service type, Own or Cloud.
- Source
Name string - Datasource name in BI.
- Vpc
Id string - Vpc identification.
- Bi
Datasource stringCloud Id - ID of the resource.
- Cluster
Id string - Cluster id.
- Data
Origin string - Third-party datasource identification, this parameter can be ignored.
- Data
Origin stringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- Data
Origin stringProject Id - Third-party datasource project id, this parameter can be ignored.
- Extra
Param string - Extended parameters.
- Region
Id string - Region identifier.
- Uniq
Vpc stringId - Unified vpc identification.
- Vip string
- Public cloud intranet ip.
- Vport string
- Public cloud intranet port.
- charset String
- Charset.
- db
Name String - Database name.
- db
Pwd String - Password.
- db
Type String MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- db
User String - User name.
- project
Id String - Project id.
- service
Type BiDatasource Cloud Service Type - Service type, Own or Cloud.
- source
Name String - Datasource name in BI.
- vpc
Id String - Vpc identification.
- bi
Datasource StringCloud Id - ID of the resource.
- cluster
Id String - Cluster id.
- data
Origin String - Third-party datasource identification, this parameter can be ignored.
- data
Origin StringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- data
Origin StringProject Id - Third-party datasource project id, this parameter can be ignored.
- extra
Param String - Extended parameters.
- region
Id String - Region identifier.
- uniq
Vpc StringId - Unified vpc identification.
- vip String
- Public cloud intranet ip.
- vport String
- Public cloud intranet port.
- charset string
- Charset.
- db
Name string - Database name.
- db
Pwd string - Password.
- db
Type string MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- db
User string - User name.
- project
Id string - Project id.
- service
Type BiDatasource Cloud Service Type - Service type, Own or Cloud.
- source
Name string - Datasource name in BI.
- vpc
Id string - Vpc identification.
- bi
Datasource stringCloud Id - ID of the resource.
- cluster
Id string - Cluster id.
- data
Origin string - Third-party datasource identification, this parameter can be ignored.
- data
Origin stringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- data
Origin stringProject Id - Third-party datasource project id, this parameter can be ignored.
- extra
Param string - Extended parameters.
- region
Id string - Region identifier.
- uniq
Vpc stringId - Unified vpc identification.
- vip string
- Public cloud intranet ip.
- vport string
- Public cloud intranet port.
- charset str
- Charset.
- db_
name str - Database name.
- db_
pwd str - Password.
- db_
type str MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- db_
user str - User name.
- project_
id str - Project id.
- service_
type BiDatasource Cloud Service Type Args - Service type, Own or Cloud.
- source_
name str - Datasource name in BI.
- vpc_
id str - Vpc identification.
- bi_
datasource_ strcloud_ id - ID of the resource.
- cluster_
id str - Cluster id.
- data_
origin str - Third-party datasource identification, this parameter can be ignored.
- data_
origin_ strdatasource_ id - Third-party datasource project id, this parameter can be ignored.
- data_
origin_ strproject_ id - Third-party datasource project id, this parameter can be ignored.
- extra_
param str - Extended parameters.
- region_
id str - Region identifier.
- uniq_
vpc_ strid - Unified vpc identification.
- vip str
- Public cloud intranet ip.
- vport str
- Public cloud intranet port.
- charset String
- Charset.
- db
Name String - Database name.
- db
Pwd String - Password.
- db
Type String MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- db
User String - User name.
- project
Id String - Project id.
- service
Type Property Map - Service type, Own or Cloud.
- source
Name String - Datasource name in BI.
- vpc
Id String - Vpc identification.
- bi
Datasource StringCloud Id - ID of the resource.
- cluster
Id String - Cluster id.
- data
Origin String - Third-party datasource identification, this parameter can be ignored.
- data
Origin StringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- data
Origin StringProject Id - Third-party datasource project id, this parameter can be ignored.
- extra
Param String - Extended parameters.
- region
Id String - Region identifier.
- uniq
Vpc StringId - Unified vpc identification.
- vip String
- Public cloud intranet ip.
- vport String
- Public cloud intranet port.
Outputs
All input properties are implicitly available as output properties. Additionally, the BiDatasourceCloud resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing BiDatasourceCloud Resource
Get an existing BiDatasourceCloud 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?: BiDatasourceCloudState, opts?: CustomResourceOptions): BiDatasourceCloud
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bi_datasource_cloud_id: Optional[str] = None,
charset: Optional[str] = None,
cluster_id: Optional[str] = None,
data_origin: Optional[str] = None,
data_origin_datasource_id: Optional[str] = None,
data_origin_project_id: Optional[str] = None,
db_name: Optional[str] = None,
db_pwd: Optional[str] = None,
db_type: Optional[str] = None,
db_user: Optional[str] = None,
extra_param: Optional[str] = None,
project_id: Optional[str] = None,
region_id: Optional[str] = None,
service_type: Optional[BiDatasourceCloudServiceTypeArgs] = None,
source_name: Optional[str] = None,
uniq_vpc_id: Optional[str] = None,
vip: Optional[str] = None,
vpc_id: Optional[str] = None,
vport: Optional[str] = None) -> BiDatasourceCloud
func GetBiDatasourceCloud(ctx *Context, name string, id IDInput, state *BiDatasourceCloudState, opts ...ResourceOption) (*BiDatasourceCloud, error)
public static BiDatasourceCloud Get(string name, Input<string> id, BiDatasourceCloudState? state, CustomResourceOptions? opts = null)
public static BiDatasourceCloud get(String name, Output<String> id, BiDatasourceCloudState state, CustomResourceOptions options)
resources: _: type: tencentcloud:BiDatasourceCloud 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.
- Bi
Datasource stringCloud Id - ID of the resource.
- Charset string
- Charset.
- Cluster
Id string - Cluster id.
- Data
Origin string - Third-party datasource identification, this parameter can be ignored.
- Data
Origin stringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- Data
Origin stringProject Id - Third-party datasource project id, this parameter can be ignored.
- Db
Name string - Database name.
- Db
Pwd string - Password.
- Db
Type string MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- Db
User string - User name.
- Extra
Param string - Extended parameters.
- Project
Id string - Project id.
- Region
Id string - Region identifier.
- Service
Type BiDatasource Cloud Service Type - Service type, Own or Cloud.
- Source
Name string - Datasource name in BI.
- Uniq
Vpc stringId - Unified vpc identification.
- Vip string
- Public cloud intranet ip.
- Vpc
Id string - Vpc identification.
- Vport string
- Public cloud intranet port.
- Bi
Datasource stringCloud Id - ID of the resource.
- Charset string
- Charset.
- Cluster
Id string - Cluster id.
- Data
Origin string - Third-party datasource identification, this parameter can be ignored.
- Data
Origin stringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- Data
Origin stringProject Id - Third-party datasource project id, this parameter can be ignored.
- Db
Name string - Database name.
- Db
Pwd string - Password.
- Db
Type string MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- Db
User string - User name.
- Extra
Param string - Extended parameters.
- Project
Id string - Project id.
- Region
Id string - Region identifier.
- Service
Type BiDatasource Cloud Service Type Args - Service type, Own or Cloud.
- Source
Name string - Datasource name in BI.
- Uniq
Vpc stringId - Unified vpc identification.
- Vip string
- Public cloud intranet ip.
- Vpc
Id string - Vpc identification.
- Vport string
- Public cloud intranet port.
- bi
Datasource StringCloud Id - ID of the resource.
- charset String
- Charset.
- cluster
Id String - Cluster id.
- data
Origin String - Third-party datasource identification, this parameter can be ignored.
- data
Origin StringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- data
Origin StringProject Id - Third-party datasource project id, this parameter can be ignored.
- db
Name String - Database name.
- db
Pwd String - Password.
- db
Type String MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- db
User String - User name.
- extra
Param String - Extended parameters.
- project
Id String - Project id.
- region
Id String - Region identifier.
- service
Type BiDatasource Cloud Service Type - Service type, Own or Cloud.
- source
Name String - Datasource name in BI.
- uniq
Vpc StringId - Unified vpc identification.
- vip String
- Public cloud intranet ip.
- vpc
Id String - Vpc identification.
- vport String
- Public cloud intranet port.
- bi
Datasource stringCloud Id - ID of the resource.
- charset string
- Charset.
- cluster
Id string - Cluster id.
- data
Origin string - Third-party datasource identification, this parameter can be ignored.
- data
Origin stringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- data
Origin stringProject Id - Third-party datasource project id, this parameter can be ignored.
- db
Name string - Database name.
- db
Pwd string - Password.
- db
Type string MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- db
User string - User name.
- extra
Param string - Extended parameters.
- project
Id string - Project id.
- region
Id string - Region identifier.
- service
Type BiDatasource Cloud Service Type - Service type, Own or Cloud.
- source
Name string - Datasource name in BI.
- uniq
Vpc stringId - Unified vpc identification.
- vip string
- Public cloud intranet ip.
- vpc
Id string - Vpc identification.
- vport string
- Public cloud intranet port.
- bi_
datasource_ strcloud_ id - ID of the resource.
- charset str
- Charset.
- cluster_
id str - Cluster id.
- data_
origin str - Third-party datasource identification, this parameter can be ignored.
- data_
origin_ strdatasource_ id - Third-party datasource project id, this parameter can be ignored.
- data_
origin_ strproject_ id - Third-party datasource project id, this parameter can be ignored.
- db_
name str - Database name.
- db_
pwd str - Password.
- db_
type str MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- db_
user str - User name.
- extra_
param str - Extended parameters.
- project_
id str - Project id.
- region_
id str - Region identifier.
- service_
type BiDatasource Cloud Service Type Args - Service type, Own or Cloud.
- source_
name str - Datasource name in BI.
- uniq_
vpc_ strid - Unified vpc identification.
- vip str
- Public cloud intranet ip.
- vpc_
id str - Vpc identification.
- vport str
- Public cloud intranet port.
- bi
Datasource StringCloud Id - ID of the resource.
- charset String
- Charset.
- cluster
Id String - Cluster id.
- data
Origin String - Third-party datasource identification, this parameter can be ignored.
- data
Origin StringDatasource Id - Third-party datasource project id, this parameter can be ignored.
- data
Origin StringProject Id - Third-party datasource project id, this parameter can be ignored.
- db
Name String - Database name.
- db
Pwd String - Password.
- db
Type String MYSQL
,TDSQL-C_MYSQL
,TDSQL_MYSQL
,MSSQL
,POSTGRESQL
,MARIADB
.- db
User String - User name.
- extra
Param String - Extended parameters.
- project
Id String - Project id.
- region
Id String - Region identifier.
- service
Type Property Map - Service type, Own or Cloud.
- source
Name String - Datasource name in BI.
- uniq
Vpc StringId - Unified vpc identification.
- vip String
- Public cloud intranet ip.
- vpc
Id String - Vpc identification.
- vport String
- Public cloud intranet port.
Supporting Types
BiDatasourceCloudServiceType, BiDatasourceCloudServiceTypeArgs
- Instance
Id string - Instance Id.
- Region string
- Region.
- Type string
- Service type, Cloud.
- Instance
Id string - Instance Id.
- Region string
- Region.
- Type string
- Service type, Cloud.
- instance
Id String - Instance Id.
- region String
- Region.
- type String
- Service type, Cloud.
- instance
Id string - Instance Id.
- region string
- Region.
- type string
- Service type, Cloud.
- instance_
id str - Instance Id.
- region str
- Region.
- type str
- Service type, Cloud.
- instance
Id String - Instance Id.
- region String
- Region.
- type String
- Service type, Cloud.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.