tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getDcdbShards
Start a Neo task
Explain and create a tencentcloud.getDcdbShards resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of dcdb shards
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const shards = tencentcloud.getDcdbShards({
instanceId: "your_instance_id",
shardInstanceIds: ["shard1_id"],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
shards = tencentcloud.get_dcdb_shards(instance_id="your_instance_id",
shard_instance_ids=["shard1_id"])
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.GetDcdbShards(ctx, &tencentcloud.GetDcdbShardsArgs{
InstanceId: "your_instance_id",
ShardInstanceIds: []string{
"shard1_id",
},
}, 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 shards = Tencentcloud.GetDcdbShards.Invoke(new()
{
InstanceId = "your_instance_id",
ShardInstanceIds = new[]
{
"shard1_id",
},
});
});
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.GetDcdbShardsArgs;
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 shards = TencentcloudFunctions.getDcdbShards(GetDcdbShardsArgs.builder()
.instanceId("your_instance_id")
.shardInstanceIds("shard1_id")
.build());
}
}
variables:
shards:
fn::invoke:
function: tencentcloud:getDcdbShards
arguments:
instanceId: your_instance_id
shardInstanceIds:
- shard1_id
Using getDcdbShards
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 getDcdbShards(args: GetDcdbShardsArgs, opts?: InvokeOptions): Promise<GetDcdbShardsResult>
function getDcdbShardsOutput(args: GetDcdbShardsOutputArgs, opts?: InvokeOptions): Output<GetDcdbShardsResult>def get_dcdb_shards(id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
shard_instance_ids: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetDcdbShardsResult
def get_dcdb_shards_output(id: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
shard_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDcdbShardsResult]func GetDcdbShards(ctx *Context, args *GetDcdbShardsArgs, opts ...InvokeOption) (*GetDcdbShardsResult, error)
func GetDcdbShardsOutput(ctx *Context, args *GetDcdbShardsOutputArgs, opts ...InvokeOption) GetDcdbShardsResultOutput> Note: This function is named GetDcdbShards in the Go SDK.
public static class GetDcdbShards
{
public static Task<GetDcdbShardsResult> InvokeAsync(GetDcdbShardsArgs args, InvokeOptions? opts = null)
public static Output<GetDcdbShardsResult> Invoke(GetDcdbShardsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDcdbShardsResult> getDcdbShards(GetDcdbShardsArgs args, InvokeOptions options)
public static Output<GetDcdbShardsResult> getDcdbShards(GetDcdbShardsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getDcdbShards:getDcdbShards
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - instance id.
- Id string
- Result
Output stringFile - Used to save results.
- List<string>
- shard instance ids.
- Instance
Id string - instance id.
- Id string
- Result
Output stringFile - Used to save results.
- []string
- shard instance ids.
- instance
Id String - instance id.
- id String
- result
Output StringFile - Used to save results.
- List<String>
- shard instance ids.
- instance
Id string - instance id.
- id string
- result
Output stringFile - Used to save results.
- string[]
- shard instance ids.
- instance_
id str - instance id.
- id str
- result_
output_ strfile - Used to save results.
- Sequence[str]
- shard instance ids.
- instance
Id String - instance id.
- id String
- result
Output StringFile - Used to save results.
- List<String>
- shard instance ids.
getDcdbShards Result
The following output properties are available:
- Id string
- Instance
Id string - instance id.
- Lists
List<Get
Dcdb Shards List> - shard list.
- Result
Output stringFile - List<string>
- Id string
- Instance
Id string - instance id.
- Lists
[]Get
Dcdb Shards List - shard list.
- Result
Output stringFile - []string
- id String
- instance
Id String - instance id.
- lists
List<Get
Dcdb Shards List> - shard list.
- result
Output StringFile - List<String>
- id string
- instance
Id string - instance id.
- lists
Get
Dcdb Shards List[] - shard list.
- result
Output stringFile - string[]
- id str
- instance_
id str - instance id.
- lists
Sequence[Get
Dcdb Shards List] - shard list.
- result_
output_ strfile - Sequence[str]
- id String
- instance
Id String - instance id.
- lists List<Property Map>
- shard list.
- result
Output StringFile - List<String>
Supporting Types
GetDcdbShardsList
- Cpu double
- cpu cores.
- Create
Time string - create time.
- Instance
Id string - instance id.
- Memory double
- memory, the unit is GB.
- Memory
Usage double - memory usage.
- Node
Count double - node count.
- Paymode string
- pay mode.
- Period
End stringTime - expired time.
- Project
Id double - project id.
- Proxy
Version string - proxy version.
- Range string
- the range of shard key.
- Region string
- region.
- string
- shard instance id.
- string
- shard master zone.
- string
- shard serial id.
- List<string>
- shard slave zones.
- Status double
- status.
- Status
Desc string - status description.
- Storage double
- memory, the unit is GB.
- Storage
Usage double - storage usage.
- Subnet
Id string - subnet id.
- Vpc
Id string - vpc id.
- Zone string
- zone.
- Cpu float64
- cpu cores.
- Create
Time string - create time.
- Instance
Id string - instance id.
- Memory float64
- memory, the unit is GB.
- Memory
Usage float64 - memory usage.
- Node
Count float64 - node count.
- Paymode string
- pay mode.
- Period
End stringTime - expired time.
- Project
Id float64 - project id.
- Proxy
Version string - proxy version.
- Range string
- the range of shard key.
- Region string
- region.
- string
- shard instance id.
- string
- shard master zone.
- string
- shard serial id.
- []string
- shard slave zones.
- Status float64
- status.
- Status
Desc string - status description.
- Storage float64
- memory, the unit is GB.
- Storage
Usage float64 - storage usage.
- Subnet
Id string - subnet id.
- Vpc
Id string - vpc id.
- Zone string
- zone.
- cpu Double
- cpu cores.
- create
Time String - create time.
- instance
Id String - instance id.
- memory Double
- memory, the unit is GB.
- memory
Usage Double - memory usage.
- node
Count Double - node count.
- paymode String
- pay mode.
- period
End StringTime - expired time.
- project
Id Double - project id.
- proxy
Version String - proxy version.
- range String
- the range of shard key.
- region String
- region.
- String
- shard instance id.
- String
- shard master zone.
- String
- shard serial id.
- List<String>
- shard slave zones.
- status Double
- status.
- status
Desc String - status description.
- storage Double
- memory, the unit is GB.
- storage
Usage Double - storage usage.
- subnet
Id String - subnet id.
- vpc
Id String - vpc id.
- zone String
- zone.
- cpu number
- cpu cores.
- create
Time string - create time.
- instance
Id string - instance id.
- memory number
- memory, the unit is GB.
- memory
Usage number - memory usage.
- node
Count number - node count.
- paymode string
- pay mode.
- period
End stringTime - expired time.
- project
Id number - project id.
- proxy
Version string - proxy version.
- range string
- the range of shard key.
- region string
- region.
- string
- shard instance id.
- string
- shard master zone.
- string
- shard serial id.
- string[]
- shard slave zones.
- status number
- status.
- status
Desc string - status description.
- storage number
- memory, the unit is GB.
- storage
Usage number - storage usage.
- subnet
Id string - subnet id.
- vpc
Id string - vpc id.
- zone string
- zone.
- cpu float
- cpu cores.
- create_
time str - create time.
- instance_
id str - instance id.
- memory float
- memory, the unit is GB.
- memory_
usage float - memory usage.
- node_
count float - node count.
- paymode str
- pay mode.
- period_
end_ strtime - expired time.
- project_
id float - project id.
- proxy_
version str - proxy version.
- range str
- the range of shard key.
- region str
- region.
- str
- shard instance id.
- str
- shard master zone.
- str
- shard serial id.
- Sequence[str]
- shard slave zones.
- status float
- status.
- status_
desc str - status description.
- storage float
- memory, the unit is GB.
- storage_
usage float - storage usage.
- subnet_
id str - subnet id.
- vpc_
id str - vpc id.
- zone str
- zone.
- cpu Number
- cpu cores.
- create
Time String - create time.
- instance
Id String - instance id.
- memory Number
- memory, the unit is GB.
- memory
Usage Number - memory usage.
- node
Count Number - node count.
- paymode String
- pay mode.
- period
End StringTime - expired time.
- project
Id Number - project id.
- proxy
Version String - proxy version.
- range String
- the range of shard key.
- region String
- region.
- String
- shard instance id.
- String
- shard master zone.
- String
- shard serial id.
- List<String>
- shard slave zones.
- status Number
- status.
- status
Desc String - status description.
- storage Number
- memory, the unit is GB.
- storage
Usage Number - storage usage.
- subnet
Id String - subnet id.
- vpc
Id String - vpc id.
- zone String
- zone.
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
