tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getMongodbInstanceBackups
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 mongodb instance_backups
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const instanceBackups = tencentcloud.getMongodbInstanceBackups({
backupMethod: 0,
instanceId: "cmgo-9d0p6umb",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
instance_backups = tencentcloud.get_mongodb_instance_backups(backup_method=0,
instance_id="cmgo-9d0p6umb")
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.GetMongodbInstanceBackups(ctx, &tencentcloud.GetMongodbInstanceBackupsArgs{
BackupMethod: pulumi.Float64Ref(0),
InstanceId: "cmgo-9d0p6umb",
}, 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 instanceBackups = Tencentcloud.GetMongodbInstanceBackups.Invoke(new()
{
BackupMethod = 0,
InstanceId = "cmgo-9d0p6umb",
});
});
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.GetMongodbInstanceBackupsArgs;
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 instanceBackups = TencentcloudFunctions.getMongodbInstanceBackups(GetMongodbInstanceBackupsArgs.builder()
.backupMethod(0)
.instanceId("cmgo-9d0p6umb")
.build());
}
}
variables:
instanceBackups:
fn::invoke:
function: tencentcloud:getMongodbInstanceBackups
arguments:
backupMethod: 0
instanceId: cmgo-9d0p6umb
Using getMongodbInstanceBackups
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 getMongodbInstanceBackups(args: GetMongodbInstanceBackupsArgs, opts?: InvokeOptions): Promise<GetMongodbInstanceBackupsResult>
function getMongodbInstanceBackupsOutput(args: GetMongodbInstanceBackupsOutputArgs, opts?: InvokeOptions): Output<GetMongodbInstanceBackupsResult>
def get_mongodb_instance_backups(backup_method: Optional[float] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMongodbInstanceBackupsResult
def get_mongodb_instance_backups_output(backup_method: Optional[pulumi.Input[float]] = 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[GetMongodbInstanceBackupsResult]
func GetMongodbInstanceBackups(ctx *Context, args *GetMongodbInstanceBackupsArgs, opts ...InvokeOption) (*GetMongodbInstanceBackupsResult, error)
func GetMongodbInstanceBackupsOutput(ctx *Context, args *GetMongodbInstanceBackupsOutputArgs, opts ...InvokeOption) GetMongodbInstanceBackupsResultOutput
> Note: This function is named GetMongodbInstanceBackups
in the Go SDK.
public static class GetMongodbInstanceBackups
{
public static Task<GetMongodbInstanceBackupsResult> InvokeAsync(GetMongodbInstanceBackupsArgs args, InvokeOptions? opts = null)
public static Output<GetMongodbInstanceBackupsResult> Invoke(GetMongodbInstanceBackupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMongodbInstanceBackupsResult> getMongodbInstanceBackups(GetMongodbInstanceBackupsArgs args, InvokeOptions options)
public static Output<GetMongodbInstanceBackupsResult> getMongodbInstanceBackups(GetMongodbInstanceBackupsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getMongodbInstanceBackups:getMongodbInstanceBackups
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- Backup
Method double - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- Id string
- Result
Output stringFile - Used to save results.
- Instance
Id string - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- Backup
Method float64 - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- Id string
- Result
Output stringFile - Used to save results.
- instance
Id String - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- backup
Method Double - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- id String
- result
Output StringFile - Used to save results.
- instance
Id string - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- backup
Method number - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- id string
- result
Output stringFile - Used to save results.
- instance_
id str - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- backup_
method float - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- id str
- result_
output_ strfile - Used to save results.
- instance
Id String - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- backup
Method Number - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- id String
- result
Output StringFile - Used to save results.
getMongodbInstanceBackups Result
The following output properties are available:
- Backup
Lists List<GetMongodb Instance Backups Backup List> - backup list.
- Id string
- Instance
Id string - Instance ID.
- Backup
Method double - Backup method.
- Result
Output stringFile
- Backup
Lists []GetMongodb Instance Backups Backup List - backup list.
- Id string
- Instance
Id string - Instance ID.
- Backup
Method float64 - Backup method.
- Result
Output stringFile
- backup
Lists List<GetMongodb Instance Backups Backup List> - backup list.
- id String
- instance
Id String - Instance ID.
- backup
Method Double - Backup method.
- result
Output StringFile
- backup
Lists GetMongodb Instance Backups Backup List[] - backup list.
- id string
- instance
Id string - Instance ID.
- backup
Method number - Backup method.
- result
Output stringFile
- backup_
lists Sequence[GetMongodb Instance Backups Backup List] - backup list.
- id str
- instance_
id str - Instance ID.
- backup_
method float - Backup method.
- result_
output_ strfile
- backup
Lists List<Property Map> - backup list.
- id String
- instance
Id String - Instance ID.
- backup
Method Number - Backup method.
- result
Output StringFile
Supporting Types
GetMongodbInstanceBackupsBackupList
- Backup
Desc string - Remark of backup.
- Backup
Method double - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- Backup
Name string - Backup mode name.
- Backup
Size double - Size of backup(KN).
- Backup
Type double - Backup mode type.
- End
Time string - end time of backup.
- Instance
Id string - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- Start
Time string - start time of backup.
- Status double
- Backup status.
- Backup
Desc string - Remark of backup.
- Backup
Method float64 - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- Backup
Name string - Backup mode name.
- Backup
Size float64 - Size of backup(KN).
- Backup
Type float64 - Backup mode type.
- End
Time string - end time of backup.
- Instance
Id string - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- Start
Time string - start time of backup.
- Status float64
- Backup status.
- backup
Desc String - Remark of backup.
- backup
Method Double - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- backup
Name String - Backup mode name.
- backup
Size Double - Size of backup(KN).
- backup
Type Double - Backup mode type.
- end
Time String - end time of backup.
- instance
Id String - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- start
Time String - start time of backup.
- status Double
- Backup status.
- backup
Desc string - Remark of backup.
- backup
Method number - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- backup
Name string - Backup mode name.
- backup
Size number - Size of backup(KN).
- backup
Type number - Backup mode type.
- end
Time string - end time of backup.
- instance
Id string - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- start
Time string - start time of backup.
- status number
- Backup status.
- backup_
desc str - Remark of backup.
- backup_
method float - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- backup_
name str - Backup mode name.
- backup_
size float - Size of backup(KN).
- backup_
type float - Backup mode type.
- end_
time str - end time of backup.
- instance_
id str - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- start_
time str - start time of backup.
- status float
- Backup status.
- backup
Desc String - Remark of backup.
- backup
Method Number - Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
- backup
Name String - Backup mode name.
- backup
Size Number - Size of backup(KN).
- backup
Type Number - Backup mode type.
- end
Time String - end time of backup.
- instance
Id String - Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
- start
Time String - start time of backup.
- status Number
- Backup status.
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