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 string
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SubnetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
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: &ibm.SubnetTimeoutsArgs{
Create: pulumi.String("string"),
},
VlanId: pulumi.Float64(0),
})
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());
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)
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,
});
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
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 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 string
- The type of the subnet. Accepted values are
portable
andstatic
. - Endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - Ip
Version 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.
- Subnet
Id string - (String) The unique identifier of the subnet.
- 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
Subnet
Timeouts - Vlan
Id 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..
- Type string
- The type of the subnet. Accepted values are
portable
andstatic
. - Endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - Ip
Version 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.
- Subnet
Id string - (String) The unique identifier of the subnet.
- []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
Subnet
Timeouts Args - Vlan
Id 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..
- type String
- The type of the subnet. Accepted values are
portable
andstatic
. - endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - ip
Version 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.
- subnet
Id String - (String) The unique identifier of the subnet.
- 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
Subnet
Timeouts - vlan
Id 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..
- type string
- The type of the subnet. Accepted values are
portable
andstatic
. - endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - ip
Version 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.
- subnet
Id string - (String) The unique identifier of the subnet.
- 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
Subnet
Timeouts - vlan
Id 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..
- type str
- The type of the subnet. Accepted values are
portable
andstatic
. - 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_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.
- 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
Subnet
Timeouts Args - 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..
- type String
- The type of the subnet. Accepted values are
portable
andstatic
. - endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - ip
Version 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.
- subnet
Id String - (String) The unique identifier of the subnet.
- 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
- vlan
Id 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.
- Subnet
Cidr 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.
- Subnet
Cidr 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.
- subnet
Cidr 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.
- subnet
Cidr 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.
- subnet
Cidr 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
- 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.
- 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.
- 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..
- Endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - Ip
Version 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.
- Subnet
Cidr 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
. - Subnet
Id string - (String) The unique identifier of the subnet.
- 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
Subnet
Timeouts - Type string
- The type of the subnet. Accepted values are
portable
andstatic
. - Vlan
Id 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..
- Endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - Ip
Version 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.
- Subnet
Cidr 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
. - Subnet
Id string - (String) The unique identifier of the subnet.
- []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
Subnet
Timeouts Args - Type string
- The type of the subnet. Accepted values are
portable
andstatic
. - Vlan
Id 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..
- endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - ip
Version 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.
- subnet
Cidr 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
. - subnet
Id String - (String) The unique identifier of the subnet.
- 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
Subnet
Timeouts - type String
- The type of the subnet. Accepted values are
portable
andstatic
. - vlan
Id 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..
- endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - ip
Version 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.
- subnet
Cidr 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
. - subnet
Id string - (String) The unique identifier of the subnet.
- 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
Subnet
Timeouts - type string
- The type of the subnet. Accepted values are
portable
andstatic
. - vlan
Id 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_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.
- 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
Subnet
Timeouts Args - type str
- The type of the subnet. Accepted values are
portable
andstatic
. - 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..
- endpoint
Ip 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 anendpoint_ip
. Thestatic subnet
will be created on the VLAN where theendpoint_ip
is located. - ip
Version 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.
- subnet
Cidr 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
. - subnet
Id String - (String) The unique identifier of the subnet.
- 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
andstatic
. - vlan
Id 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.