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
LookupShareNetworkin 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.
- Ip
Version int The IP version of the share network. Can either be 4 or 6.
- Name string
The name of the share network.
- Network
Type string The share network type. Can either be VLAN, VXLAN, GRE, or flat.
- Neutron
Net stringId The neutron network UUID of the share network.
- Neutron
Subnet stringId 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
regionargument of the provider is used.- Security
Service stringId The security service IDs associated with the share network.
- Segmentation
Id int The share network segmentation ID.
- Description string
The human-readable description of the share network.
- Ip
Version int The IP version of the share network. Can either be 4 or 6.
- Name string
The name of the share network.
- Network
Type string The share network type. Can either be VLAN, VXLAN, GRE, or flat.
- Neutron
Net stringId The neutron network UUID of the share network.
- Neutron
Subnet stringId 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
regionargument of the provider is used.- Security
Service stringId The security service IDs associated with the share network.
- Segmentation
Id int The share network segmentation ID.
- description string
The human-readable description of the share network.
- ip
Version number The IP version of the share network. Can either be 4 or 6.
- name string
The name of the share network.
- network
Type string The share network type. Can either be VLAN, VXLAN, GRE, or flat.
- neutron
Net stringId The neutron network UUID of the share network.
- neutron
Subnet stringId 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
regionargument of the provider is used.- security
Service stringId The security service IDs associated with the share network.
- segmentation
Id 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_ strid The neutron network UUID of the share network.
- neutron_
subnet_ strid 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
regionargument of the provider is used.- security_
service_ strid 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.
- Ip
Version int See Argument Reference above.
- Name string
See Argument Reference above.
- Network
Type string See Argument Reference above.
- Neutron
Net stringId See Argument Reference above.
- Neutron
Subnet stringId See Argument Reference above.
- Project
Id string The owner of the Share Network.
- Region string
See Argument Reference above.
- Security
Service List<string>Ids The list of security service IDs associated with the share network.
- Segmentation
Id int See Argument Reference above.
- Security
Service stringId 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.
- Ip
Version int See Argument Reference above.
- Name string
See Argument Reference above.
- Network
Type string See Argument Reference above.
- Neutron
Net stringId See Argument Reference above.
- Neutron
Subnet stringId See Argument Reference above.
- Project
Id string The owner of the Share Network.
- Region string
See Argument Reference above.
- Security
Service []stringIds The list of security service IDs associated with the share network.
- Segmentation
Id int See Argument Reference above.
- Security
Service stringId 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.
- ip
Version number See Argument Reference above.
- name string
See Argument Reference above.
- network
Type string See Argument Reference above.
- neutron
Net stringId See Argument Reference above.
- neutron
Subnet stringId See Argument Reference above.
- project
Id string The owner of the Share Network.
- region string
See Argument Reference above.
- security
Service string[]Ids The list of security service IDs associated with the share network.
- segmentation
Id number See Argument Reference above.
- security
Service stringId 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_ strid See Argument Reference above.
- neutron_
subnet_ strid See Argument Reference above.
- project_
id str The owner of the Share Network.
- region str
See Argument Reference above.
- security_
service_ List[str]ids The list of security service IDs associated with the share network.
- segmentation_
id float See Argument Reference above.
- security_
service_ strid 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
openstackTerraform Provider.