@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
180 lines (179 loc) • 4.79 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the ID of an available Shared File System share network.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const sharenetwork1 = openstack.sharedfilesystem.getShareNetwork({
* name: "sharenetwork_1",
* });
* ```
*/
export declare function getShareNetwork(args?: GetShareNetworkArgs, opts?: pulumi.InvokeOptions): Promise<GetShareNetworkResult>;
/**
* A collection of arguments for invoking getShareNetwork.
*/
export interface GetShareNetworkArgs {
/**
* The human-readable description of the share network.
*/
description?: string;
/**
* The IP version of the share network. Can either be 4 or 6.
*/
ipVersion?: number;
/**
* The name of the share network.
*/
name?: string;
/**
* The share network type. Can either be VLAN, VXLAN,
* GRE, or flat.
*/
networkType?: string;
/**
* The neutron network UUID of the share network.
*/
neutronNetId?: string;
/**
* The neutron subnet UUID of the share network.
*/
neutronSubnetId?: 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.
*/
region?: string;
/**
* The security service IDs associated with
* the share network.
*/
securityServiceId?: string;
/**
* The share network segmentation ID.
*/
segmentationId?: number;
}
/**
* A collection of values returned by getShareNetwork.
*/
export interface GetShareNetworkResult {
/**
* See Argument Reference above.
*/
readonly cidr: string;
/**
* See Argument Reference above.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* See Argument Reference above.
*/
readonly ipVersion: number;
/**
* See Argument Reference above.
*/
readonly name: string;
/**
* See Argument Reference above.
*/
readonly networkType: string;
/**
* See Argument Reference above.
*/
readonly neutronNetId: string;
/**
* See Argument Reference above.
*/
readonly neutronSubnetId: string;
/**
* The owner of the Share Network.
*/
readonly projectId: string;
/**
* See Argument Reference above.
*/
readonly region: string;
/**
* See Argument Reference above.
*/
readonly securityServiceId?: string;
/**
* The list of security service IDs associated with
* the share network.
*/
readonly securityServiceIds: string[];
/**
* See Argument Reference above.
*/
readonly segmentationId: number;
}
/**
* Use this data source to get the ID of an available Shared File System share network.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const sharenetwork1 = openstack.sharedfilesystem.getShareNetwork({
* name: "sharenetwork_1",
* });
* ```
*/
export declare function getShareNetworkOutput(args?: GetShareNetworkOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetShareNetworkResult>;
/**
* A collection of arguments for invoking getShareNetwork.
*/
export interface GetShareNetworkOutputArgs {
/**
* The human-readable description of the share network.
*/
description?: pulumi.Input<string>;
/**
* The IP version of the share network. Can either be 4 or 6.
*/
ipVersion?: pulumi.Input<number>;
/**
* The name of the share network.
*/
name?: pulumi.Input<string>;
/**
* The share network type. Can either be VLAN, VXLAN,
* GRE, or flat.
*/
networkType?: pulumi.Input<string>;
/**
* The neutron network UUID of the share network.
*/
neutronNetId?: pulumi.Input<string>;
/**
* The neutron subnet UUID of the share network.
*/
neutronSubnetId?: pulumi.Input<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.
*/
region?: pulumi.Input<string>;
/**
* The security service IDs associated with
* the share network.
*/
securityServiceId?: pulumi.Input<string>;
/**
* The share network segmentation ID.
*/
segmentationId?: pulumi.Input<number>;
}