1. Packages
  2. Volcengine
  3. API Docs
  4. tls
  5. getLogCursors
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
volcengine logo
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine

    Use this data source to query detailed information of tls log cursors

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.tls.getLogCursors({
        from: "begin",
        shardId: 0,
        topicId: "e101b8c8-77e7-4ae3-91c1-2532ee480e7d",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.tls.get_log_cursors(from_="begin",
        shard_id=0,
        topic_id="e101b8c8-77e7-4ae3-91c1-2532ee480e7d")
    
    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.GetLogCursors(ctx, &tls.GetLogCursorsArgs{
    			From:    "begin",
    			ShardId: 0,
    			TopicId: "e101b8c8-77e7-4ae3-91c1-2532ee480e7d",
    		}, 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.GetLogCursors.Invoke(new()
        {
            From = "begin",
            ShardId = 0,
            TopicId = "e101b8c8-77e7-4ae3-91c1-2532ee480e7d",
        });
    
    });
    
    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.GetLogCursorsArgs;
    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.getLogCursors(GetLogCursorsArgs.builder()
                .from("begin")
                .shardId(0)
                .topicId("e101b8c8-77e7-4ae3-91c1-2532ee480e7d")
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:tls:getLogCursors
          Arguments:
            from: begin
            shardId: 0
            topicId: e101b8c8-77e7-4ae3-91c1-2532ee480e7d
    

    Using getLogCursors

    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 getLogCursors(args: GetLogCursorsArgs, opts?: InvokeOptions): Promise<GetLogCursorsResult>
    function getLogCursorsOutput(args: GetLogCursorsOutputArgs, opts?: InvokeOptions): Output<GetLogCursorsResult>
    def get_log_cursors(from_: Optional[str] = None,
                        output_file: Optional[str] = None,
                        shard_id: Optional[int] = None,
                        topic_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetLogCursorsResult
    def get_log_cursors_output(from_: Optional[pulumi.Input[str]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        shard_id: Optional[pulumi.Input[int]] = None,
                        topic_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetLogCursorsResult]
    func GetLogCursors(ctx *Context, args *GetLogCursorsArgs, opts ...InvokeOption) (*GetLogCursorsResult, error)
    func GetLogCursorsOutput(ctx *Context, args *GetLogCursorsOutputArgs, opts ...InvokeOption) GetLogCursorsResultOutput

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

    public static class GetLogCursors 
    {
        public static Task<GetLogCursorsResult> InvokeAsync(GetLogCursorsArgs args, InvokeOptions? opts = null)
        public static Output<GetLogCursorsResult> Invoke(GetLogCursorsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLogCursorsResult> getLogCursors(GetLogCursorsArgs args, InvokeOptions options)
    public static Output<GetLogCursorsResult> getLogCursors(GetLogCursorsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:tls/getLogCursors:getLogCursors
      arguments:
        # arguments dictionary

    The following arguments are supported:

    From string
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    ShardId int
    The ID of the shard.
    TopicId string
    The ID of the topic.
    OutputFile string
    File name where to save data source results.
    From string
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    ShardId int
    The ID of the shard.
    TopicId string
    The ID of the topic.
    OutputFile string
    File name where to save data source results.
    from String
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    shardId Integer
    The ID of the shard.
    topicId String
    The ID of the topic.
    outputFile String
    File name where to save data source results.
    from string
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    shardId number
    The ID of the shard.
    topicId string
    The ID of the topic.
    outputFile string
    File name where to save data source results.
    from_ str
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    shard_id int
    The ID of the shard.
    topic_id str
    The ID of the topic.
    output_file str
    File name where to save data source results.
    from String
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    shardId Number
    The ID of the shard.
    topicId String
    The ID of the topic.
    outputFile String
    File name where to save data source results.

    getLogCursors Result

    The following output properties are available:

    From string
    The time point of the cursor.
    Id string
    The provider-assigned unique ID for this managed resource.
    LogCursors List<GetLogCursorsLogCursor>
    The list of log cursors.
    ShardId int
    The ID of the shard.
    TopicId string
    The ID of the topic.
    OutputFile string
    From string
    The time point of the cursor.
    Id string
    The provider-assigned unique ID for this managed resource.
    LogCursors []GetLogCursorsLogCursor
    The list of log cursors.
    ShardId int
    The ID of the shard.
    TopicId string
    The ID of the topic.
    OutputFile string
    from String
    The time point of the cursor.
    id String
    The provider-assigned unique ID for this managed resource.
    logCursors List<GetLogCursorsLogCursor>
    The list of log cursors.
    shardId Integer
    The ID of the shard.
    topicId String
    The ID of the topic.
    outputFile String
    from string
    The time point of the cursor.
    id string
    The provider-assigned unique ID for this managed resource.
    logCursors GetLogCursorsLogCursor[]
    The list of log cursors.
    shardId number
    The ID of the shard.
    topicId string
    The ID of the topic.
    outputFile string
    from_ str
    The time point of the cursor.
    id str
    The provider-assigned unique ID for this managed resource.
    log_cursors Sequence[GetLogCursorsLogCursor]
    The list of log cursors.
    shard_id int
    The ID of the shard.
    topic_id str
    The ID of the topic.
    output_file str
    from String
    The time point of the cursor.
    id String
    The provider-assigned unique ID for this managed resource.
    logCursors List<Property Map>
    The list of log cursors.
    shardId Number
    The ID of the shard.
    topicId String
    The ID of the topic.
    outputFile String

    Supporting Types

    GetLogCursorsLogCursor

    Cursor string
    The cursor value.
    From string
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    ShardId int
    The ID of the shard.
    TopicId string
    The ID of the topic.
    Cursor string
    The cursor value.
    From string
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    ShardId int
    The ID of the shard.
    TopicId string
    The ID of the topic.
    cursor String
    The cursor value.
    from String
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    shardId Integer
    The ID of the shard.
    topicId String
    The ID of the topic.
    cursor string
    The cursor value.
    from string
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    shardId number
    The ID of the shard.
    topicId string
    The ID of the topic.
    cursor str
    The cursor value.
    from_ str
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    shard_id int
    The ID of the shard.
    topic_id str
    The ID of the topic.
    cursor String
    The cursor value.
    from String
    The time point of the cursor. The value is a Unix timestamp in seconds, or "begin" or "end".
    shardId Number
    The ID of the shard.
    topicId String
    The ID of the topic.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate