GetSubnetPool
Use this data source to get the ID of an available OpenStack subnetpool.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var subnetpool1 = Output.Create(OpenStack.Networking.GetSubnetPool.InvokeAsync(new OpenStack.Networking.GetSubnetPoolArgs
{
Name = "subnetpool_1",
}));
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
subnetpool1 = openstack.networking.get_subnet_pool(name="subnetpool_1")import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const subnetpool1 = pulumi.output(openstack.networking.getSubnetPool({
name: "subnetpool_1",
}, { async: true }));Using GetSubnetPool
function getSubnetPool(args: GetSubnetPoolArgs, opts?: InvokeOptions): Promise<GetSubnetPoolResult>function get_subnet_pool(address_scope_id=None, default_prefixlen=None, default_quota=None, description=None, ip_version=None, is_default=None, max_prefixlen=None, min_prefixlen=None, name=None, project_id=None, region=None, shared=None, tags=None, opts=None)func LookupSubnetPool(ctx *Context, args *LookupSubnetPoolArgs, opts ...InvokeOption) (*LookupSubnetPoolResult, error)Note: This function is named
LookupSubnetPoolin the Go SDK.
public static class GetSubnetPool {
public static Task<GetSubnetPoolResult> InvokeAsync(GetSubnetPoolArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Address
Scope stringId The Neutron address scope that subnetpools is assigned to.
- Default
Prefixlen int The size of the subnetpool default prefix length.
- Default
Quota int The per-project quota on the prefix space that can be allocated from the subnetpool for project subnets.
- Description string
The human-readable description for the subnetpool.
- Ip
Version int The IP protocol version.
- Is
Default bool Whether the subnetpool is default subnetpool or not.
- Max
Prefixlen int The size of the subnetpool max prefix length.
- Min
Prefixlen int The size of the subnetpool min prefix length.
- Name string
The name of the subnetpool.
- Project
Id string The owner of the subnetpool.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to retrieve a subnetpool id. If omitted, the
regionargument of the provider is used.- bool
Whether this subnetpool is shared across all projects.
- List<string>
The list of subnetpool tags to filter.
- Address
Scope stringId The Neutron address scope that subnetpools is assigned to.
- Default
Prefixlen int The size of the subnetpool default prefix length.
- Default
Quota int The per-project quota on the prefix space that can be allocated from the subnetpool for project subnets.
- Description string
The human-readable description for the subnetpool.
- Ip
Version int The IP protocol version.
- Is
Default bool Whether the subnetpool is default subnetpool or not.
- Max
Prefixlen int The size of the subnetpool max prefix length.
- Min
Prefixlen int The size of the subnetpool min prefix length.
- Name string
The name of the subnetpool.
- Project
Id string The owner of the subnetpool.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to retrieve a subnetpool id. If omitted, the
regionargument of the provider is used.- bool
Whether this subnetpool is shared across all projects.
- []string
The list of subnetpool tags to filter.
- address
Scope stringId The Neutron address scope that subnetpools is assigned to.
- default
Prefixlen number The size of the subnetpool default prefix length.
- default
Quota number The per-project quota on the prefix space that can be allocated from the subnetpool for project subnets.
- description string
The human-readable description for the subnetpool.
- ip
Version number The IP protocol version.
- is
Default boolean Whether the subnetpool is default subnetpool or not.
- max
Prefixlen number The size of the subnetpool max prefix length.
- min
Prefixlen number The size of the subnetpool min prefix length.
- name string
The name of the subnetpool.
- project
Id string The owner of the subnetpool.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to retrieve a subnetpool id. If omitted, the
regionargument of the provider is used.- boolean
Whether this subnetpool is shared across all projects.
- string[]
The list of subnetpool tags to filter.
- address_
scope_ strid The Neutron address scope that subnetpools is assigned to.
- default_
prefixlen float The size of the subnetpool default prefix length.
- default_
quota float The per-project quota on the prefix space that can be allocated from the subnetpool for project subnets.
- description str
The human-readable description for the subnetpool.
- ip_
version float The IP protocol version.
- is_
default bool Whether the subnetpool is default subnetpool or not.
- max_
prefixlen float The size of the subnetpool max prefix length.
- min_
prefixlen float The size of the subnetpool min prefix length.
- name str
The name of the subnetpool.
- project_
id str The owner of the subnetpool.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to retrieve a subnetpool id. If omitted, the
regionargument of the provider is used.- bool
Whether this subnetpool is shared across all projects.
- List[str]
The list of subnetpool tags to filter.
GetSubnetPool Result
The following output properties are available:
- Address
Scope stringId See Argument Reference above. *
ip_version-The IP protocol version.- List<string>
The set of string tags applied on the subnetpool.
- Created
At string The time at which subnetpool was created.
- Default
Prefixlen int See Argument Reference above.
- Default
Quota int See Argument Reference above.
- Description string
See Argument Reference above.
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Version int - Is
Default bool See Argument Reference above.
- Max
Prefixlen int See Argument Reference above.
- Min
Prefixlen int See Argument Reference above.
- Name string
See Argument Reference above.
- Prefixes List<string>
See Argument Reference above.
- Project
Id string See Argument Reference above.
- Region string
See Argument Reference above.
- Revision
Number int The revision number of the subnetpool.
- bool
See Argument Reference above.
- Updated
At string The time at which subnetpool was created.
- List<string>
- Address
Scope stringId See Argument Reference above. *
ip_version-The IP protocol version.- []string
The set of string tags applied on the subnetpool.
- Created
At string The time at which subnetpool was created.
- Default
Prefixlen int See Argument Reference above.
- Default
Quota int See Argument Reference above.
- Description string
See Argument Reference above.
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Version int - Is
Default bool See Argument Reference above.
- Max
Prefixlen int See Argument Reference above.
- Min
Prefixlen int See Argument Reference above.
- Name string
See Argument Reference above.
- Prefixes []string
See Argument Reference above.
- Project
Id string See Argument Reference above.
- Region string
See Argument Reference above.
- Revision
Number int The revision number of the subnetpool.
- bool
See Argument Reference above.
- Updated
At string The time at which subnetpool was created.
- []string
- address
Scope stringId See Argument Reference above. *
ip_version-The IP protocol version.- string[]
The set of string tags applied on the subnetpool.
- created
At string The time at which subnetpool was created.
- default
Prefixlen number See Argument Reference above.
- default
Quota number See Argument Reference above.
- description string
See Argument Reference above.
- id string
The provider-assigned unique ID for this managed resource.
- ip
Version number - is
Default boolean See Argument Reference above.
- max
Prefixlen number See Argument Reference above.
- min
Prefixlen number See Argument Reference above.
- name string
See Argument Reference above.
- prefixes string[]
See Argument Reference above.
- project
Id string See Argument Reference above.
- region string
See Argument Reference above.
- revision
Number number The revision number of the subnetpool.
- boolean
See Argument Reference above.
- updated
At string The time at which subnetpool was created.
- string[]
- address_
scope_ strid See Argument Reference above. *
ip_version-The IP protocol version.- List[str]
The set of string tags applied on the subnetpool.
- created_
at str The time at which subnetpool was created.
- default_
prefixlen float See Argument Reference above.
- default_
quota float See Argument Reference above.
- description str
See Argument Reference above.
- id str
The provider-assigned unique ID for this managed resource.
- ip_
version float - is_
default bool See Argument Reference above.
- max_
prefixlen float See Argument Reference above.
- min_
prefixlen float See Argument Reference above.
- name str
See Argument Reference above.
- prefixes List[str]
See Argument Reference above.
- project_
id str See Argument Reference above.
- region str
See Argument Reference above.
- revision_
number float The revision number of the subnetpool.
- bool
See Argument Reference above.
- updated_
at str The time at which subnetpool was created.
- List[str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.