Skip to main content

CreateSubnetBody

Type Alias CreateSubnetBody 

Source
pub type CreateSubnetBody = SubnetCreateRequestInput;

Aliased Type§

pub struct CreateSubnetBody {
    pub vpc: String,
    pub name: String,
    pub description: Option<String>,
    pub cidr_ipv4: String,
    pub gateway_ipv4: Option<Nullable<String>>,
    pub route_table: Option<String>,
    pub allocate_cidr_ipv6: Option<bool>,
    pub cidr_ipv6: Option<Nullable<String>>,
    pub tags: Option<BTreeMap<String, String>>,
}

Fields§

§vpc: String

VPC UUID, CRN or exact name in the caller account.

§name: String

Resource names must not start with the literal crn: prefix or be UUIDs (canonical, compact, braced, or urn:uuid: forms, in either case).

§description: Option<String>§cidr_ipv4: String§gateway_ipv4: Option<Nullable<String>>

Defaults to the first usable host in the CIDR

§route_table: Option<String>

Route-table UUID, nested CRN or exact name within the subnet VPC. On PATCH the owned path subnet supplies the VPC. Omission on create selects the default table; an empty reference is invalid.

§allocate_cidr_ipv6: Option<bool>

Allocate a free /64 from the VPC IPv6 range. Can be enabled after creation. Every existing and new interface receives an IPv6 /96 and its first /128 automatically. NAT gateways hosted here also receive a public IPv6 address from the regional pool. Updating hosted gateways requires UpdateNATGateway permission and public IPv6 quota.

§cidr_ipv6: Option<Nullable<String>>

An aligned /64 inside the VPC IPv6 range. Can be added later; cannot replace an existing range. Mutually exclusive with allocate_cidr_ipv6.

§tags: Option<BTreeMap<String, String>>