Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

getSnapshots

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

NOTE: Available in v1.133.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var defaultEcsBackupPlans = Output.Create(AliCloud.Hbr.GetEcsBackupPlans.InvokeAsync(new AliCloud.Hbr.GetEcsBackupPlansArgs
        {
            NameRegex = "plan-tf-used-dont-delete",
        }));
        var defaultOssBackupPlans = Output.Create(AliCloud.Hbr.GetOssBackupPlans.InvokeAsync(new AliCloud.Hbr.GetOssBackupPlansArgs
        {
            NameRegex = "plan-tf-used-dont-delete",
        }));
        var defaultNasBackupPlans = Output.Create(AliCloud.Hbr.GetNasBackupPlans.InvokeAsync(new AliCloud.Hbr.GetNasBackupPlansArgs
        {
            NameRegex = "plan-tf-used-dont-delete",
        }));
        var ecsSnapshots = Output.Tuple(defaultEcsBackupPlans, defaultEcsBackupPlans).Apply(values =>
        {
            var defaultEcsBackupPlans = values.Item1;
            var defaultEcsBackupPlans1 = values.Item2;
            return Output.Create(AliCloud.Hbr.GetSnapshots.InvokeAsync(new AliCloud.Hbr.GetSnapshotsArgs
            {
                SourceType = "ECS_FILE",
                VaultId = defaultEcsBackupPlans.Plans?[0]?.VaultId,
                InstanceId = defaultEcsBackupPlans1.Plans?[0]?.InstanceId,
            }));
        });
        var ossSnapshots = Output.Tuple(defaultOssBackupPlans, defaultOssBackupPlans).Apply(values =>
        {
            var defaultOssBackupPlans = values.Item1;
            var defaultOssBackupPlans1 = values.Item2;
            return Output.Create(AliCloud.Hbr.GetSnapshots.InvokeAsync(new AliCloud.Hbr.GetSnapshotsArgs
            {
                SourceType = "OSS",
                VaultId = defaultOssBackupPlans.Plans?[0]?.VaultId,
                Bucket = defaultOssBackupPlans1.Plans?[0]?.Bucket,
                CompleteTime = "2021-07-20T14:17:15CST,2021-07-24T14:17:15CST",
                CompleteTimeChecker = "BETWEEN",
            }));
        });
        var nasSnapshots = Output.Tuple(defaultNasBackupPlans, defaultNasBackupPlans, defaultNasBackupPlans).Apply(values =>
        {
            var defaultNasBackupPlans = values.Item1;
            var defaultNasBackupPlans1 = values.Item2;
            var defaultNasBackupPlans2 = values.Item3;
            return Output.Create(AliCloud.Hbr.GetSnapshots.InvokeAsync(new AliCloud.Hbr.GetSnapshotsArgs
            {
                SourceType = "NAS",
                VaultId = defaultNasBackupPlans.Plans?[0]?.VaultId,
                FileSystemId = defaultNasBackupPlans1.Plans?[0]?.FileSystemId,
                CreateTime = defaultNasBackupPlans2.Plans?[0]?.CreateTime,
                CompleteTime = "2021-08-23T14:17:15CST",
                CompleteTimeChecker = "GREATER_THAN_OR_EQUAL",
            }));
        });
        this.HbrSnapshotId1 = nasSnapshots.Apply(nasSnapshots => nasSnapshots.Snapshots?[0]?.Id);
    }

    [Output("hbrSnapshotId1")]
    public Output<string> HbrSnapshotId1 { get; set; }
}
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 {
		defaultEcsBackupPlans, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultOssBackupPlans, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
			NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNasBackupPlans, 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:    defaultEcsBackupPlans.Plans[0].VaultId,
			InstanceId: pulumi.StringRef(defaultEcsBackupPlans.Plans[0].InstanceId),
		}, nil)
		if err != nil {
			return err
		}
		_, err = hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
			SourceType:          "OSS",
			VaultId:             defaultOssBackupPlans.Plans[0].VaultId,
			Bucket:              pulumi.StringRef(defaultOssBackupPlans.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:             defaultNasBackupPlans.Plans[0].VaultId,
			FileSystemId:        pulumi.StringRef(defaultNasBackupPlans.Plans[0].FileSystemId),
			CreateTime:          pulumi.StringRef(defaultNasBackupPlans.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
	})
}
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.databasefilesystem.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 defaultEcsBackupPlans = HbrFunctions.getEcsBackupPlans(GetEcsBackupPlansArgs.builder()
            .nameRegex("plan-tf-used-dont-delete")
            .build());

        final var defaultOssBackupPlans = HbrFunctions.getOssBackupPlans(GetOssBackupPlansArgs.builder()
            .nameRegex("plan-tf-used-dont-delete")
            .build());

        final var defaultNasBackupPlans = HbrFunctions.getNasBackupPlans(GetNasBackupPlansArgs.builder()
            .nameRegex("plan-tf-used-dont-delete")
            .build());

        final var ecsSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
            .sourceType("ECS_FILE")
            .vaultId(defaultEcsBackupPlans.applyValue(getEcsBackupPlansResult -> getEcsBackupPlansResult.plans()[0].vaultId()))
            .instanceId(defaultEcsBackupPlans.applyValue(getEcsBackupPlansResult -> getEcsBackupPlansResult.plans()[0].instanceId()))
            .build());

        final var ossSnapshots = HbrFunctions.getSnapshots(GetSnapshotsArgs.builder()
            .sourceType("OSS")
            .vaultId(defaultOssBackupPlans.applyValue(getOssBackupPlansResult -> getOssBackupPlansResult.plans()[0].vaultId()))
            .bucket(defaultOssBackupPlans.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(defaultNasBackupPlans.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].vaultId()))
            .fileSystemId(defaultNasBackupPlans.applyValue(getNasBackupPlansResult -> getNasBackupPlansResult.plans()[0].fileSystemId()))
            .createTime(defaultNasBackupPlans.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()));
    }
}
import pulumi
import pulumi_alicloud as alicloud

default_ecs_backup_plans = alicloud.hbr.get_ecs_backup_plans(name_regex="plan-tf-used-dont-delete")
default_oss_backup_plans = alicloud.hbr.get_oss_backup_plans(name_regex="plan-tf-used-dont-delete")
default_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_ecs_backup_plans.plans[0].vault_id,
    instance_id=default_ecs_backup_plans.plans[0].instance_id)
oss_snapshots = alicloud.hbr.get_snapshots(source_type="OSS",
    vault_id=default_oss_backup_plans.plans[0].vault_id,
    bucket=default_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_nas_backup_plans.plans[0].vault_id,
    file_system_id=default_nas_backup_plans.plans[0].file_system_id,
    create_time=default_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)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultEcsBackupPlans = alicloud.hbr.getEcsBackupPlans({
    nameRegex: "plan-tf-used-dont-delete",
});
const defaultOssBackupPlans = alicloud.hbr.getOssBackupPlans({
    nameRegex: "plan-tf-used-dont-delete",
});
const defaultNasBackupPlans = alicloud.hbr.getNasBackupPlans({
    nameRegex: "plan-tf-used-dont-delete",
});
const ecsSnapshots = Promise.all([defaultEcsBackupPlans, defaultEcsBackupPlans]).then(([defaultEcsBackupPlans, defaultEcsBackupPlans1]) => alicloud.hbr.getSnapshots({
    sourceType: "ECS_FILE",
    vaultId: defaultEcsBackupPlans.plans?[0]?.vaultId,
    instanceId: defaultEcsBackupPlans1.plans?[0]?.instanceId,
}));
const ossSnapshots = Promise.all([defaultOssBackupPlans, defaultOssBackupPlans]).then(([defaultOssBackupPlans, defaultOssBackupPlans1]) => alicloud.hbr.getSnapshots({
    sourceType: "OSS",
    vaultId: defaultOssBackupPlans.plans?[0]?.vaultId,
    bucket: defaultOssBackupPlans1.plans?[0]?.bucket,
    completeTime: "2021-07-20T14:17:15CST,2021-07-24T14:17:15CST",
    completeTimeChecker: "BETWEEN",
}));
const nasSnapshots = Promise.all([defaultNasBackupPlans, defaultNasBackupPlans, defaultNasBackupPlans]).then(([defaultNasBackupPlans, defaultNasBackupPlans1, defaultNasBackupPlans2]) => alicloud.hbr.getSnapshots({
    sourceType: "NAS",
    vaultId: defaultNasBackupPlans.plans?[0]?.vaultId,
    fileSystemId: defaultNasBackupPlans1.plans?[0]?.fileSystemId,
    createTime: defaultNasBackupPlans2.plans?[0]?.createTime,
    completeTime: "2021-08-23T14:17:15CST",
    completeTimeChecker: "GREATER_THAN_OR_EQUAL",
}));
export const hbrSnapshotId1 = nasSnapshots.then(nasSnapshots => nasSnapshots.snapshots?[0]?.id);
variables:
  defaultEcsBackupPlans:
    Fn::Invoke:
      Function: alicloud:hbr:getEcsBackupPlans
      Arguments:
        nameRegex: plan-tf-used-dont-delete
  defaultOssBackupPlans:
    Fn::Invoke:
      Function: alicloud:hbr:getOssBackupPlans
      Arguments:
        nameRegex: plan-tf-used-dont-delete
  defaultNasBackupPlans:
    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: ${defaultEcsBackupPlans.plans[0].vaultId}
        instanceId: ${defaultEcsBackupPlans.plans[0].instanceId}
  ossSnapshots:
    Fn::Invoke:
      Function: alicloud:hbr:getSnapshots
      Arguments:
        sourceType: OSS
        vaultId: ${defaultOssBackupPlans.plans[0].vaultId}
        bucket: ${defaultOssBackupPlans.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: ${defaultNasBackupPlans.plans[0].vaultId}
        fileSystemId: ${defaultNasBackupPlans.plans[0].fileSystemId}
        createTime: ${defaultNasBackupPlans.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, optional values: ECS_FILE, OSS, NAS.

VaultId string

The ID of Vault.

Bucket string

The name of OSS bucket.

CompleteTime string

The time when the snapshot completed. UNIX time in seconds.

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 Time of Nas. Unix Time Seconds.

FileSystemId string

The ID of NAS File system.

Ids List<string>

A list of Snapshot IDs.

InstanceId string

The ID of ECS instance.

Limit int
OutputFile string
Query string
Status string

The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.

SourceType string

Data source type, optional values: ECS_FILE, OSS, NAS.

VaultId string

The ID of Vault.

Bucket string

The name of OSS bucket.

CompleteTime string

The time when the snapshot completed. UNIX time in seconds.

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 Time of Nas. Unix Time Seconds.

FileSystemId string

The ID of NAS File system.

Ids []string

A list of Snapshot IDs.

InstanceId string

The ID of ECS instance.

Limit int
OutputFile string
Query string
Status string

The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.

sourceType String

Data source type, optional values: ECS_FILE, OSS, NAS.

vaultId String

The ID of Vault.

bucket String

The name of OSS bucket.

completeTime String

The time when the snapshot completed. UNIX time in seconds.

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 Time of Nas. Unix Time Seconds.

fileSystemId String

The ID of NAS File system.

ids List<String>

A list of Snapshot IDs.

instanceId String

The ID of ECS instance.

limit Integer
outputFile String
query String
status String

The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.

sourceType string

Data source type, optional values: ECS_FILE, OSS, NAS.

vaultId string

The ID of Vault.

bucket string

The name of OSS bucket.

completeTime string

The time when the snapshot completed. UNIX time in seconds.

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 Time of Nas. Unix Time Seconds.

fileSystemId string

The ID of NAS File system.

ids string[]

A list of Snapshot IDs.

instanceId string

The ID of ECS instance.

limit number
outputFile string
query string
status string

The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.

source_type str

Data source type, optional values: ECS_FILE, OSS, NAS.

vault_id str

The ID of Vault.

bucket str

The name of OSS bucket.

complete_time str

The time when the snapshot completed. UNIX time in seconds.

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 Time of Nas. Unix Time Seconds.

file_system_id str

The ID of NAS File system.

ids Sequence[str]

A list of Snapshot IDs.

instance_id str

The ID of ECS instance.

limit int
output_file str
query str
status str

The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.

sourceType String

Data source type, optional values: ECS_FILE, OSS, NAS.

vaultId String

The ID of Vault.

bucket String

The name of OSS bucket.

completeTime String

The time when the snapshot completed. UNIX time in seconds.

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 Time of Nas. Unix Time Seconds.

fileSystemId String

The ID of NAS File system.

ids List<String>

A list of Snapshot IDs.

instanceId String

The ID of ECS instance.

limit Number
outputFile String
query String
status String

The status of snapshot execution. Possible values: COMPLETE, PARTIAL_COMPLETE, FAILED.

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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.