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

tencentcloud.getDbbrainNoPrimaryKeyTables

Explore with Pulumi AI

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

    Use this data source to query detailed information of dbbrain no_primary_key_tables

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const noPrimaryKeyTables = tencentcloud.getDbbrainNoPrimaryKeyTables({
        date: "",
        instanceId: "",
        product: "",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    no_primary_key_tables = tencentcloud.get_dbbrain_no_primary_key_tables(date="",
        instance_id="",
        product="")
    
    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.GetDbbrainNoPrimaryKeyTables(ctx, &tencentcloud.GetDbbrainNoPrimaryKeyTablesArgs{
    			Date:       "",
    			InstanceId: "",
    			Product:    pulumi.StringRef(""),
    		}, 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 noPrimaryKeyTables = Tencentcloud.GetDbbrainNoPrimaryKeyTables.Invoke(new()
        {
            Date = "",
            InstanceId = "",
            Product = "",
        });
    
    });
    
    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.GetDbbrainNoPrimaryKeyTablesArgs;
    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 noPrimaryKeyTables = TencentcloudFunctions.getDbbrainNoPrimaryKeyTables(GetDbbrainNoPrimaryKeyTablesArgs.builder()
                .date("")
                .instanceId("")
                .product("")
                .build());
    
        }
    }
    
    variables:
      noPrimaryKeyTables:
        fn::invoke:
          function: tencentcloud:getDbbrainNoPrimaryKeyTables
          arguments:
            date: ""
            instanceId: ""
            product: ""
    

    Using getDbbrainNoPrimaryKeyTables

    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 getDbbrainNoPrimaryKeyTables(args: GetDbbrainNoPrimaryKeyTablesArgs, opts?: InvokeOptions): Promise<GetDbbrainNoPrimaryKeyTablesResult>
    function getDbbrainNoPrimaryKeyTablesOutput(args: GetDbbrainNoPrimaryKeyTablesOutputArgs, opts?: InvokeOptions): Output<GetDbbrainNoPrimaryKeyTablesResult>
    def get_dbbrain_no_primary_key_tables(date: Optional[str] = None,
                                          id: Optional[str] = None,
                                          instance_id: Optional[str] = None,
                                          product: Optional[str] = None,
                                          result_output_file: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetDbbrainNoPrimaryKeyTablesResult
    def get_dbbrain_no_primary_key_tables_output(date: Optional[pulumi.Input[str]] = None,
                                          id: Optional[pulumi.Input[str]] = None,
                                          instance_id: Optional[pulumi.Input[str]] = None,
                                          product: Optional[pulumi.Input[str]] = None,
                                          result_output_file: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainNoPrimaryKeyTablesResult]
    func GetDbbrainNoPrimaryKeyTables(ctx *Context, args *GetDbbrainNoPrimaryKeyTablesArgs, opts ...InvokeOption) (*GetDbbrainNoPrimaryKeyTablesResult, error)
    func GetDbbrainNoPrimaryKeyTablesOutput(ctx *Context, args *GetDbbrainNoPrimaryKeyTablesOutputArgs, opts ...InvokeOption) GetDbbrainNoPrimaryKeyTablesResultOutput

    > Note: This function is named GetDbbrainNoPrimaryKeyTables in the Go SDK.

    public static class GetDbbrainNoPrimaryKeyTables 
    {
        public static Task<GetDbbrainNoPrimaryKeyTablesResult> InvokeAsync(GetDbbrainNoPrimaryKeyTablesArgs args, InvokeOptions? opts = null)
        public static Output<GetDbbrainNoPrimaryKeyTablesResult> Invoke(GetDbbrainNoPrimaryKeyTablesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbbrainNoPrimaryKeyTablesResult> getDbbrainNoPrimaryKeyTables(GetDbbrainNoPrimaryKeyTablesArgs args, InvokeOptions options)
    public static Output<GetDbbrainNoPrimaryKeyTablesResult> getDbbrainNoPrimaryKeyTables(GetDbbrainNoPrimaryKeyTablesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDbbrainNoPrimaryKeyTables:getDbbrainNoPrimaryKeyTables
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Date string
    Query date, such as 2021-05-27, the earliest date is 30 days ago.
    InstanceId string
    instance id.
    Id string
    Product string
    Service product type, supported values: mysql - ApsaraDB for MySQL, the default is mysql.
    ResultOutputFile string
    Used to save results.
    Date string
    Query date, such as 2021-05-27, the earliest date is 30 days ago.
    InstanceId string
    instance id.
    Id string
    Product string
    Service product type, supported values: mysql - ApsaraDB for MySQL, the default is mysql.
    ResultOutputFile string
    Used to save results.
    date String
    Query date, such as 2021-05-27, the earliest date is 30 days ago.
    instanceId String
    instance id.
    id String
    product String
    Service product type, supported values: mysql - ApsaraDB for MySQL, the default is mysql.
    resultOutputFile String
    Used to save results.
    date string
    Query date, such as 2021-05-27, the earliest date is 30 days ago.
    instanceId string
    instance id.
    id string
    product string
    Service product type, supported values: mysql - ApsaraDB for MySQL, the default is mysql.
    resultOutputFile string
    Used to save results.
    date str
    Query date, such as 2021-05-27, the earliest date is 30 days ago.
    instance_id str
    instance id.
    id str
    product str
    Service product type, supported values: mysql - ApsaraDB for MySQL, the default is mysql.
    result_output_file str
    Used to save results.
    date String
    Query date, such as 2021-05-27, the earliest date is 30 days ago.
    instanceId String
    instance id.
    id String
    product String
    Service product type, supported values: mysql - ApsaraDB for MySQL, the default is mysql.
    resultOutputFile String
    Used to save results.

    getDbbrainNoPrimaryKeyTables Result

    The following output properties are available:

    Date string
    Id string
    InstanceId string
    NoPrimaryKeyTableCountDiff double
    The difference with yesterday&#39;s scan of the table without a primary key. A positive number means an increase, a negative number means a decrease, and 0 means no change.
    NoPrimaryKeyTables List<GetDbbrainNoPrimaryKeyTablesNoPrimaryKeyTable>
    A list of tables without primary keys.
    Timestamp double
    Collection timestamp (seconds).
    Product string
    ResultOutputFile string
    Date string
    Id string
    InstanceId string
    NoPrimaryKeyTableCountDiff float64
    The difference with yesterday&#39;s scan of the table without a primary key. A positive number means an increase, a negative number means a decrease, and 0 means no change.
    NoPrimaryKeyTables []GetDbbrainNoPrimaryKeyTablesNoPrimaryKeyTable
    A list of tables without primary keys.
    Timestamp float64
    Collection timestamp (seconds).
    Product string
    ResultOutputFile string
    date String
    id String
    instanceId String
    noPrimaryKeyTableCountDiff Double
    The difference with yesterday&#39;s scan of the table without a primary key. A positive number means an increase, a negative number means a decrease, and 0 means no change.
    noPrimaryKeyTables List<GetDbbrainNoPrimaryKeyTablesNoPrimaryKeyTable>
    A list of tables without primary keys.
    timestamp Double
    Collection timestamp (seconds).
    product String
    resultOutputFile String
    date string
    id string
    instanceId string
    noPrimaryKeyTableCountDiff number
    The difference with yesterday&#39;s scan of the table without a primary key. A positive number means an increase, a negative number means a decrease, and 0 means no change.
    noPrimaryKeyTables GetDbbrainNoPrimaryKeyTablesNoPrimaryKeyTable[]
    A list of tables without primary keys.
    timestamp number
    Collection timestamp (seconds).
    product string
    resultOutputFile string
    date str
    id str
    instance_id str
    no_primary_key_table_count_diff float
    The difference with yesterday&#39;s scan of the table without a primary key. A positive number means an increase, a negative number means a decrease, and 0 means no change.
    no_primary_key_tables Sequence[GetDbbrainNoPrimaryKeyTablesNoPrimaryKeyTable]
    A list of tables without primary keys.
    timestamp float
    Collection timestamp (seconds).
    product str
    result_output_file str
    date String
    id String
    instanceId String
    noPrimaryKeyTableCountDiff Number
    The difference with yesterday&#39;s scan of the table without a primary key. A positive number means an increase, a negative number means a decrease, and 0 means no change.
    noPrimaryKeyTables List<Property Map>
    A list of tables without primary keys.
    timestamp Number
    Collection timestamp (seconds).
    product String
    resultOutputFile String

    Supporting Types

    GetDbbrainNoPrimaryKeyTablesNoPrimaryKeyTable

    Engine string
    Storage engine for database tables.
    TableName string
    tableName.
    TableRows double
    rows.
    TableSchema string
    library name.
    TotalLength double
    Total space used (MB).
    Engine string
    Storage engine for database tables.
    TableName string
    tableName.
    TableRows float64
    rows.
    TableSchema string
    library name.
    TotalLength float64
    Total space used (MB).
    engine String
    Storage engine for database tables.
    tableName String
    tableName.
    tableRows Double
    rows.
    tableSchema String
    library name.
    totalLength Double
    Total space used (MB).
    engine string
    Storage engine for database tables.
    tableName string
    tableName.
    tableRows number
    rows.
    tableSchema string
    library name.
    totalLength number
    Total space used (MB).
    engine str
    Storage engine for database tables.
    table_name str
    tableName.
    table_rows float
    rows.
    table_schema str
    library name.
    total_length float
    Total space used (MB).
    engine String
    Storage engine for database tables.
    tableName String
    tableName.
    tableRows Number
    rows.
    tableSchema String
    library name.
    totalLength Number
    Total space used (MB).

    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