Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi
alicloud.hbr.getSnapshots
Explore with Pulumi AI
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:
- Source
Type string - Data source type, valid values:
ECS_FILE
,OSS
,NAS
. - Vault
Id string - The ID of Vault.
- Bucket string
- The bucket name of OSS. While source_type equals
OSS
, this parameter must be set. - Complete
Time 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
equalsBETWEEN
, 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 stringChecker - Complete time filter operator. Optional values:
MATCH_TERM
,GREATER_THAN
,GREATER_THAN_OR_EQUAL
,LESS_THAN
,LESS_THAN_OR_EQUAL
,BETWEEN
. - Create
Time 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 as2021-07-09T15:45:30CST
or2021-07-09T07:45:30Z
. - File
System stringId - The File System ID of Nas. While source_type equals
NAS
, this parameter must be set. - Ids List<string>
- A list of Snapshot IDs.
- Instance
Id 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
- Output
File 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 string - Data source type, valid values:
ECS_FILE
,OSS
,NAS
. - Vault
Id string - The ID of Vault.
- Bucket string
- The bucket name of OSS. While source_type equals
OSS
, this parameter must be set. - Complete
Time 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
equalsBETWEEN
, 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 stringChecker - Complete time filter operator. Optional values:
MATCH_TERM
,GREATER_THAN
,GREATER_THAN_OR_EQUAL
,LESS_THAN
,LESS_THAN_OR_EQUAL
,BETWEEN
. - Create
Time 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 as2021-07-09T15:45:30CST
or2021-07-09T07:45:30Z
. - File
System stringId - The File System ID of Nas. While source_type equals
NAS
, this parameter must be set. - Ids []string
- A list of Snapshot IDs.
- Instance
Id 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
- Output
File 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 String - Data source type, valid values:
ECS_FILE
,OSS
,NAS
. - vault
Id String - The ID of Vault.
- bucket String
- The bucket name of OSS. While source_type equals
OSS
, this parameter must be set. - complete
Time 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
equalsBETWEEN
, 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 StringChecker - Complete time filter operator. Optional values:
MATCH_TERM
,GREATER_THAN
,GREATER_THAN_OR_EQUAL
,LESS_THAN
,LESS_THAN_OR_EQUAL
,BETWEEN
. - create
Time 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 as2021-07-09T15:45:30CST
or2021-07-09T07:45:30Z
. - file
System StringId - The File System ID of Nas. While source_type equals
NAS
, this parameter must be set. - ids List<String>
- A list of Snapshot IDs.
- instance
Id 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
- output
File 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 string - Data source type, valid values:
ECS_FILE
,OSS
,NAS
. - vault
Id string - The ID of Vault.
- bucket string
- The bucket name of OSS. While source_type equals
OSS
, this parameter must be set. - complete
Time 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
equalsBETWEEN
, 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 stringChecker - Complete time filter operator. Optional values:
MATCH_TERM
,GREATER_THAN
,GREATER_THAN_OR_EQUAL
,LESS_THAN
,LESS_THAN_OR_EQUAL
,BETWEEN
. - create
Time 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 as2021-07-09T15:45:30CST
or2021-07-09T07:45:30Z
. - file
System stringId - The File System ID of Nas. While source_type equals
NAS
, this parameter must be set. - ids string[]
- A list of Snapshot IDs.
- instance
Id 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
- output
File 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
equalsBETWEEN
, 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_ strchecker - 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 as2021-07-09T15:45:30CST
or2021-07-09T07:45:30Z
. - file_
system_ strid - 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
.
- source
Type String - Data source type, valid values:
ECS_FILE
,OSS
,NAS
. - vault
Id String - The ID of Vault.
- bucket String
- The bucket name of OSS. While source_type equals
OSS
, this parameter must be set. - complete
Time 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
equalsBETWEEN
, 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 StringChecker - Complete time filter operator. Optional values:
MATCH_TERM
,GREATER_THAN
,GREATER_THAN_OR_EQUAL
,LESS_THAN
,LESS_THAN_OR_EQUAL
,BETWEEN
. - create
Time 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 as2021-07-09T15:45:30CST
or2021-07-09T07:45:30Z
. - file
System StringId - The File System ID of Nas. While source_type equals
NAS
, this parameter must be set. - ids List<String>
- A list of Snapshot IDs.
- instance
Id 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
- output
File 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.
Ali Cloud. Hbr. Outputs. Get Snapshots Snapshot> - Source
Type string - Vault
Id string - Bucket string
- Complete
Time string - Complete
Time stringChecker - Create
Time string - File
System stringId - Instance
Id string - Limit int
- Output
File string - Query string
- Status string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Snapshots
[]Get
Snapshots Snapshot - Source
Type string - Vault
Id string - Bucket string
- Complete
Time string - Complete
Time stringChecker - Create
Time string - File
System stringId - Instance
Id string - Limit int
- Output
File string - Query string
- Status string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- snapshots
List<Get
Snapshots Snapshot> - source
Type String - vault
Id String - bucket String
- complete
Time String - complete
Time StringChecker - create
Time String - file
System StringId - instance
Id String - limit Integer
- output
File String - query String
- status String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- snapshots
Get
Snapshots Snapshot[] - source
Type string - vault
Id string - bucket string
- complete
Time string - complete
Time stringChecker - create
Time string - file
System stringId - instance
Id string - limit number
- output
File string - query string
- status string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- snapshots
Sequence[Get
Snapshots Snapshot] - source_
type str - vault_
id str - bucket str
- complete_
time str - complete_
time_ strchecker - create_
time str - file_
system_ strid - 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>
- source
Type String - vault
Id String - bucket String
- complete
Time String - complete
Time StringChecker - create
Time String - file
System StringId - instance
Id String - limit Number
- output
File String - query String
- status String
Supporting Types
GetSnapshotsSnapshot
- Actual
Bytes string - The actual data volume of the snapshot. Unit byte.
- Actual
Items string - The actual number of items in the snapshot. (Currently only file backup is available).
- Backup
Type string - Backup type. Possible values:
COMPLETE
(full backup). - Bucket string
- The name of OSS bucket.
- Bytes
Done string - The incremental amount of backup data. Unit byte.
- Bytes
Total string - The total amount of data sources. Unit byte.
- Client
Id string - The ID of ECS backup client.
- Complete
Time string - The time when the snapshot completed. UNIX time in seconds.
- Create
Time string - File System Creation Time of Nas. Unix Time Seconds.
- Created
Time string - Snapshot creation time. UNIX time in seconds.
- Error
File string - File
System stringId - The ID of NAS File system.
- Id string
- The ID of the Snapshot.
- Instance
Id string - The ID of ECS instance.
- Items
Done string - The number of backup items. (Currently only file backup is available).
- Items
Total string - The total number of data source items. (Currently only file backup is available).
- Job
Id string - The job ID of backup task.
- Parent
Snapshot stringHash - The hashcode of parent backup snapshot.
- Path string
- Backup Path.
- Prefix string
- Backup file prefix.
- Retention string
- The number of days to keep.
- Snapshot
Hash string - The hashcode of Snapshot.
- Snapshot
Id string - The ID of the Snapshot.
- Source
Type string - Data source type, optional values:
ECS_FILE
,OSS
,NAS
. - Start
Time string - The start time of the snapshot. UNIX time in seconds.
- Status string
- The status of snapshot execution. Possible values:
COMPLETE
,PARTIAL_COMPLETE
,FAILED
. - Updated
Time string - The update time of snapshot. UNIX time in seconds.
- Actual
Bytes string - The actual data volume of the snapshot. Unit byte.
- Actual
Items string - The actual number of items in the snapshot. (Currently only file backup is available).
- Backup
Type string - Backup type. Possible values:
COMPLETE
(full backup). - Bucket string
- The name of OSS bucket.
- Bytes
Done string - The incremental amount of backup data. Unit byte.
- Bytes
Total string - The total amount of data sources. Unit byte.
- Client
Id string - The ID of ECS backup client.
- Complete
Time string - The time when the snapshot completed. UNIX time in seconds.
- Create
Time string - File System Creation Time of Nas. Unix Time Seconds.
- Created
Time string - Snapshot creation time. UNIX time in seconds.
- Error
File string - File
System stringId - The ID of NAS File system.
- Id string
- The ID of the Snapshot.
- Instance
Id string - The ID of ECS instance.
- Items
Done string - The number of backup items. (Currently only file backup is available).
- Items
Total string - The total number of data source items. (Currently only file backup is available).
- Job
Id string - The job ID of backup task.
- Parent
Snapshot stringHash - The hashcode of parent backup snapshot.
- Path string
- Backup Path.
- Prefix string
- Backup file prefix.
- Retention string
- The number of days to keep.
- Snapshot
Hash string - The hashcode of Snapshot.
- Snapshot
Id string - The ID of the Snapshot.
- Source
Type string - Data source type, optional values:
ECS_FILE
,OSS
,NAS
. - Start
Time string - The start time of the snapshot. UNIX time in seconds.
- Status string
- The status of snapshot execution. Possible values:
COMPLETE
,PARTIAL_COMPLETE
,FAILED
. - Updated
Time string - The update time of snapshot. UNIX time in seconds.
- actual
Bytes String - The actual data volume of the snapshot. Unit byte.
- actual
Items String - The actual number of items in the snapshot. (Currently only file backup is available).
- backup
Type String - Backup type. Possible values:
COMPLETE
(full backup). - bucket String
- The name of OSS bucket.
- bytes
Done String - The incremental amount of backup data. Unit byte.
- bytes
Total String - The total amount of data sources. Unit byte.
- client
Id String - The ID of ECS backup client.
- complete
Time String - The time when the snapshot completed. UNIX time in seconds.
- create
Time String - File System Creation Time of Nas. Unix Time Seconds.
- created
Time String - Snapshot creation time. UNIX time in seconds.
- error
File String - file
System StringId - The ID of NAS File system.
- id String
- The ID of the Snapshot.
- instance
Id String - The ID of ECS instance.
- items
Done String - The number of backup items. (Currently only file backup is available).
- items
Total String - The total number of data source items. (Currently only file backup is available).
- job
Id String - The job ID of backup task.
- parent
Snapshot StringHash - The hashcode of parent backup snapshot.
- path String
- Backup Path.
- prefix String
- Backup file prefix.
- retention String
- The number of days to keep.
- snapshot
Hash String - The hashcode of Snapshot.
- snapshot
Id String - The ID of the Snapshot.
- source
Type String - Data source type, optional values:
ECS_FILE
,OSS
,NAS
. - start
Time String - The start time of the snapshot. UNIX time in seconds.
- status String
- The status of snapshot execution. Possible values:
COMPLETE
,PARTIAL_COMPLETE
,FAILED
. - updated
Time String - The update time of snapshot. UNIX time in seconds.
- actual
Bytes string - The actual data volume of the snapshot. Unit byte.
- actual
Items string - The actual number of items in the snapshot. (Currently only file backup is available).
- backup
Type string - Backup type. Possible values:
COMPLETE
(full backup). - bucket string
- The name of OSS bucket.
- bytes
Done string - The incremental amount of backup data. Unit byte.
- bytes
Total string - The total amount of data sources. Unit byte.
- client
Id string - The ID of ECS backup client.
- complete
Time string - The time when the snapshot completed. UNIX time in seconds.
- create
Time string - File System Creation Time of Nas. Unix Time Seconds.
- created
Time string - Snapshot creation time. UNIX time in seconds.
- error
File string - file
System stringId - The ID of NAS File system.
- id string
- The ID of the Snapshot.
- instance
Id string - The ID of ECS instance.
- items
Done string - The number of backup items. (Currently only file backup is available).
- items
Total string - The total number of data source items. (Currently only file backup is available).
- job
Id string - The job ID of backup task.
- parent
Snapshot stringHash - The hashcode of parent backup snapshot.
- path string
- Backup Path.
- prefix string
- Backup file prefix.
- retention string
- The number of days to keep.
- snapshot
Hash string - The hashcode of Snapshot.
- snapshot
Id string - The ID of the Snapshot.
- source
Type string - Data source type, optional values:
ECS_FILE
,OSS
,NAS
. - start
Time string - The start time of the snapshot. UNIX time in seconds.
- status string
- The status of snapshot execution. Possible values:
COMPLETE
,PARTIAL_COMPLETE
,FAILED
. - updated
Time 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_ strid - 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_ strhash - 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.
- actual
Bytes String - The actual data volume of the snapshot. Unit byte.
- actual
Items String - The actual number of items in the snapshot. (Currently only file backup is available).
- backup
Type String - Backup type. Possible values:
COMPLETE
(full backup). - bucket String
- The name of OSS bucket.
- bytes
Done String - The incremental amount of backup data. Unit byte.
- bytes
Total String - The total amount of data sources. Unit byte.
- client
Id String - The ID of ECS backup client.
- complete
Time String - The time when the snapshot completed. UNIX time in seconds.
- create
Time String - File System Creation Time of Nas. Unix Time Seconds.
- created
Time String - Snapshot creation time. UNIX time in seconds.
- error
File String - file
System StringId - The ID of NAS File system.
- id String
- The ID of the Snapshot.
- instance
Id String - The ID of ECS instance.
- items
Done String - The number of backup items. (Currently only file backup is available).
- items
Total String - The total number of data source items. (Currently only file backup is available).
- job
Id String - The job ID of backup task.
- parent
Snapshot StringHash - The hashcode of parent backup snapshot.
- path String
- Backup Path.
- prefix String
- Backup file prefix.
- retention String
- The number of days to keep.
- snapshot
Hash String - The hashcode of Snapshot.
- snapshot
Id String - The ID of the Snapshot.
- source
Type String - Data source type, optional values:
ECS_FILE
,OSS
,NAS
. - start
Time String - The start time of the snapshot. UNIX time in seconds.
- status String
- The status of snapshot execution. Possible values:
COMPLETE
,PARTIAL_COMPLETE
,FAILED
. - updated
Time 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.