tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getMariadbFileDownloadUrl
Start a Neo task
Explain and create a tencentcloud.getMariadbFileDownloadUrl resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of mariadb file_download_url
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const fileDownloadUrl = tencentcloud.getMariadbFileDownloadUrl({
instanceId: "tdsql-9vqvls95",
filePath: "/cos_backup/test.txt",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
file_download_url = tencentcloud.get_mariadb_file_download_url(instance_id="tdsql-9vqvls95",
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.GetMariadbFileDownloadUrl(ctx, &tencentcloud.GetMariadbFileDownloadUrlArgs{
InstanceId: "tdsql-9vqvls95",
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.GetMariadbFileDownloadUrl.Invoke(new()
{
InstanceId = "tdsql-9vqvls95",
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.GetMariadbFileDownloadUrlArgs;
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.getMariadbFileDownloadUrl(GetMariadbFileDownloadUrlArgs.builder()
.instanceId("tdsql-9vqvls95")
.filePath("/cos_backup/test.txt")
.build());
}
}
variables:
fileDownloadUrl:
fn::invoke:
function: tencentcloud:getMariadbFileDownloadUrl
arguments:
instanceId: tdsql-9vqvls95
filePath: /cos_backup/test.txt
Using getMariadbFileDownloadUrl
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 getMariadbFileDownloadUrl(args: GetMariadbFileDownloadUrlArgs, opts?: InvokeOptions): Promise<GetMariadbFileDownloadUrlResult>
function getMariadbFileDownloadUrlOutput(args: GetMariadbFileDownloadUrlOutputArgs, opts?: InvokeOptions): Output<GetMariadbFileDownloadUrlResult>def get_mariadb_file_download_url(file_path: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMariadbFileDownloadUrlResult
def get_mariadb_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,
opts: Optional[InvokeOptions] = None) -> Output[GetMariadbFileDownloadUrlResult]func GetMariadbFileDownloadUrl(ctx *Context, args *GetMariadbFileDownloadUrlArgs, opts ...InvokeOption) (*GetMariadbFileDownloadUrlResult, error)
func GetMariadbFileDownloadUrlOutput(ctx *Context, args *GetMariadbFileDownloadUrlOutputArgs, opts ...InvokeOption) GetMariadbFileDownloadUrlResultOutput> Note: This function is named GetMariadbFileDownloadUrl in the Go SDK.
public static class GetMariadbFileDownloadUrl
{
public static Task<GetMariadbFileDownloadUrlResult> InvokeAsync(GetMariadbFileDownloadUrlArgs args, InvokeOptions? opts = null)
public static Output<GetMariadbFileDownloadUrlResult> Invoke(GetMariadbFileDownloadUrlInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMariadbFileDownloadUrlResult> getMariadbFileDownloadUrl(GetMariadbFileDownloadUrlArgs args, InvokeOptions options)
public static Output<GetMariadbFileDownloadUrlResult> getMariadbFileDownloadUrl(GetMariadbFileDownloadUrlArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMariadbFileDownloadUrl:getMariadbFileDownloadUrl
arguments:
# arguments dictionaryThe following arguments are supported:
- File
Path string - Unsigned file path.
- Instance
Id string - Instance ID.
- Id string
- Result
Output stringFile - Used to save results.
- File
Path string - Unsigned file path.
- Instance
Id string - Instance ID.
- Id string
- Result
Output stringFile - Used to save results.
- file
Path String - Unsigned file path.
- instance
Id String - Instance ID.
- id String
- result
Output StringFile - Used to save results.
- file
Path string - Unsigned file path.
- instance
Id string - Instance ID.
- id string
- result
Output stringFile - Used to save results.
- file_
path str - Unsigned file path.
- instance_
id str - Instance ID.
- id str
- result_
output_ strfile - Used to save results.
- file
Path String - Unsigned file path.
- instance
Id String - Instance ID.
- id String
- result
Output StringFile - Used to save results.
getMariadbFileDownloadUrl Result
The following output properties are available:
- File
Path string - Id string
- Instance
Id string - Pre
Signed stringUrl - Signed download URL.
- Result
Output stringFile
- File
Path string - Id string
- Instance
Id string - Pre
Signed stringUrl - Signed download URL.
- Result
Output stringFile
- file
Path String - id String
- instance
Id String - pre
Signed StringUrl - Signed download URL.
- result
Output StringFile
- file
Path string - id string
- instance
Id string - pre
Signed stringUrl - Signed download URL.
- result
Output stringFile
- file_
path str - id str
- instance_
id str - pre_
signed_ strurl - Signed download URL.
- result_
output_ strfile
- file
Path String - id String
- instance
Id String - pre
Signed StringUrl - Signed download URL.
- result
Output StringFile
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
