GetAddressScope
Use this data source to get the ID of an available OpenStack address-scope.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var publicAddressscope = Output.Create(OpenStack.Networking.GetAddressScope.InvokeAsync(new OpenStack.Networking.GetAddressScopeArgs
{
IpVersion = 4,
Name = "public_addressscope",
Shared = true,
}));
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
public_addressscope = openstack.networking.get_address_scope(ip_version=4,
name="public_addressscope",
shared=True)import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const publicAddressscope = pulumi.output(openstack.networking.getAddressScope({
ipVersion: 4,
name: "public_addressscope",
shared: true,
}, { async: true }));Using GetAddressScope
function getAddressScope(args: GetAddressScopeArgs, opts?: InvokeOptions): Promise<GetAddressScopeResult>function get_address_scope(ip_version=None, name=None, project_id=None, region=None, shared=None, opts=None)func LookupAddressScope(ctx *Context, args *LookupAddressScopeArgs, opts ...InvokeOption) (*LookupAddressScopeResult, error)Note: This function is named
LookupAddressScopein the Go SDK.
public static class GetAddressScope {
public static Task<GetAddressScopeResult> InvokeAsync(GetAddressScopeArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Ip
Version int IP version.
- Name string
Name of the address-scope.
- Project
Id string The owner of the address-scope.
- Region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve address-scopes. If omitted, the
regionargument of the provider is used.- bool
Indicates whether this address-scope is shared across all projects.
- Ip
Version int IP version.
- Name string
Name of the address-scope.
- Project
Id string The owner of the address-scope.
- Region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve address-scopes. If omitted, the
regionargument of the provider is used.- bool
Indicates whether this address-scope is shared across all projects.
- ip
Version number IP version.
- name string
Name of the address-scope.
- project
Id string The owner of the address-scope.
- region string
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve address-scopes. If omitted, the
regionargument of the provider is used.- boolean
Indicates whether this address-scope is shared across all projects.
- ip_
version float IP version.
- name str
Name of the address-scope.
- project_
id str The owner of the address-scope.
- region str
The region in which to obtain the V2 Neutron client. A Neutron client is needed to retrieve address-scopes. If omitted, the
regionargument of the provider is used.- bool
Indicates whether this address-scope is shared across all projects.
GetAddressScope Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.