1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. hbr
  5. getSnapshots
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.hbr.getSnapshots

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the Hbr Snapshots of the current Alibaba Cloud user.

    NOTE: Available in v1.133.0+.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.hbr.getEcsBackupPlans({
        nameRegex: "plan-tf-used-dont-delete",
    });
    const defaultGetOssBackupPlans = alicloud.hbr.getOssBackupPlans({
        nameRegex: "plan-tf-used-dont-delete",
    });
    const defaultGetNasBackupPlans = alicloud.hbr.getNasBackupPlans({
        nameRegex: "plan-tf-used-dont-delete",
    });
    const ecsSnapshots = Promise.all([_default, _default]).then(([_default, _default1]) => alicloud.hbr.getSnapshots({
        sourceType: "ECS_FILE",
        vaultId: _default.plans?.[0]?.vaultId,
        instanceId: _default1.plans?.[0]?.instanceId,
    }));
    const ossSnapshots = Promise.all([defaultGetOssBackupPlans, defaultGetOssBackupPlans]).then(([defaultGetOssBackupPlans, defaultGetOssBackupPlans1]) => alicloud.hbr.getSnapshots({
        sourceType: "OSS",
        vaultId: defaultGetOssBackupPlans.plans?.[0]?.vaultId,
        bucket: defaultGetOssBackupPlans1.plans?.[0]?.bucket,
        completeTime: "2021-07-20T14:17:15CST,2021-07-24T14:17:15CST",
        completeTimeChecker: "BETWEEN",
    }));
    const nasSnapshots = Promise.all([defaultGetNasBackupPlans, defaultGetNasBackupPlans, defaultGetNasBackupPlans]).then(([defaultGetNasBackupPlans, defaultGetNasBackupPlans1, defaultGetNasBackupPlans2]) => alicloud.hbr.getSnapshots({
        sourceType: "NAS",
        vaultId: defaultGetNasBackupPlans.plans?.[0]?.vaultId,
        fileSystemId: defaultGetNasBackupPlans1.plans?.[0]?.fileSystemId,
        createTime: defaultGetNasBackupPlans2.plans?.[0]?.createTime,
        completeTime: "2021-08-23T14:17:15CST",
        completeTimeChecker: "GREATER_THAN_OR_EQUAL",
    }));
    export const hbrSnapshotId1 = nasSnapshots.then(nasSnapshots => nasSnapshots.snapshots?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.hbr.get_ecs_backup_plans(name_regex="plan-tf-used-dont-delete")
    default_get_oss_backup_plans = alicloud.hbr.get_oss_backup_plans(name_regex="plan-tf-used-dont-delete")
    default_get_nas_backup_plans = alicloud.hbr.get_nas_backup_plans(name_regex="plan-tf-used-dont-delete")
    ecs_snapshots = alicloud.hbr.get_snapshots(source_type="ECS_FILE",
        vault_id=default.plans[0].vault_id,
        instance_id=default.plans[0].instance_id)
    oss_snapshots = alicloud.hbr.get_snapshots(source_type="OSS",
        vault_id=default_get_oss_backup_plans.plans[0].vault_id,
        bucket=default_get_oss_backup_plans.plans[0].bucket,
        complete_time="2021-07-20T14:17:15CST,2021-07-24T14:17:15CST",
        complete_time_checker="BETWEEN")
    nas_snapshots = alicloud.hbr.get_snapshots(source_type="NAS",
        vault_id=default_get_nas_backup_plans.plans[0].vault_id,
        file_system_id=default_get_nas_backup_plans.plans[0].file_system_id,
        create_time=default_get_nas_backup_plans.plans[0].create_time,
        complete_time="2021-08-23T14:17:15CST",
        complete_time_checker="GREATER_THAN_OR_EQUAL")
    pulumi.export("hbrSnapshotId1", nas_snapshots.snapshots[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_default, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
    			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetOssBackupPlans, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
    			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetNasBackupPlans, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
    			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
    			SourceType: "ECS_FILE",
    			VaultId:    _default.Plans[0].VaultId,
    			InstanceId: pulumi.StringRef(_default.Plans[0].InstanceId),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
    			SourceType:          "OSS",
    			VaultId:             defaultGetOssBackupPlans.Plans[0].VaultId,
    			Bucket:              pulumi.StringRef(defaultGetOssBackupPlans.Plans[0].Bucket),
    			CompleteTime:        pulumi.StringRef("2021-07-20T14:17:15CST,2021-07-24T14:17:15CST"),
    			CompleteTimeChecker: pulumi.StringRef("BETWEEN"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		nasSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
    			SourceType:          "NAS",
    			VaultId:             defaultGetNasBackupPlans.Plans[0].VaultId,
    			FileSystemId:        pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].FileSystemId),
    			CreateTime:          pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].CreateTime),
    			CompleteTime:        pulumi.StringRef("2021-08-23T14:17:15CST"),
    			CompleteTimeChecker: pulumi.StringRef("GREATER_THAN_OR_EQUAL"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("hbrSnapshotId1", nasSnapshots.Snapshots[0].Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = AliCloud.Hbr.GetEcsBackupPlans.Invoke(new()
        {
            NameRegex = "plan-tf-used-dont-delete",
        });
    
        var defaultGetOssBackupPlans = AliCloud.Hbr.GetOssBackupPlans.Invoke(new()
        {
            NameRegex = "plan-tf-used-dont-delete",
        });
    
        var defaultGetNasBackupPlans = AliCloud.Hbr.GetNasBackupPlans.Invoke(new()
        {
            NameRegex = "plan-tf-used-dont-delete",
        });
    
        var ecsSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new()
        {
            SourceType = "ECS_FILE",
            VaultId = @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.VaultId),
            InstanceId = @default.Apply(getEcsBackupPlansResult => getEcsBackupPlansResult.Plans[0]?.InstanceId),
        });
    
        var ossSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new()
        {
            SourceType = "OSS",
            VaultId = defaultGetOssBackupPlans.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.VaultId),
            Bucket = defaultGetOssBackupPlans.Apply(getOssBackupPlansResult => getOssBackupPlansResult.Plans[0]?.Bucket),
            CompleteTime = "2021-07-20T14:17:15CST,2021-07-24T14:17:15CST",
            CompleteTimeChecker = "BETWEEN",
        });
    
        var nasSnapshots = AliCloud.Hbr.GetSnapshots.Invoke(new()
        {
            SourceType = "NAS",
            VaultId = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.VaultId),
            FileSystemId = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.FileSystemId),
            CreateTime = defaultGetNasBackupPlans.Apply(getNasBackupPlansResult => getNasBackupPlansResult.Plans[0]?.CreateTime),
            CompleteTime = "2021-08-23T14:17:15CST",
            CompleteTimeChecker = "GREATER_THAN_OR_EQUAL",
        });
    
        return new Dictionary<string, object?>
        {
            ["hbrSnapshotId1"] = nasSnapshots.Apply(getSnapshotsResult => getSnapshotsResult.Snapshots[0]?.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.hbr.HbrFunctions;
    import com.pulumi.alicloud.hbr.inputs.GetEcsBackupPlansArgs;
    import com.pulumi.alicloud.hbr.inputs.GetOssBackupPlansArgs;
    import com.pulumi.alicloud.hbr.inputs.GetNasBackupPlansArgs;
    import com.pulumi.alicloud.hbr.inputs.GetSnapshotsArgs;
    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 default = HbrFunctions.getEcsBackupPlans(GetEcsBackupPlansArgs.builder()
                .nameRegex("plan-tf-used-dont-delete")
                .build());
    
            final var defaultGetOssBackupPlans = HbrFunctions.getOssBackupPlans(GetOssBackupPlansArgs.builder()
                .nameRegex("plan-tf-used-dont-delete")
                .build());
    
            final var defaultGetNasBackupPlans = HbrFunctions.getNasBackupPlans(GetNasBackupPlansArgs.builder()
                .nameRegex("plan-tf-used-dont-delete")
                .build());
    
            final var ecsSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
                .sourceType("ECS_FILE")
                .vaultId(default_.plans()[0].vaultId())
                .instanceId(default_.plans()[0].instanceId())
                .build());
    
            final var ossSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
                .sourceType("OSS")
                .vaultId(defaultGetOssBackupPlans.applyValue(getOssBackupPlansResult -> getOssBackupPlansResult.plans()[0].vaultId()))
                .bucket(defaultGetOssBackupPlans.applyValue(getOssBackupPlansResult -> getOssBackupPlansResult.plans()[0].bucket()))
                .completeTime("2021-07-20T14:17:15CST,2021-07-24T14:17:15CST")
                .completeTimeChecker("BETWEEN")
                .build());
    
            final var nasSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
                .sourceType("NAS")
                .vaultId(defaultGetNasBackupPlans.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].vaultId()))
                .fileSystemId(defaultGetNasBackupPlans.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].fileSystemId()))
                .createTime(defaultGetNasBackupPlans.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].createTime()))
                .completeTime("2021-08-23T14:17:15CST")
                .completeTimeChecker("GREATER_THAN_OR_EQUAL")
                .build());
    
            ctx.export("hbrSnapshotId1", nasSnapshots.applyValue(getSnapshotsResult -> getSnapshotsResult.snapshots()[0].id()));
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:hbr:getEcsBackupPlans
          Arguments:
            nameRegex: plan-tf-used-dont-delete
      defaultGetOssBackupPlans:
        fn::invoke:
          Function: alicloud:hbr:getOssBackupPlans
          Arguments:
            nameRegex: plan-tf-used-dont-delete
      defaultGetNasBackupPlans:
        fn::invoke:
          Function: alicloud:hbr:getNasBackupPlans
          Arguments:
            nameRegex: plan-tf-used-dont-delete
      ecsSnapshots:
        fn::invoke:
          Function: alicloud:hbr:getSnapshots
          Arguments:
            sourceType: ECS_FILE
            vaultId: ${default.plans[0].vaultId}
            instanceId: ${default.plans[0].instanceId}
      ossSnapshots:
        fn::invoke:
          Function: alicloud:hbr:getSnapshots
          Arguments:
            sourceType: OSS
            vaultId: ${defaultGetOssBackupPlans.plans[0].vaultId}
            bucket: ${defaultGetOssBackupPlans.plans[0].bucket}
            completeTime: 2021-07-20T14:17:15CST,2021-07-24T14:17:15CST
            completeTimeChecker: BETWEEN
      nasSnapshots:
        fn::invoke:
          Function: alicloud:hbr:getSnapshots
          Arguments:
            sourceType: NAS
            vaultId: ${defaultGetNasBackupPlans.plans[0].vaultId}
            fileSystemId: ${defaultGetNasBackupPlans.plans[0].fileSystemId}
            createTime: ${defaultGetNasBackupPlans.plans[0].createTime}
            completeTime: 2021-08-23T14:17:15CST
            completeTimeChecker: GREATER_THAN_OR_EQUAL
    outputs:
      hbrSnapshotId1: ${nasSnapshots.snapshots[0].id}
    

    Using getSnapshots

    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 getSnapshots(args: GetSnapshotsArgs, opts?: InvokeOptions): Promise<GetSnapshotsResult>
    function getSnapshotsOutput(args: GetSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetSnapshotsResult>
    def get_snapshots(bucket: Optional[str] = None,
                      complete_time: Optional[str] = None,
                      complete_time_checker: Optional[str] = None,
                      create_time: Optional[str] = None,
                      file_system_id: Optional[str] = None,
                      ids: Optional[Sequence[str]] = None,
                      instance_id: Optional[str] = None,
                      limit: Optional[int] = None,
                      output_file: Optional[str] = None,
                      query: Optional[str] = None,
                      source_type: Optional[str] = None,
                      status: Optional[str] = None,
                      vault_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetSnapshotsResult
    def get_snapshots_output(bucket: Optional[pulumi.Input[str]] = None,
                      complete_time: Optional[pulumi.Input[str]] = None,
                      complete_time_checker: Optional[pulumi.Input[str]] = None,
                      create_time: Optional[pulumi.Input[str]] = None,
                      file_system_id: Optional[pulumi.Input[str]] = None,
                      ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      instance_id: Optional[pulumi.Input[str]] = None,
                      limit: Optional[pulumi.Input[int]] = None,
                      output_file: Optional[pulumi.Input[str]] = None,
                      query: Optional[pulumi.Input[str]] = None,
                      source_type: Optional[pulumi.Input[str]] = None,
                      status: Optional[pulumi.Input[str]] = None,
                      vault_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotsResult]
    func GetSnapshots(ctx *Context, args *GetSnapshotsArgs, opts ...InvokeOption) (*GetSnapshotsResult, error)
    func GetSnapshotsOutput(ctx *Context, args *GetSnapshotsOutputArgs, opts ...InvokeOption) GetSnapshotsResultOutput

    > Note: This function is named GetSnapshots in the Go SDK.

    public static class GetSnapshots 
    {
        public static Task<GetSnapshotsResult> InvokeAsync(GetSnapshotsArgs args, InvokeOptions? opts = null)
        public static Output<GetSnapshotsResult> Invoke(GetSnapshotsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSnapshotsResult> getSnapshots(GetSnapshotsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:hbr/getSnapshots:getSnapshots
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SourceType string
    Data source type, valid values: ECS_FILE, OSS, NAS.
    VaultId string
    The ID of Vault.
    Bucket string
    The bucket name of OSS. While source_type equals OSS, this parameter must be set.
    CompleteTime string
    Timestamp of Snapshot completion. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z. Note: While complete_time_checker equals BETWEEN, this field should be formatted such as "2021-08-20T14:17:15CST,2021-08-26T14:17:15CST", The first part of this string is the start time, the second part is the end time, and the two parts should be separated by commas.
    CompleteTimeChecker string
    Complete time filter operator. Optional values: MATCH_TERM, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN.
    CreateTime string
    File system creation timestamp of Nas. While source_type equals NAS, this parameter must be set. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z.
    FileSystemId string
    The File System ID of Nas. While source_type equals NAS, this parameter must be set.
    Ids List<string>
    A list of Snapshot IDs.
    InstanceId string
    The ID of ECS instance. The ecs backup client must have been installed on the host. While source_type equals ECS_FILE, this parameter must be set.
    Limit int
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Query string
    Status string
    The status of snapshot, valid values: COMPLETE, PARTIAL_COMPLETE.
    SourceType string
    Data source type, valid values: ECS_FILE, OSS, NAS.
    VaultId string
    The ID of Vault.
    Bucket string
    The bucket name of OSS. While source_type equals OSS, this parameter must be set.
    CompleteTime string
    Timestamp of Snapshot completion. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z. Note: While complete_time_checker equals BETWEEN, this field should be formatted such as "2021-08-20T14:17:15CST,2021-08-26T14:17:15CST", The first part of this string is the start time, the second part is the end time, and the two parts should be separated by commas.
    CompleteTimeChecker string
    Complete time filter operator. Optional values: MATCH_TERM, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN.
    CreateTime string
    File system creation timestamp of Nas. While source_type equals NAS, this parameter must be set. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z.
    FileSystemId string
    The File System ID of Nas. While source_type equals NAS, this parameter must be set.
    Ids []string
    A list of Snapshot IDs.
    InstanceId string
    The ID of ECS instance. The ecs backup client must have been installed on the host. While source_type equals ECS_FILE, this parameter must be set.
    Limit int
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    Query string
    Status string
    The status of snapshot, valid values: COMPLETE, PARTIAL_COMPLETE.
    sourceType String
    Data source type, valid values: ECS_FILE, OSS, NAS.
    vaultId String
    The ID of Vault.
    bucket String
    The bucket name of OSS. While source_type equals OSS, this parameter must be set.
    completeTime String
    Timestamp of Snapshot completion. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z. Note: While complete_time_checker equals BETWEEN, this field should be formatted such as "2021-08-20T14:17:15CST,2021-08-26T14:17:15CST", The first part of this string is the start time, the second part is the end time, and the two parts should be separated by commas.
    completeTimeChecker String
    Complete time filter operator. Optional values: MATCH_TERM, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN.
    createTime String
    File system creation timestamp of Nas. While source_type equals NAS, this parameter must be set. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z.
    fileSystemId String
    The File System ID of Nas. While source_type equals NAS, this parameter must be set.
    ids List<String>
    A list of Snapshot IDs.
    instanceId String
    The ID of ECS instance. The ecs backup client must have been installed on the host. While source_type equals ECS_FILE, this parameter must be set.
    limit Integer
    outputFile String
    File name where to save data source results (after running pulumi preview).
    query String
    status String
    The status of snapshot, valid values: COMPLETE, PARTIAL_COMPLETE.
    sourceType string
    Data source type, valid values: ECS_FILE, OSS, NAS.
    vaultId string
    The ID of Vault.
    bucket string
    The bucket name of OSS. While source_type equals OSS, this parameter must be set.
    completeTime string
    Timestamp of Snapshot completion. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z. Note: While complete_time_checker equals BETWEEN, this field should be formatted such as "2021-08-20T14:17:15CST,2021-08-26T14:17:15CST", The first part of this string is the start time, the second part is the end time, and the two parts should be separated by commas.
    completeTimeChecker string
    Complete time filter operator. Optional values: MATCH_TERM, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN.
    createTime string
    File system creation timestamp of Nas. While source_type equals NAS, this parameter must be set. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z.
    fileSystemId string
    The File System ID of Nas. While source_type equals NAS, this parameter must be set.
    ids string[]
    A list of Snapshot IDs.
    instanceId string
    The ID of ECS instance. The ecs backup client must have been installed on the host. While source_type equals ECS_FILE, this parameter must be set.
    limit number
    outputFile string
    File name where to save data source results (after running pulumi preview).
    query string
    status string
    The status of snapshot, valid values: COMPLETE, PARTIAL_COMPLETE.
    source_type str
    Data source type, valid values: ECS_FILE, OSS, NAS.
    vault_id str
    The ID of Vault.
    bucket str
    The bucket name of OSS. While source_type equals OSS, this parameter must be set.
    complete_time str
    Timestamp of Snapshot completion. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z. Note: While complete_time_checker equals BETWEEN, this field should be formatted such as "2021-08-20T14:17:15CST,2021-08-26T14:17:15CST", The first part of this string is the start time, the second part is the end time, and the two parts should be separated by commas.
    complete_time_checker str
    Complete time filter operator. Optional values: MATCH_TERM, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN.
    create_time str
    File system creation timestamp of Nas. While source_type equals NAS, this parameter must be set. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z.
    file_system_id str
    The File System ID of Nas. While source_type equals NAS, this parameter must be set.
    ids Sequence[str]
    A list of Snapshot IDs.
    instance_id str
    The ID of ECS instance. The ecs backup client must have been installed on the host. While source_type equals ECS_FILE, this parameter must be set.
    limit int
    output_file str
    File name where to save data source results (after running pulumi preview).
    query str
    status str
    The status of snapshot, valid values: COMPLETE, PARTIAL_COMPLETE.
    sourceType String
    Data source type, valid values: ECS_FILE, OSS, NAS.
    vaultId String
    The ID of Vault.
    bucket String
    The bucket name of OSS. While source_type equals OSS, this parameter must be set.
    completeTime String
    Timestamp of Snapshot completion. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z. Note: While complete_time_checker equals BETWEEN, this field should be formatted such as "2021-08-20T14:17:15CST,2021-08-26T14:17:15CST", The first part of this string is the start time, the second part is the end time, and the two parts should be separated by commas.
    completeTimeChecker String
    Complete time filter operator. Optional values: MATCH_TERM, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, BETWEEN.
    createTime String
    File system creation timestamp of Nas. While source_type equals NAS, this parameter must be set. Note The time format of the API adopts the ISO 8601 format, such as 2021-07-09T15:45:30CST or 2021-07-09T07:45:30Z.
    fileSystemId String
    The File System ID of Nas. While source_type equals NAS, this parameter must be set.
    ids List<String>
    A list of Snapshot IDs.
    instanceId String
    The ID of ECS instance. The ecs backup client must have been installed on the host. While source_type equals ECS_FILE, this parameter must be set.
    limit Number
    outputFile String
    File name where to save data source results (after running pulumi preview).
    query String
    status String
    The status of snapshot, valid values: COMPLETE, PARTIAL_COMPLETE.

    getSnapshots Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    Snapshots List<Pulumi.AliCloud.Hbr.Outputs.GetSnapshotsSnapshot>
    SourceType string
    VaultId string
    Bucket string
    CompleteTime string
    CompleteTimeChecker string
    CreateTime string
    FileSystemId string
    InstanceId string
    Limit int
    OutputFile string
    Query string
    Status string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    Snapshots []GetSnapshotsSnapshot
    SourceType string
    VaultId string
    Bucket string
    CompleteTime string
    CompleteTimeChecker string
    CreateTime string
    FileSystemId string
    InstanceId string
    Limit int
    OutputFile string
    Query string
    Status string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    snapshots List<GetSnapshotsSnapshot>
    sourceType String
    vaultId String
    bucket String
    completeTime String
    completeTimeChecker String
    createTime String
    fileSystemId String
    instanceId String
    limit Integer
    outputFile String
    query String
    status String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    snapshots GetSnapshotsSnapshot[]
    sourceType string
    vaultId string
    bucket string
    completeTime string
    completeTimeChecker string
    createTime string
    fileSystemId string
    instanceId string
    limit number
    outputFile string
    query string
    status string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    snapshots Sequence[GetSnapshotsSnapshot]
    source_type str
    vault_id str
    bucket str
    complete_time str
    complete_time_checker str
    create_time str
    file_system_id str
    instance_id str
    limit int
    output_file str
    query str
    status str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    snapshots List<Property Map>
    sourceType String
    vaultId String
    bucket String
    completeTime String
    completeTimeChecker String
    createTime String
    fileSystemId String
    instanceId String
    limit Number
    outputFile String
    query String
    status String

    Supporting Types

    GetSnapshotsSnapshot

    ActualBytes string
    The actual data volume of the snapshot. Unit byte.
    ActualItems string
    The actual number of items in the snapshot. (Currently only file backup is available).
    BackupType string
    Backup type. Possible values: COMPLETE (full backup).
    Bucket string
    The name of OSS bucket.
    BytesDone string
    The incremental amount of backup data. Unit byte.
    BytesTotal string
    The total amount of data sources. Unit byte.
    ClientId string
    The ID of ECS backup client.
    CompleteTime string
    The time when the snapshot completed. UNIX time in seconds.
    CreateTime string
    File System Creation Time of Nas. Unix Time Seconds.
    CreatedTime string
    Snapshot creation time. UNIX time in seconds.
    ErrorFile string
    FileSystemId string
    The ID of NAS File system.
    Id string
    The ID of the Snapshot.
    InstanceId string
    The ID of ECS instance.
    ItemsDone string
    The number of backup items. (Currently only file backup is available).
    ItemsTotal string
    The total number of data source items. (Currently only file backup is available).
    JobId string
    The job ID of backup task.
    ParentSnapshotHash string
    The hashcode of parent backup snapshot.
    Path string
    Backup Path.
    Prefix string
    Backup file prefix.
    Retention string
    The number of days to keep.
    SnapshotHash string
    The hashcode of Snapshot.
    SnapshotId string
    The ID of the Snapshot.
    SourceType string
    Data source type, optional values: ECS_FILE, OSS, NAS.
    StartTime string
    The start time of the snapshot. UNIX time in seconds.
    Status string
    The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.
    UpdatedTime string
    The update time of snapshot. UNIX time in seconds.
    ActualBytes string
    The actual data volume of the snapshot. Unit byte.
    ActualItems string
    The actual number of items in the snapshot. (Currently only file backup is available).
    BackupType string
    Backup type. Possible values: COMPLETE (full backup).
    Bucket string
    The name of OSS bucket.
    BytesDone string
    The incremental amount of backup data. Unit byte.
    BytesTotal string
    The total amount of data sources. Unit byte.
    ClientId string
    The ID of ECS backup client.
    CompleteTime string
    The time when the snapshot completed. UNIX time in seconds.
    CreateTime string
    File System Creation Time of Nas. Unix Time Seconds.
    CreatedTime string
    Snapshot creation time. UNIX time in seconds.
    ErrorFile string
    FileSystemId string
    The ID of NAS File system.
    Id string
    The ID of the Snapshot.
    InstanceId string
    The ID of ECS instance.
    ItemsDone string
    The number of backup items. (Currently only file backup is available).
    ItemsTotal string
    The total number of data source items. (Currently only file backup is available).
    JobId string
    The job ID of backup task.
    ParentSnapshotHash string
    The hashcode of parent backup snapshot.
    Path string
    Backup Path.
    Prefix string
    Backup file prefix.
    Retention string
    The number of days to keep.
    SnapshotHash string
    The hashcode of Snapshot.
    SnapshotId string
    The ID of the Snapshot.
    SourceType string
    Data source type, optional values: ECS_FILE, OSS, NAS.
    StartTime string
    The start time of the snapshot. UNIX time in seconds.
    Status string
    The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.
    UpdatedTime string
    The update time of snapshot. UNIX time in seconds.
    actualBytes String
    The actual data volume of the snapshot. Unit byte.
    actualItems String
    The actual number of items in the snapshot. (Currently only file backup is available).
    backupType String
    Backup type. Possible values: COMPLETE (full backup).
    bucket String
    The name of OSS bucket.
    bytesDone String
    The incremental amount of backup data. Unit byte.
    bytesTotal String
    The total amount of data sources. Unit byte.
    clientId String
    The ID of ECS backup client.
    completeTime String
    The time when the snapshot completed. UNIX time in seconds.
    createTime String
    File System Creation Time of Nas. Unix Time Seconds.
    createdTime String
    Snapshot creation time. UNIX time in seconds.
    errorFile String
    fileSystemId String
    The ID of NAS File system.
    id String
    The ID of the Snapshot.
    instanceId String
    The ID of ECS instance.
    itemsDone String
    The number of backup items. (Currently only file backup is available).
    itemsTotal String
    The total number of data source items. (Currently only file backup is available).
    jobId String
    The job ID of backup task.
    parentSnapshotHash String
    The hashcode of parent backup snapshot.
    path String
    Backup Path.
    prefix String
    Backup file prefix.
    retention String
    The number of days to keep.
    snapshotHash String
    The hashcode of Snapshot.
    snapshotId String
    The ID of the Snapshot.
    sourceType String
    Data source type, optional values: ECS_FILE, OSS, NAS.
    startTime String
    The start time of the snapshot. UNIX time in seconds.
    status String
    The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.
    updatedTime String
    The update time of snapshot. UNIX time in seconds.
    actualBytes string
    The actual data volume of the snapshot. Unit byte.
    actualItems string
    The actual number of items in the snapshot. (Currently only file backup is available).
    backupType string
    Backup type. Possible values: COMPLETE (full backup).
    bucket string
    The name of OSS bucket.
    bytesDone string
    The incremental amount of backup data. Unit byte.
    bytesTotal string
    The total amount of data sources. Unit byte.
    clientId string
    The ID of ECS backup client.
    completeTime string
    The time when the snapshot completed. UNIX time in seconds.
    createTime string
    File System Creation Time of Nas. Unix Time Seconds.
    createdTime string
    Snapshot creation time. UNIX time in seconds.
    errorFile string
    fileSystemId string
    The ID of NAS File system.
    id string
    The ID of the Snapshot.
    instanceId string
    The ID of ECS instance.
    itemsDone string
    The number of backup items. (Currently only file backup is available).
    itemsTotal string
    The total number of data source items. (Currently only file backup is available).
    jobId string
    The job ID of backup task.
    parentSnapshotHash string
    The hashcode of parent backup snapshot.
    path string
    Backup Path.
    prefix string
    Backup file prefix.
    retention string
    The number of days to keep.
    snapshotHash string
    The hashcode of Snapshot.
    snapshotId string
    The ID of the Snapshot.
    sourceType string
    Data source type, optional values: ECS_FILE, OSS, NAS.
    startTime string
    The start time of the snapshot. UNIX time in seconds.
    status string
    The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.
    updatedTime string
    The update time of snapshot. UNIX time in seconds.
    actual_bytes str
    The actual data volume of the snapshot. Unit byte.
    actual_items str
    The actual number of items in the snapshot. (Currently only file backup is available).
    backup_type str
    Backup type. Possible values: COMPLETE (full backup).
    bucket str
    The name of OSS bucket.
    bytes_done str
    The incremental amount of backup data. Unit byte.
    bytes_total str
    The total amount of data sources. Unit byte.
    client_id str
    The ID of ECS backup client.
    complete_time str
    The time when the snapshot completed. UNIX time in seconds.
    create_time str
    File System Creation Time of Nas. Unix Time Seconds.
    created_time str
    Snapshot creation time. UNIX time in seconds.
    error_file str
    file_system_id str
    The ID of NAS File system.
    id str
    The ID of the Snapshot.
    instance_id str
    The ID of ECS instance.
    items_done str
    The number of backup items. (Currently only file backup is available).
    items_total str
    The total number of data source items. (Currently only file backup is available).
    job_id str
    The job ID of backup task.
    parent_snapshot_hash str
    The hashcode of parent backup snapshot.
    path str
    Backup Path.
    prefix str
    Backup file prefix.
    retention str
    The number of days to keep.
    snapshot_hash str
    The hashcode of Snapshot.
    snapshot_id str
    The ID of the Snapshot.
    source_type str
    Data source type, optional values: ECS_FILE, OSS, NAS.
    start_time str
    The start time of the snapshot. UNIX time in seconds.
    status str
    The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.
    updated_time str
    The update time of snapshot. UNIX time in seconds.
    actualBytes String
    The actual data volume of the snapshot. Unit byte.
    actualItems String
    The actual number of items in the snapshot. (Currently only file backup is available).
    backupType String
    Backup type. Possible values: COMPLETE (full backup).
    bucket String
    The name of OSS bucket.
    bytesDone String
    The incremental amount of backup data. Unit byte.
    bytesTotal String
    The total amount of data sources. Unit byte.
    clientId String
    The ID of ECS backup client.
    completeTime String
    The time when the snapshot completed. UNIX time in seconds.
    createTime String
    File System Creation Time of Nas. Unix Time Seconds.
    createdTime String
    Snapshot creation time. UNIX time in seconds.
    errorFile String
    fileSystemId String
    The ID of NAS File system.
    id String
    The ID of the Snapshot.
    instanceId String
    The ID of ECS instance.
    itemsDone String
    The number of backup items. (Currently only file backup is available).
    itemsTotal String
    The total number of data source items. (Currently only file backup is available).
    jobId String
    The job ID of backup task.
    parentSnapshotHash String
    The hashcode of parent backup snapshot.
    path String
    Backup Path.
    prefix String
    Backup file prefix.
    retention String
    The number of days to keep.
    snapshotHash String
    The hashcode of Snapshot.
    snapshotId String
    The ID of the Snapshot.
    sourceType String
    Data source type, optional values: ECS_FILE, OSS, NAS.
    startTime String
    The start time of the snapshot. UNIX time in seconds.
    status String
    The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.
    updatedTime String
    The update time of snapshot. UNIX time in seconds.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi