published on Monday, Jun 15, 2026 by OVHcloud
published on Monday, Jun 15, 2026 by OVHcloud
Creates a share network in a public cloud project.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const sn = new ovh.CloudProjectFileStorageShareNetwork("sn", {
serviceName: "xxxxxxxxxx",
regionName: "GRA",
name: "my-share-network",
description: "Shared network for file storage",
networkId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
subnetId: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
});
import pulumi
import pulumi_ovh as ovh
sn = ovh.CloudProjectFileStorageShareNetwork("sn",
service_name="xxxxxxxxxx",
region_name="GRA",
name="my-share-network",
description="Shared network for file storage",
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.NewCloudProjectFileStorageShareNetwork(ctx, "sn", &ovh.CloudProjectFileStorageShareNetworkArgs{
ServiceName: pulumi.String("xxxxxxxxxx"),
RegionName: pulumi.String("GRA"),
Name: pulumi.String("my-share-network"),
Description: pulumi.String("Shared network for file storage"),
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 sn = new Ovh.CloudProjectFileStorageShareNetwork("sn", new()
{
ServiceName = "xxxxxxxxxx",
RegionName = "GRA",
Name = "my-share-network",
Description = "Shared network for file storage",
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.CloudProjectFileStorageShareNetwork;
import com.ovhcloud.pulumi.ovh.CloudProjectFileStorageShareNetworkArgs;
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 sn = new CloudProjectFileStorageShareNetwork("sn", CloudProjectFileStorageShareNetworkArgs.builder()
.serviceName("xxxxxxxxxx")
.regionName("GRA")
.name("my-share-network")
.description("Shared network for file storage")
.networkId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.subnetId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.build());
}
}
resources:
sn:
type: ovh:CloudProjectFileStorageShareNetwork
properties:
serviceName: xxxxxxxxxx
regionName: GRA
name: my-share-network
description: Shared network for file storage
networkId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
subnetId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Example coming soon!
Create CloudProjectFileStorageShareNetwork Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudProjectFileStorageShareNetwork(name: string, args: CloudProjectFileStorageShareNetworkArgs, opts?: CustomResourceOptions);@overload
def CloudProjectFileStorageShareNetwork(resource_name: str,
args: CloudProjectFileStorageShareNetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudProjectFileStorageShareNetwork(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_id: Optional[str] = None,
region_name: Optional[str] = None,
service_name: Optional[str] = None,
subnet_id: Optional[str] = None,
availability_zone: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewCloudProjectFileStorageShareNetwork(ctx *Context, name string, args CloudProjectFileStorageShareNetworkArgs, opts ...ResourceOption) (*CloudProjectFileStorageShareNetwork, error)public CloudProjectFileStorageShareNetwork(string name, CloudProjectFileStorageShareNetworkArgs args, CustomResourceOptions? opts = null)
public CloudProjectFileStorageShareNetwork(String name, CloudProjectFileStorageShareNetworkArgs args)
public CloudProjectFileStorageShareNetwork(String name, CloudProjectFileStorageShareNetworkArgs args, CustomResourceOptions options)
type: ovh:CloudProjectFileStorageShareNetwork
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ovh_cloudprojectfilestoragesharenetwork" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CloudProjectFileStorageShareNetworkArgs
- 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 CloudProjectFileStorageShareNetworkArgs
- 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 CloudProjectFileStorageShareNetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudProjectFileStorageShareNetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudProjectFileStorageShareNetworkArgs
- 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 cloudProjectFileStorageShareNetworkResource = new Ovh.CloudProjectFileStorageShareNetwork("cloudProjectFileStorageShareNetworkResource", new()
{
NetworkId = "string",
RegionName = "string",
ServiceName = "string",
SubnetId = "string",
AvailabilityZone = "string",
Description = "string",
Name = "string",
});
example, err := ovh.NewCloudProjectFileStorageShareNetwork(ctx, "cloudProjectFileStorageShareNetworkResource", &ovh.CloudProjectFileStorageShareNetworkArgs{
NetworkId: pulumi.String("string"),
RegionName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
SubnetId: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "ovh_cloudprojectfilestoragesharenetwork" "cloudProjectFileStorageShareNetworkResource" {
network_id = "string"
region_name = "string"
service_name = "string"
subnet_id = "string"
availability_zone = "string"
description = "string"
name = "string"
}
var cloudProjectFileStorageShareNetworkResource = new CloudProjectFileStorageShareNetwork("cloudProjectFileStorageShareNetworkResource", CloudProjectFileStorageShareNetworkArgs.builder()
.networkId("string")
.regionName("string")
.serviceName("string")
.subnetId("string")
.availabilityZone("string")
.description("string")
.name("string")
.build());
cloud_project_file_storage_share_network_resource = ovh.CloudProjectFileStorageShareNetwork("cloudProjectFileStorageShareNetworkResource",
network_id="string",
region_name="string",
service_name="string",
subnet_id="string",
availability_zone="string",
description="string",
name="string")
const cloudProjectFileStorageShareNetworkResource = new ovh.CloudProjectFileStorageShareNetwork("cloudProjectFileStorageShareNetworkResource", {
networkId: "string",
regionName: "string",
serviceName: "string",
subnetId: "string",
availabilityZone: "string",
description: "string",
name: "string",
});
type: ovh:CloudProjectFileStorageShareNetwork
properties:
availabilityZone: string
description: string
name: string
networkId: string
regionName: string
serviceName: string
subnetId: string
CloudProjectFileStorageShareNetwork 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 CloudProjectFileStorageShareNetwork resource accepts the following input properties:
- Network
Id string - Private network ID.
- Region
Name string - The region in which the share network will be created.
- Service
Name string - The ID of the public cloud project.
- Subnet
Id string - Subnet ID.
- Availability
Zone string - Availability zone of the share network (required in 3AZ regions).
- Description string
- Share network description.
- Name string
- Share network name.
- Network
Id string - Private network ID.
- Region
Name string - The region in which the share network will be created.
- Service
Name string - The ID of the public cloud project.
- Subnet
Id string - Subnet ID.
- Availability
Zone string - Availability zone of the share network (required in 3AZ regions).
- Description string
- Share network description.
- Name string
- Share network name.
- network_
id string - Private network ID.
- region_
name string - The region in which the share network will be created.
- service_
name string - The ID of the public cloud project.
- subnet_
id string - Subnet ID.
- availability_
zone string - Availability zone of the share network (required in 3AZ regions).
- description string
- Share network description.
- name string
- Share network name.
- network
Id String - Private network ID.
- region
Name String - The region in which the share network will be created.
- service
Name String - The ID of the public cloud project.
- subnet
Id String - Subnet ID.
- availability
Zone String - Availability zone of the share network (required in 3AZ regions).
- description String
- Share network description.
- name String
- Share network name.
- network
Id string - Private network ID.
- region
Name string - The region in which the share network will be created.
- service
Name string - The ID of the public cloud project.
- subnet
Id string - Subnet ID.
- availability
Zone string - Availability zone of the share network (required in 3AZ regions).
- description string
- Share network description.
- name string
- Share network name.
- network_
id str - Private network ID.
- region_
name str - The region in which the share network will be created.
- service_
name str - The ID of the public cloud project.
- subnet_
id str - Subnet ID.
- availability_
zone str - Availability zone of the share network (required in 3AZ regions).
- description str
- Share network description.
- name str
- Share network name.
- network
Id String - Private network ID.
- region
Name String - The region in which the share network will be created.
- service
Name String - The ID of the public cloud project.
- subnet
Id String - Subnet ID.
- availability
Zone String - Availability zone of the share network (required in 3AZ regions).
- description String
- Share network description.
- name String
- Share network name.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudProjectFileStorageShareNetwork resource produces the following output properties:
- Cidr string
- Subnet CIDR inherited from the Neutron subnet.
- Created
At string - Share network creation date.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Type string - Share network type.
- Updated
At string - Share network last update date.
- Cidr string
- Subnet CIDR inherited from the Neutron subnet.
- Created
At string - Share network creation date.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Type string - Share network type.
- Updated
At string - Share network last update date.
- cidr string
- Subnet CIDR inherited from the Neutron subnet.
- created_
at string - Share network creation date.
- id string
- The provider-assigned unique ID for this managed resource.
- network_
type string - Share network type.
- updated_
at string - Share network last update date.
- cidr String
- Subnet CIDR inherited from the Neutron subnet.
- created
At String - Share network creation date.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Type String - Share network type.
- updated
At String - Share network last update date.
- cidr string
- Subnet CIDR inherited from the Neutron subnet.
- created
At string - Share network creation date.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Type string - Share network type.
- updated
At string - Share network last update date.
- cidr str
- Subnet CIDR inherited from the Neutron subnet.
- created_
at str - Share network creation date.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
type str - Share network type.
- updated_
at str - Share network last update date.
- cidr String
- Subnet CIDR inherited from the Neutron subnet.
- created
At String - Share network creation date.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Type String - Share network type.
- updated
At String - Share network last update date.
Look up Existing CloudProjectFileStorageShareNetwork Resource
Get an existing CloudProjectFileStorageShareNetwork 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?: CloudProjectFileStorageShareNetworkState, opts?: CustomResourceOptions): CloudProjectFileStorageShareNetwork@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
cidr: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
network_type: Optional[str] = None,
region_name: Optional[str] = None,
service_name: Optional[str] = None,
subnet_id: Optional[str] = None,
updated_at: Optional[str] = None) -> CloudProjectFileStorageShareNetworkfunc GetCloudProjectFileStorageShareNetwork(ctx *Context, name string, id IDInput, state *CloudProjectFileStorageShareNetworkState, opts ...ResourceOption) (*CloudProjectFileStorageShareNetwork, error)public static CloudProjectFileStorageShareNetwork Get(string name, Input<string> id, CloudProjectFileStorageShareNetworkState? state, CustomResourceOptions? opts = null)public static CloudProjectFileStorageShareNetwork get(String name, Output<String> id, CloudProjectFileStorageShareNetworkState state, CustomResourceOptions options)resources: _: type: ovh:CloudProjectFileStorageShareNetwork get: id: ${id}import {
to = ovh_cloudprojectfilestoragesharenetwork.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 network (required in 3AZ regions).
- Cidr string
- Subnet CIDR inherited from the Neutron subnet.
- Created
At string - Share network creation date.
- Description string
- Share network description.
- Name string
- Share network name.
- Network
Id string - Private network ID.
- Network
Type string - Share network type.
- Region
Name string - The region in which the share network will be created.
- Service
Name string - The ID of the public cloud project.
- Subnet
Id string - Subnet ID.
- Updated
At string - Share network last update date.
- Availability
Zone string - Availability zone of the share network (required in 3AZ regions).
- Cidr string
- Subnet CIDR inherited from the Neutron subnet.
- Created
At string - Share network creation date.
- Description string
- Share network description.
- Name string
- Share network name.
- Network
Id string - Private network ID.
- Network
Type string - Share network type.
- Region
Name string - The region in which the share network will be created.
- Service
Name string - The ID of the public cloud project.
- Subnet
Id string - Subnet ID.
- Updated
At string - Share network last update date.
- availability_
zone string - Availability zone of the share network (required in 3AZ regions).
- cidr string
- Subnet CIDR inherited from the Neutron subnet.
- created_
at string - Share network creation date.
- description string
- Share network description.
- name string
- Share network name.
- network_
id string - Private network ID.
- network_
type string - Share network type.
- region_
name string - The region in which the share network will be created.
- service_
name string - The ID of the public cloud project.
- subnet_
id string - Subnet ID.
- updated_
at string - Share network last update date.
- availability
Zone String - Availability zone of the share network (required in 3AZ regions).
- cidr String
- Subnet CIDR inherited from the Neutron subnet.
- created
At String - Share network creation date.
- description String
- Share network description.
- name String
- Share network name.
- network
Id String - Private network ID.
- network
Type String - Share network type.
- region
Name String - The region in which the share network will be created.
- service
Name String - The ID of the public cloud project.
- subnet
Id String - Subnet ID.
- updated
At String - Share network last update date.
- availability
Zone string - Availability zone of the share network (required in 3AZ regions).
- cidr string
- Subnet CIDR inherited from the Neutron subnet.
- created
At string - Share network creation date.
- description string
- Share network description.
- name string
- Share network name.
- network
Id string - Private network ID.
- network
Type string - Share network type.
- region
Name string - The region in which the share network will be created.
- service
Name string - The ID of the public cloud project.
- subnet
Id string - Subnet ID.
- updated
At string - Share network last update date.
- availability_
zone str - Availability zone of the share network (required in 3AZ regions).
- cidr str
- Subnet CIDR inherited from the Neutron subnet.
- created_
at str - Share network creation date.
- description str
- Share network description.
- name str
- Share network name.
- network_
id str - Private network ID.
- network_
type str - Share network type.
- region_
name str - The region in which the share network will be created.
- service_
name str - The ID of the public cloud project.
- subnet_
id str - Subnet ID.
- updated_
at str - Share network last update date.
- availability
Zone String - Availability zone of the share network (required in 3AZ regions).
- cidr String
- Subnet CIDR inherited from the Neutron subnet.
- created
At String - Share network creation date.
- description String
- Share network description.
- name String
- Share network name.
- network
Id String - Private network ID.
- network
Type String - Share network type.
- region
Name String - The region in which the share network will be created.
- service
Name String - The ID of the public cloud project.
- subnet
Id String - Subnet ID.
- updated
At String - Share network last update date.
Import
A share network can be imported using the service_name, region_name, and share_network_id separated by /:
bash
$ pulumi import ovh:index/cloudProjectFileStorageShareNetwork:CloudProjectFileStorageShareNetwork sn service_name/region_name/share_network_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