Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 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?: InvokeOptions): 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[InvokeOptions] = 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 CompletableFuture<GetCloudStorageFileSharesResult> getCloudStorageFileShares(GetCloudStorageFileSharesArgs args, InvokeOptions options)
public static Output<GetCloudStorageFileSharesResult> getCloudStorageFileShares(GetCloudStorageFileSharesArgs args, InvokeOptions 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
- Access
Rules List<GetCloud Storage File Shares File Share Access Rule> - Current access rules for the file share:
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Access rule creation date.
- Current
State GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- Description string
- File share description.
- Id string
- Access rule 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.
- Access
Rules []GetCloud Storage File Shares File Share Access Rule - Current access rules for the file share:
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Access rule creation date.
- Current
State GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- Description string
- File share description.
- Id string
- Access rule 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.
- access_
rules list(object) - Current access rules for the file share:
- checksum string
- Computed hash representing the current target specification value.
- created_
at string - Access rule creation date.
- current_
state object - Current state of the file storage share:
- description string
- File share description.
- id string
- Access rule 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.
- access
Rules List<GetCloud Storage File Shares File Share Access Rule> - Current access rules for the file share:
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Access rule creation date.
- current
State GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- description String
- File share description.
- id String
- Access rule 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.
- access
Rules GetCloud Storage File Shares File Share Access Rule[] - Current access rules for the file share:
- checksum string
- Computed hash representing the current target specification value.
- created
At string - Access rule creation date.
- current
State GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- description string
- File share description.
- id string
- Access rule 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.
- access_
rules Sequence[GetCloud Storage File Shares File Share Access Rule] - Current access rules for the file share:
- checksum str
- Computed hash representing the current target specification value.
- created_
at str - Access rule creation date.
- current_
state GetCloud Storage File Shares File Share Current State - Current state of the file storage share:
- description str
- File share description.
- id str
- Access rule 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.
- access
Rules List<Property Map> - Current access rules for the file share:
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Access rule creation date.
- current
State Property Map - Current state of the file storage share:
- description String
- File share description.
- id String
- Access rule 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.
GetCloudStorageFileSharesFileShareAccessRule
- Access
Level string - Access level.
- Access
To string - IP address or CIDR.
- Access
Level string - Access level.
- Access
To string - IP address or CIDR.
- access_
level string - Access level.
- access_
to string - IP address or CIDR.
- access
Level String - Access level.
- access
To String - IP address or CIDR.
- access
Level string - Access level.
- access
To string - IP address or CIDR.
- access_
level str - Access level.
- access_
to str - IP address or CIDR.
- access
Level String - Access level.
- access
To String - IP address or CIDR.
GetCloudStorageFileSharesFileShareCurrentState
- Access
Rules List<GetCloud Storage File Shares File Share Current State Access Rule> - Current access rules for the file share:
- 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.
- Access
Rules []GetCloud Storage File Shares File Share Current State Access Rule - Current access rules for the file share:
- 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.
- access_
rules list(object) - Current access rules for the file share:
- 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.
- access
Rules List<GetCloud Storage File Shares File Share Current State Access Rule> - Current access rules for the file share:
- 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.
- access
Rules GetCloud Storage File Shares File Share Current State Access Rule[] - Current access rules for the file share:
- 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.
- access_
rules Sequence[GetCloud Storage File Shares File Share Current State Access Rule] - Current access rules for the file share:
- 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.
- access
Rules List<Property Map> - Current access rules for the file share:
- 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.
GetCloudStorageFileSharesFileShareCurrentStateAccessRule
- Access
Level string - Access level.
- Access
To string - IP address or CIDR.
- Created
At string - Access rule creation date.
- Id string
- Access rule ID.
- State string
- Access rule state.
- Access
Level string - Access level.
- Access
To string - IP address or CIDR.
- Created
At string - Access rule creation date.
- Id string
- Access rule ID.
- State string
- Access rule state.
- access_
level string - Access level.
- access_
to string - IP address or CIDR.
- created_
at string - Access rule creation date.
- id string
- Access rule ID.
- state string
- Access rule state.
- access
Level String - Access level.
- access
To String - IP address or CIDR.
- created
At String - Access rule creation date.
- id String
- Access rule ID.
- state String
- Access rule state.
- access
Level string - Access level.
- access
To string - IP address or CIDR.
- created
At string - Access rule creation date.
- id string
- Access rule ID.
- state string
- Access rule state.
- access_
level str - Access level.
- access_
to str - IP address or CIDR.
- created_
at str - Access rule creation date.
- id str
- Access rule ID.
- state str
- Access rule state.
- access
Level String - Access level.
- access
To String - IP address or CIDR.
- created
At String - Access rule creation date.
- id String
- Access rule ID.
- state String
- Access rule state.
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.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud