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,
});
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
addressscope1 = openstack.networking.AddressScope("addressscope1", ip_version=6)import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const addressscope1 = new openstack.networking.AddressScope("addressscope_1", {
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",
},
});
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
addressscope1 = openstack.networking.AddressScope("addressscope1", ip_version=6)
subnetpool1 = openstack.networking.SubnetPool("subnetpool1",
address_scope_id=addressscope1.id,
prefixes=[
"fdf7:b13d:dead:beef::/64",
"fd65:86cc:a334:39b7::/64",
])import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const addressscope1 = new openstack.networking.AddressScope("addressscope_1", {
ipVersion: 6,
});
const subnetpool1 = new openstack.networking.SubnetPool("subnetpool_1", {
addressScopeId: addressscope1.id,
prefixes: [
"fdf7:b13d:dead:beef::/64",
"fd65:86cc:a334:39b7::/64",
],
});Create a AddressScope Resource
new AddressScope(name: string, args?: AddressScopeArgs, opts?: CustomResourceOptions);def AddressScope(resource_name, opts=None, ip_version=None, name=None, project_id=None, region=None, shared=None, __props__=None);func NewAddressScope(ctx *Context, name string, args *AddressScopeArgs, opts ...ResourceOption) (*AddressScope, error)public AddressScope(string name, AddressScopeArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AddressScopeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AddressScopeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AddressScopeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AddressScope Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AddressScope resource accepts the following input properties:
- Ip
Version int IP version, either 4 (default) or 6. Changing this creates a new address-scope.
- Name string
The name of the address-scope. Changing this updates the name of the existing address-scope.
- Project
Id string 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.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the
regionargument of the provider is used. Changing this creates a new address-scope.- bool
Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.
- Ip
Version int IP version, either 4 (default) or 6. Changing this creates a new address-scope.
- Name string
The name of the address-scope. Changing this updates the name of the existing address-scope.
- Project
Id string 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.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the
regionargument of the provider is used. Changing this creates a new address-scope.- bool
Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.
- ip
Version number IP version, either 4 (default) or 6. Changing this creates a new address-scope.
- name string
The name of the address-scope. Changing this updates the name of the existing address-scope.
- project
Id string 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.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the
regionargument of the provider is used. Changing this creates a new address-scope.- boolean
Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.
- ip_
version float IP version, either 4 (default) or 6. Changing this creates a new address-scope.
- name str
The name of the address-scope. Changing this updates the name of the existing address-scope.
- project_
id str 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.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the
regionargument of the provider is used. Changing this creates a new address-scope.- bool
Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.
Outputs
All input properties are implicitly available as output properties. Additionally, the AddressScope resource produces the following output properties:
Look up an Existing AddressScope Resource
Get an existing AddressScope resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AddressScopeState, opts?: CustomResourceOptions): AddressScopestatic get(resource_name, id, opts=None, ip_version=None, name=None, project_id=None, region=None, shared=None, __props__=None);func GetAddressScope(ctx *Context, name string, id IDInput, state *AddressScopeState, opts ...ResourceOption) (*AddressScope, error)public static AddressScope Get(string name, Input<string> id, AddressScopeState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Ip
Version int IP version, either 4 (default) or 6. Changing this creates a new address-scope.
- Name string
The name of the address-scope. Changing this updates the name of the existing address-scope.
- Project
Id string 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.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the
regionargument of the provider is used. Changing this creates a new address-scope.- bool
Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.
- Ip
Version int IP version, either 4 (default) or 6. Changing this creates a new address-scope.
- Name string
The name of the address-scope. Changing this updates the name of the existing address-scope.
- Project
Id string 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.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the
regionargument of the provider is used. Changing this creates a new address-scope.- bool
Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.
- ip
Version number IP version, either 4 (default) or 6. Changing this creates a new address-scope.
- name string
The name of the address-scope. Changing this updates the name of the existing address-scope.
- project
Id string 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.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the
regionargument of the provider is used. Changing this creates a new address-scope.- boolean
Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.
- ip_
version float IP version, either 4 (default) or 6. Changing this creates a new address-scope.
- name str
The name of the address-scope. Changing this updates the name of the existing address-scope.
- project_
id str 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.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create a Neutron address-scope. If omitted, the
regionargument of the provider is used. Changing this creates a new address-scope.- bool
Indicates whether this address-scope is shared across all projects. Changing this updates the shared status of the existing address-scope.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.