Viewing docs for OVHCloud v2.19.1
published on Tuesday, Aug 18, 2026 by OVHcloud
published on Tuesday, Aug 18, 2026 by OVHcloud
Viewing docs for OVHCloud v2.19.1
published on Tuesday, Aug 18, 2026 by OVHcloud
published on Tuesday, Aug 18, 2026 by OVHcloud
List the file storage shares (NFS) in a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const shares = ovh.getCloudStorageFileShares({
serviceName: "<public cloud project ID>",
});
import pulumi
import pulumi_ovh as ovh
shares = ovh.get_cloud_storage_file_shares(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.GetCloudStorageFileShares(ctx, &ovh.GetCloudStorageFileSharesArgs{
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 shares = Ovh.GetCloudStorageFileShares.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.GetCloudStorageFileSharesArgs;
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 shares = OvhFunctions.getCloudStorageFileShares(GetCloudStorageFileSharesArgs.builder()
.serviceName("<public cloud project ID>")
.build());
}
}
variables:
shares:
fn::invoke:
function: ovh:getCloudStorageFileShares
arguments:
serviceName: <public cloud project ID>
Example coming soon!
Filter the shares by region:
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const shares = ovh.getCloudStorageFileShares({
serviceName: "<public cloud project ID>",
region: "GRA9",
});
import pulumi
import pulumi_ovh as ovh
shares = ovh.get_cloud_storage_file_shares(service_name="<public cloud project ID>",
region="GRA9")
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.GetCloudStorageFileShares(ctx, &ovh.GetCloudStorageFileSharesArgs{
ServiceName: "<public cloud project ID>",
Region: pulumi.StringRef("GRA9"),
}, 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 shares = Ovh.GetCloudStorageFileShares.Invoke(new()
{
ServiceName = "<public cloud project ID>",
Region = "GRA9",
});
});
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.GetCloudStorageFileSharesArgs;
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 shares = OvhFunctions.getCloudStorageFileShares(GetCloudStorageFileSharesArgs.builder()
.serviceName("<public cloud project ID>")
.region("GRA9")
.build());
}
}
variables:
shares:
fn::invoke:
function: ovh:getCloudStorageFileShares
arguments:
serviceName: <public cloud project ID>
region: GRA9
Example coming soon!
Using getCloudStorageFileShares
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 getCloudStorageFileShares(args: GetCloudStorageFileSharesArgs, opts?: InvokeOptions): Promise<GetCloudStorageFileSharesResult>
function getCloudStorageFileSharesOutput(args: GetCloudStorageFileSharesOutputArgs, opts?: InvokeOutputOptions): Output<GetCloudStorageFileSharesResult>def get_cloud_storage_file_shares(region: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudStorageFileSharesResult
def get_cloud_storage_file_shares_output(region: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetCloudStorageFileSharesResult]func GetCloudStorageFileShares(ctx *Context, args *GetCloudStorageFileSharesArgs, opts ...InvokeOption) (*GetCloudStorageFileSharesResult, error)
func GetCloudStorageFileSharesOutput(ctx *Context, args *GetCloudStorageFileSharesOutputArgs, opts ...InvokeOption) GetCloudStorageFileSharesResultOutput> Note: This function is named GetCloudStorageFileShares in the Go SDK.
public static class GetCloudStorageFileShares
{
public static Task<GetCloudStorageFileSharesResult> InvokeAsync(GetCloudStorageFileSharesArgs args, InvokeOptions? opts = null)
public static Output<GetCloudStorageFileSharesResult> Invoke(GetCloudStorageFileSharesInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetCloudStorageFileSharesResult> Invoke(GetCloudStorageFileSharesInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetCloudStorageFileSharesResult> getCloudStorageFileShares(GetCloudStorageFileSharesArgs args, InvokeOptions options)
public static Output<GetCloudStorageFileSharesResult> getCloudStorageFileShares(GetCloudStorageFileSharesArgs args, InvokeOptions options)
public static Output<GetCloudStorageFileSharesResult> getCloudStorageFileShares(GetCloudStorageFileSharesArgs args, InvokeOutputOptions options)
fn::invoke:
function: ovh:index/getCloudStorageFileShares:getCloudStorageFileShares
arguments:
# arguments dictionarydata "ovh_get_cloud_storage_file_shares" "name" {
# arguments
}The following arguments are supported:
- Service
Name string - The id of the public cloud project.
- Region string
- If set, only file shares located in this region are returned.
- Service
Name string - The id of the public cloud project.
- Region string
- If set, only file shares located in this region are returned.
- service_
name string - The id of the public cloud project.
- region string
- If set, only file shares located in this region are returned.
- service
Name String - The id of the public cloud project.
- region String
- If set, only file shares located in this region are returned.
- service
Name string - The id of the public cloud project.
- region string
- If set, only file shares located in this region are returned.
- service_
name str - The id of the public cloud project.
- region str
- If set, only file shares located in this region are returned.
- service
Name String - The id of the public cloud project.
- region String
- If set, only file shares located in this region are returned.
getCloudStorageFileShares Result
The following output properties are available:
-
List<Get
Cloud Storage File Shares File Share> - List of file shares:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - Region string
- Region.
-
[]Get
Cloud Storage File Shares File Share - List of file shares:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Name string - Region string
- Region.
- list(object)
- List of file shares:
- id string
- The provider-assigned unique ID for this managed resource.
- service_
name string - region string
- Region.
-
List<Get
Cloud Storage File Shares File Share> - List of file shares:
- id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - region String
- Region.
-
Get
Cloud Storage File Shares File Share[] - List of file shares:
- id string
- The provider-assigned unique ID for this managed resource.
- service
Name string - region string
- Region.
-
Sequence[Get
Cloud Storage File Shares File Share] - List of file shares:
- id str
- The provider-assigned unique ID for this managed resource.
- service_
name str - region str
- Region.
- List<Property Map>
- List of file shares:
- id String
- The provider-assigned unique ID for this managed resource.
- service
Name String - region String
- Region.
Supporting Types
GetCloudStorageFileSharesFileShare
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the file share.
- Current
State GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- Description string
- File share description.
- Id string
- File share ID.
- Location
Get
Cloud Storage File Shares File Share Location - Current location:
- Name string
- Capability name.
- Protocol string
- File share protocol.
- Resource
Status string - File share readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - string
- ID of the share network the file share is attached to.
- string
- File share type.
- Size int
- Size of the file share in GB.
- Updated
At string - Last update date of the file share.
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the file share.
- Current
State GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- Description string
- File share description.
- Id string
- File share ID.
- Location
Get
Cloud Storage File Shares File Share Location - Current location:
- Name string
- Capability name.
- Protocol string
- File share protocol.
- Resource
Status string - File share readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - string
- ID of the share network the file share is attached to.
- string
- File share type.
- Size int
- Size of the file share in GB.
- Updated
At string - Last update date of the file share.
- checksum string
- Computed hash representing the current target specification value.
- created_
at string - Creation date of the file share.
- current_
state object - Current state of the file storage share:
- description string
- File share description.
- id string
- File share ID.
- location object
- Current location:
- name string
- Capability name.
- protocol string
- File share protocol.
- resource_
status string - File share readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - string
- ID of the share network the file share is attached to.
- string
- File share type.
- size number
- Size of the file share in GB.
- updated_
at string - Last update date of the file share.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the file share.
- current
State GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- description String
- File share description.
- id String
- File share ID.
- location
Get
Cloud Storage File Shares File Share Location - Current location:
- name String
- Capability name.
- protocol String
- File share protocol.
- resource
Status String - File share readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - String
- ID of the share network the file share is attached to.
- String
- File share type.
- size Integer
- Size of the file share in GB.
- updated
At String - Last update date of the file share.
- checksum string
- Computed hash representing the current target specification value.
- created
At string - Creation date of the file share.
- current
State GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- description string
- File share description.
- id string
- File share ID.
- location
Get
Cloud Storage File Shares File Share Location - Current location:
- name string
- Capability name.
- protocol string
- File share protocol.
- resource
Status string - File share readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - string
- ID of the share network the file share is attached to.
- string
- File share type.
- size number
- Size of the file share in GB.
- updated
At string - Last update date of the file share.
- checksum str
- Computed hash representing the current target specification value.
- created_
at str - Creation date of the file share.
- current_
state GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- description str
- File share description.
- id str
- File share ID.
- location
Get
Cloud Storage File Shares File Share Location - Current location:
- name str
- Capability name.
- protocol str
- File share protocol.
- resource_
status str - File share readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - str
- ID of the share network the file share is attached to.
- str
- File share type.
- size int
- Size of the file share in GB.
- updated_
at str - Last update date of the file share.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the file share.
- current
State Property Map - Current state of the file storage share:
- description String
- File share description.
- id String
- File share ID.
- location Property Map
- Current location:
- name String
- Capability name.
- protocol String
- File share protocol.
- resource
Status String - File share readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - String
- ID of the share network the file share is attached to.
- String
- File share type.
- size Number
- Size of the file share in GB.
- updated
At String - Last update date of the file share.
GetCloudStorageFileSharesFileShareCurrentState
- Capabilities
List<Get
Cloud Storage File Shares File Share Current State Capability> - Action-availability flags derived from the file share status:
- Description string
- File share description.
- Export
Locations List<GetCloud Storage File Shares File Share Current State Export Location> - Export locations for the file share:
- Location
Get
Cloud Storage File Shares File Share Current State Location - Current location:
- Name string
- Capability name.
- Protocol string
- File share protocol.
- string
- ID of the share network the file share is attached to.
- string
- File share type.
- Size int
- Size of the file share in GB.
- Capabilities
[]Get
Cloud Storage File Shares File Share Current State Capability - Action-availability flags derived from the file share status:
- Description string
- File share description.
- Export
Locations []GetCloud Storage File Shares File Share Current State Export Location - Export locations for the file share:
- Location
Get
Cloud Storage File Shares File Share Current State Location - Current location:
- Name string
- Capability name.
- Protocol string
- File share protocol.
- string
- ID of the share network the file share is attached to.
- string
- File share type.
- Size int
- Size of the file share in GB.
- capabilities list(object)
- Action-availability flags derived from the file share status:
- description string
- File share description.
- export_
locations list(object) - Export locations for the file share:
- location object
- Current location:
- name string
- Capability name.
- protocol string
- File share protocol.
- string
- ID of the share network the file share is attached to.
- string
- File share type.
- size number
- Size of the file share in GB.
- capabilities
List<Get
Cloud Storage File Shares File Share Current State Capability> - Action-availability flags derived from the file share status:
- description String
- File share description.
- export
Locations List<GetCloud Storage File Shares File Share Current State Export Location> - Export locations for the file share:
- location
Get
Cloud Storage File Shares File Share Current State Location - Current location:
- name String
- Capability name.
- protocol String
- File share protocol.
- String
- ID of the share network the file share is attached to.
- String
- File share type.
- size Integer
- Size of the file share in GB.
- capabilities
Get
Cloud Storage File Shares File Share Current State Capability[] - Action-availability flags derived from the file share status:
- description string
- File share description.
- export
Locations GetCloud Storage File Shares File Share Current State Export Location[] - Export locations for the file share:
- location
Get
Cloud Storage File Shares File Share Current State Location - Current location:
- name string
- Capability name.
- protocol string
- File share protocol.
- string
- ID of the share network the file share is attached to.
- string
- File share type.
- size number
- Size of the file share in GB.
- capabilities
Sequence[Get
Cloud Storage File Shares File Share Current State Capability] - Action-availability flags derived from the file share status:
- description str
- File share description.
- export_
locations Sequence[GetCloud Storage File Shares File Share Current State Export Location] - Export locations for the file share:
- location
Get
Cloud Storage File Shares File Share Current State Location - Current location:
- name str
- Capability name.
- protocol str
- File share protocol.
- str
- ID of the share network the file share is attached to.
- str
- File share type.
- size int
- Size of the file share in GB.
- capabilities List<Property Map>
- Action-availability flags derived from the file share status:
- description String
- File share description.
- export
Locations List<Property Map> - Export locations for the file share:
- location Property Map
- Current location:
- name String
- Capability name.
- protocol String
- File share protocol.
- String
- ID of the share network the file share is attached to.
- String
- File share type.
- size Number
- Size of the file share in GB.
GetCloudStorageFileSharesFileShareCurrentStateCapability
GetCloudStorageFileSharesFileShareCurrentStateExportLocation
GetCloudStorageFileSharesFileShareCurrentStateLocation
- Availability
Zone string - Availability zone.
- Region string
- If set, only file shares located in this region are returned.
- Availability
Zone string - Availability zone.
- Region string
- If set, only file shares located in this region are returned.
- availability_
zone string - Availability zone.
- region string
- If set, only file shares located in this region are returned.
- availability
Zone String - Availability zone.
- region String
- If set, only file shares located in this region are returned.
- availability
Zone string - Availability zone.
- region string
- If set, only file shares located in this region are returned.
- availability_
zone str - Availability zone.
- region str
- If set, only file shares located in this region are returned.
- availability
Zone String - Availability zone.
- region String
- If set, only file shares located in this region are returned.
GetCloudStorageFileSharesFileShareLocation
- Availability
Zone string - Availability zone.
- Region string
- If set, only file shares located in this region are returned.
- Availability
Zone string - Availability zone.
- Region string
- If set, only file shares located in this region are returned.
- availability_
zone string - Availability zone.
- region string
- If set, only file shares located in this region are returned.
- availability
Zone String - Availability zone.
- region String
- If set, only file shares located in this region are returned.
- availability
Zone string - Availability zone.
- region string
- If set, only file shares located in this region are returned.
- availability_
zone str - Availability zone.
- region str
- If set, only file shares located in this region are returned.
- availability
Zone String - Availability zone.
- region String
- If set, only file shares located in this region are returned.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.19.1
published on Tuesday, Aug 18, 2026 by OVHcloud
published on Tuesday, Aug 18, 2026 by OVHcloud