Show / Hide Table of Contents

Class AddressScope

Manages a V2 Neutron addressscope resource within OpenStack.

Example Usage

Create an Address-scope

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var addressscope1 = new OpenStack.Networking.AddressScope("addressscope1", new OpenStack.Networking.AddressScopeArgs
    {
        IpVersion = 6,
    });
}

}

Create a Subnet Pool from an Address-scope

using Pulumi;
using OpenStack = Pulumi.OpenStack;

class MyStack : Stack
{
public MyStack()
{
    var addressscope1 = new OpenStack.Networking.AddressScope("addressscope1", new OpenStack.Networking.AddressScopeArgs
    {
        IpVersion = 6,
    });
    var subnetpool1 = new OpenStack.Networking.SubnetPool("subnetpool1", new OpenStack.Networking.SubnetPoolArgs
    {
        AddressScopeId = addressscope1.Id,
        Prefixes = 
        {
            "fdf7:b13d:dead:beef::/64",
            "fd65:86cc:a334:39b7::/64",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AddressScope
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.OpenStack.Networking
Assembly: Pulumi.OpenStack.dll
Syntax
public class AddressScope : CustomResource

Constructors

View Source

AddressScope(String, AddressScopeArgs, CustomResourceOptions)

Create a AddressScope resource with the given unique name, arguments, and options.

Declaration
public AddressScope(string name, AddressScopeArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

AddressScopeArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

IpVersion

IP version, either 4 (default) or 6. Changing this creates a new address-scope.

Declaration
public Output<int?> IpVersion { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Name

The name of the address-scope. Changing this updates the name of the existing address-scope.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ProjectId

The owner of the address-scope. Required if admin wants to create a address-scope for another project. Changing this creates a new address-scope.

Declaration
public Output<string> ProjectId { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the region argument of the provider is used. Changing this creates a new address-scope.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

Shared

Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.

Declaration
public Output<bool> Shared { get; }
Property Value
Type Description
Output<System.Boolean>

Methods

View Source

Get(String, Input<String>, AddressScopeState, CustomResourceOptions)

Get an existing AddressScope resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static AddressScope Get(string name, Input<string> id, AddressScopeState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

AddressScopeState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
AddressScope
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.