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
Get a file storage share (NFS) in a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const share = ovh.getCloudStorageFileShare({
serviceName: "<public cloud project ID>",
id: "00000000-0000-0000-0000-000000000000",
});
import pulumi
import pulumi_ovh as ovh
share = ovh.get_cloud_storage_file_share(service_name="<public cloud project ID>",
id="00000000-0000-0000-0000-000000000000")
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.LookupCloudStorageFileShare(ctx, &ovh.LookupCloudStorageFileShareArgs{
ServiceName: "<public cloud project ID>",
Id: "00000000-0000-0000-0000-000000000000",
}, 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 share = Ovh.GetCloudStorageFileShare.Invoke(new()
{
ServiceName = "<public cloud project ID>",
Id = "00000000-0000-0000-0000-000000000000",
});
});
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.GetCloudStorageFileShareArgs;
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 share = OvhFunctions.getCloudStorageFileShare(GetCloudStorageFileShareArgs.builder()
.serviceName("<public cloud project ID>")
.id("00000000-0000-0000-0000-000000000000")
.build());
}
}
variables:
share:
fn::invoke:
function: ovh:getCloudStorageFileShare
arguments:
serviceName: <public cloud project ID>
id: 00000000-0000-0000-0000-000000000000
Example coming soon!
Using getCloudStorageFileShare
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 getCloudStorageFileShare(args: GetCloudStorageFileShareArgs, opts?: InvokeOptions): Promise<GetCloudStorageFileShareResult>
function getCloudStorageFileShareOutput(args: GetCloudStorageFileShareOutputArgs, opts?: InvokeOptions): Output<GetCloudStorageFileShareResult>def get_cloud_storage_file_share(id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudStorageFileShareResult
def get_cloud_storage_file_share_output(id: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudStorageFileShareResult]func LookupCloudStorageFileShare(ctx *Context, args *LookupCloudStorageFileShareArgs, opts ...InvokeOption) (*LookupCloudStorageFileShareResult, error)
func LookupCloudStorageFileShareOutput(ctx *Context, args *LookupCloudStorageFileShareOutputArgs, opts ...InvokeOption) LookupCloudStorageFileShareResultOutput> Note: This function is named LookupCloudStorageFileShare in the Go SDK.
public static class GetCloudStorageFileShare
{
public static Task<GetCloudStorageFileShareResult> InvokeAsync(GetCloudStorageFileShareArgs args, InvokeOptions? opts = null)
public static Output<GetCloudStorageFileShareResult> Invoke(GetCloudStorageFileShareInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudStorageFileShareResult> getCloudStorageFileShare(GetCloudStorageFileShareArgs args, InvokeOptions options)
public static Output<GetCloudStorageFileShareResult> getCloudStorageFileShare(GetCloudStorageFileShareArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudStorageFileShare:getCloudStorageFileShare
arguments:
# arguments dictionarydata "ovh_get_cloud_storage_file_share" "name" {
# arguments
}The following arguments are supported:
- Id string
- The ID of the file share.
- Service
Name string - The id of the public cloud project.
- Id string
- The ID of the file share.
- Service
Name string - The id of the public cloud project.
- id string
- The ID of the file share.
- service_
name string - The id of the public cloud project.
- id String
- The ID of the file share.
- service
Name String - The id of the public cloud project.
- id string
- The ID of the file share.
- service
Name string - The id of the public cloud project.
- id str
- The ID of the file share.
- service_
name str - The id of the public cloud project.
- id String
- The ID of the file share.
- service
Name String - The id of the public cloud project.
getCloudStorageFileShare Result
The following output properties are available:
- Access
Rules List<GetCloud Storage 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 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 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). - Service
Name string - 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 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 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 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). - Service
Name string - 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). - service_
name string - 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 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 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 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). - service
Name String - 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 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 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 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). - service
Name string - 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 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 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 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). - service_
name str - 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). - service
Name String - 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.
Supporting Types
GetCloudStorageFileShareAccessRule
- 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.
GetCloudStorageFileShareCurrentState
- Access
Rules List<GetCloud Storage File Share Current State Access Rule> - Current access rules for the file share:
- Capabilities
List<Get
Cloud Storage 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 Share Current State Export Location> - Export locations for the file share:
- Location
Get
Cloud Storage 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 Share Current State Access Rule - Current access rules for the file share:
- Capabilities
[]Get
Cloud Storage File Share Current State Capability - Action-availability flags derived from the file share status:
- Description string
- File share description.
- Export
Locations []GetCloud Storage File Share Current State Export Location - Export locations for the file share:
- Location
Get
Cloud Storage 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 Share Current State Access Rule> - Current access rules for the file share:
- capabilities
List<Get
Cloud Storage 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 Share Current State Export Location> - Export locations for the file share:
- location
Get
Cloud Storage 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 Share Current State Access Rule[] - Current access rules for the file share:
- capabilities
Get
Cloud Storage File Share Current State Capability[] - Action-availability flags derived from the file share status:
- description string
- File share description.
- export
Locations GetCloud Storage File Share Current State Export Location[] - Export locations for the file share:
- location
Get
Cloud Storage 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 Share Current State Access Rule] - Current access rules for the file share:
- capabilities
Sequence[Get
Cloud Storage 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 Share Current State Export Location] - Export locations for the file share:
- location
Get
Cloud Storage 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.
GetCloudStorageFileShareCurrentStateAccessRule
- Access
Level string - Access level.
- Access
To string - IP address or CIDR.
- Created
At string - Access rule creation date.
- Id string
- The ID of the file share.
- 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
- The ID of the file share.
- 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
- The ID of the file share.
- 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
- The ID of the file share.
- 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
- The ID of the file share.
- 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
- The ID of the file share.
- 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
- The ID of the file share.
- state String
- Access rule state.
GetCloudStorageFileShareCurrentStateCapability
GetCloudStorageFileShareCurrentStateExportLocation
GetCloudStorageFileShareCurrentStateLocation
- Availability
Zone string - Availability zone.
- Region string
- Region.
- Availability
Zone string - Availability zone.
- Region string
- Region.
- availability_
zone string - Availability zone.
- region string
- Region.
- availability
Zone String - Availability zone.
- region String
- Region.
- availability
Zone string - Availability zone.
- region string
- Region.
- availability_
zone str - Availability zone.
- region str
- Region.
- availability
Zone String - Availability zone.
- region String
- Region.
GetCloudStorageFileShareLocation
- Availability
Zone string - Availability zone.
- Region string
- Region.
- Availability
Zone string - Availability zone.
- Region string
- Region.
- availability_
zone string - Availability zone.
- region string
- Region.
- availability
Zone String - Availability zone.
- region String
- Region.
- availability
Zone string - Availability zone.
- region string
- Region.
- availability_
zone str - Availability zone.
- region str
- Region.
- availability
Zone 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
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