1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudStorageFileShareNetwork
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud

    Get a file storage share network in a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const network = ovh.getCloudStorageFileShareNetwork({
        serviceName: "<public cloud project ID>",
        id: "00000000-0000-0000-0000-000000000000",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    network = ovh.get_cloud_storage_file_share_network(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.LookupCloudStorageFileShareNetwork(ctx, &ovh.LookupCloudStorageFileShareNetworkArgs{
    			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 network = Ovh.GetCloudStorageFileShareNetwork.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.GetCloudStorageFileShareNetworkArgs;
    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 network = OvhFunctions.getCloudStorageFileShareNetwork(GetCloudStorageFileShareNetworkArgs.builder()
                .serviceName("<public cloud project ID>")
                .id("00000000-0000-0000-0000-000000000000")
                .build());
    
        }
    }
    
    variables:
      network:
        fn::invoke:
          function: ovh:getCloudStorageFileShareNetwork
          arguments:
            serviceName: <public cloud project ID>
            id: 00000000-0000-0000-0000-000000000000
    
    Example coming soon!
    

    Using getCloudStorageFileShareNetwork

    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 getCloudStorageFileShareNetwork(args: GetCloudStorageFileShareNetworkArgs, opts?: InvokeOptions): Promise<GetCloudStorageFileShareNetworkResult>
    function getCloudStorageFileShareNetworkOutput(args: GetCloudStorageFileShareNetworkOutputArgs, opts?: InvokeOptions): Output<GetCloudStorageFileShareNetworkResult>
    def get_cloud_storage_file_share_network(id: Optional[str] = None,
                                             service_name: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetCloudStorageFileShareNetworkResult
    def get_cloud_storage_file_share_network_output(id: pulumi.Input[Optional[str]] = None,
                                             service_name: pulumi.Input[Optional[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetCloudStorageFileShareNetworkResult]
    func LookupCloudStorageFileShareNetwork(ctx *Context, args *LookupCloudStorageFileShareNetworkArgs, opts ...InvokeOption) (*LookupCloudStorageFileShareNetworkResult, error)
    func LookupCloudStorageFileShareNetworkOutput(ctx *Context, args *LookupCloudStorageFileShareNetworkOutputArgs, opts ...InvokeOption) LookupCloudStorageFileShareNetworkResultOutput

    > Note: This function is named LookupCloudStorageFileShareNetwork in the Go SDK.

    public static class GetCloudStorageFileShareNetwork 
    {
        public static Task<GetCloudStorageFileShareNetworkResult> InvokeAsync(GetCloudStorageFileShareNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudStorageFileShareNetworkResult> Invoke(GetCloudStorageFileShareNetworkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudStorageFileShareNetworkResult> getCloudStorageFileShareNetwork(GetCloudStorageFileShareNetworkArgs args, InvokeOptions options)
    public static Output<GetCloudStorageFileShareNetworkResult> getCloudStorageFileShareNetwork(GetCloudStorageFileShareNetworkArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudStorageFileShareNetwork:getCloudStorageFileShareNetwork
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_storage_file_share_network" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    The ID of the share network.
    ServiceName string
    The id of the public cloud project.
    Id string
    The ID of the share network.
    ServiceName string
    The id of the public cloud project.
    id string
    The ID of the share network.
    service_name string
    The id of the public cloud project.
    id String
    The ID of the share network.
    serviceName String
    The id of the public cloud project.
    id string
    The ID of the share network.
    serviceName string
    The id of the public cloud project.
    id str
    The ID of the share network.
    service_name str
    The id of the public cloud project.
    id String
    The ID of the share network.
    serviceName String
    The id of the public cloud project.

    getCloudStorageFileShareNetwork Result

    The following output properties are available:

    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the share network.
    CurrentState GetCloudStorageFileShareNetworkCurrentState
    Current state of the file storage share network:
    Description string
    Share network description.
    Id string
    Location GetCloudStorageFileShareNetworkLocation
    Current location:
    Name string
    Share network name.
    NetworkId string
    ID of the private network.
    ResourceStatus string
    Share network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    SubnetId string
    ID of the subnet.
    UpdatedAt string
    Last update date of the share network.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the share network.
    CurrentState GetCloudStorageFileShareNetworkCurrentState
    Current state of the file storage share network:
    Description string
    Share network description.
    Id string
    Location GetCloudStorageFileShareNetworkLocation
    Current location:
    Name string
    Share network name.
    NetworkId string
    ID of the private network.
    ResourceStatus string
    Share network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    SubnetId string
    ID of the subnet.
    UpdatedAt string
    Last update date of the share network.
    checksum string
    Computed hash representing the current target specification value.
    created_at string
    Creation date of the share network.
    current_state object
    Current state of the file storage share network:
    description string
    Share network description.
    id string
    location object
    Current location:
    name string
    Share network name.
    network_id string
    ID of the private network.
    resource_status string
    Share network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name string
    subnet_id string
    ID of the subnet.
    updated_at string
    Last update date of the share network.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the share network.
    currentState GetCloudStorageFileShareNetworkCurrentState
    Current state of the file storage share network:
    description String
    Share network description.
    id String
    location GetCloudStorageFileShareNetworkLocation
    Current location:
    name String
    Share network name.
    networkId String
    ID of the private network.
    resourceStatus String
    Share network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    subnetId String
    ID of the subnet.
    updatedAt String
    Last update date of the share network.
    checksum string
    Computed hash representing the current target specification value.
    createdAt string
    Creation date of the share network.
    currentState GetCloudStorageFileShareNetworkCurrentState
    Current state of the file storage share network:
    description string
    Share network description.
    id string
    location GetCloudStorageFileShareNetworkLocation
    Current location:
    name string
    Share network name.
    networkId string
    ID of the private network.
    resourceStatus string
    Share network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName string
    subnetId string
    ID of the subnet.
    updatedAt string
    Last update date of the share network.
    checksum str
    Computed hash representing the current target specification value.
    created_at str
    Creation date of the share network.
    current_state GetCloudStorageFileShareNetworkCurrentState
    Current state of the file storage share network:
    description str
    Share network description.
    id str
    location GetCloudStorageFileShareNetworkLocation
    Current location:
    name str
    Share network name.
    network_id str
    ID of the private network.
    resource_status str
    Share network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name str
    subnet_id str
    ID of the subnet.
    updated_at str
    Last update date of the share network.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the share network.
    currentState Property Map
    Current state of the file storage share network:
    description String
    Share network description.
    id String
    location Property Map
    Current location:
    name String
    Share network name.
    networkId String
    ID of the private network.
    resourceStatus String
    Share network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    subnetId String
    ID of the subnet.
    updatedAt String
    Last update date of the share network.

    Supporting Types

    GetCloudStorageFileShareNetworkCurrentState

    Description string
    Share network description.
    Location GetCloudStorageFileShareNetworkCurrentStateLocation
    Current location:
    Name string
    Share network name.
    NetworkId string
    ID of the private network.
    SubnetId string
    ID of the subnet.
    Description string
    Share network description.
    Location GetCloudStorageFileShareNetworkCurrentStateLocation
    Current location:
    Name string
    Share network name.
    NetworkId string
    ID of the private network.
    SubnetId string
    ID of the subnet.
    description string
    Share network description.
    location object
    Current location:
    name string
    Share network name.
    network_id string
    ID of the private network.
    subnet_id string
    ID of the subnet.
    description String
    Share network description.
    location GetCloudStorageFileShareNetworkCurrentStateLocation
    Current location:
    name String
    Share network name.
    networkId String
    ID of the private network.
    subnetId String
    ID of the subnet.
    description string
    Share network description.
    location GetCloudStorageFileShareNetworkCurrentStateLocation
    Current location:
    name string
    Share network name.
    networkId string
    ID of the private network.
    subnetId string
    ID of the subnet.
    description str
    Share network description.
    location GetCloudStorageFileShareNetworkCurrentStateLocation
    Current location:
    name str
    Share network name.
    network_id str
    ID of the private network.
    subnet_id str
    ID of the subnet.
    description String
    Share network description.
    location Property Map
    Current location:
    name String
    Share network name.
    networkId String
    ID of the private network.
    subnetId String
    ID of the subnet.

    GetCloudStorageFileShareNetworkCurrentStateLocation

    AvailabilityZone string
    Availability zone.
    Region string
    Region.
    AvailabilityZone string
    Availability zone.
    Region string
    Region.
    availability_zone string
    Availability zone.
    region string
    Region.
    availabilityZone String
    Availability zone.
    region String
    Region.
    availabilityZone string
    Availability zone.
    region string
    Region.
    availability_zone str
    Availability zone.
    region str
    Region.
    availabilityZone String
    Availability zone.
    region String
    Region.

    GetCloudStorageFileShareNetworkLocation

    AvailabilityZone string
    Availability zone.
    Region string
    Region.
    AvailabilityZone string
    Availability zone.
    Region string
    Region.
    availability_zone string
    Availability zone.
    region string
    Region.
    availabilityZone String
    Availability zone.
    region String
    Region.
    availabilityZone string
    Availability zone.
    region string
    Region.
    availability_zone str
    Availability zone.
    region str
    Region.
    availabilityZone 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 ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.17.0
    published on Friday, Jul 17, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial