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 LookupAddressScope in the Go SDK.

public static class GetAddressScope {
    public static Task<GetAddressScopeResult> InvokeAsync(GetAddressScopeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

IpVersion int

IP version.

Name string

Name of the address-scope.

ProjectId 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 region argument of the provider is used.

Shared bool

Indicates whether this address-scope is shared across all projects.

IpVersion int

IP version.

Name string

Name of the address-scope.

ProjectId 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 region argument of the provider is used.

Shared bool

Indicates whether this address-scope is shared across all projects.

ipVersion number

IP version.

name string

Name of the address-scope.

projectId 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 region argument of the provider is used.

shared 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 region argument of the provider is used.

shared bool

Indicates whether this address-scope is shared across all projects.

GetAddressScope Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

IpVersion int

See Argument Reference above.

Name string

See Argument Reference above.

ProjectId string

See Argument Reference above.

Region string
Shared bool

See Argument Reference above.

Id string

The provider-assigned unique ID for this managed resource.

IpVersion int

See Argument Reference above.

Name string

See Argument Reference above.

ProjectId string

See Argument Reference above.

Region string
Shared bool

See Argument Reference above.

id string

The provider-assigned unique ID for this managed resource.

ipVersion number

See Argument Reference above.

name string

See Argument Reference above.

projectId string

See Argument Reference above.

region string
shared boolean

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.

project_id str

See Argument Reference above.

region str
shared bool

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 openstack Terraform Provider.