Alibaba Cloud v3.88.0 published on Saturday, Nov 1, 2025 by Pulumi
alicloud.hbr.getOtsSnapshots
Start a Neo task
Explain and create an alicloud.hbr.getOtsSnapshots resource
This data source provides the Hbr Ots Snapshots of the current Alibaba Cloud user.
NOTE: Available in v1.164.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const snapshots = alicloud.hbr.getOtsSnapshots({});
import pulumi
import pulumi_alicloud as alicloud
snapshots = alicloud.hbr.get_ots_snapshots()
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, &hbr.GetOtsSnapshotsArgs{}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var snapshots = AliCloud.Hbr.GetOtsSnapshots.Invoke();
});
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(GetOtsSnapshotsArgs.builder()
.build());
}
}
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)
public static Output<GetOtsSnapshotsResult> getOtsSnapshots(GetOtsSnapshotsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:hbr/getOtsSnapshots:getOtsSnapshots
arguments:
# arguments dictionaryThe following arguments are supported:
- End
Time string - The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
- Ids List<string>
- Output
File string - File name where to save data source results (after running
pulumi preview). - Start
Time string - The start time of the backup. This value must be a UNIX timestamp. Unit: milliseconds.
- End
Time string - The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
- Ids []string
- Output
File string - File name where to save data source results (after running
pulumi preview). - Start
Time string - The start time of the backup. This value must be a UNIX timestamp. Unit: milliseconds.
- end
Time String - The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
- ids List<String>
- output
File String - File name where to save data source results (after running
pulumi preview). - start
Time String - The start time of the backup. This value must be a UNIX timestamp. Unit: milliseconds.
- end
Time string - The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
- ids string[]
- output
File string - File name where to save data source results (after running
pulumi preview). - start
Time string - The start time of the backup. This value must be a UNIX timestamp. Unit: milliseconds.
- end_
time str - The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
- ids Sequence[str]
- output_
file str - File name where to save data source results (after running
pulumi preview). - start_
time str - The start time of the backup. This value must be a UNIX timestamp. Unit: milliseconds.
- end
Time String - The end time of the backup. This value must be a UNIX timestamp. Unit: milliseconds
- ids List<String>
- output
File String - File name where to save data source results (after running
pulumi preview). - start
Time String - The start time of the backup. This value must be a UNIX timestamp. Unit: milliseconds.
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.
Ali Cloud. Hbr. Outputs. Get Ots Snapshots Snapshot> - End
Time string - Output
File string - Start
Time string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Snapshots
[]Get
Ots Snapshots Snapshot - End
Time string - Output
File string - Start
Time string
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- snapshots
List<Get
Ots Snapshots Snapshot> - end
Time String - output
File String - start
Time String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- snapshots
Get
Ots Snapshots Snapshot[] - end
Time string - output
File string - start
Time string
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- snapshots
Sequence[Get
Ots Snapshots Snapshot] - 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>
- end
Time String - output
File String - start
Time String
Supporting Types
GetOtsSnapshotsSnapshot
- Actual
Bytes string - The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
- Backup
Type string - The backup type. Valid value:
COMPLETE, which indicates full backup. - Bytes
Total string - The total amount of data. Unit: bytes.
- Complete
Time string - The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
- Create
Time string - The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
- Created
Time 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.
- Instance
Name string - The name of the Table store instance.
- Job
Id string - The ID of the backup job.
- Parent
Snapshot stringHash - The hash value of the parent backup snapshot.
- Range
End string - The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
- Range
Start 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.
- Snapshot
Hash string - The hash value of the backup snapshot.
- Snapshot
Id string - The ID of the backup snapshot.
- Source
Type string - The type of the data source. Valid values:
ECS_FILE,PARTIAL_COMPLETE,FAILED - Start
Time 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. - Table
Name string - The name of the table in the Table store instance.
- Updated
Time string - The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
- Vault
Id string - The ID of the backup vault that stores the backup snapshot.
- Actual
Bytes string - The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
- Backup
Type string - The backup type. Valid value:
COMPLETE, which indicates full backup. - Bytes
Total string - The total amount of data. Unit: bytes.
- Complete
Time string - The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
- Create
Time string - The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
- Created
Time 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.
- Instance
Name string - The name of the Table store instance.
- Job
Id string - The ID of the backup job.
- Parent
Snapshot stringHash - The hash value of the parent backup snapshot.
- Range
End string - The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
- Range
Start 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.
- Snapshot
Hash string - The hash value of the backup snapshot.
- Snapshot
Id string - The ID of the backup snapshot.
- Source
Type string - The type of the data source. Valid values:
ECS_FILE,PARTIAL_COMPLETE,FAILED - Start
Time 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. - Table
Name string - The name of the table in the Table store instance.
- Updated
Time string - The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
- Vault
Id string - The ID of the backup vault that stores the backup snapshot.
- actual
Bytes String - The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
- backup
Type String - The backup type. Valid value:
COMPLETE, which indicates full backup. - bytes
Total String - The total amount of data. Unit: bytes.
- complete
Time String - The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
- create
Time String - The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
- created
Time 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.
- instance
Name String - The name of the Table store instance.
- job
Id String - The ID of the backup job.
- parent
Snapshot StringHash - The hash value of the parent backup snapshot.
- range
End String - The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
- range
Start 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.
- snapshot
Hash String - The hash value of the backup snapshot.
- snapshot
Id String - The ID of the backup snapshot.
- source
Type String - The type of the data source. Valid values:
ECS_FILE,PARTIAL_COMPLETE,FAILED - start
Time 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. - table
Name String - The name of the table in the Table store instance.
- updated
Time String - The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
- vault
Id String - The ID of the backup vault that stores the backup snapshot.
- actual
Bytes string - The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
- backup
Type string - The backup type. Valid value:
COMPLETE, which indicates full backup. - bytes
Total string - The total amount of data. Unit: bytes.
- complete
Time string - The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
- create
Time string - The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
- created
Time 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.
- instance
Name string - The name of the Table store instance.
- job
Id string - The ID of the backup job.
- parent
Snapshot stringHash - The hash value of the parent backup snapshot.
- range
End string - The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
- range
Start 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.
- snapshot
Hash string - The hash value of the backup snapshot.
- snapshot
Id string - The ID of the backup snapshot.
- source
Type string - The type of the data source. Valid values:
ECS_FILE,PARTIAL_COMPLETE,FAILED - start
Time 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. - table
Name string - The name of the table in the Table store instance.
- updated
Time string - The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
- vault
Id 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_ strhash - 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.
- actual
Bytes String - The actual amount of backup snapshots after duplicates are removed. Unit: bytes.
- backup
Type String - The backup type. Valid value:
COMPLETE, which indicates full backup. - bytes
Total String - The total amount of data. Unit: bytes.
- complete
Time String - The time when the backup snapshot was completed. This value is a UNIX timestamp. Unit: seconds.
- create
Time String - The time when the Table store instance was created. This value is a UNIX timestamp. Unit: seconds.
- created
Time 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.
- instance
Name String - The name of the Table store instance.
- job
Id String - The ID of the backup job.
- parent
Snapshot StringHash - The hash value of the parent backup snapshot.
- range
End String - The time when the backup job ended. This value is a UNIX timestamp. Unit: milliseconds.
- range
Start 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.
- snapshot
Hash String - The hash value of the backup snapshot.
- snapshot
Id String - The ID of the backup snapshot.
- source
Type String - The type of the data source. Valid values:
ECS_FILE,PARTIAL_COMPLETE,FAILED - start
Time 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. - table
Name String - The name of the table in the Table store instance.
- updated
Time String - The time when the backup snapshot was updated. This value is a UNIX timestamp. Unit: seconds.
- vault
Id String - The ID of the backup vault that stores the backup snapshot.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.
