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

tencentcloud.getDcdbFileDownloadUrl

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 dcdb file_download_url

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const fileDownloadUrl = tencentcloud.getDcdbFileDownloadUrl({
        instanceId: local.dcdb_id,
        shardId: "shard-1b5r04az",
        filePath: "/cos_backup/test.txt",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    file_download_url = tencentcloud.get_dcdb_file_download_url(instance_id=local["dcdb_id"],
        shard_id="shard-1b5r04az",
        file_path="/cos_backup/test.txt")
    
    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.GetDcdbFileDownloadUrl(ctx, &tencentcloud.GetDcdbFileDownloadUrlArgs{
    			InstanceId: local.Dcdb_id,
    			ShardId:    "shard-1b5r04az",
    			FilePath:   "/cos_backup/test.txt",
    		}, 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 fileDownloadUrl = Tencentcloud.GetDcdbFileDownloadUrl.Invoke(new()
        {
            InstanceId = local.Dcdb_id,
            ShardId = "shard-1b5r04az",
            FilePath = "/cos_backup/test.txt",
        });
    
    });
    
    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.GetDcdbFileDownloadUrlArgs;
    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 fileDownloadUrl = TencentcloudFunctions.getDcdbFileDownloadUrl(GetDcdbFileDownloadUrlArgs.builder()
                .instanceId(local.dcdb_id())
                .shardId("shard-1b5r04az")
                .filePath("/cos_backup/test.txt")
                .build());
    
        }
    }
    
    variables:
      fileDownloadUrl:
        fn::invoke:
          function: tencentcloud:getDcdbFileDownloadUrl
          arguments:
            instanceId: ${local.dcdb_id}
            shardId: shard-1b5r04az
            filePath: /cos_backup/test.txt
    

    Using getDcdbFileDownloadUrl

    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 getDcdbFileDownloadUrl(args: GetDcdbFileDownloadUrlArgs, opts?: InvokeOptions): Promise<GetDcdbFileDownloadUrlResult>
    function getDcdbFileDownloadUrlOutput(args: GetDcdbFileDownloadUrlOutputArgs, opts?: InvokeOptions): Output<GetDcdbFileDownloadUrlResult>
    def get_dcdb_file_download_url(file_path: Optional[str] = None,
                                   id: Optional[str] = None,
                                   instance_id: Optional[str] = None,
                                   result_output_file: Optional[str] = None,
                                   shard_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetDcdbFileDownloadUrlResult
    def get_dcdb_file_download_url_output(file_path: Optional[pulumi.Input[str]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   instance_id: Optional[pulumi.Input[str]] = None,
                                   result_output_file: Optional[pulumi.Input[str]] = None,
                                   shard_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetDcdbFileDownloadUrlResult]
    func GetDcdbFileDownloadUrl(ctx *Context, args *GetDcdbFileDownloadUrlArgs, opts ...InvokeOption) (*GetDcdbFileDownloadUrlResult, error)
    func GetDcdbFileDownloadUrlOutput(ctx *Context, args *GetDcdbFileDownloadUrlOutputArgs, opts ...InvokeOption) GetDcdbFileDownloadUrlResultOutput

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

    public static class GetDcdbFileDownloadUrl 
    {
        public static Task<GetDcdbFileDownloadUrlResult> InvokeAsync(GetDcdbFileDownloadUrlArgs args, InvokeOptions? opts = null)
        public static Output<GetDcdbFileDownloadUrlResult> Invoke(GetDcdbFileDownloadUrlInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDcdbFileDownloadUrlResult> getDcdbFileDownloadUrl(GetDcdbFileDownloadUrlArgs args, InvokeOptions options)
    public static Output<GetDcdbFileDownloadUrlResult> getDcdbFileDownloadUrl(GetDcdbFileDownloadUrlArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDcdbFileDownloadUrl:getDcdbFileDownloadUrl
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FilePath string
    Unsigned file path.
    InstanceId string
    Instance ID.
    ShardId string
    Instance Shard ID.
    Id string
    ResultOutputFile string
    Used to save results.
    FilePath string
    Unsigned file path.
    InstanceId string
    Instance ID.
    ShardId string
    Instance Shard ID.
    Id string
    ResultOutputFile string
    Used to save results.
    filePath String
    Unsigned file path.
    instanceId String
    Instance ID.
    shardId String
    Instance Shard ID.
    id String
    resultOutputFile String
    Used to save results.
    filePath string
    Unsigned file path.
    instanceId string
    Instance ID.
    shardId string
    Instance Shard ID.
    id string
    resultOutputFile string
    Used to save results.
    file_path str
    Unsigned file path.
    instance_id str
    Instance ID.
    shard_id str
    Instance Shard ID.
    id str
    result_output_file str
    Used to save results.
    filePath String
    Unsigned file path.
    instanceId String
    Instance ID.
    shardId String
    Instance Shard ID.
    id String
    resultOutputFile String
    Used to save results.

    getDcdbFileDownloadUrl Result

    The following output properties are available:

    FilePath string
    Id string
    InstanceId string
    PreSignedUrl string
    Signed download URL.
    ShardId string
    ResultOutputFile string
    FilePath string
    Id string
    InstanceId string
    PreSignedUrl string
    Signed download URL.
    ShardId string
    ResultOutputFile string
    filePath String
    id String
    instanceId String
    preSignedUrl String
    Signed download URL.
    shardId String
    resultOutputFile String
    filePath string
    id string
    instanceId string
    preSignedUrl string
    Signed download URL.
    shardId string
    resultOutputFile string
    file_path str
    id str
    instance_id str
    pre_signed_url str
    Signed download URL.
    shard_id str
    result_output_file str
    filePath String
    id String
    instanceId String
    preSignedUrl String
    Signed download URL.
    shardId 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