Class SubnetState
Inherited Members
Namespace: Pulumi.OpenStack.Networking
Assembly: Pulumi.OpenStack.dll
Syntax
public sealed class SubnetState : ResourceArgs
Constructors
View SourceSubnetState()
Declaration
public SubnetState()
Properties
View SourceAllocationPools
A block declaring the start and end range of
the IP addresses available for use with DHCP in this subnet. Multiple
allocation_pool blocks can be declared, providing the subnet with more
than one range of IP addresses to use with DHCP. However, each IP range
must be from the same CIDR that the subnet is part of.
The allocation_pool block is documented below.
Declaration
public InputList<SubnetAllocationPoolGetArgs> AllocationPools { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<SubnetAllocationPoolGetArgs> |
AllocationPoolsCollection
A block declaring the start and end range of the IP addresses available for
use with DHCP in this subnet.
The allocation_pools block is documented below.
Declaration
[Obsolete("use allocation_pool instead")]
public InputList<SubnetAllocationPoolsCollectionGetArgs> AllocationPoolsCollection { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<SubnetAllocationPoolsCollectionGetArgs> |
AllTags
The collection of ags assigned on the subnet, which have been explicitly and implicitly added.
Declaration
public InputList<string> AllTags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
Cidr
CIDR representing IP range for this subnet, based on IP version. You can omit this option if you are creating a subnet from a subnet pool.
Declaration
public Input<string> Cidr { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Description
Human-readable description of the subnet. Changing this updates the name of the existing subnet.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
DnsNameservers
An array of DNS name server names used by hosts in this subnet. Changing this updates the DNS name servers for the existing subnet.
Declaration
public InputList<string> DnsNameservers { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
EnableDhcp
The administrative state of the network. Acceptable values are "true" and "false". Changing this value enables or disables the DHCP capabilities of the existing subnet. Defaults to true.
Declaration
public Input<bool> EnableDhcp { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
GatewayIp
Default gateway used by devices in this subnet.
Leaving this blank and not setting no_gateway will cause a default
gateway of .1 to be used. Changing this updates the gateway IP of the
existing subnet.
Declaration
public Input<string> GatewayIp { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
HostRoutes
(Deprecated - use openstack.networking.SubnetRoute
instead) An array of routes that should be used by devices
with IPs from this subnet (not including local subnet route). The host_route
object structure is documented below. Changing this updates the host routes
for the existing subnet.
Declaration
[Obsolete("Use openstack_networking_subnet_route_v2 instead")]
public InputList<SubnetHostRouteGetArgs> HostRoutes { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<SubnetHostRouteGetArgs> |
Ipv6AddressMode
The IPv6 address mode. Valid values are
dhcpv6-stateful, dhcpv6-stateless, or slaac.
Declaration
public Input<string> Ipv6AddressMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Ipv6RaMode
The IPv6 Router Advertisement mode. Valid values
are dhcpv6-stateful, dhcpv6-stateless, or slaac.
Declaration
public Input<string> Ipv6RaMode { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
IpVersion
IP version, either 4 (default) or 6. Changing this creates a new subnet.
Declaration
public Input<int> IpVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Name
The name of the subnet. Changing this updates the name of the existing subnet.
Declaration
public Input<string> Name { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NetworkId
The UUID of the parent network. Changing this creates a new subnet.
Declaration
public Input<string> NetworkId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
NoGateway
Do not set a gateway IP on this subnet. Changing this removes or adds a default gateway IP of the existing subnet.
Declaration
public Input<bool> NoGateway { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
PrefixLength
The prefix length to use when creating a subnet from a subnet pool. The default subnet pool prefix length that was defined when creating the subnet pool will be used if not provided. Changing this creates a new subnet.
Declaration
public Input<int> PrefixLength { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Region
The region in which to obtain the V2 Networking client.
A Networking client is needed to create a Neutron subnet. If omitted, the
region argument of the provider is used. Changing this creates a new
subnet.
Declaration
public Input<string> Region { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
SubnetpoolId
The ID of the subnetpool associated with the subnet.
Declaration
public Input<string> SubnetpoolId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
Tags
A set of string tags for the subnet.
Declaration
public InputList<string> Tags { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<System.String> |
TenantId
The owner of the subnet. Required if admin wants to create a subnet for another tenant. Changing this creates a new subnet.
Declaration
public Input<string> TenantId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ValueSpecs
Map of additional options.
Declaration
public InputMap<object> ValueSpecs { get; set; }
Property Value
| Type | Description |
|---|---|
| InputMap<System.Object> |