Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi
alicloud.hbr.getUdmSnapshots
Explore with Pulumi AI
This data source provides Hbr Udm Snapshot available to the user.What is Udm Snapshot
NOTE: Available since v1.253.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const _default = alicloud.hbr.getUdmSnapshots({
sourceType: "UDM_ECS",
startTime: 1642057551,
endTime: 1750927687,
instanceId: "i-08qv5q4c4j****",
});
export const alicloudHbrUdmSnapshotExampleId = _default.then(_default => _default.snapshots?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.hbr.get_udm_snapshots(source_type="UDM_ECS",
start_time=1642057551,
end_time=1750927687,
instance_id="i-08qv5q4c4j****")
pulumi.export("alicloudHbrUdmSnapshotExampleId", default.snapshots[0].id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := hbr.GetUdmSnapshots(ctx, &hbr.GetUdmSnapshotsArgs{
SourceType: "UDM_ECS",
StartTime: 1642057551,
EndTime: 1750927687,
InstanceId: "i-08qv5q4c4j****",
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudHbrUdmSnapshotExampleId", _default.Snapshots[0].Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.Hbr.GetUdmSnapshots.Invoke(new()
{
SourceType = "UDM_ECS",
StartTime = 1642057551,
EndTime = 1750927687,
InstanceId = "i-08qv5q4c4j****",
});
return new Dictionary<string, object?>
{
["alicloudHbrUdmSnapshotExampleId"] = @default.Apply(@default => @default.Apply(getUdmSnapshotsResult => getUdmSnapshotsResult.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.GetUdmSnapshotsArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var default = HbrFunctions.getUdmSnapshots(GetUdmSnapshotsArgs.builder()
.sourceType("UDM_ECS")
.startTime(1642057551)
.endTime(1750927687)
.instanceId("i-08qv5q4c4j****")
.build());
ctx.export("alicloudHbrUdmSnapshotExampleId", default_.snapshots()[0].id());
}
}
configuration:
name:
type: string
default: terraform-example
variables:
default:
fn::invoke:
function: alicloud:hbr:getUdmSnapshots
arguments:
sourceType: UDM_ECS
startTime: '1642057551'
endTime: '1750927687'
instanceId: i-08qv5q4c4j****
outputs:
alicloudHbrUdmSnapshotExampleId: ${default.snapshots[0].id}
Using getUdmSnapshots
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 getUdmSnapshots(args: GetUdmSnapshotsArgs, opts?: InvokeOptions): Promise<GetUdmSnapshotsResult>
function getUdmSnapshotsOutput(args: GetUdmSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetUdmSnapshotsResult>
def get_udm_snapshots(disk_id: Optional[str] = None,
end_time: Optional[int] = None,
ids: Optional[Sequence[str]] = None,
instance_id: Optional[str] = None,
job_id: Optional[str] = None,
output_file: Optional[str] = None,
source_type: Optional[str] = None,
start_time: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetUdmSnapshotsResult
def get_udm_snapshots_output(disk_id: Optional[pulumi.Input[str]] = None,
end_time: Optional[pulumi.Input[int]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
job_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
source_type: Optional[pulumi.Input[str]] = None,
start_time: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUdmSnapshotsResult]
func GetUdmSnapshots(ctx *Context, args *GetUdmSnapshotsArgs, opts ...InvokeOption) (*GetUdmSnapshotsResult, error)
func GetUdmSnapshotsOutput(ctx *Context, args *GetUdmSnapshotsOutputArgs, opts ...InvokeOption) GetUdmSnapshotsResultOutput
> Note: This function is named GetUdmSnapshots
in the Go SDK.
public static class GetUdmSnapshots
{
public static Task<GetUdmSnapshotsResult> InvokeAsync(GetUdmSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetUdmSnapshotsResult> Invoke(GetUdmSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUdmSnapshotsResult> getUdmSnapshots(GetUdmSnapshotsArgs args, InvokeOptions options)
public static Output<GetUdmSnapshotsResult> getUdmSnapshots(GetUdmSnapshotsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:hbr/getUdmSnapshots:getUdmSnapshots
arguments:
# arguments dictionary
The following arguments are supported:
- End
Time int - End Time
- Instance
Id string - ECS instance ID
- Source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- Start
Time int - Start Time
- Disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- Ids List<string>
- A list of Udm Snapshot IDs.
- Job
Id string - The ID of the backup job that creates the snapshot.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- End
Time int - End Time
- Instance
Id string - ECS instance ID
- Source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- Start
Time int - Start Time
- Disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- Ids []string
- A list of Udm Snapshot IDs.
- Job
Id string - The ID of the backup job that creates the snapshot.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- end
Time Integer - End Time
- instance
Id String - ECS instance ID
- source
Type String - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time Integer - Start Time
- disk
Id String - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- ids List<String>
- A list of Udm Snapshot IDs.
- job
Id String - The ID of the backup job that creates the snapshot.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- end
Time number - End Time
- instance
Id string - ECS instance ID
- source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time number - Start Time
- disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- ids string[]
- A list of Udm Snapshot IDs.
- job
Id string - The ID of the backup job that creates the snapshot.
- output
File string - File name where to save data source results (after running
pulumi preview
).
- end_
time int - End Time
- instance_
id str - ECS instance ID
- source_
type str - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start_
time int - Start Time
- disk_
id str - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- ids Sequence[str]
- A list of Udm Snapshot IDs.
- job_
id str - The ID of the backup job that creates the snapshot.
- output_
file str - File name where to save data source results (after running
pulumi preview
).
- end
Time Number - End Time
- instance
Id String - ECS instance ID
- source
Type String - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time Number - Start Time
- disk
Id String - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- ids List<String>
- A list of Udm Snapshot IDs.
- job
Id String - The ID of the backup job that creates the snapshot.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getUdmSnapshots Result
The following output properties are available:
- End
Time int - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of Udm Snapshot IDs.
- Instance
Id string - ECS instance ID
- Snapshots
List<Pulumi.
Ali Cloud. Hbr. Outputs. Get Udm Snapshots Snapshot> - A list of Udm Snapshot Entries. Each element contains the following attributes:
- Source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- Start
Time int - Start Time
- Disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- Job
Id string - The ID of the backup job that creates the snapshot.
- Output
File string
- End
Time int - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Udm Snapshot IDs.
- Instance
Id string - ECS instance ID
- Snapshots
[]Get
Udm Snapshots Snapshot - A list of Udm Snapshot Entries. Each element contains the following attributes:
- Source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- Start
Time int - Start Time
- Disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- Job
Id string - The ID of the backup job that creates the snapshot.
- Output
File string
- end
Time Integer - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Udm Snapshot IDs.
- instance
Id String - ECS instance ID
- snapshots
List<Get
Udm Snapshots Snapshot> - A list of Udm Snapshot Entries. Each element contains the following attributes:
- source
Type String - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time Integer - Start Time
- disk
Id String - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- job
Id String - The ID of the backup job that creates the snapshot.
- output
File String
- end
Time number - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Udm Snapshot IDs.
- instance
Id string - ECS instance ID
- snapshots
Get
Udm Snapshots Snapshot[] - A list of Udm Snapshot Entries. Each element contains the following attributes:
- source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time number - Start Time
- disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- job
Id string - The ID of the backup job that creates the snapshot.
- output
File string
- end_
time int - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of Udm Snapshot IDs.
- instance_
id str - ECS instance ID
- snapshots
Sequence[Get
Udm Snapshots Snapshot] - A list of Udm Snapshot Entries. Each element contains the following attributes:
- source_
type str - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start_
time int - Start Time
- disk_
id str - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- job_
id str - The ID of the backup job that creates the snapshot.
- output_
file str
- end
Time Number - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of Udm Snapshot IDs.
- instance
Id String - ECS instance ID
- snapshots List<Property Map>
- A list of Udm Snapshot Entries. Each element contains the following attributes:
- source
Type String - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time Number - Start Time
- disk
Id String - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- job
Id String - The ID of the backup job that creates the snapshot.
- output
File String
Supporting Types
GetUdmSnapshotsSnapshot
- Create
Time string - The creation time of the resource
- Disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- Id string
- The ID of the resource supplied above.
- Instance
Id string - ECS instance ID
- Job
Id string - The ID of the backup job that creates the snapshot.
- Source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- Start
Time int - Start Time
- Udm
Snapshot stringId - The first ID of the resource
- Create
Time string - The creation time of the resource
- Disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- Id string
- The ID of the resource supplied above.
- Instance
Id string - ECS instance ID
- Job
Id string - The ID of the backup job that creates the snapshot.
- Source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- Start
Time int - Start Time
- Udm
Snapshot stringId - The first ID of the resource
- create
Time String - The creation time of the resource
- disk
Id String - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- id String
- The ID of the resource supplied above.
- instance
Id String - ECS instance ID
- job
Id String - The ID of the backup job that creates the snapshot.
- source
Type String - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time Integer - Start Time
- udm
Snapshot StringId - The first ID of the resource
- create
Time string - The creation time of the resource
- disk
Id string - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- id string
- The ID of the resource supplied above.
- instance
Id string - ECS instance ID
- job
Id string - The ID of the backup job that creates the snapshot.
- source
Type string - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time number - Start Time
- udm
Snapshot stringId - The first ID of the resource
- create_
time str - The creation time of the resource
- disk_
id str - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- id str
- The ID of the resource supplied above.
- instance_
id str - ECS instance ID
- job_
id str - The ID of the backup job that creates the snapshot.
- source_
type str - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start_
time int - Start Time
- udm_
snapshot_ strid - The first ID of the resource
- create
Time String - The creation time of the resource
- disk
Id String - Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
- id String
- The ID of the resource supplied above.
- instance
Id String - ECS instance ID
- job
Id String - The ID of the backup job that creates the snapshot.
- source
Type String - Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
- start
Time Number - Start Time
- udm
Snapshot StringId - The first ID of the resource
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.