1. Packages
  2. Google Cloud Native
  3. API Docs
  4. baremetalsolution
  5. baremetalsolution/v2
  6. getSnapshot

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.baremetalsolution/v2.getSnapshot

Explore with Pulumi AI

google-native logo

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

    Returns the specified snapshot resource. Returns INVALID_ARGUMENT if called for a non-boot volume.

    Using getSnapshot

    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 getSnapshot(args: GetSnapshotArgs, opts?: InvokeOptions): Promise<GetSnapshotResult>
    function getSnapshotOutput(args: GetSnapshotOutputArgs, opts?: InvokeOptions): Output<GetSnapshotResult>
    def get_snapshot(location: Optional[str] = None,
                     project: Optional[str] = None,
                     snapshot_id: Optional[str] = None,
                     volume_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetSnapshotResult
    def get_snapshot_output(location: Optional[pulumi.Input[str]] = None,
                     project: Optional[pulumi.Input[str]] = None,
                     snapshot_id: Optional[pulumi.Input[str]] = None,
                     volume_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetSnapshotResult]
    func LookupSnapshot(ctx *Context, args *LookupSnapshotArgs, opts ...InvokeOption) (*LookupSnapshotResult, error)
    func LookupSnapshotOutput(ctx *Context, args *LookupSnapshotOutputArgs, opts ...InvokeOption) LookupSnapshotResultOutput

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

    public static class GetSnapshot 
    {
        public static Task<GetSnapshotResult> InvokeAsync(GetSnapshotArgs args, InvokeOptions? opts = null)
        public static Output<GetSnapshotResult> Invoke(GetSnapshotInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSnapshotResult> getSnapshot(GetSnapshotArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: google-native:baremetalsolution/v2:getSnapshot
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Location string
    SnapshotId string
    VolumeId string
    Project string
    Location string
    SnapshotId string
    VolumeId string
    Project string
    location String
    snapshotId String
    volumeId String
    project String
    location string
    snapshotId string
    volumeId string
    project string
    location String
    snapshotId String
    volumeId String
    project String

    getSnapshot Result

    The following output properties are available:

    CreateTime string
    The creation time of the snapshot.
    Description string
    The description of the snapshot.
    Name string
    The name of the snapshot.
    StorageVolume string
    The name of the volume which this snapshot belongs to.
    Type string
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    CreateTime string
    The creation time of the snapshot.
    Description string
    The description of the snapshot.
    Name string
    The name of the snapshot.
    StorageVolume string
    The name of the volume which this snapshot belongs to.
    Type string
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    createTime String
    The creation time of the snapshot.
    description String
    The description of the snapshot.
    name String
    The name of the snapshot.
    storageVolume String
    The name of the volume which this snapshot belongs to.
    type String
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    createTime string
    The creation time of the snapshot.
    description string
    The description of the snapshot.
    name string
    The name of the snapshot.
    storageVolume string
    The name of the volume which this snapshot belongs to.
    type string
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    create_time str
    The creation time of the snapshot.
    description str
    The description of the snapshot.
    name str
    The name of the snapshot.
    storage_volume str
    The name of the volume which this snapshot belongs to.
    type str
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.
    createTime String
    The creation time of the snapshot.
    description String
    The description of the snapshot.
    name String
    The name of the snapshot.
    storageVolume String
    The name of the volume which this snapshot belongs to.
    type String
    The type of the snapshot which indicates whether it was scheduled or manual/ad-hoc.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo

    Google Cloud Native is in preview. Google Cloud Classic is fully supported.

    Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi