Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of tls shards
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.tls.getShards({
topicId: "edf051ed-3c46-49ba-9339-bea628fedc15",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tls.get_shards(topic_id="edf051ed-3c46-49ba-9339-bea628fedc15")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tls.GetShards(ctx, &tls.GetShardsArgs{
TopicId: "edf051ed-3c46-49ba-9339-bea628fedc15",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Tls.GetShards.Invoke(new()
{
TopicId = "edf051ed-3c46-49ba-9339-bea628fedc15",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.TlsFunctions;
import com.pulumi.volcengine.tls.inputs.GetShardsArgs;
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 default = TlsFunctions.getShards(GetShardsArgs.builder()
.topicId("edf051ed-3c46-49ba-9339-bea628fedc15")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:tls:getShards
Arguments:
topicId: edf051ed-3c46-49ba-9339-bea628fedc15
Using getShards
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 getShards(args: GetShardsArgs, opts?: InvokeOptions): Promise<GetShardsResult>
function getShardsOutput(args: GetShardsOutputArgs, opts?: InvokeOptions): Output<GetShardsResult>def get_shards(output_file: Optional[str] = None,
topic_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetShardsResult
def get_shards_output(output_file: Optional[pulumi.Input[str]] = None,
topic_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetShardsResult]func GetShards(ctx *Context, args *GetShardsArgs, opts ...InvokeOption) (*GetShardsResult, error)
func GetShardsOutput(ctx *Context, args *GetShardsOutputArgs, opts ...InvokeOption) GetShardsResultOutput> Note: This function is named GetShards in the Go SDK.
public static class GetShards
{
public static Task<GetShardsResult> InvokeAsync(GetShardsArgs args, InvokeOptions? opts = null)
public static Output<GetShardsResult> Invoke(GetShardsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetShardsResult> getShards(GetShardsArgs args, InvokeOptions options)
public static Output<GetShardsResult> getShards(GetShardsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:tls/getShards:getShards
arguments:
# arguments dictionaryThe following arguments are supported:
- Topic
Id string - The id of topic.
- Output
File string - File name where to save data source results.
- Topic
Id string - The id of topic.
- Output
File string - File name where to save data source results.
- topic
Id String - The id of topic.
- output
File String - File name where to save data source results.
- topic
Id string - The id of topic.
- output
File string - File name where to save data source results.
- topic_
id str - The id of topic.
- output_
file str - File name where to save data source results.
- topic
Id String - The id of topic.
- output
File String - File name where to save data source results.
getShards Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
-
List<Get
Shards Shard> - The collection of query.
- Topic
Id string - The ID of topic.
- Total
Count int - The total count of query.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
-
[]Get
Shards Shard - The collection of query.
- Topic
Id string - The ID of topic.
- Total
Count int - The total count of query.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
-
List<Get
Shards Shard> - The collection of query.
- topic
Id String - The ID of topic.
- total
Count Integer - The total count of query.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
-
Get
Shards Shard[] - The collection of query.
- topic
Id string - The ID of topic.
- total
Count number - The total count of query.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
-
Sequence[Get
Shards Shard] - The collection of query.
- topic_
id str - The ID of topic.
- total_
count int - The total count of query.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- List<Property Map>
- The collection of query.
- topic
Id String - The ID of topic.
- total
Count Number - The total count of query.
- output
File String
Supporting Types
GetShardsShard
- Exclusive
End stringKey - The end key info.
- Inclusive
Begin stringKey - The begin key info.
- Modify
Time string - The modify time.
- int
- The id of shard.
- Status string
- The status of shard.
- Stop
Write stringTime - The stop write time.
- Topic
Id string - The id of topic.
- Exclusive
End stringKey - The end key info.
- Inclusive
Begin stringKey - The begin key info.
- Modify
Time string - The modify time.
- int
- The id of shard.
- Status string
- The status of shard.
- Stop
Write stringTime - The stop write time.
- Topic
Id string - The id of topic.
- exclusive
End StringKey - The end key info.
- inclusive
Begin StringKey - The begin key info.
- modify
Time String - The modify time.
- Integer
- The id of shard.
- status String
- The status of shard.
- stop
Write StringTime - The stop write time.
- topic
Id String - The id of topic.
- exclusive
End stringKey - The end key info.
- inclusive
Begin stringKey - The begin key info.
- modify
Time string - The modify time.
- number
- The id of shard.
- status string
- The status of shard.
- stop
Write stringTime - The stop write time.
- topic
Id string - The id of topic.
- exclusive_
end_ strkey - The end key info.
- inclusive_
begin_ strkey - The begin key info.
- modify_
time str - The modify time.
- int
- The id of shard.
- status str
- The status of shard.
- stop_
write_ strtime - The stop write time.
- topic_
id str - The id of topic.
- exclusive
End StringKey - The end key info.
- inclusive
Begin StringKey - The begin key info.
- modify
Time String - The modify time.
- Number
- The id of shard.
- status String
- The status of shard.
- stop
Write StringTime - The stop write time.
- topic
Id String - The id of topic.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
