1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getMongodbInstanceBackups
Viewing docs for tencentcloud 1.82.73
published on Friday, Mar 6, 2026 by tencentcloudstack
tencentcloud logo
Viewing docs for tencentcloud 1.82.73
published on Friday, Mar 6, 2026 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({
        instanceId: "cmgo-9d0p6umb",
        backupMethod: 0,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    instance_backups = tencentcloud.get_mongodb_instance_backups(instance_id="cmgo-9d0p6umb",
        backup_method=0)
    
    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{
    			InstanceId:   "cmgo-9d0p6umb",
    			BackupMethod: pulumi.Float64Ref(0),
    		}, 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()
        {
            InstanceId = "cmgo-9d0p6umb",
            BackupMethod = 0,
        });
    
    });
    
    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()
                .instanceId("cmgo-9d0p6umb")
                .backupMethod(0)
                .build());
    
        }
    }
    
    variables:
      instanceBackups:
        fn::invoke:
          function: tencentcloud:getMongodbInstanceBackups
          arguments:
            instanceId: cmgo-9d0p6umb
            backupMethod: 0
    

    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:

    InstanceId string
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    BackupMethod double
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    Id string
    ResultOutputFile string
    Used to save results.
    InstanceId string
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    BackupMethod float64
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    Id string
    ResultOutputFile string
    Used to save results.
    instanceId String
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    backupMethod Double
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    id String
    resultOutputFile String
    Used to save results.
    instanceId string
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    backupMethod number
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    id string
    resultOutputFile string
    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_file str
    Used to save results.
    instanceId String
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    backupMethod Number
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    id String
    resultOutputFile String
    Used to save results.

    getMongodbInstanceBackups Result

    The following output properties are available:

    BackupLists List<GetMongodbInstanceBackupsBackupList>
    backup list.
    Id string
    InstanceId string
    Instance ID.
    BackupMethod double
    Backup method.
    ResultOutputFile string
    BackupLists []GetMongodbInstanceBackupsBackupList
    backup list.
    Id string
    InstanceId string
    Instance ID.
    BackupMethod float64
    Backup method.
    ResultOutputFile string
    backupLists List<GetMongodbInstanceBackupsBackupList>
    backup list.
    id String
    instanceId String
    Instance ID.
    backupMethod Double
    Backup method.
    resultOutputFile String
    backupLists GetMongodbInstanceBackupsBackupList[]
    backup list.
    id string
    instanceId string
    Instance ID.
    backupMethod number
    Backup method.
    resultOutputFile string
    backupLists List<Property Map>
    backup list.
    id String
    instanceId String
    Instance ID.
    backupMethod Number
    Backup method.
    resultOutputFile String

    Supporting Types

    GetMongodbInstanceBackupsBackupList

    BackId double
    Backup record ID.
    BackupDesc string
    Remark of backup.
    BackupMethod double
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    BackupName string
    Backup mode name.
    BackupRegion string
    Region where the backup is stored (for cross-region backups).
    BackupSize double
    Size of backup(KN).
    BackupType double
    Backup mode type.
    DeleteTime string
    Scheduled deletion time for the backup.
    EndTime string
    end time of backup.
    InstanceId string
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    RestoreTime string
    Time point supported for backup restore.
    StartTime string
    start time of backup.
    Status double
    Backup status.
    BackId float64
    Backup record ID.
    BackupDesc string
    Remark of backup.
    BackupMethod float64
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    BackupName string
    Backup mode name.
    BackupRegion string
    Region where the backup is stored (for cross-region backups).
    BackupSize float64
    Size of backup(KN).
    BackupType float64
    Backup mode type.
    DeleteTime string
    Scheduled deletion time for the backup.
    EndTime string
    end time of backup.
    InstanceId string
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    RestoreTime string
    Time point supported for backup restore.
    StartTime string
    start time of backup.
    Status float64
    Backup status.
    backId Double
    Backup record ID.
    backupDesc String
    Remark of backup.
    backupMethod Double
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    backupName String
    Backup mode name.
    backupRegion String
    Region where the backup is stored (for cross-region backups).
    backupSize Double
    Size of backup(KN).
    backupType Double
    Backup mode type.
    deleteTime String
    Scheduled deletion time for the backup.
    endTime String
    end time of backup.
    instanceId String
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    restoreTime String
    Time point supported for backup restore.
    startTime String
    start time of backup.
    status Double
    Backup status.
    backId number
    Backup record ID.
    backupDesc string
    Remark of backup.
    backupMethod number
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    backupName string
    Backup mode name.
    backupRegion string
    Region where the backup is stored (for cross-region backups).
    backupSize number
    Size of backup(KN).
    backupType number
    Backup mode type.
    deleteTime string
    Scheduled deletion time for the backup.
    endTime string
    end time of backup.
    instanceId string
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    restoreTime string
    Time point supported for backup restore.
    startTime string
    start time of backup.
    status number
    Backup status.
    back_id float
    Backup record ID.
    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_region str
    Region where the backup is stored (for cross-region backups).
    backup_size float
    Size of backup(KN).
    backup_type float
    Backup mode type.
    delete_time str
    Scheduled deletion time for the backup.
    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.
    restore_time str
    Time point supported for backup restore.
    start_time str
    start time of backup.
    status float
    Backup status.
    backId Number
    Backup record ID.
    backupDesc String
    Remark of backup.
    backupMethod Number
    Backup mode, currently supported: 0-logic backup, 1-physical backup, 2-all backups.The default is logical backup.
    backupName String
    Backup mode name.
    backupRegion String
    Region where the backup is stored (for cross-region backups).
    backupSize Number
    Size of backup(KN).
    backupType Number
    Backup mode type.
    deleteTime String
    Scheduled deletion time for the backup.
    endTime String
    end time of backup.
    instanceId String
    Instance ID, the format is: cmgo-9d0p6umb.Same as the instance ID displayed in the cloud database console page.
    restoreTime String
    Time point supported for backup restore.
    startTime 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 logo
    Viewing docs for tencentcloud 1.82.73
    published on Friday, Mar 6, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.