1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudStorageFileShareSnapshots
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud

    List the file storage snapshots (NFS share snapshots) in a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const snapshots = ovh.getCloudStorageFileShareSnapshots({
        serviceName: "<public cloud project ID>",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    snapshots = ovh.get_cloud_storage_file_share_snapshots(service_name="<public cloud project ID>")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ovh.GetCloudStorageFileShareSnapshots(ctx, &ovh.GetCloudStorageFileShareSnapshotsArgs{
    			ServiceName: "<public cloud project ID>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var snapshots = Ovh.GetCloudStorageFileShareSnapshots.Invoke(new()
        {
            ServiceName = "<public cloud project ID>",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetCloudStorageFileShareSnapshotsArgs;
    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 snapshots = OvhFunctions.getCloudStorageFileShareSnapshots(GetCloudStorageFileShareSnapshotsArgs.builder()
                .serviceName("<public cloud project ID>")
                .build());
    
        }
    }
    
    variables:
      snapshots:
        fn::invoke:
          function: ovh:getCloudStorageFileShareSnapshots
          arguments:
            serviceName: <public cloud project ID>
    
    Example coming soon!
    

    Using getCloudStorageFileShareSnapshots

    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 getCloudStorageFileShareSnapshots(args: GetCloudStorageFileShareSnapshotsArgs, opts?: InvokeOptions): Promise<GetCloudStorageFileShareSnapshotsResult>
    function getCloudStorageFileShareSnapshotsOutput(args: GetCloudStorageFileShareSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetCloudStorageFileShareSnapshotsResult>
    def get_cloud_storage_file_share_snapshots(service_name: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetCloudStorageFileShareSnapshotsResult
    def get_cloud_storage_file_share_snapshots_output(service_name: pulumi.Input[Optional[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetCloudStorageFileShareSnapshotsResult]
    func GetCloudStorageFileShareSnapshots(ctx *Context, args *GetCloudStorageFileShareSnapshotsArgs, opts ...InvokeOption) (*GetCloudStorageFileShareSnapshotsResult, error)
    func GetCloudStorageFileShareSnapshotsOutput(ctx *Context, args *GetCloudStorageFileShareSnapshotsOutputArgs, opts ...InvokeOption) GetCloudStorageFileShareSnapshotsResultOutput

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

    public static class GetCloudStorageFileShareSnapshots 
    {
        public static Task<GetCloudStorageFileShareSnapshotsResult> InvokeAsync(GetCloudStorageFileShareSnapshotsArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudStorageFileShareSnapshotsResult> Invoke(GetCloudStorageFileShareSnapshotsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudStorageFileShareSnapshotsResult> getCloudStorageFileShareSnapshots(GetCloudStorageFileShareSnapshotsArgs args, InvokeOptions options)
    public static Output<GetCloudStorageFileShareSnapshotsResult> getCloudStorageFileShareSnapshots(GetCloudStorageFileShareSnapshotsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudStorageFileShareSnapshots:getCloudStorageFileShareSnapshots
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_storage_file_share_snapshots" "name" {
        # arguments
    }

    The following arguments are supported:

    ServiceName string
    The id of the public cloud project.
    ServiceName string
    The id of the public cloud project.
    service_name string
    The id of the public cloud project.
    serviceName String
    The id of the public cloud project.
    serviceName string
    The id of the public cloud project.
    service_name str
    The id of the public cloud project.
    serviceName String
    The id of the public cloud project.

    getCloudStorageFileShareSnapshots Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    ShareSnapshots List<GetCloudStorageFileShareSnapshotsShareSnapshot>
    List of snapshots:
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceName string
    ShareSnapshots []GetCloudStorageFileShareSnapshotsShareSnapshot
    List of snapshots:
    id string
    The provider-assigned unique ID for this managed resource.
    service_name string
    share_snapshots list(object)
    List of snapshots:
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    shareSnapshots List<GetCloudStorageFileShareSnapshotsShareSnapshot>
    List of snapshots:
    id string
    The provider-assigned unique ID for this managed resource.
    serviceName string
    shareSnapshots GetCloudStorageFileShareSnapshotsShareSnapshot[]
    List of snapshots:
    id str
    The provider-assigned unique ID for this managed resource.
    service_name str
    share_snapshots Sequence[GetCloudStorageFileShareSnapshotsShareSnapshot]
    List of snapshots:
    id String
    The provider-assigned unique ID for this managed resource.
    serviceName String
    shareSnapshots List<Property Map>
    List of snapshots:

    Supporting Types

    GetCloudStorageFileShareSnapshotsShareSnapshot

    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the snapshot.
    CurrentState GetCloudStorageFileShareSnapshotsShareSnapshotCurrentState
    Current state of the file storage snapshot:
    Description string
    Snapshot description.
    Id string
    Snapshot ID.
    Name string
    Snapshot name.
    ResourceStatus string
    Snapshot readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ShareId string
    ID of the snapshotted file share.
    UpdatedAt string
    Last update date of the snapshot.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the snapshot.
    CurrentState GetCloudStorageFileShareSnapshotsShareSnapshotCurrentState
    Current state of the file storage snapshot:
    Description string
    Snapshot description.
    Id string
    Snapshot ID.
    Name string
    Snapshot name.
    ResourceStatus string
    Snapshot readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ShareId string
    ID of the snapshotted file share.
    UpdatedAt string
    Last update date of the snapshot.
    checksum string
    Computed hash representing the current target specification value.
    created_at string
    Creation date of the snapshot.
    current_state object
    Current state of the file storage snapshot:
    description string
    Snapshot description.
    id string
    Snapshot ID.
    name string
    Snapshot name.
    resource_status string
    Snapshot readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    share_id string
    ID of the snapshotted file share.
    updated_at string
    Last update date of the snapshot.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the snapshot.
    currentState GetCloudStorageFileShareSnapshotsShareSnapshotCurrentState
    Current state of the file storage snapshot:
    description String
    Snapshot description.
    id String
    Snapshot ID.
    name String
    Snapshot name.
    resourceStatus String
    Snapshot readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    shareId String
    ID of the snapshotted file share.
    updatedAt String
    Last update date of the snapshot.
    checksum string
    Computed hash representing the current target specification value.
    createdAt string
    Creation date of the snapshot.
    currentState GetCloudStorageFileShareSnapshotsShareSnapshotCurrentState
    Current state of the file storage snapshot:
    description string
    Snapshot description.
    id string
    Snapshot ID.
    name string
    Snapshot name.
    resourceStatus string
    Snapshot readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    shareId string
    ID of the snapshotted file share.
    updatedAt string
    Last update date of the snapshot.
    checksum str
    Computed hash representing the current target specification value.
    created_at str
    Creation date of the snapshot.
    current_state GetCloudStorageFileShareSnapshotsShareSnapshotCurrentState
    Current state of the file storage snapshot:
    description str
    Snapshot description.
    id str
    Snapshot ID.
    name str
    Snapshot name.
    resource_status str
    Snapshot readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    share_id str
    ID of the snapshotted file share.
    updated_at str
    Last update date of the snapshot.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the snapshot.
    currentState Property Map
    Current state of the file storage snapshot:
    description String
    Snapshot description.
    id String
    Snapshot ID.
    name String
    Snapshot name.
    resourceStatus String
    Snapshot readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    shareId String
    ID of the snapshotted file share.
    updatedAt String
    Last update date of the snapshot.

    GetCloudStorageFileShareSnapshotsShareSnapshotCurrentState

    Description string
    Snapshot description.
    Location GetCloudStorageFileShareSnapshotsShareSnapshotCurrentStateLocation
    Current location:
    Name string
    Snapshot name.
    ShareId string
    ID of the snapshotted file share.
    Size int
    Size of the snapshot in GB.
    Description string
    Snapshot description.
    Location GetCloudStorageFileShareSnapshotsShareSnapshotCurrentStateLocation
    Current location:
    Name string
    Snapshot name.
    ShareId string
    ID of the snapshotted file share.
    Size int
    Size of the snapshot in GB.
    description string
    Snapshot description.
    location object
    Current location:
    name string
    Snapshot name.
    share_id string
    ID of the snapshotted file share.
    size number
    Size of the snapshot in GB.
    description String
    Snapshot description.
    location GetCloudStorageFileShareSnapshotsShareSnapshotCurrentStateLocation
    Current location:
    name String
    Snapshot name.
    shareId String
    ID of the snapshotted file share.
    size Integer
    Size of the snapshot in GB.
    description string
    Snapshot description.
    location GetCloudStorageFileShareSnapshotsShareSnapshotCurrentStateLocation
    Current location:
    name string
    Snapshot name.
    shareId string
    ID of the snapshotted file share.
    size number
    Size of the snapshot in GB.
    description str
    Snapshot description.
    location GetCloudStorageFileShareSnapshotsShareSnapshotCurrentStateLocation
    Current location:
    name str
    Snapshot name.
    share_id str
    ID of the snapshotted file share.
    size int
    Size of the snapshot in GB.
    description String
    Snapshot description.
    location Property Map
    Current location:
    name String
    Snapshot name.
    shareId String
    ID of the snapshotted file share.
    size Number
    Size of the snapshot in GB.

    GetCloudStorageFileShareSnapshotsShareSnapshotCurrentStateLocation

    AvailabilityZone string
    Availability zone.
    Region string
    Region.
    AvailabilityZone string
    Availability zone.
    Region string
    Region.
    availability_zone string
    Availability zone.
    region string
    Region.
    availabilityZone String
    Availability zone.
    region String
    Region.
    availabilityZone string
    Availability zone.
    region string
    Region.
    availability_zone str
    Availability zone.
    region str
    Region.
    availabilityZone String
    Availability zone.
    region String
    Region.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.17.0
    published on Friday, Jul 17, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial