tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getDbbrainDiagDbInstances
Start a Neo task
Explain and create a tencentcloud.getDbbrainDiagDbInstances resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of dbbrain diag_db_instances
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const diagDbInstances = tencentcloud.getDbbrainDiagDbInstances({
isSupported: true,
product: "mysql",
instanceNames: ["keep_preset_mysql"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
diag_db_instances = tencentcloud.get_dbbrain_diag_db_instances(is_supported=True,
product="mysql",
instance_names=["keep_preset_mysql"])
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.GetDbbrainDiagDbInstances(ctx, &tencentcloud.GetDbbrainDiagDbInstancesArgs{
IsSupported: true,
Product: "mysql",
InstanceNames: []string{
"keep_preset_mysql",
},
}, nil)
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 diagDbInstances = Tencentcloud.GetDbbrainDiagDbInstances.Invoke(new()
{
IsSupported = true,
Product = "mysql",
InstanceNames = new[]
{
"keep_preset_mysql",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetDbbrainDiagDbInstancesArgs;
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) {
final var diagDbInstances = TencentcloudFunctions.getDbbrainDiagDbInstances(GetDbbrainDiagDbInstancesArgs.builder()
.isSupported(true)
.product("mysql")
.instanceNames("keep_preset_mysql")
.build());
}
}
variables:
diagDbInstances:
fn::invoke:
function: tencentcloud:getDbbrainDiagDbInstances
arguments:
isSupported: true
product: mysql
instanceNames:
- keep_preset_mysql
Using getDbbrainDiagDbInstances
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDbbrainDiagDbInstances(args: GetDbbrainDiagDbInstancesArgs, opts?: InvokeOptions): Promise<GetDbbrainDiagDbInstancesResult>
function getDbbrainDiagDbInstancesOutput(args: GetDbbrainDiagDbInstancesOutputArgs, opts?: InvokeOptions): Output<GetDbbrainDiagDbInstancesResult>def get_dbbrain_diag_db_instances(id: Optional[str] = None,
instance_ids: Optional[Sequence[str]] = None,
instance_names: Optional[Sequence[str]] = None,
is_supported: Optional[bool] = None,
product: Optional[str] = None,
regions: Optional[Sequence[str]] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbbrainDiagDbInstancesResult
def get_dbbrain_diag_db_instances_output(id: Optional[pulumi.Input[str]] = None,
instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_names: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
is_supported: Optional[pulumi.Input[bool]] = None,
product: Optional[pulumi.Input[str]] = None,
regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainDiagDbInstancesResult]func GetDbbrainDiagDbInstances(ctx *Context, args *GetDbbrainDiagDbInstancesArgs, opts ...InvokeOption) (*GetDbbrainDiagDbInstancesResult, error)
func GetDbbrainDiagDbInstancesOutput(ctx *Context, args *GetDbbrainDiagDbInstancesOutputArgs, opts ...InvokeOption) GetDbbrainDiagDbInstancesResultOutput> Note: This function is named GetDbbrainDiagDbInstances in the Go SDK.
public static class GetDbbrainDiagDbInstances
{
public static Task<GetDbbrainDiagDbInstancesResult> InvokeAsync(GetDbbrainDiagDbInstancesArgs args, InvokeOptions? opts = null)
public static Output<GetDbbrainDiagDbInstancesResult> Invoke(GetDbbrainDiagDbInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDbbrainDiagDbInstancesResult> getDbbrainDiagDbInstances(GetDbbrainDiagDbInstancesArgs args, InvokeOptions options)
public static Output<GetDbbrainDiagDbInstancesResult> getDbbrainDiagDbInstances(GetDbbrainDiagDbInstancesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDbbrainDiagDbInstances:getDbbrainDiagDbInstances
arguments:
# arguments dictionaryThe following arguments are supported:
- Is
Supported bool - whether it is an instance supported by DBbrain, always pass
true. - Product string
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - Id string
- Instance
Ids List<string> - query based on the instance ID condition.
- Instance
Names List<string> - query based on the instance name condition.
- Regions List<string>
- query based on geographical conditions.
- Result
Output stringFile - Used to save results.
- Is
Supported bool - whether it is an instance supported by DBbrain, always pass
true. - Product string
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - Id string
- Instance
Ids []string - query based on the instance ID condition.
- Instance
Names []string - query based on the instance name condition.
- Regions []string
- query based on geographical conditions.
- Result
Output stringFile - Used to save results.
- is
Supported Boolean - whether it is an instance supported by DBbrain, always pass
true. - product String
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - id String
- instance
Ids List<String> - query based on the instance ID condition.
- instance
Names List<String> - query based on the instance name condition.
- regions List<String>
- query based on geographical conditions.
- result
Output StringFile - Used to save results.
- is
Supported boolean - whether it is an instance supported by DBbrain, always pass
true. - product string
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - id string
- instance
Ids string[] - query based on the instance ID condition.
- instance
Names string[] - query based on the instance name condition.
- regions string[]
- query based on geographical conditions.
- result
Output stringFile - Used to save results.
- is_
supported bool - whether it is an instance supported by DBbrain, always pass
true. - product str
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - id str
- instance_
ids Sequence[str] - query based on the instance ID condition.
- instance_
names Sequence[str] - query based on the instance name condition.
- regions Sequence[str]
- query based on geographical conditions.
- result_
output_ strfile - Used to save results.
- is
Supported Boolean - whether it is an instance supported by DBbrain, always pass
true. - product String
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - id String
- instance
Ids List<String> - query based on the instance ID condition.
- instance
Names List<String> - query based on the instance name condition.
- regions List<String>
- query based on geographical conditions.
- result
Output StringFile - Used to save results.
getDbbrainDiagDbInstances Result
The following output properties are available:
- Db
Scan doubleStatus - all-instance inspection status.
0: All-instance inspection is enabled;1: All-instance inspection is not enabled. - Id string
- Is
Supported bool - whether it is an instance supported by DBbrain.
- Items
List<Get
Dbbrain Diag Db Instances Item> - information about the instance.
- Product string
- belongs to the product.
- Instance
Ids List<string> - Instance
Names List<string> - Regions List<string>
- Result
Output stringFile
- Db
Scan float64Status - all-instance inspection status.
0: All-instance inspection is enabled;1: All-instance inspection is not enabled. - Id string
- Is
Supported bool - whether it is an instance supported by DBbrain.
- Items
[]Get
Dbbrain Diag Db Instances Item - information about the instance.
- Product string
- belongs to the product.
- Instance
Ids []string - Instance
Names []string - Regions []string
- Result
Output stringFile
- db
Scan DoubleStatus - all-instance inspection status.
0: All-instance inspection is enabled;1: All-instance inspection is not enabled. - id String
- is
Supported Boolean - whether it is an instance supported by DBbrain.
- items
List<Get
Dbbrain Diag Db Instances Item> - information about the instance.
- product String
- belongs to the product.
- instance
Ids List<String> - instance
Names List<String> - regions List<String>
- result
Output StringFile
- db
Scan numberStatus - all-instance inspection status.
0: All-instance inspection is enabled;1: All-instance inspection is not enabled. - id string
- is
Supported boolean - whether it is an instance supported by DBbrain.
- items
Get
Dbbrain Diag Db Instances Item[] - information about the instance.
- product string
- belongs to the product.
- instance
Ids string[] - instance
Names string[] - regions string[]
- result
Output stringFile
- db_
scan_ floatstatus - all-instance inspection status.
0: All-instance inspection is enabled;1: All-instance inspection is not enabled. - id str
- is_
supported bool - whether it is an instance supported by DBbrain.
- items
Sequence[Get
Dbbrain Diag Db Instances Item] - information about the instance.
- product str
- belongs to the product.
- instance_
ids Sequence[str] - instance_
names Sequence[str] - regions Sequence[str]
- result_
output_ strfile
- db
Scan NumberStatus - all-instance inspection status.
0: All-instance inspection is enabled;1: All-instance inspection is not enabled. - id String
- is
Supported Boolean - whether it is an instance supported by DBbrain.
- items List<Property Map>
- information about the instance.
- product String
- belongs to the product.
- instance
Ids List<String> - instance
Names List<String> - regions List<String>
- result
Output StringFile
Supporting Types
GetDbbrainDiagDbInstancesItem
- Audit
Policy stringStatus - Instance audit log enable status.
ALL_AUDIT: full audit is enabled;RULE_AUDIT: rule audit is enabled;UNBOUND: audit is not enabled. - Audit
Running stringStatus - Instance audit log running status.
normal: running;paused: arrears suspended. - Cpu double
- number of cores.
- Create
Time string - create time.
- Deadline
Time string - resource expiration time.
- Deploy
Mode string - cdb type.
- Engine
Version string - database version.
- Event
Count double - the number of abnormal events.
- Group
Id string - group ID.
- Group
Name string - group name.
- Health
Score double - health score.
- Init
Flag double - cdb instance initialization flag:
0: not initialized;1: initialized. - Instance
Confs List<GetDbbrain Diag Db Instances Item Instance Conf> - status of instance inspection/overview.
- Instance
Id string - instance id.
- Instance
Name string - instance name.
- Instance
Type double - instance type.
1: MASTER;2: DR,3: RO,4: SDR. - Internal
Vip string - Intranet VIPNote: This field may return null, indicating that no valid value can be obtained.
- Internal
Vport double - Intranet portNote: This field may return null, indicating that no valid value can be obtained.
- Is
Supported bool - whether it is an instance supported by DBbrain, always pass
true. - Memory double
- memory, in MB.
- Product string
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - Region string
- region.
- Sec
Audit stringStatus - enabled status of the instance security audit log.
ON: security audit is enabled;OFF: security audit is not enabled. - Source string
- access source.
- Status double
- Instance status:
0: Shipping;1: Running normally;4: Destroying;5: Isolating. - Task
Status double - task status.
- Uniq
Subnet stringId - subnet uniform ID.
- Uniq
Vpc stringId - the unified ID of the private network.
- Vip string
- intranet address.
- Volume double
- hard disk storage, in GB.
- Vport double
- intranet port.
- Audit
Policy stringStatus - Instance audit log enable status.
ALL_AUDIT: full audit is enabled;RULE_AUDIT: rule audit is enabled;UNBOUND: audit is not enabled. - Audit
Running stringStatus - Instance audit log running status.
normal: running;paused: arrears suspended. - Cpu float64
- number of cores.
- Create
Time string - create time.
- Deadline
Time string - resource expiration time.
- Deploy
Mode string - cdb type.
- Engine
Version string - database version.
- Event
Count float64 - the number of abnormal events.
- Group
Id string - group ID.
- Group
Name string - group name.
- Health
Score float64 - health score.
- Init
Flag float64 - cdb instance initialization flag:
0: not initialized;1: initialized. - Instance
Confs []GetDbbrain Diag Db Instances Item Instance Conf - status of instance inspection/overview.
- Instance
Id string - instance id.
- Instance
Name string - instance name.
- Instance
Type float64 - instance type.
1: MASTER;2: DR,3: RO,4: SDR. - Internal
Vip string - Intranet VIPNote: This field may return null, indicating that no valid value can be obtained.
- Internal
Vport float64 - Intranet portNote: This field may return null, indicating that no valid value can be obtained.
- Is
Supported bool - whether it is an instance supported by DBbrain, always pass
true. - Memory float64
- memory, in MB.
- Product string
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - Region string
- region.
- Sec
Audit stringStatus - enabled status of the instance security audit log.
ON: security audit is enabled;OFF: security audit is not enabled. - Source string
- access source.
- Status float64
- Instance status:
0: Shipping;1: Running normally;4: Destroying;5: Isolating. - Task
Status float64 - task status.
- Uniq
Subnet stringId - subnet uniform ID.
- Uniq
Vpc stringId - the unified ID of the private network.
- Vip string
- intranet address.
- Volume float64
- hard disk storage, in GB.
- Vport float64
- intranet port.
- audit
Policy StringStatus - Instance audit log enable status.
ALL_AUDIT: full audit is enabled;RULE_AUDIT: rule audit is enabled;UNBOUND: audit is not enabled. - audit
Running StringStatus - Instance audit log running status.
normal: running;paused: arrears suspended. - cpu Double
- number of cores.
- create
Time String - create time.
- deadline
Time String - resource expiration time.
- deploy
Mode String - cdb type.
- engine
Version String - database version.
- event
Count Double - the number of abnormal events.
- group
Id String - group ID.
- group
Name String - group name.
- health
Score Double - health score.
- init
Flag Double - cdb instance initialization flag:
0: not initialized;1: initialized. - instance
Confs List<GetDbbrain Diag Db Instances Item Instance Conf> - status of instance inspection/overview.
- instance
Id String - instance id.
- instance
Name String - instance name.
- instance
Type Double - instance type.
1: MASTER;2: DR,3: RO,4: SDR. - internal
Vip String - Intranet VIPNote: This field may return null, indicating that no valid value can be obtained.
- internal
Vport Double - Intranet portNote: This field may return null, indicating that no valid value can be obtained.
- is
Supported Boolean - whether it is an instance supported by DBbrain, always pass
true. - memory Double
- memory, in MB.
- product String
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - region String
- region.
- sec
Audit StringStatus - enabled status of the instance security audit log.
ON: security audit is enabled;OFF: security audit is not enabled. - source String
- access source.
- status Double
- Instance status:
0: Shipping;1: Running normally;4: Destroying;5: Isolating. - task
Status Double - task status.
- uniq
Subnet StringId - subnet uniform ID.
- uniq
Vpc StringId - the unified ID of the private network.
- vip String
- intranet address.
- volume Double
- hard disk storage, in GB.
- vport Double
- intranet port.
- audit
Policy stringStatus - Instance audit log enable status.
ALL_AUDIT: full audit is enabled;RULE_AUDIT: rule audit is enabled;UNBOUND: audit is not enabled. - audit
Running stringStatus - Instance audit log running status.
normal: running;paused: arrears suspended. - cpu number
- number of cores.
- create
Time string - create time.
- deadline
Time string - resource expiration time.
- deploy
Mode string - cdb type.
- engine
Version string - database version.
- event
Count number - the number of abnormal events.
- group
Id string - group ID.
- group
Name string - group name.
- health
Score number - health score.
- init
Flag number - cdb instance initialization flag:
0: not initialized;1: initialized. - instance
Confs GetDbbrain Diag Db Instances Item Instance Conf[] - status of instance inspection/overview.
- instance
Id string - instance id.
- instance
Name string - instance name.
- instance
Type number - instance type.
1: MASTER;2: DR,3: RO,4: SDR. - internal
Vip string - Intranet VIPNote: This field may return null, indicating that no valid value can be obtained.
- internal
Vport number - Intranet portNote: This field may return null, indicating that no valid value can be obtained.
- is
Supported boolean - whether it is an instance supported by DBbrain, always pass
true. - memory number
- memory, in MB.
- product string
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - region string
- region.
- sec
Audit stringStatus - enabled status of the instance security audit log.
ON: security audit is enabled;OFF: security audit is not enabled. - source string
- access source.
- status number
- Instance status:
0: Shipping;1: Running normally;4: Destroying;5: Isolating. - task
Status number - task status.
- uniq
Subnet stringId - subnet uniform ID.
- uniq
Vpc stringId - the unified ID of the private network.
- vip string
- intranet address.
- volume number
- hard disk storage, in GB.
- vport number
- intranet port.
- audit_
policy_ strstatus - Instance audit log enable status.
ALL_AUDIT: full audit is enabled;RULE_AUDIT: rule audit is enabled;UNBOUND: audit is not enabled. - audit_
running_ strstatus - Instance audit log running status.
normal: running;paused: arrears suspended. - cpu float
- number of cores.
- create_
time str - create time.
- deadline_
time str - resource expiration time.
- deploy_
mode str - cdb type.
- engine_
version str - database version.
- event_
count float - the number of abnormal events.
- group_
id str - group ID.
- group_
name str - group name.
- health_
score float - health score.
- init_
flag float - cdb instance initialization flag:
0: not initialized;1: initialized. - instance_
confs Sequence[GetDbbrain Diag Db Instances Item Instance Conf] - status of instance inspection/overview.
- instance_
id str - instance id.
- instance_
name str - instance name.
- instance_
type float - instance type.
1: MASTER;2: DR,3: RO,4: SDR. - internal_
vip str - Intranet VIPNote: This field may return null, indicating that no valid value can be obtained.
- internal_
vport float - Intranet portNote: This field may return null, indicating that no valid value can be obtained.
- is_
supported bool - whether it is an instance supported by DBbrain, always pass
true. - memory float
- memory, in MB.
- product str
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - region str
- region.
- sec_
audit_ strstatus - enabled status of the instance security audit log.
ON: security audit is enabled;OFF: security audit is not enabled. - source str
- access source.
- status float
- Instance status:
0: Shipping;1: Running normally;4: Destroying;5: Isolating. - task_
status float - task status.
- uniq_
subnet_ strid - subnet uniform ID.
- uniq_
vpc_ strid - the unified ID of the private network.
- vip str
- intranet address.
- volume float
- hard disk storage, in GB.
- vport float
- intranet port.
- audit
Policy StringStatus - Instance audit log enable status.
ALL_AUDIT: full audit is enabled;RULE_AUDIT: rule audit is enabled;UNBOUND: audit is not enabled. - audit
Running StringStatus - Instance audit log running status.
normal: running;paused: arrears suspended. - cpu Number
- number of cores.
- create
Time String - create time.
- deadline
Time String - resource expiration time.
- deploy
Mode String - cdb type.
- engine
Version String - database version.
- event
Count Number - the number of abnormal events.
- group
Id String - group ID.
- group
Name String - group name.
- health
Score Number - health score.
- init
Flag Number - cdb instance initialization flag:
0: not initialized;1: initialized. - instance
Confs List<Property Map> - status of instance inspection/overview.
- instance
Id String - instance id.
- instance
Name String - instance name.
- instance
Type Number - instance type.
1: MASTER;2: DR,3: RO,4: SDR. - internal
Vip String - Intranet VIPNote: This field may return null, indicating that no valid value can be obtained.
- internal
Vport Number - Intranet portNote: This field may return null, indicating that no valid value can be obtained.
- is
Supported Boolean - whether it is an instance supported by DBbrain, always pass
true. - memory Number
- memory, in MB.
- product String
- service product type, supported values include:
mysql- cloud database MySQL,cynosdb- cloud database TDSQL-C for MySQL, the default ismysql. - region String
- region.
- sec
Audit StringStatus - enabled status of the instance security audit log.
ON: security audit is enabled;OFF: security audit is not enabled. - source String
- access source.
- status Number
- Instance status:
0: Shipping;1: Running normally;4: Destroying;5: Isolating. - task
Status Number - task status.
- uniq
Subnet StringId - subnet uniform ID.
- uniq
Vpc StringId - the unified ID of the private network.
- vip String
- intranet address.
- volume Number
- hard disk storage, in GB.
- vport Number
- intranet port.
GetDbbrainDiagDbInstancesItemInstanceConf
- Daily
Inspection string - database inspection switch, Yes/No.
- Key
Delimiters List<string> - Custom separator for redis large key analysis, only used by
redis. Note: This field may return null, indicating that no valid value can be obtained. - Overview
Display string - instance overview switch, Yes/No.
- Daily
Inspection string - database inspection switch, Yes/No.
- Key
Delimiters []string - Custom separator for redis large key analysis, only used by
redis. Note: This field may return null, indicating that no valid value can be obtained. - Overview
Display string - instance overview switch, Yes/No.
- daily
Inspection String - database inspection switch, Yes/No.
- key
Delimiters List<String> - Custom separator for redis large key analysis, only used by
redis. Note: This field may return null, indicating that no valid value can be obtained. - overview
Display String - instance overview switch, Yes/No.
- daily
Inspection string - database inspection switch, Yes/No.
- key
Delimiters string[] - Custom separator for redis large key analysis, only used by
redis. Note: This field may return null, indicating that no valid value can be obtained. - overview
Display string - instance overview switch, Yes/No.
- daily_
inspection str - database inspection switch, Yes/No.
- key_
delimiters Sequence[str] - Custom separator for redis large key analysis, only used by
redis. Note: This field may return null, indicating that no valid value can be obtained. - overview_
display str - instance overview switch, Yes/No.
- daily
Inspection String - database inspection switch, Yes/No.
- key
Delimiters List<String> - Custom separator for redis large key analysis, only used by
redis. Note: This field may return null, indicating that no valid value can be obtained. - overview
Display String - instance overview switch, Yes/No.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
