1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. hbr
  5. getUdmSnapshots
Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi

alicloud.hbr.getUdmSnapshots

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi

    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:

    EndTime int
    End Time
    InstanceId string
    ECS instance ID
    SourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    StartTime int
    Start Time
    DiskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    Ids List<string>
    A list of Udm Snapshot IDs.
    JobId string
    The ID of the backup job that creates the snapshot.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    EndTime int
    End Time
    InstanceId string
    ECS instance ID
    SourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    StartTime int
    Start Time
    DiskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    Ids []string
    A list of Udm Snapshot IDs.
    JobId string
    The ID of the backup job that creates the snapshot.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    endTime Integer
    End Time
    instanceId String
    ECS instance ID
    sourceType String
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime Integer
    Start Time
    diskId String
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    ids List<String>
    A list of Udm Snapshot IDs.
    jobId String
    The ID of the backup job that creates the snapshot.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    endTime number
    End Time
    instanceId string
    ECS instance ID
    sourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime number
    Start Time
    diskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    ids string[]
    A list of Udm Snapshot IDs.
    jobId string
    The ID of the backup job that creates the snapshot.
    outputFile 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).
    endTime Number
    End Time
    instanceId String
    ECS instance ID
    sourceType String
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime Number
    Start Time
    diskId String
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    ids List<String>
    A list of Udm Snapshot IDs.
    jobId String
    The ID of the backup job that creates the snapshot.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getUdmSnapshots Result

    The following output properties are available:

    EndTime int
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Udm Snapshot IDs.
    InstanceId string
    ECS instance ID
    Snapshots List<Pulumi.AliCloud.Hbr.Outputs.GetUdmSnapshotsSnapshot>
    A list of Udm Snapshot Entries. Each element contains the following attributes:
    SourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    StartTime int
    Start Time
    DiskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    JobId string
    The ID of the backup job that creates the snapshot.
    OutputFile string
    EndTime int
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Udm Snapshot IDs.
    InstanceId string
    ECS instance ID
    Snapshots []GetUdmSnapshotsSnapshot
    A list of Udm Snapshot Entries. Each element contains the following attributes:
    SourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    StartTime int
    Start Time
    DiskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    JobId string
    The ID of the backup job that creates the snapshot.
    OutputFile string
    endTime Integer
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Udm Snapshot IDs.
    instanceId String
    ECS instance ID
    snapshots List<GetUdmSnapshotsSnapshot>
    A list of Udm Snapshot Entries. Each element contains the following attributes:
    sourceType String
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime Integer
    Start Time
    diskId String
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    jobId String
    The ID of the backup job that creates the snapshot.
    outputFile String
    endTime number
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Udm Snapshot IDs.
    instanceId string
    ECS instance ID
    snapshots GetUdmSnapshotsSnapshot[]
    A list of Udm Snapshot Entries. Each element contains the following attributes:
    sourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime number
    Start Time
    diskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    jobId string
    The ID of the backup job that creates the snapshot.
    outputFile 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[GetUdmSnapshotsSnapshot]
    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
    endTime Number
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Udm Snapshot IDs.
    instanceId String
    ECS instance ID
    snapshots List<Property Map>
    A list of Udm Snapshot Entries. Each element contains the following attributes:
    sourceType String
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime Number
    Start Time
    diskId String
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    jobId String
    The ID of the backup job that creates the snapshot.
    outputFile String

    Supporting Types

    GetUdmSnapshotsSnapshot

    CreateTime string
    The creation time of the resource
    DiskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    Id string
    The ID of the resource supplied above.
    InstanceId string
    ECS instance ID
    JobId string
    The ID of the backup job that creates the snapshot.
    SourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    StartTime int
    Start Time
    UdmSnapshotId string
    The first ID of the resource
    CreateTime string
    The creation time of the resource
    DiskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    Id string
    The ID of the resource supplied above.
    InstanceId string
    ECS instance ID
    JobId string
    The ID of the backup job that creates the snapshot.
    SourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    StartTime int
    Start Time
    UdmSnapshotId string
    The first ID of the resource
    createTime String
    The creation time of the resource
    diskId String
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    id String
    The ID of the resource supplied above.
    instanceId String
    ECS instance ID
    jobId String
    The ID of the backup job that creates the snapshot.
    sourceType String
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime Integer
    Start Time
    udmSnapshotId String
    The first ID of the resource
    createTime string
    The creation time of the resource
    diskId string
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    id string
    The ID of the resource supplied above.
    instanceId string
    ECS instance ID
    jobId string
    The ID of the backup job that creates the snapshot.
    sourceType string
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime number
    Start Time
    udmSnapshotId string
    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_id str
    The first ID of the resource
    createTime String
    The creation time of the resource
    diskId String
    Cloud disk ID. This field is valid only when SourceType = UDM_ECS_DISK.
    id String
    The ID of the resource supplied above.
    instanceId String
    ECS instance ID
    jobId String
    The ID of the backup job that creates the snapshot.
    sourceType String
    Data source type. Only UDM_ECS and UDM_ECS_DISK are supported.
    startTime Number
    Start Time
    udmSnapshotId String
    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.
    alicloud logo
    Alibaba Cloud v3.83.0 published on Monday, Jul 21, 2025 by Pulumi