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

tencentcloud.getCynosdbBinlogDownloadUrl

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 cynosdb binlog_download_url

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const binlogDownloadUrl = tencentcloud.getCynosdbBinlogDownloadUrl({
        binlogId: 6202249,
        clusterId: "cynosdbmysql-bws8h88b",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    binlog_download_url = tencentcloud.get_cynosdb_binlog_download_url(binlog_id=6202249,
        cluster_id="cynosdbmysql-bws8h88b")
    
    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.GetCynosdbBinlogDownloadUrl(ctx, &tencentcloud.GetCynosdbBinlogDownloadUrlArgs{
    			BinlogId:  6202249,
    			ClusterId: "cynosdbmysql-bws8h88b",
    		}, 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 binlogDownloadUrl = Tencentcloud.GetCynosdbBinlogDownloadUrl.Invoke(new()
        {
            BinlogId = 6202249,
            ClusterId = "cynosdbmysql-bws8h88b",
        });
    
    });
    
    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.GetCynosdbBinlogDownloadUrlArgs;
    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 binlogDownloadUrl = TencentcloudFunctions.getCynosdbBinlogDownloadUrl(GetCynosdbBinlogDownloadUrlArgs.builder()
                .binlogId(6202249)
                .clusterId("cynosdbmysql-bws8h88b")
                .build());
    
        }
    }
    
    variables:
      binlogDownloadUrl:
        fn::invoke:
          function: tencentcloud:getCynosdbBinlogDownloadUrl
          arguments:
            binlogId: 6.202249e+06
            clusterId: cynosdbmysql-bws8h88b
    

    Using getCynosdbBinlogDownloadUrl

    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 getCynosdbBinlogDownloadUrl(args: GetCynosdbBinlogDownloadUrlArgs, opts?: InvokeOptions): Promise<GetCynosdbBinlogDownloadUrlResult>
    function getCynosdbBinlogDownloadUrlOutput(args: GetCynosdbBinlogDownloadUrlOutputArgs, opts?: InvokeOptions): Output<GetCynosdbBinlogDownloadUrlResult>
    def get_cynosdb_binlog_download_url(binlog_id: Optional[float] = None,
                                        cluster_id: Optional[str] = None,
                                        id: Optional[str] = None,
                                        result_output_file: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetCynosdbBinlogDownloadUrlResult
    def get_cynosdb_binlog_download_url_output(binlog_id: Optional[pulumi.Input[float]] = None,
                                        cluster_id: Optional[pulumi.Input[str]] = None,
                                        id: Optional[pulumi.Input[str]] = None,
                                        result_output_file: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetCynosdbBinlogDownloadUrlResult]
    func GetCynosdbBinlogDownloadUrl(ctx *Context, args *GetCynosdbBinlogDownloadUrlArgs, opts ...InvokeOption) (*GetCynosdbBinlogDownloadUrlResult, error)
    func GetCynosdbBinlogDownloadUrlOutput(ctx *Context, args *GetCynosdbBinlogDownloadUrlOutputArgs, opts ...InvokeOption) GetCynosdbBinlogDownloadUrlResultOutput

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

    public static class GetCynosdbBinlogDownloadUrl 
    {
        public static Task<GetCynosdbBinlogDownloadUrlResult> InvokeAsync(GetCynosdbBinlogDownloadUrlArgs args, InvokeOptions? opts = null)
        public static Output<GetCynosdbBinlogDownloadUrlResult> Invoke(GetCynosdbBinlogDownloadUrlInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCynosdbBinlogDownloadUrlResult> getCynosdbBinlogDownloadUrl(GetCynosdbBinlogDownloadUrlArgs args, InvokeOptions options)
    public static Output<GetCynosdbBinlogDownloadUrlResult> getCynosdbBinlogDownloadUrl(GetCynosdbBinlogDownloadUrlArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCynosdbBinlogDownloadUrl:getCynosdbBinlogDownloadUrl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BinlogId double
    Binlog file ID.
    ClusterId string
    Cluster ID.
    Id string
    ResultOutputFile string
    Used to save results.
    BinlogId float64
    Binlog file ID.
    ClusterId string
    Cluster ID.
    Id string
    ResultOutputFile string
    Used to save results.
    binlogId Double
    Binlog file ID.
    clusterId String
    Cluster ID.
    id String
    resultOutputFile String
    Used to save results.
    binlogId number
    Binlog file ID.
    clusterId string
    Cluster ID.
    id string
    resultOutputFile string
    Used to save results.
    binlog_id float
    Binlog file ID.
    cluster_id str
    Cluster ID.
    id str
    result_output_file str
    Used to save results.
    binlogId Number
    Binlog file ID.
    clusterId String
    Cluster ID.
    id String
    resultOutputFile String
    Used to save results.

    getCynosdbBinlogDownloadUrl Result

    The following output properties are available:

    BinlogId double
    ClusterId string
    DownloadUrl string
    Download address.
    Id string
    ResultOutputFile string
    BinlogId float64
    ClusterId string
    DownloadUrl string
    Download address.
    Id string
    ResultOutputFile string
    binlogId Double
    clusterId String
    downloadUrl String
    Download address.
    id String
    resultOutputFile String
    binlogId number
    clusterId string
    downloadUrl string
    Download address.
    id string
    resultOutputFile string
    binlog_id float
    cluster_id str
    download_url str
    Download address.
    id str
    result_output_file str
    binlogId Number
    clusterId String
    downloadUrl String
    Download address.
    id String
    resultOutputFile String

    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