published on Monday, Jun 15, 2026 by OVHcloud
published on Monday, Jun 15, 2026 by OVHcloud
Creates a file storage share in a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const share = new ovh.CloudProjectFileStorageShare("share", {
serviceName: "xxxxxxxxxx",
regionName: "GRA11",
name: "my_share",
description: "My file storage share",
size: 150,
type: "standard-1az",
networkId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
subnetId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
});
import pulumi
import pulumi_ovh as ovh
share = ovh.CloudProjectFileStorageShare("share",
service_name="xxxxxxxxxx",
region_name="GRA11",
name="my_share",
description="My file storage share",
size=150,
type="standard-1az",
network_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
subnet_id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
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.NewCloudProjectFileStorageShare(ctx, "share", &ovh.CloudProjectFileStorageShareArgs{
ServiceName: pulumi.String("xxxxxxxxxx"),
RegionName: pulumi.String("GRA11"),
Name: pulumi.String("my_share"),
Description: pulumi.String("My file storage share"),
Size: pulumi.Float64(150),
Type: pulumi.String("standard-1az"),
NetworkId: pulumi.String("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),
SubnetId: pulumi.String("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),
})
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 = new Ovh.CloudProjectFileStorageShare("share", new()
{
ServiceName = "xxxxxxxxxx",
RegionName = "GRA11",
Name = "my_share",
Description = "My file storage share",
Size = 150,
Type = "standard-1az",
NetworkId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
SubnetId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.CloudProjectFileStorageShare;
import com.ovhcloud.pulumi.ovh.CloudProjectFileStorageShareArgs;
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) {
var share = new CloudProjectFileStorageShare("share", CloudProjectFileStorageShareArgs.builder()
.serviceName("xxxxxxxxxx")
.regionName("GRA11")
.name("my_share")
.description("My file storage share")
.size(150.0)
.type("standard-1az")
.networkId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.subnetId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.build());
}
}
resources:
share:
type: ovh:CloudProjectFileStorageShare
properties:
serviceName: xxxxxxxxxx
regionName: GRA11
name: my_share
description: My file storage share
size: 150
type: standard-1az
networkId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
subnetId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Example coming soon!
Create CloudProjectFileStorageShare Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudProjectFileStorageShare(name: string, args: CloudProjectFileStorageShareArgs, opts?: CustomResourceOptions);@overload
def CloudProjectFileStorageShare(resource_name: str,
args: CloudProjectFileStorageShareArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudProjectFileStorageShare(resource_name: str,
opts: Optional[ResourceOptions] = None,
region_name: Optional[str] = None,
service_name: Optional[str] = None,
availability_zone: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
share_network_id: Optional[str] = None,
size: Optional[float] = None,
snapshot_id: Optional[str] = None,
subnet_id: Optional[str] = None,
type: Optional[str] = None)func NewCloudProjectFileStorageShare(ctx *Context, name string, args CloudProjectFileStorageShareArgs, opts ...ResourceOption) (*CloudProjectFileStorageShare, error)public CloudProjectFileStorageShare(string name, CloudProjectFileStorageShareArgs args, CustomResourceOptions? opts = null)
public CloudProjectFileStorageShare(String name, CloudProjectFileStorageShareArgs args)
public CloudProjectFileStorageShare(String name, CloudProjectFileStorageShareArgs args, CustomResourceOptions options)
type: ovh:CloudProjectFileStorageShare
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ovh_cloudprojectfilestorageshare" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CloudProjectFileStorageShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CloudProjectFileStorageShareArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CloudProjectFileStorageShareArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudProjectFileStorageShareArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudProjectFileStorageShareArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cloudProjectFileStorageShareResource = new Ovh.CloudProjectFileStorageShare("cloudProjectFileStorageShareResource", new()
{
RegionName = "string",
ServiceName = "string",
AvailabilityZone = "string",
Description = "string",
Name = "string",
NetworkId = "string",
ShareNetworkId = "string",
Size = 0,
SnapshotId = "string",
SubnetId = "string",
Type = "string",
});
example, err := ovh.NewCloudProjectFileStorageShare(ctx, "cloudProjectFileStorageShareResource", &ovh.CloudProjectFileStorageShareArgs{
RegionName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
NetworkId: pulumi.String("string"),
ShareNetworkId: pulumi.String("string"),
Size: pulumi.Float64(0),
SnapshotId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
Type: pulumi.String("string"),
})
resource "ovh_cloudprojectfilestorageshare" "cloudProjectFileStorageShareResource" {
region_name = "string"
service_name = "string"
availability_zone = "string"
description = "string"
name = "string"
network_id = "string"
share_network_id = "string"
size = 0
snapshot_id = "string"
subnet_id = "string"
type = "string"
}
var cloudProjectFileStorageShareResource = new CloudProjectFileStorageShare("cloudProjectFileStorageShareResource", CloudProjectFileStorageShareArgs.builder()
.regionName("string")
.serviceName("string")
.availabilityZone("string")
.description("string")
.name("string")
.networkId("string")
.shareNetworkId("string")
.size(0.0)
.snapshotId("string")
.subnetId("string")
.type("string")
.build());
cloud_project_file_storage_share_resource = ovh.CloudProjectFileStorageShare("cloudProjectFileStorageShareResource",
region_name="string",
service_name="string",
availability_zone="string",
description="string",
name="string",
network_id="string",
share_network_id="string",
size=float(0),
snapshot_id="string",
subnet_id="string",
type="string")
const cloudProjectFileStorageShareResource = new ovh.CloudProjectFileStorageShare("cloudProjectFileStorageShareResource", {
regionName: "string",
serviceName: "string",
availabilityZone: "string",
description: "string",
name: "string",
networkId: "string",
shareNetworkId: "string",
size: 0,
snapshotId: "string",
subnetId: "string",
type: "string",
});
type: ovh:CloudProjectFileStorageShare
properties:
availabilityZone: string
description: string
name: string
networkId: string
regionName: string
serviceName: string
shareNetworkId: string
size: 0
snapshotId: string
subnetId: string
type: string
CloudProjectFileStorageShare Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CloudProjectFileStorageShare resource accepts the following input properties:
- Region
Name string - The region in which the share will be created.
- Service
Name string - The ID of the public cloud project.
- Availability
Zone string - Availability zone of the share (required in 3AZ regions).
- Description string
- Share description.
- Name string
- Share name.
- Network
Id string - Private network ID.
- string
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - Size double
- Share size in Gigabytes.
- Snapshot
Id string - Snapshot ID used to create the share.
- Subnet
Id string - Subnet ID.
- Type string
- Share type. Currently only
standard-1azis supported.
- Region
Name string - The region in which the share will be created.
- Service
Name string - The ID of the public cloud project.
- Availability
Zone string - Availability zone of the share (required in 3AZ regions).
- Description string
- Share description.
- Name string
- Share name.
- Network
Id string - Private network ID.
- string
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - Size float64
- Share size in Gigabytes.
- Snapshot
Id string - Snapshot ID used to create the share.
- Subnet
Id string - Subnet ID.
- Type string
- Share type. Currently only
standard-1azis supported.
- region_
name string - The region in which the share will be created.
- service_
name string - The ID of the public cloud project.
- availability_
zone string - Availability zone of the share (required in 3AZ regions).
- description string
- Share description.
- name string
- Share name.
- network_
id string - Private network ID.
- string
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size number
- Share size in Gigabytes.
- snapshot_
id string - Snapshot ID used to create the share.
- subnet_
id string - Subnet ID.
- type string
- Share type. Currently only
standard-1azis supported.
- region
Name String - The region in which the share will be created.
- service
Name String - The ID of the public cloud project.
- availability
Zone String - Availability zone of the share (required in 3AZ regions).
- description String
- Share description.
- name String
- Share name.
- network
Id String - Private network ID.
- String
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size Double
- Share size in Gigabytes.
- snapshot
Id String - Snapshot ID used to create the share.
- subnet
Id String - Subnet ID.
- type String
- Share type. Currently only
standard-1azis supported.
- region
Name string - The region in which the share will be created.
- service
Name string - The ID of the public cloud project.
- availability
Zone string - Availability zone of the share (required in 3AZ regions).
- description string
- Share description.
- name string
- Share name.
- network
Id string - Private network ID.
- string
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size number
- Share size in Gigabytes.
- snapshot
Id string - Snapshot ID used to create the share.
- subnet
Id string - Subnet ID.
- type string
- Share type. Currently only
standard-1azis supported.
- region_
name str - The region in which the share will be created.
- service_
name str - The ID of the public cloud project.
- availability_
zone str - Availability zone of the share (required in 3AZ regions).
- description str
- Share description.
- name str
- Share name.
- network_
id str - Private network ID.
- str
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size float
- Share size in Gigabytes.
- snapshot_
id str - Snapshot ID used to create the share.
- subnet_
id str - Subnet ID.
- type str
- Share type. Currently only
standard-1azis supported.
- region
Name String - The region in which the share will be created.
- service
Name String - The ID of the public cloud project.
- availability
Zone String - Availability zone of the share (required in 3AZ regions).
- description String
- Share description.
- name String
- Share name.
- network
Id String - Private network ID.
- String
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size Number
- Share size in Gigabytes.
- snapshot
Id String - Snapshot ID used to create the share.
- subnet
Id String - Subnet ID.
- type String
- Share type. Currently only
standard-1azis supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudProjectFileStorageShare resource produces the following output properties:
- created_
at string - Share creation date.
- id string
- The provider-assigned unique ID for this managed resource.
- is_
public bool - Whether the share is public.
- protocol string
- Share protocol (e.g.
NFS). - status string
- Share status.
- created_
at str - Share creation date.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
public bool - Whether the share is public.
- protocol str
- Share protocol (e.g.
NFS). - status str
- Share status.
Look up Existing CloudProjectFileStorageShare Resource
Get an existing CloudProjectFileStorageShare resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CloudProjectFileStorageShareState, opts?: CustomResourceOptions): CloudProjectFileStorageShare@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
is_public: Optional[bool] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
protocol: Optional[str] = None,
region_name: Optional[str] = None,
service_name: Optional[str] = None,
share_network_id: Optional[str] = None,
size: Optional[float] = None,
snapshot_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
type: Optional[str] = None) -> CloudProjectFileStorageSharefunc GetCloudProjectFileStorageShare(ctx *Context, name string, id IDInput, state *CloudProjectFileStorageShareState, opts ...ResourceOption) (*CloudProjectFileStorageShare, error)public static CloudProjectFileStorageShare Get(string name, Input<string> id, CloudProjectFileStorageShareState? state, CustomResourceOptions? opts = null)public static CloudProjectFileStorageShare get(String name, Output<String> id, CloudProjectFileStorageShareState state, CustomResourceOptions options)resources: _: type: ovh:CloudProjectFileStorageShare get: id: ${id}import {
to = ovh_cloudprojectfilestorageshare.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Zone string - Availability zone of the share (required in 3AZ regions).
- Created
At string - Share creation date.
- Description string
- Share description.
- Is
Public bool - Whether the share is public.
- Name string
- Share name.
- Network
Id string - Private network ID.
- Protocol string
- Share protocol (e.g.
NFS). - Region
Name string - The region in which the share will be created.
- Service
Name string - The ID of the public cloud project.
- string
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - Size double
- Share size in Gigabytes.
- Snapshot
Id string - Snapshot ID used to create the share.
- Status string
- Share status.
- Subnet
Id string - Subnet ID.
- Type string
- Share type. Currently only
standard-1azis supported.
- Availability
Zone string - Availability zone of the share (required in 3AZ regions).
- Created
At string - Share creation date.
- Description string
- Share description.
- Is
Public bool - Whether the share is public.
- Name string
- Share name.
- Network
Id string - Private network ID.
- Protocol string
- Share protocol (e.g.
NFS). - Region
Name string - The region in which the share will be created.
- Service
Name string - The ID of the public cloud project.
- string
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - Size float64
- Share size in Gigabytes.
- Snapshot
Id string - Snapshot ID used to create the share.
- Status string
- Share status.
- Subnet
Id string - Subnet ID.
- Type string
- Share type. Currently only
standard-1azis supported.
- availability_
zone string - Availability zone of the share (required in 3AZ regions).
- created_
at string - Share creation date.
- description string
- Share description.
- is_
public bool - Whether the share is public.
- name string
- Share name.
- network_
id string - Private network ID.
- protocol string
- Share protocol (e.g.
NFS). - region_
name string - The region in which the share will be created.
- service_
name string - The ID of the public cloud project.
- string
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size number
- Share size in Gigabytes.
- snapshot_
id string - Snapshot ID used to create the share.
- status string
- Share status.
- subnet_
id string - Subnet ID.
- type string
- Share type. Currently only
standard-1azis supported.
- availability
Zone String - Availability zone of the share (required in 3AZ regions).
- created
At String - Share creation date.
- description String
- Share description.
- is
Public Boolean - Whether the share is public.
- name String
- Share name.
- network
Id String - Private network ID.
- protocol String
- Share protocol (e.g.
NFS). - region
Name String - The region in which the share will be created.
- service
Name String - The ID of the public cloud project.
- String
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size Double
- Share size in Gigabytes.
- snapshot
Id String - Snapshot ID used to create the share.
- status String
- Share status.
- subnet
Id String - Subnet ID.
- type String
- Share type. Currently only
standard-1azis supported.
- availability
Zone string - Availability zone of the share (required in 3AZ regions).
- created
At string - Share creation date.
- description string
- Share description.
- is
Public boolean - Whether the share is public.
- name string
- Share name.
- network
Id string - Private network ID.
- protocol string
- Share protocol (e.g.
NFS). - region
Name string - The region in which the share will be created.
- service
Name string - The ID of the public cloud project.
- string
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size number
- Share size in Gigabytes.
- snapshot
Id string - Snapshot ID used to create the share.
- status string
- Share status.
- subnet
Id string - Subnet ID.
- type string
- Share type. Currently only
standard-1azis supported.
- availability_
zone str - Availability zone of the share (required in 3AZ regions).
- created_
at str - Share creation date.
- description str
- Share description.
- is_
public bool - Whether the share is public.
- name str
- Share name.
- network_
id str - Private network ID.
- protocol str
- Share protocol (e.g.
NFS). - region_
name str - The region in which the share will be created.
- service_
name str - The ID of the public cloud project.
- str
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size float
- Share size in Gigabytes.
- snapshot_
id str - Snapshot ID used to create the share.
- status str
- Share status.
- subnet_
id str - Subnet ID.
- type str
- Share type. Currently only
standard-1azis supported.
- availability
Zone String - Availability zone of the share (required in 3AZ regions).
- created
At String - Share creation date.
- description String
- Share description.
- is
Public Boolean - Whether the share is public.
- name String
- Share name.
- network
Id String - Private network ID.
- protocol String
- Share protocol (e.g.
NFS). - region
Name String - The region in which the share will be created.
- service
Name String - The ID of the public cloud project.
- String
- ID of an existing share network. Exactly one of
share_network_idor the pair (network_id,subnet_id) must be set. - size Number
- Share size in Gigabytes.
- snapshot
Id String - Snapshot ID used to create the share.
- status String
- Share status.
- subnet
Id String - Subnet ID.
- type String
- Share type. Currently only
standard-1azis supported.
Import
A file storage share can be imported using the service_name, region_name, and share_id separated by /:
bash
$ pulumi import ovh:index/cloudProjectFileStorageShare:CloudProjectFileStorageShare share service_name/region_name/share_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
published on Monday, Jun 15, 2026 by OVHcloud