Add Secured Subnet
A 4-step recipe with Oracle Cloud Infrastructure. We can help you get access.
Recipe · 4 steps
Add Secured Subnet
Resolve a VCN's route table and security list, then create a subnet using them.
- Confirm the VCN exists before creating a subnet in it.
- List the route tables in the VCN and select the first one.
- List the security lists in the VCN and select the first one.
- Create a subnet in the VCN wired to the discovered route table and security list.
What you'll need to have ready
- compartmentId: The OCID of the compartment containing the VCN.
- vcnId: The OCID of the VCN to add the subnet to.
- cidrBlock: The CIDR block for the new subnet (e.g. 10.0.1.0/24).
- displayName: A user-friendly name for the subnet.
- prohibitPublicIpOnVnic: Whether to prohibit public IPs on VNICs in the subnet.
For your developer
Arazzo workflow oracle-cloud:add-secured-subnet, 4 operations: getVcn → listRouteTables → listSecurityLists → createSubnet. Specs on APIs.io.