tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getDcdbFileDownloadUrl
Explore with Pulumi AI
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:
- File
Path string - Unsigned file path.
- Instance
Id string - Instance ID.
- string
- Instance Shard ID.
- Id string
- Result
Output stringFile - Used to save results.
- File
Path string - Unsigned file path.
- Instance
Id string - Instance ID.
- string
- Instance Shard ID.
- Id string
- Result
Output stringFile - Used to save results.
- file
Path String - Unsigned file path.
- instance
Id String - Instance ID.
- String
- Instance Shard ID.
- id String
- result
Output StringFile - Used to save results.
- file
Path string - Unsigned file path.
- instance
Id string - Instance ID.
- string
- Instance Shard ID.
- id string
- result
Output stringFile - Used to save results.
- file_
path str - Unsigned file path.
- instance_
id str - Instance ID.
- str
- Instance Shard ID.
- id str
- result_
output_ strfile - Used to save results.
- file
Path String - Unsigned file path.
- instance
Id String - Instance ID.
- String
- Instance Shard ID.
- id String
- result
Output StringFile - Used to save results.
getDcdbFileDownloadUrl Result
The following output properties are available:
- File
Path string - Id string
- Instance
Id string - Pre
Signed stringUrl - Signed download URL.
- string
- Result
Output stringFile
- File
Path string - Id string
- Instance
Id string - Pre
Signed stringUrl - Signed download URL.
- string
- Result
Output stringFile
- file
Path String - id String
- instance
Id String - pre
Signed StringUrl - Signed download URL.
- String
- result
Output StringFile
- file
Path string - id string
- instance
Id string - pre
Signed stringUrl - Signed download URL.
- string
- result
Output stringFile
- file_
path str - id str
- instance_
id str - pre_
signed_ strurl - Signed download URL.
- str
- result_
output_ strfile
- file
Path String - id String
- instance
Id String - pre
Signed StringUrl - Signed download URL.
- String
- result
Output StringFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack