1. Packages
  2. Ibm Provider
  3. API Docs
  4. Subnet
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.Subnet

Explore with Pulumi AI

Create Subnet Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Subnet(name: string, args: SubnetArgs, opts?: CustomResourceOptions);
@overload
def Subnet(resource_name: str,
           args: SubnetArgs,
           opts: Optional[ResourceOptions] = None)

@overload
def Subnet(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           capacity: Optional[float] = None,
           type: Optional[str] = None,
           endpoint_ip: Optional[str] = None,
           ip_version: Optional[float] = None,
           notes: Optional[str] = None,
           private: Optional[bool] = None,
           subnet_id: Optional[str] = None,
           tags: Optional[Sequence[str]] = None,
           timeouts: Optional[SubnetTimeoutsArgs] = None,
           vlan_id: Optional[float] = None)
func NewSubnet(ctx *Context, name string, args SubnetArgs, opts ...ResourceOption) (*Subnet, error)
public Subnet(string name, SubnetArgs args, CustomResourceOptions? opts = null)
public Subnet(String name, SubnetArgs args)
public Subnet(String name, SubnetArgs args, CustomResourceOptions options)
type: ibm:Subnet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SubnetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SubnetArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SubnetArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SubnetArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SubnetArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var subnetResource = new Ibm.Subnet("subnetResource", new()
{
    Capacity = 0,
    Type = "string",
    EndpointIp = "string",
    IpVersion = 0,
    Notes = "string",
    Private = false,
    SubnetId = "string",
    Tags = new[]
    {
        "string",
    },
    Timeouts = new Ibm.Inputs.SubnetTimeoutsArgs
    {
        Create = "string",
    },
    VlanId = 0,
});
Copy
example, err := ibm.NewSubnet(ctx, "subnetResource", &ibm.SubnetArgs{
Capacity: pulumi.Float64(0),
Type: pulumi.String("string"),
EndpointIp: pulumi.String("string"),
IpVersion: pulumi.Float64(0),
Notes: pulumi.String("string"),
Private: pulumi.Bool(false),
SubnetId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &.SubnetTimeoutsArgs{
Create: pulumi.String("string"),
},
VlanId: pulumi.Float64(0),
})
Copy
var subnetResource = new Subnet("subnetResource", SubnetArgs.builder()
    .capacity(0)
    .type("string")
    .endpointIp("string")
    .ipVersion(0)
    .notes("string")
    .private_(false)
    .subnetId("string")
    .tags("string")
    .timeouts(SubnetTimeoutsArgs.builder()
        .create("string")
        .build())
    .vlanId(0)
    .build());
Copy
subnet_resource = ibm.Subnet("subnetResource",
    capacity=0,
    type="string",
    endpoint_ip="string",
    ip_version=0,
    notes="string",
    private=False,
    subnet_id="string",
    tags=["string"],
    timeouts={
        "create": "string",
    },
    vlan_id=0)
Copy
const subnetResource = new ibm.Subnet("subnetResource", {
    capacity: 0,
    type: "string",
    endpointIp: "string",
    ipVersion: 0,
    notes: "string",
    "private": false,
    subnetId: "string",
    tags: ["string"],
    timeouts: {
        create: "string",
    },
    vlanId: 0,
});
Copy
type: ibm:Subnet
properties:
    capacity: 0
    endpointIp: string
    ipVersion: 0
    notes: string
    private: false
    subnetId: string
    tags:
        - string
    timeouts:
        create: string
    type: string
    vlanId: 0
Copy

Subnet Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Subnet resource accepts the following input properties:

Capacity This property is required. double
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
Type This property is required. string
The type of the subnet. Accepted values are portable and static.
EndpointIp string
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
IpVersion double
The IP version of the subnet. Accepted values are 4 and 6.
Notes string
Descriptive text or comments about the subnet.
Private bool
Specifies whether the network is public or private.
SubnetId string
(String) The unique identifier of the subnet.
Tags List<string>
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
Timeouts SubnetTimeouts
VlanId double
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
Capacity This property is required. float64
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
Type This property is required. string
The type of the subnet. Accepted values are portable and static.
EndpointIp string
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
IpVersion float64
The IP version of the subnet. Accepted values are 4 and 6.
Notes string
Descriptive text or comments about the subnet.
Private bool
Specifies whether the network is public or private.
SubnetId string
(String) The unique identifier of the subnet.
Tags []string
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
Timeouts SubnetTimeoutsArgs
VlanId float64
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
capacity This property is required. Double
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
type This property is required. String
The type of the subnet. Accepted values are portable and static.
endpointIp String
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
ipVersion Double
The IP version of the subnet. Accepted values are 4 and 6.
notes String
Descriptive text or comments about the subnet.
private_ Boolean
Specifies whether the network is public or private.
subnetId String
(String) The unique identifier of the subnet.
tags List<String>
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
timeouts SubnetTimeouts
vlanId Double
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
capacity This property is required. number
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
type This property is required. string
The type of the subnet. Accepted values are portable and static.
endpointIp string
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
ipVersion number
The IP version of the subnet. Accepted values are 4 and 6.
notes string
Descriptive text or comments about the subnet.
private boolean
Specifies whether the network is public or private.
subnetId string
(String) The unique identifier of the subnet.
tags string[]
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
timeouts SubnetTimeouts
vlanId number
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
capacity This property is required. float
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
type This property is required. str
The type of the subnet. Accepted values are portable and static.
endpoint_ip str
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
ip_version float
The IP version of the subnet. Accepted values are 4 and 6.
notes str
Descriptive text or comments about the subnet.
private bool
Specifies whether the network is public or private.
subnet_id str
(String) The unique identifier of the subnet.
tags Sequence[str]
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
timeouts SubnetTimeoutsArgs
vlan_id float
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
capacity This property is required. Number
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
type This property is required. String
The type of the subnet. Accepted values are portable and static.
endpointIp String
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
ipVersion Number
The IP version of the subnet. Accepted values are 4 and 6.
notes String
Descriptive text or comments about the subnet.
private Boolean
Specifies whether the network is public or private.
subnetId String
(String) The unique identifier of the subnet.
tags List<String>
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
timeouts Property Map
vlanId Number
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.

Outputs

All input properties are implicitly available as output properties. Additionally, the Subnet resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
SubnetCidr string
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
Id string
The provider-assigned unique ID for this managed resource.
SubnetCidr string
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
id String
The provider-assigned unique ID for this managed resource.
subnetCidr String
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
id string
The provider-assigned unique ID for this managed resource.
subnetCidr string
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
id str
The provider-assigned unique ID for this managed resource.
subnet_cidr str
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
id String
The provider-assigned unique ID for this managed resource.
subnetCidr String
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.

Look up Existing Subnet Resource

Get an existing Subnet 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?: SubnetState, opts?: CustomResourceOptions): Subnet
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        capacity: Optional[float] = None,
        endpoint_ip: Optional[str] = None,
        ip_version: Optional[float] = None,
        notes: Optional[str] = None,
        private: Optional[bool] = None,
        subnet_cidr: Optional[str] = None,
        subnet_id: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        timeouts: Optional[SubnetTimeoutsArgs] = None,
        type: Optional[str] = None,
        vlan_id: Optional[float] = None) -> Subnet
func GetSubnet(ctx *Context, name string, id IDInput, state *SubnetState, opts ...ResourceOption) (*Subnet, error)
public static Subnet Get(string name, Input<string> id, SubnetState? state, CustomResourceOptions? opts = null)
public static Subnet get(String name, Output<String> id, SubnetState state, CustomResourceOptions options)
resources:  _:    type: ibm:Subnet    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Capacity double
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
EndpointIp string
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
IpVersion double
The IP version of the subnet. Accepted values are 4 and 6.
Notes string
Descriptive text or comments about the subnet.
Private bool
Specifies whether the network is public or private.
SubnetCidr string
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
SubnetId string
(String) The unique identifier of the subnet.
Tags List<string>
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
Timeouts SubnetTimeouts
Type string
The type of the subnet. Accepted values are portable and static.
VlanId double
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
Capacity float64
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
EndpointIp string
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
IpVersion float64
The IP version of the subnet. Accepted values are 4 and 6.
Notes string
Descriptive text or comments about the subnet.
Private bool
Specifies whether the network is public or private.
SubnetCidr string
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
SubnetId string
(String) The unique identifier of the subnet.
Tags []string
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
Timeouts SubnetTimeoutsArgs
Type string
The type of the subnet. Accepted values are portable and static.
VlanId float64
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
capacity Double
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
endpointIp String
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
ipVersion Double
The IP version of the subnet. Accepted values are 4 and 6.
notes String
Descriptive text or comments about the subnet.
private_ Boolean
Specifies whether the network is public or private.
subnetCidr String
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
subnetId String
(String) The unique identifier of the subnet.
tags List<String>
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
timeouts SubnetTimeouts
type String
The type of the subnet. Accepted values are portable and static.
vlanId Double
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
capacity number
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
endpointIp string
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
ipVersion number
The IP version of the subnet. Accepted values are 4 and 6.
notes string
Descriptive text or comments about the subnet.
private boolean
Specifies whether the network is public or private.
subnetCidr string
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
subnetId string
(String) The unique identifier of the subnet.
tags string[]
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
timeouts SubnetTimeouts
type string
The type of the subnet. Accepted values are portable and static.
vlanId number
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
capacity float
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
endpoint_ip str
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
ip_version float
The IP version of the subnet. Accepted values are 4 and 6.
notes str
Descriptive text or comments about the subnet.
private bool
Specifies whether the network is public or private.
subnet_cidr str
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
subnet_id str
(String) The unique identifier of the subnet.
tags Sequence[str]
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
timeouts SubnetTimeoutsArgs
type str
The type of the subnet. Accepted values are portable and static.
vlan_id float
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.
capacity Number
The size of the subnet. Accepted values for a public portable IPv4 subnet are 4, 8, 16, and 32. Accepted values for a private portable IPv4 subnet are 4, 8, 16, 32, and 64. Accepted values for a public static IPv4 subnet are 1, 2, 4, 8, 16, and 32. Accepted value for a public portable IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided. Accepted value for a public static IPv6 subnet is 64. A /64 block is created and 2^64 IP addresses are provided..
endpointIp String
The target primary IP address for a static subnet. Only public IP addresses of virtual servers, Bare Metal servers, and NetscalerVPXs can be configured as an endpoint_ip. The static subnet will be created on the VLAN where the endpoint_ip is located.
ipVersion Number
The IP version of the subnet. Accepted values are 4 and 6.
notes String
Descriptive text or comments about the subnet.
private Boolean
Specifies whether the network is public or private.
subnetCidr String
(String) The IP address / CIDR format (For example, 10.10.10.10/28), which you can use to get an available IP address in subnet.
subnetId String
(String) The unique identifier of the subnet.
tags List<String>
Tags associated with the subnet instance. Note Tags are managed locally and not stored on the IBM Cloud Service Endpoint at this moment.
timeouts Property Map
type String
The type of the subnet. Accepted values are portable and static.
vlanId Number
The VLAN ID for portable subnet. You can configure both public and private VLAN ID. You can find accepted values in the SoftLayer VLAN documentation by clicking the VLAN that you want and noting the ID in the resulting URL. You can also refer to a ibm.NetworkVlan data source.

Supporting Types

SubnetTimeouts
, SubnetTimeoutsArgs

Create string
Create string
create String
create string
create str
create String

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.