1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. CloudProjectFileStorageShareNetwork
Viewing docs for OVHCloud v2.14.0
published on Monday, Jun 15, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.14.0
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:

    NetworkId string
    Private network ID.
    RegionName string
    The region in which the share network will be created.
    ServiceName string
    The ID of the public cloud project.
    SubnetId string
    Subnet ID.
    AvailabilityZone string
    Availability zone of the share network (required in 3AZ regions).
    Description string
    Share network description.
    Name string
    Share network name.
    NetworkId string
    Private network ID.
    RegionName string
    The region in which the share network will be created.
    ServiceName string
    The ID of the public cloud project.
    SubnetId string
    Subnet ID.
    AvailabilityZone 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.
    networkId String
    Private network ID.
    regionName String
    The region in which the share network will be created.
    serviceName String
    The ID of the public cloud project.
    subnetId String
    Subnet ID.
    availabilityZone String
    Availability zone of the share network (required in 3AZ regions).
    description String
    Share network description.
    name String
    Share network name.
    networkId string
    Private network ID.
    regionName string
    The region in which the share network will be created.
    serviceName string
    The ID of the public cloud project.
    subnetId string
    Subnet ID.
    availabilityZone 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.
    networkId String
    Private network ID.
    regionName String
    The region in which the share network will be created.
    serviceName String
    The ID of the public cloud project.
    subnetId String
    Subnet ID.
    availabilityZone 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.
    CreatedAt string
    Share network creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkType string
    Share network type.
    UpdatedAt string
    Share network last update date.
    Cidr string
    Subnet CIDR inherited from the Neutron subnet.
    CreatedAt string
    Share network creation date.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkType string
    Share network type.
    UpdatedAt 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.
    createdAt String
    Share network creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    networkType String
    Share network type.
    updatedAt String
    Share network last update date.
    cidr string
    Subnet CIDR inherited from the Neutron subnet.
    createdAt string
    Share network creation date.
    id string
    The provider-assigned unique ID for this managed resource.
    networkType string
    Share network type.
    updatedAt 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.
    createdAt String
    Share network creation date.
    id String
    The provider-assigned unique ID for this managed resource.
    networkType String
    Share network type.
    updatedAt 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) -> CloudProjectFileStorageShareNetwork
    func 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.
    The following state arguments are supported:
    AvailabilityZone string
    Availability zone of the share network (required in 3AZ regions).
    Cidr string
    Subnet CIDR inherited from the Neutron subnet.
    CreatedAt string
    Share network creation date.
    Description string
    Share network description.
    Name string
    Share network name.
    NetworkId string
    Private network ID.
    NetworkType string
    Share network type.
    RegionName string
    The region in which the share network will be created.
    ServiceName string
    The ID of the public cloud project.
    SubnetId string
    Subnet ID.
    UpdatedAt string
    Share network last update date.
    AvailabilityZone string
    Availability zone of the share network (required in 3AZ regions).
    Cidr string
    Subnet CIDR inherited from the Neutron subnet.
    CreatedAt string
    Share network creation date.
    Description string
    Share network description.
    Name string
    Share network name.
    NetworkId string
    Private network ID.
    NetworkType string
    Share network type.
    RegionName string
    The region in which the share network will be created.
    ServiceName string
    The ID of the public cloud project.
    SubnetId string
    Subnet ID.
    UpdatedAt 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.
    availabilityZone String
    Availability zone of the share network (required in 3AZ regions).
    cidr String
    Subnet CIDR inherited from the Neutron subnet.
    createdAt String
    Share network creation date.
    description String
    Share network description.
    name String
    Share network name.
    networkId String
    Private network ID.
    networkType String
    Share network type.
    regionName String
    The region in which the share network will be created.
    serviceName String
    The ID of the public cloud project.
    subnetId String
    Subnet ID.
    updatedAt String
    Share network last update date.
    availabilityZone string
    Availability zone of the share network (required in 3AZ regions).
    cidr string
    Subnet CIDR inherited from the Neutron subnet.
    createdAt string
    Share network creation date.
    description string
    Share network description.
    name string
    Share network name.
    networkId string
    Private network ID.
    networkType string
    Share network type.
    regionName string
    The region in which the share network will be created.
    serviceName string
    The ID of the public cloud project.
    subnetId string
    Subnet ID.
    updatedAt 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.
    availabilityZone String
    Availability zone of the share network (required in 3AZ regions).
    cidr String
    Subnet CIDR inherited from the Neutron subnet.
    createdAt String
    Share network creation date.
    description String
    Share network description.
    name String
    Share network name.
    networkId String
    Private network ID.
    networkType String
    Share network type.
    regionName String
    The region in which the share network will be created.
    serviceName String
    The ID of the public cloud project.
    subnetId String
    Subnet ID.
    updatedAt 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 ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.14.0
    published on Monday, Jun 15, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial