Alibaba Cloud

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

getOtsSnapshots

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

NOTE: Available in v1.164.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var snapshots = Output.Create(AliCloud.Hbr.GetOtsSnapshots.InvokeAsync());
    }

}
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 {
		_, err := hbr.GetOtsSnapshots(ctx, nil, nil)
		if err != nil {
			return err
		}
		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.GetOtsSnapshotsArgs;
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 snapshots = HbrFunctions.getOtsSnapshots();

    }
}
import pulumi
import pulumi_alicloud as alicloud

snapshots = alicloud.hbr.get_ots_snapshots()
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const snapshots = pulumi.output(alicloud.hbr.getOtsSnapshots());
variables:
  snapshots:
    Fn::Invoke:
      Function: alicloud:hbr:getOtsSnapshots
      Arguments: {}

Using getOtsSnapshots

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 getOtsSnapshots(args: GetOtsSnapshotsArgs, opts?: InvokeOptions): Promise<GetOtsSnapshotsResult>
function getOtsSnapshotsOutput(args: GetOtsSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetOtsSnapshotsResult>
def get_ots_snapshots(end_time: Optional[str] = None,
                      ids: Optional[Sequence[str]] = None,
                      output_file: Optional[str] = None,
                      start_time: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetOtsSnapshotsResult
def get_ots_snapshots_output(end_time: Optional[pulumi.Input[str]] = None,
                      ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                      output_file: Optional[pulumi.Input[str]] = None,
                      start_time: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetOtsSnapshotsResult]
func GetOtsSnapshots(ctx *Context, args *GetOtsSnapshotsArgs, opts ...InvokeOption) (*GetOtsSnapshotsResult, error)
func GetOtsSnapshotsOutput(ctx *Context, args *GetOtsSnapshotsOutputArgs, opts ...InvokeOption) GetOtsSnapshotsResultOutput

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

public static class GetOtsSnapshots 
{
    public static Task<GetOtsSnapshotsResult> InvokeAsync(GetOtsSnapshotsArgs args, InvokeOptions? opts = null)
    public static Output<GetOtsSnapshotsResult> Invoke(GetOtsSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOtsSnapshotsResult> getOtsSnapshots(GetOtsSnapshotsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:hbr/getOtsSnapshots:getOtsSnapshots
  Arguments:
    # Arguments dictionary

The following arguments are supported:

EndTime string

The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds

Ids List<string>
OutputFile string
StartTime string

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

EndTime string

The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds

Ids []string
OutputFile string
StartTime string

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

endTime String

The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds

ids List<String>
outputFile String
startTime String

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

endTime string

The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds

ids string[]
outputFile string
startTime string

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

end_time str

The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds

ids Sequence[str]
output_file str
start_time str

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

endTime String

The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds

ids List<String>
outputFile String
startTime String

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

getOtsSnapshots 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.GetOtsSnapshotsSnapshot>
EndTime string
OutputFile string
StartTime string
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Snapshots []GetOtsSnapshotsSnapshot
EndTime string
OutputFile string
StartTime string
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
snapshots List<GetOtsSnapshotsSnapshot>
endTime String
outputFile String
startTime String
id string

The provider-assigned unique ID for this managed resource.

ids string[]
snapshots GetOtsSnapshotsSnapshot[]
endTime string
outputFile string
startTime string
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
snapshots Sequence[GetOtsSnapshotsSnapshot]
end_time str
output_file str
start_time str
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
snapshots List<Property Map>
endTime String
outputFile String
startTime String

Supporting Types

GetOtsSnapshotsSnapshot

ActualBytes string

The actual amount of backup snapshots after duplicates are removed. Unit: bytes.

BackupType string

The backup type. Valid value: COMPLETE, which indicates full backup.

BytesTotal string

The total amount of data. Unit: bytes.

CompleteTime string

The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.

CreateTime string

The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.

CreatedTime string

The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.

Id string

The ID of the backup snapshot.

InstanceName string

The name of the Table store instance.

JobId string

The ID of the backup job.

ParentSnapshotHash string

The hash value of the parent backup snapshot.

RangeEnd string

The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.

RangeStart string

The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.

Retention string

The retention period of the backup snapshot.

SnapshotHash string

The hash value of the backup snapshot.

SnapshotId string

The ID of the backup snapshot.

SourceType string

The type of the data source. Valid values: ECS_FILE,PARTIAL_COMPLETE,FAILED

StartTime string

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

Status string

The status of the backup job. Valid values: COMPLETE,PARTIAL_COMPLETE,FAILED.

TableName string

The name of the table in the Table store instance.

UpdatedTime string

The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.

VaultId string

The ID of the backup vault that stores the backup snapshot.

ActualBytes string

The actual amount of backup snapshots after duplicates are removed. Unit: bytes.

BackupType string

The backup type. Valid value: COMPLETE, which indicates full backup.

BytesTotal string

The total amount of data. Unit: bytes.

CompleteTime string

The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.

CreateTime string

The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.

CreatedTime string

The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.

Id string

The ID of the backup snapshot.

InstanceName string

The name of the Table store instance.

JobId string

The ID of the backup job.

ParentSnapshotHash string

The hash value of the parent backup snapshot.

RangeEnd string

The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.

RangeStart string

The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.

Retention string

The retention period of the backup snapshot.

SnapshotHash string

The hash value of the backup snapshot.

SnapshotId string

The ID of the backup snapshot.

SourceType string

The type of the data source. Valid values: ECS_FILE,PARTIAL_COMPLETE,FAILED

StartTime string

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

Status string

The status of the backup job. Valid values: COMPLETE,PARTIAL_COMPLETE,FAILED.

TableName string

The name of the table in the Table store instance.

UpdatedTime string

The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.

VaultId string

The ID of the backup vault that stores the backup snapshot.

actualBytes String

The actual amount of backup snapshots after duplicates are removed. Unit: bytes.

backupType String

The backup type. Valid value: COMPLETE, which indicates full backup.

bytesTotal String

The total amount of data. Unit: bytes.

completeTime String

The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.

createTime String

The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.

createdTime String

The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.

id String

The ID of the backup snapshot.

instanceName String

The name of the Table store instance.

jobId String

The ID of the backup job.

parentSnapshotHash String

The hash value of the parent backup snapshot.

rangeEnd String

The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.

rangeStart String

The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.

retention String

The retention period of the backup snapshot.

snapshotHash String

The hash value of the backup snapshot.

snapshotId String

The ID of the backup snapshot.

sourceType String

The type of the data source. Valid values: ECS_FILE,PARTIAL_COMPLETE,FAILED

startTime String

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

status String

The status of the backup job. Valid values: COMPLETE,PARTIAL_COMPLETE,FAILED.

tableName String

The name of the table in the Table store instance.

updatedTime String

The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.

vaultId String

The ID of the backup vault that stores the backup snapshot.

actualBytes string

The actual amount of backup snapshots after duplicates are removed. Unit: bytes.

backupType string

The backup type. Valid value: COMPLETE, which indicates full backup.

bytesTotal string

The total amount of data. Unit: bytes.

completeTime string

The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.

createTime string

The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.

createdTime string

The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.

id string

The ID of the backup snapshot.

instanceName string

The name of the Table store instance.

jobId string

The ID of the backup job.

parentSnapshotHash string

The hash value of the parent backup snapshot.

rangeEnd string

The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.

rangeStart string

The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.

retention string

The retention period of the backup snapshot.

snapshotHash string

The hash value of the backup snapshot.

snapshotId string

The ID of the backup snapshot.

sourceType string

The type of the data source. Valid values: ECS_FILE,PARTIAL_COMPLETE,FAILED

startTime string

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

status string

The status of the backup job. Valid values: COMPLETE,PARTIAL_COMPLETE,FAILED.

tableName string

The name of the table in the Table store instance.

updatedTime string

The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.

vaultId string

The ID of the backup vault that stores the backup snapshot.

actual_bytes str

The actual amount of backup snapshots after duplicates are removed. Unit: bytes.

backup_type str

The backup type. Valid value: COMPLETE, which indicates full backup.

bytes_total str

The total amount of data. Unit: bytes.

complete_time str

The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.

create_time str

The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.

created_time str

The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.

id str

The ID of the backup snapshot.

instance_name str

The name of the Table store instance.

job_id str

The ID of the backup job.

parent_snapshot_hash str

The hash value of the parent backup snapshot.

range_end str

The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.

range_start str

The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.

retention str

The retention period of the backup snapshot.

snapshot_hash str

The hash value of the backup snapshot.

snapshot_id str

The ID of the backup snapshot.

source_type str

The type of the data source. Valid values: ECS_FILE,PARTIAL_COMPLETE,FAILED

start_time str

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

status str

The status of the backup job. Valid values: COMPLETE,PARTIAL_COMPLETE,FAILED.

table_name str

The name of the table in the Table store instance.

updated_time str

The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.

vault_id str

The ID of the backup vault that stores the backup snapshot.

actualBytes String

The actual amount of backup snapshots after duplicates are removed. Unit: bytes.

backupType String

The backup type. Valid value: COMPLETE, which indicates full backup.

bytesTotal String

The total amount of data. Unit: bytes.

completeTime String

The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.

createTime String

The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.

createdTime String

The time when the backup snapshot was created. This value is a UNIX timestamp. Unit: seconds.

id String

The ID of the backup snapshot.

instanceName String

The name of the Table store instance.

jobId String

The ID of the backup job.

parentSnapshotHash String

The hash value of the parent backup snapshot.

rangeEnd String

The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.

rangeStart String

The time when the backup job started. This value is a UNIX timestamp. Unit: milliseconds.

retention String

The retention period of the backup snapshot.

snapshotHash String

The hash value of the backup snapshot.

snapshotId String

The ID of the backup snapshot.

sourceType String

The type of the data source. Valid values: ECS_FILE,PARTIAL_COMPLETE,FAILED

startTime String

The start time of the backup snapshot. This value is a UNIX timestamp. Unit: seconds.

status String

The status of the backup job. Valid values: COMPLETE,PARTIAL_COMPLETE,FAILED.

tableName String

The name of the table in the Table store instance.

updatedTime String

The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.

vaultId String

The ID of the backup vault that stores the backup snapshot.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.