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 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
- Snapshot
Id string - Volume
Id string - Project string
- Location string
- Snapshot
Id string - Volume
Id string - Project string
- location String
- snapshot
Id String - volume
Id String - project String
- location string
- snapshot
Id string - volume
Id string - project string
- location str
- snapshot_
id str - volume_
id str - project str
- location String
- snapshot
Id String - volume
Id String - project String
getSnapshot Result
The following output properties are available:
- Create
Time string - The creation time of the snapshot.
- Description string
- The description of the snapshot.
- Name string
- The name of the snapshot.
- Storage
Volume 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 string - The creation time of the snapshot.
- Description string
- The description of the snapshot.
- Name string
- The name of the snapshot.
- Storage
Volume 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 String - The creation time of the snapshot.
- description String
- The description of the snapshot.
- name String
- The name of the snapshot.
- storage
Volume 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 string - The creation time of the snapshot.
- description string
- The description of the snapshot.
- name string
- The name of the snapshot.
- storage
Volume 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.
- create
Time String - The creation time of the snapshot.
- description String
- The description of the snapshot.
- name String
- The name of the snapshot.
- storage
Volume 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 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