tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDbbrainTopSpaceSchemas
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of dbbrain top_space_schemas
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const topSpaceSchemas = tencentcloud.getDbbrainTopSpaceSchemas({
instanceId: "%s",
product: "mysql",
sortBy: "DataLength",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
top_space_schemas = tencentcloud.get_dbbrain_top_space_schemas(instance_id="%s",
product="mysql",
sort_by="DataLength")
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.GetDbbrainTopSpaceSchemas(ctx, &tencentcloud.GetDbbrainTopSpaceSchemasArgs{
InstanceId: "%s",
Product: pulumi.StringRef("mysql"),
SortBy: pulumi.StringRef("DataLength"),
}, 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 topSpaceSchemas = Tencentcloud.GetDbbrainTopSpaceSchemas.Invoke(new()
{
InstanceId = "%s",
Product = "mysql",
SortBy = "DataLength",
});
});
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.GetDbbrainTopSpaceSchemasArgs;
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 topSpaceSchemas = TencentcloudFunctions.getDbbrainTopSpaceSchemas(GetDbbrainTopSpaceSchemasArgs.builder()
.instanceId("%s")
.product("mysql")
.sortBy("DataLength")
.build());
}
}
variables:
topSpaceSchemas:
fn::invoke:
function: tencentcloud:getDbbrainTopSpaceSchemas
arguments:
instanceId: '%s'
product: mysql
sortBy: DataLength
Using getDbbrainTopSpaceSchemas
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 getDbbrainTopSpaceSchemas(args: GetDbbrainTopSpaceSchemasArgs, opts?: InvokeOptions): Promise<GetDbbrainTopSpaceSchemasResult>
function getDbbrainTopSpaceSchemasOutput(args: GetDbbrainTopSpaceSchemasOutputArgs, opts?: InvokeOptions): Output<GetDbbrainTopSpaceSchemasResult>
def get_dbbrain_top_space_schemas(id: Optional[str] = None,
instance_id: Optional[str] = None,
limit: Optional[float] = None,
product: Optional[str] = None,
result_output_file: Optional[str] = None,
sort_by: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbbrainTopSpaceSchemasResult
def get_dbbrain_top_space_schemas_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[float]] = None,
product: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
sort_by: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDbbrainTopSpaceSchemasResult]
func GetDbbrainTopSpaceSchemas(ctx *Context, args *GetDbbrainTopSpaceSchemasArgs, opts ...InvokeOption) (*GetDbbrainTopSpaceSchemasResult, error)
func GetDbbrainTopSpaceSchemasOutput(ctx *Context, args *GetDbbrainTopSpaceSchemasOutputArgs, opts ...InvokeOption) GetDbbrainTopSpaceSchemasResultOutput
> Note: This function is named GetDbbrainTopSpaceSchemas
in the Go SDK.
public static class GetDbbrainTopSpaceSchemas
{
public static Task<GetDbbrainTopSpaceSchemasResult> InvokeAsync(GetDbbrainTopSpaceSchemasArgs args, InvokeOptions? opts = null)
public static Output<GetDbbrainTopSpaceSchemasResult> Invoke(GetDbbrainTopSpaceSchemasInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDbbrainTopSpaceSchemasResult> getDbbrainTopSpaceSchemas(GetDbbrainTopSpaceSchemasArgs args, InvokeOptions options)
public static Output<GetDbbrainTopSpaceSchemasResult> getDbbrainTopSpaceSchemas(GetDbbrainTopSpaceSchemasArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDbbrainTopSpaceSchemas:getDbbrainTopSpaceSchemas
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - instance id.
- Id string
- Limit double
- The number of Top libraries to return, the maximum value is 100, and the default is 20.
- Product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
- Result
Output stringFile - Used to save results.
- Sort
By string - The sorting field used to filter the Top library. The optional fields include DataLength, IndexLength, TotalLength, DataFree, FragRatio, TableRows, and PhysicalFileSize (only supported by ApsaraDB for MySQL instances). The default for ApsaraDB for MySQL instances is PhysicalFileSize, and the default for other product instances is TotalLength.
- Instance
Id string - instance id.
- Id string
- Limit float64
- The number of Top libraries to return, the maximum value is 100, and the default is 20.
- Product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
- Result
Output stringFile - Used to save results.
- Sort
By string - The sorting field used to filter the Top library. The optional fields include DataLength, IndexLength, TotalLength, DataFree, FragRatio, TableRows, and PhysicalFileSize (only supported by ApsaraDB for MySQL instances). The default for ApsaraDB for MySQL instances is PhysicalFileSize, and the default for other product instances is TotalLength.
- instance
Id String - instance id.
- id String
- limit Double
- The number of Top libraries to return, the maximum value is 100, and the default is 20.
- product String
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
- result
Output StringFile - Used to save results.
- sort
By String - The sorting field used to filter the Top library. The optional fields include DataLength, IndexLength, TotalLength, DataFree, FragRatio, TableRows, and PhysicalFileSize (only supported by ApsaraDB for MySQL instances). The default for ApsaraDB for MySQL instances is PhysicalFileSize, and the default for other product instances is TotalLength.
- instance
Id string - instance id.
- id string
- limit number
- The number of Top libraries to return, the maximum value is 100, and the default is 20.
- product string
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
- result
Output stringFile - Used to save results.
- sort
By string - The sorting field used to filter the Top library. The optional fields include DataLength, IndexLength, TotalLength, DataFree, FragRatio, TableRows, and PhysicalFileSize (only supported by ApsaraDB for MySQL instances). The default for ApsaraDB for MySQL instances is PhysicalFileSize, and the default for other product instances is TotalLength.
- instance_
id str - instance id.
- id str
- limit float
- The number of Top libraries to return, the maximum value is 100, and the default is 20.
- product str
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
- result_
output_ strfile - Used to save results.
- sort_
by str - The sorting field used to filter the Top library. The optional fields include DataLength, IndexLength, TotalLength, DataFree, FragRatio, TableRows, and PhysicalFileSize (only supported by ApsaraDB for MySQL instances). The default for ApsaraDB for MySQL instances is PhysicalFileSize, and the default for other product instances is TotalLength.
- instance
Id String - instance id.
- id String
- limit Number
- The number of Top libraries to return, the maximum value is 100, and the default is 20.
- product String
- Service product type, supported values include: mysql - cloud database MySQL, cynosdb - cloud database CynosDB for MySQL, the default is mysql.
- result
Output StringFile - Used to save results.
- sort
By String - The sorting field used to filter the Top library. The optional fields include DataLength, IndexLength, TotalLength, DataFree, FragRatio, TableRows, and PhysicalFileSize (only supported by ApsaraDB for MySQL instances). The default for ApsaraDB for MySQL instances is PhysicalFileSize, and the default for other product instances is TotalLength.
getDbbrainTopSpaceSchemas Result
The following output properties are available:
- Id string
- Instance
Id string - Timestamp double
- Timestamp (in seconds) when library space data is collected.
- Top
Space List<GetSchemas Dbbrain Top Space Schemas Top Space Schema> - The returned list of top library space statistics.
- Limit double
- Product string
- Result
Output stringFile - Sort
By string
- Id string
- Instance
Id string - Timestamp float64
- Timestamp (in seconds) when library space data is collected.
- Top
Space []GetSchemas Dbbrain Top Space Schemas Top Space Schema - The returned list of top library space statistics.
- Limit float64
- Product string
- Result
Output stringFile - Sort
By string
- id String
- instance
Id String - timestamp Double
- Timestamp (in seconds) when library space data is collected.
- top
Space List<GetSchemas Dbbrain Top Space Schemas Top Space Schema> - The returned list of top library space statistics.
- limit Double
- product String
- result
Output StringFile - sort
By String
- id string
- instance
Id string - timestamp number
- Timestamp (in seconds) when library space data is collected.
- top
Space GetSchemas Dbbrain Top Space Schemas Top Space Schema[] - The returned list of top library space statistics.
- limit number
- product string
- result
Output stringFile - sort
By string
- id str
- instance_
id str - timestamp float
- Timestamp (in seconds) when library space data is collected.
- top_
space_ Sequence[Getschemas Dbbrain Top Space Schemas Top Space Schema] - The returned list of top library space statistics.
- limit float
- product str
- result_
output_ strfile - sort_
by str
- id String
- instance
Id String - timestamp Number
- Timestamp (in seconds) when library space data is collected.
- top
Space List<Property Map>Schemas - The returned list of top library space statistics.
- limit Number
- product String
- result
Output StringFile - sort
By String
Supporting Types
GetDbbrainTopSpaceSchemasTopSpaceSchema
- Data
Free double - Fragmentation space (MB).
- Data
Length double - data space (MB).
- Frag
Ratio double - Fragmentation rate (%).
- Index
Length double - Index space (MB).
- Physical
File doubleSize - The sum (MB) of the independent physical file sizes corresponding to all tables in the library. Note: This field may return null, indicating that no valid value can be obtained.
- Table
Rows double - Number of lines.
- Table
Schema string - library name.
- Total
Length double - Total space used (MB).
- Data
Free float64 - Fragmentation space (MB).
- Data
Length float64 - data space (MB).
- Frag
Ratio float64 - Fragmentation rate (%).
- Index
Length float64 - Index space (MB).
- Physical
File float64Size - The sum (MB) of the independent physical file sizes corresponding to all tables in the library. Note: This field may return null, indicating that no valid value can be obtained.
- Table
Rows float64 - Number of lines.
- Table
Schema string - library name.
- Total
Length float64 - Total space used (MB).
- data
Free Double - Fragmentation space (MB).
- data
Length Double - data space (MB).
- frag
Ratio Double - Fragmentation rate (%).
- index
Length Double - Index space (MB).
- physical
File DoubleSize - The sum (MB) of the independent physical file sizes corresponding to all tables in the library. Note: This field may return null, indicating that no valid value can be obtained.
- table
Rows Double - Number of lines.
- table
Schema String - library name.
- total
Length Double - Total space used (MB).
- data
Free number - Fragmentation space (MB).
- data
Length number - data space (MB).
- frag
Ratio number - Fragmentation rate (%).
- index
Length number - Index space (MB).
- physical
File numberSize - The sum (MB) of the independent physical file sizes corresponding to all tables in the library. Note: This field may return null, indicating that no valid value can be obtained.
- table
Rows number - Number of lines.
- table
Schema string - library name.
- total
Length number - Total space used (MB).
- data_
free float - Fragmentation space (MB).
- data_
length float - data space (MB).
- frag_
ratio float - Fragmentation rate (%).
- index_
length float - Index space (MB).
- physical_
file_ floatsize - The sum (MB) of the independent physical file sizes corresponding to all tables in the library. Note: This field may return null, indicating that no valid value can be obtained.
- table_
rows float - Number of lines.
- table_
schema str - library name.
- total_
length float - Total space used (MB).
- data
Free Number - Fragmentation space (MB).
- data
Length Number - data space (MB).
- frag
Ratio Number - Fragmentation rate (%).
- index
Length Number - Index space (MB).
- physical
File NumberSize - The sum (MB) of the independent physical file sizes corresponding to all tables in the library. Note: This field may return null, indicating that no valid value can be obtained.
- table
Rows Number - Number of lines.
- table
Schema String - library name.
- total
Length 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 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack