GetShareNetwork

Use this data source to get the ID of an available Shared File System share network.

Example Usage

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
    public MyStack()
    {
        var sharenetwork1 = Output.Create(OpenStack.SharedFileSystem.GetShareNetwork.InvokeAsync(new OpenStack.SharedFileSystem.GetShareNetworkArgs
        {
            Name = "sharenetwork_1",
        }));
    }

}

Coming soon!

import pulumi
import pulumi_openstack as openstack

sharenetwork1 = openstack.sharedfilesystem.get_share_network(name="sharenetwork_1")
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";

const sharenetwork1 = pulumi.output(openstack.sharedfilesystem.getShareNetwork({
    name: "sharenetwork_1",
}, { async: true }));

Using GetShareNetwork

function getShareNetwork(args: GetShareNetworkArgs, opts?: InvokeOptions): Promise<GetShareNetworkResult>
function  get_share_network(description=None, ip_version=None, name=None, network_type=None, neutron_net_id=None, neutron_subnet_id=None, region=None, security_service_id=None, segmentation_id=None, opts=None)
func LookupShareNetwork(ctx *Context, args *LookupShareNetworkArgs, opts ...InvokeOption) (*LookupShareNetworkResult, error)

Note: This function is named LookupShareNetwork in the Go SDK.

public static class GetShareNetwork {
    public static Task<GetShareNetworkResult> InvokeAsync(GetShareNetworkArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Description string

The human-readable description of the share network.

IpVersion int

The IP version of the share network. Can either be 4 or 6.

Name string

The name of the share network.

NetworkType string

The share network type. Can either be VLAN, VXLAN, GRE, or flat.

NeutronNetId string

The neutron network UUID of the share network.

NeutronSubnetId string

The neutron subnet UUID of the share network.

Region string

The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to read a share network. If omitted, the region argument of the provider is used.

SecurityServiceId string

The security service IDs associated with the share network.

SegmentationId int

The share network segmentation ID.

Description string

The human-readable description of the share network.

IpVersion int

The IP version of the share network. Can either be 4 or 6.

Name string

The name of the share network.

NetworkType string

The share network type. Can either be VLAN, VXLAN, GRE, or flat.

NeutronNetId string

The neutron network UUID of the share network.

NeutronSubnetId string

The neutron subnet UUID of the share network.

Region string

The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to read a share network. If omitted, the region argument of the provider is used.

SecurityServiceId string

The security service IDs associated with the share network.

SegmentationId int

The share network segmentation ID.

description string

The human-readable description of the share network.

ipVersion number

The IP version of the share network. Can either be 4 or 6.

name string

The name of the share network.

networkType string

The share network type. Can either be VLAN, VXLAN, GRE, or flat.

neutronNetId string

The neutron network UUID of the share network.

neutronSubnetId string

The neutron subnet UUID of the share network.

region string

The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to read a share network. If omitted, the region argument of the provider is used.

securityServiceId string

The security service IDs associated with the share network.

segmentationId number

The share network segmentation ID.

description str

The human-readable description of the share network.

ip_version float

The IP version of the share network. Can either be 4 or 6.

name str

The name of the share network.

network_type str

The share network type. Can either be VLAN, VXLAN, GRE, or flat.

neutron_net_id str

The neutron network UUID of the share network.

neutron_subnet_id str

The neutron subnet UUID of the share network.

region str

The region in which to obtain the V2 Shared File System client. A Shared File System client is needed to read a share network. If omitted, the region argument of the provider is used.

security_service_id str

The security service IDs associated with the share network.

segmentation_id float

The share network segmentation ID.

GetShareNetwork Result

The following output properties are available:

Cidr string

See Argument Reference above.

Description string

See Argument Reference above.

Id string

The provider-assigned unique ID for this managed resource.

IpVersion int

See Argument Reference above.

Name string

See Argument Reference above.

NetworkType string

See Argument Reference above.

NeutronNetId string

See Argument Reference above.

NeutronSubnetId string

See Argument Reference above.

ProjectId string

The owner of the Share Network.

Region string

See Argument Reference above.

SecurityServiceIds List<string>

The list of security service IDs associated with the share network.

SegmentationId int

See Argument Reference above.

SecurityServiceId string

See Argument Reference above.

Cidr string

See Argument Reference above.

Description string

See Argument Reference above.

Id string

The provider-assigned unique ID for this managed resource.

IpVersion int

See Argument Reference above.

Name string

See Argument Reference above.

NetworkType string

See Argument Reference above.

NeutronNetId string

See Argument Reference above.

NeutronSubnetId string

See Argument Reference above.

ProjectId string

The owner of the Share Network.

Region string

See Argument Reference above.

SecurityServiceIds []string

The list of security service IDs associated with the share network.

SegmentationId int

See Argument Reference above.

SecurityServiceId string

See Argument Reference above.

cidr string

See Argument Reference above.

description string

See Argument Reference above.

id string

The provider-assigned unique ID for this managed resource.

ipVersion number

See Argument Reference above.

name string

See Argument Reference above.

networkType string

See Argument Reference above.

neutronNetId string

See Argument Reference above.

neutronSubnetId string

See Argument Reference above.

projectId string

The owner of the Share Network.

region string

See Argument Reference above.

securityServiceIds string[]

The list of security service IDs associated with the share network.

segmentationId number

See Argument Reference above.

securityServiceId string

See Argument Reference above.

cidr str

See Argument Reference above.

description str

See Argument Reference above.

id str

The provider-assigned unique ID for this managed resource.

ip_version float

See Argument Reference above.

name str

See Argument Reference above.

network_type str

See Argument Reference above.

neutron_net_id str

See Argument Reference above.

neutron_subnet_id str

See Argument Reference above.

project_id str

The owner of the Share Network.

region str

See Argument Reference above.

security_service_ids List[str]

The list of security service IDs associated with the share network.

segmentation_id float

See Argument Reference above.

security_service_id str

See Argument Reference above.

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.