capabilities.work

Provision VCN Network

A 4-step recipe with Oracle Cloud Infrastructure. We can help you get access.

Recipe · 4 steps

Provision VCN Network

Create a VCN, wait for AVAILABLE, add an internet gateway, and a subnet.

  1. Create a new virtual cloud network with the supplied CIDR block.
  2. Poll the VCN until it reports the AVAILABLE lifecycle state.
  3. Create an enabled internet gateway for the new VCN.
  4. Create a public subnet within the VCN.
What you'll need to have ready
  • compartmentId: The OCID of the compartment to provision the network in.
  • vcnCidrBlock: The CIDR block for the VCN (e.g. 10.0.0.0/16).
  • subnetCidrBlock: The CIDR block for the subnet (e.g. 10.0.0.0/24).
  • vcnDisplayName: A user-friendly name for the VCN.
  • dnsLabel: A DNS label for the VCN.
  • subnetDisplayName: A user-friendly name for the subnet.
For your developer

Arazzo workflow oracle-cloud:provision-vcn-network, 4 operations: createVcn → getVcn → createInternetGateway → createSubnet. Specs on APIs.io.