OpenStack v5.0.0 published on Friday, Sep 27, 2024 by Pulumi
openstack.sharedfilesystem.getShareNetwork
Explore with Pulumi AI
Use this data source to get the ID of an available Shared File System share network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const sharenetwork1 = openstack.sharedfilesystem.getShareNetwork({
name: "sharenetwork_1",
});
import pulumi
import pulumi_openstack as openstack
sharenetwork1 = openstack.sharedfilesystem.get_share_network(name="sharenetwork_1")
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/sharedfilesystem"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sharedfilesystem.LookupShareNetwork(ctx, &sharedfilesystem.LookupShareNetworkArgs{
Name: pulumi.StringRef("sharenetwork_1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var sharenetwork1 = OpenStack.SharedFileSystem.GetShareNetwork.Invoke(new()
{
Name = "sharenetwork_1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.sharedfilesystem.SharedfilesystemFunctions;
import com.pulumi.openstack.sharedfilesystem.inputs.GetShareNetworkArgs;
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 sharenetwork1 = SharedfilesystemFunctions.getShareNetwork(GetShareNetworkArgs.builder()
.name("sharenetwork_1")
.build());
}
}
variables:
sharenetwork1:
fn::invoke:
Function: openstack:sharedfilesystem:getShareNetwork
Arguments:
name: sharenetwork_1
Using getShareNetwork
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 getShareNetwork(args: GetShareNetworkArgs, opts?: InvokeOptions): Promise<GetShareNetworkResult>
function getShareNetworkOutput(args: GetShareNetworkOutputArgs, opts?: InvokeOptions): Output<GetShareNetworkResult>
def get_share_network(description: Optional[str] = None,
ip_version: Optional[int] = None,
name: Optional[str] = None,
network_type: Optional[str] = None,
neutron_net_id: Optional[str] = None,
neutron_subnet_id: Optional[str] = None,
region: Optional[str] = None,
security_service_id: Optional[str] = None,
segmentation_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetShareNetworkResult
def get_share_network_output(description: Optional[pulumi.Input[str]] = None,
ip_version: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
network_type: Optional[pulumi.Input[str]] = None,
neutron_net_id: Optional[pulumi.Input[str]] = None,
neutron_subnet_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
security_service_id: Optional[pulumi.Input[str]] = None,
segmentation_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetShareNetworkResult]
func LookupShareNetwork(ctx *Context, args *LookupShareNetworkArgs, opts ...InvokeOption) (*LookupShareNetworkResult, error)
func LookupShareNetworkOutput(ctx *Context, args *LookupShareNetworkOutputArgs, opts ...InvokeOption) LookupShareNetworkResultOutput
> Note: This function is named LookupShareNetwork
in the Go SDK.
public static class GetShareNetwork
{
public static Task<GetShareNetworkResult> InvokeAsync(GetShareNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetShareNetworkResult> Invoke(GetShareNetworkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetShareNetworkResult> getShareNetwork(GetShareNetworkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: openstack:sharedfilesystem/getShareNetwork:getShareNetwork
arguments:
# arguments dictionary
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
region
argument 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
region
argument 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 Integer - 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
region
argument of the provider is used. - security
Service StringId - The security service IDs associated with the share network.
- segmentation
Id Integer - 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
region
argument 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 int - 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
region
argument of the provider is used. - security_
service_ strid - 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
region
argument 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.
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 Integer - 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 Integer - 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 int - 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_ Sequence[str]ids - The list of security service IDs associated with the share network.
- segmentation_
id int - See Argument Reference above.
- security_
service_ strid - 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 List<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.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.