Class SubnetArgs


  • public final class SubnetArgs
    extends com.pulumi.resources.ResourceArgs
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SubnetArgs.Builder  
      • Nested classes/interfaces inherited from class com.pulumi.resources.InputArgs

        com.pulumi.resources.InputArgs.InputArgsInternal
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static SubnetArgs Empty  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.Optional<com.pulumi.core.Output<java.util.List<SubnetAllocationPoolArgs>>> allocationPools()  
      java.util.Optional<com.pulumi.core.Output<java.util.List<SubnetAllocationPoolsCollectionArgs>>> allocationPoolsCollection()
      Deprecated.
      use allocation_pool instead
      static SubnetArgs.Builder builder()  
      static SubnetArgs.Builder builder​(SubnetArgs defaults)  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> cidr()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()  
      java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> dnsNameservers()  
      java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> enableDhcp()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> gatewayIp()  
      java.util.Optional<com.pulumi.core.Output<java.util.List<SubnetHostRouteArgs>>> hostRoutes()
      Deprecated.
      Use openstack_networking_subnet_route_v2 instead
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> ipv6AddressMode()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> ipv6RaMode()  
      java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> ipVersion()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()  
      com.pulumi.core.Output<java.lang.String> networkId()  
      java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> noGateway()  
      java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> prefixLength()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()  
      java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> serviceTypes()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> subnetpoolId()  
      java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> tags()  
      java.util.Optional<com.pulumi.core.Output<java.lang.String>> tenantId()  
      java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>>> valueSpecs()  
      • Methods inherited from class com.pulumi.resources.ResourceArgs

        validateMember
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • allocationPools

        public java.util.Optional<com.pulumi.core.Output<java.util.List<SubnetAllocationPoolArgs>>> allocationPools()
        Returns:
        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.
      • allocationPoolsCollection

        @Deprecated
        public java.util.Optional<com.pulumi.core.Output<java.util.List<SubnetAllocationPoolsCollectionArgs>>> allocationPoolsCollection()
        Deprecated.
        use allocation_pool instead
        Returns:
        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.
      • cidr

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> cidr()
        Returns:
        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.
      • description

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> description()
        Returns:
        Human-readable description of the subnet. Changing this updates the name of the existing subnet.
      • dnsNameservers

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> dnsNameservers()
        Returns:
        An array of DNS name server names used by hosts in this subnet. Changing this updates the DNS name servers for the existing subnet.
      • enableDhcp

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> enableDhcp()
        Returns:
        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.
      • gatewayIp

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> gatewayIp()
        Returns:
        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.
      • hostRoutes

        @Deprecated
        public java.util.Optional<com.pulumi.core.Output<java.util.List<SubnetHostRouteArgs>>> hostRoutes()
        Deprecated.
        Use openstack_networking_subnet_route_v2 instead
        Returns:
        (**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.
      • ipVersion

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> ipVersion()
        Returns:
        IP version, either 4 (default) or 6. Changing this creates a new subnet.
      • ipv6AddressMode

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> ipv6AddressMode()
        Returns:
        The IPv6 address mode. Valid values are `dhcpv6-stateful`, `dhcpv6-stateless`, or `slaac`.
      • ipv6RaMode

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> ipv6RaMode()
        Returns:
        The IPv6 Router Advertisement mode. Valid values are `dhcpv6-stateful`, `dhcpv6-stateless`, or `slaac`.
      • name

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> name()
        Returns:
        The name of the subnet. Changing this updates the name of the existing subnet.
      • networkId

        public com.pulumi.core.Output<java.lang.String> networkId()
        Returns:
        The UUID of the parent network. Changing this creates a new subnet.
      • noGateway

        public java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>> noGateway()
        Returns:
        Do not set a gateway IP on this subnet. Changing this removes or adds a default gateway IP of the existing subnet.
      • prefixLength

        public java.util.Optional<com.pulumi.core.Output<java.lang.Integer>> prefixLength()
        Returns:
        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.
      • region

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> region()
        Returns:
        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.
      • serviceTypes

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> serviceTypes()
        Returns:
        An array of service types used by the subnet. Changing this updates the service types for the existing subnet.
      • subnetpoolId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> subnetpoolId()
        Returns:
        The ID of the subnetpool associated with the subnet.
      • tags

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> tags()
        Returns:
        A set of string tags for the subnet.
      • tenantId

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> tenantId()
        Returns:
        The owner of the subnet. Required if admin wants to create a subnet for another tenant. Changing this creates a new subnet.
      • valueSpecs

        public java.util.Optional<com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.Object>>> valueSpecs()
        Returns:
        Map of additional options.