1. Packages
  2. Google Cloud Native
  3. API Docs
  4. file
  5. file/v1
  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.file/v1.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

    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:

    InstanceId string
    Location string
    SnapshotId string
    Project string
    InstanceId string
    Location string
    SnapshotId string
    Project string
    instanceId String
    location String
    snapshotId String
    project String
    instanceId string
    location string
    snapshotId string
    project string
    instanceId String
    location String
    snapshotId String
    project String

    getSnapshot Result

    The following output properties are available:

    CreateTime 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.
    FilesystemUsedBytes string
    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.
    CreateTime 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.
    FilesystemUsedBytes string
    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.
    createTime 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.
    filesystemUsedBytes String
    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.
    createTime 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.
    filesystemUsedBytes string
    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_bytes str
    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.
    createTime 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.
    filesystemUsedBytes String
    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-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