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

tencentcloud.getMongodbInstanceBackups

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 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:

    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

    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.
    BackupSize double
    Size of backup(KN).
    BackupType double
    Backup mode type.
    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.
    StartTime string
    start time of backup.
    Status double
    Backup status.
    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.
    BackupSize float64
    Size of backup(KN).
    BackupType float64
    Backup mode type.
    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.
    StartTime string
    start time of backup.
    Status float64
    Backup status.
    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.
    backupSize Double
    Size of backup(KN).
    backupType Double
    Backup mode type.
    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.
    startTime String
    start time of backup.
    status Double
    Backup status.
    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.
    backupSize number
    Size of backup(KN).
    backupType number
    Backup mode type.
    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.
    startTime 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.
    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.
    backupSize Number
    Size of backup(KN).
    backupType Number
    Backup mode type.
    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.
    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
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack