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.file/v1.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
Gets the details of a specific snapshot.
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(instance_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
snapshot_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSnapshotResult
def get_snapshot_output(instance_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
snapshot_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:file/v1:getSnapshot
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id string - Location string
- Snapshot
Id string - Project string
- Instance
Id string - Location string
- Snapshot
Id string - Project string
- instance
Id String - location String
- snapshot
Id String - project String
- instance
Id string - location string
- snapshot
Id string - project string
- instance_
id str - location str
- snapshot_
id str - project str
- instance
Id String - location String
- snapshot
Id String - project String
getSnapshot Result
The following output properties are available:
- Create
Time string - The time when the snapshot was created.
- Description string
- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
- Filesystem
Used stringBytes - The amount of bytes needed to allocate a full copy of the snapshot content
- Labels Dictionary<string, string>
- Resource labels to represent user provided metadata.
- Name string
- The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
. - State string
- The snapshot state.
- Create
Time string - The time when the snapshot was created.
- Description string
- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
- Filesystem
Used stringBytes - The amount of bytes needed to allocate a full copy of the snapshot content
- Labels map[string]string
- Resource labels to represent user provided metadata.
- Name string
- The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
. - State string
- The snapshot state.
- create
Time String - The time when the snapshot was created.
- description String
- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
- filesystem
Used StringBytes - The amount of bytes needed to allocate a full copy of the snapshot content
- labels Map<String,String>
- Resource labels to represent user provided metadata.
- name String
- The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
. - state String
- The snapshot state.
- create
Time string - The time when the snapshot was created.
- description string
- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
- filesystem
Used stringBytes - The amount of bytes needed to allocate a full copy of the snapshot content
- labels {[key: string]: string}
- Resource labels to represent user provided metadata.
- name string
- The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
. - state string
- The snapshot state.
- create_
time str - The time when the snapshot was created.
- description str
- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
- filesystem_
used_ strbytes - The amount of bytes needed to allocate a full copy of the snapshot content
- labels Mapping[str, str]
- Resource labels to represent user provided metadata.
- name str
- The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
. - state str
- The snapshot state.
- create
Time String - The time when the snapshot was created.
- description String
- A description of the snapshot with 2048 characters or less. Requests with longer descriptions will be rejected.
- filesystem
Used StringBytes - The amount of bytes needed to allocate a full copy of the snapshot content
- labels Map<String>
- Resource labels to represent user provided metadata.
- name String
- The resource name of the snapshot, in the format
projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}
. - state String
- The snapshot state.
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