Skip to content

Network / Reference

Network reference

Updated · 4 min read

Where to find every origin network CLI command and every GraphQL query and mutation in the network namespace of the API.

On this page4 sections

Network has two reference surfaces: the origin network CLI commands and the network namespace of the GraphQL API. Both cover the same resources. For concepts and procedures, start at What is Origin Cloud Network?.

CLI commands

origin network commands lists every command with its flags. For options that apply to every command, see Global options.

GraphQL queries

All queries are fields of network on the root query type. For how to call the API, see API access.

QueryReturns
vpcsEvery VPC in a project.
vpcOne VPC by URN.
subnetsEvery subnet in a project.
subnetOne subnet by URN.
networkInterfacesEvery network interface in a project.
networkInterfaceOne network interface by URN.
internetGatewayA VPC’s Internet Gateway, if it has one.
routeTablesEvery route table in a project.
routeTableOne route table by URN.
natGatewaysEvery NAT gateway in a project.
floatingIpsEvery Floating IP in a project.
floatingIpOne Floating IP by URN.
aclsEvery network ACL in a project.
aclOne network ACL by URN.
securityGroupsEvery security group in a project.
securityGroupOne security group by URN.
dnsPoliciesEvery DNS policy in a project.
dnsPolicyOne DNS policy by URN.

GraphQL mutations

All mutations are fields of network on the root mutation type.

MutationDoes
createVpcCreates a VPC with its first subnet, main route table, default ACL and default security group.
deleteVpcDeletes a VPC and everything it owns.
createSubnetAdds a subnet to a VPC.
deleteSubnetDeletes a subnet.
updateSubnetAclAssigns a network ACL to a subnet.
updateSubnetAutoAssignPublicIpTurns automatic Floating IPs for a subnet on or off.
createNetworkInterfaceCreates a standalone network interface in a subnet.
deleteNetworkInterfaceDeletes a standalone network interface.
attachInternetGatewayAttaches an Internet Gateway to a VPC.
detachInternetGatewayDetaches a VPC’s Internet Gateway.
createRouteTableCreates an additional route table in a VPC.
updateRouteTableRoutesReplaces a route table’s routes.
associateRouteTablePoints a subnet at a route table.
deleteRouteTableDeletes a route table.
createNatGatewayCreates a NAT gateway in a public subnet.
deleteNatGatewayDeletes a NAT gateway.
allocateFloatingIpAllocates a Floating IP to a project.
associateFloatingIpAssociates a Floating IP with a network interface.
disassociateFloatingIpRemoves a Floating IP’s association.
releaseFloatingIpReleases a Floating IP.
createAclCreates an additional network ACL in a VPC.
updateAclRulesReplaces a network ACL’s rules.
deleteAclDeletes a network ACL.
createSecurityGroupCreates an additional security group, optionally with initial rules.
updateSecurityGroupRulesReplaces a security group’s ingress and egress rules.
deleteSecurityGroupDeletes a security group.
createDnsPolicyCreates a DNS policy in a project.
updateDnsPolicyReplaces a DNS policy’s relaying setting and upstream servers.
attachDnsPolicyAttaches a DNS policy to a VPC.
setDefaultDnsPolicyMakes a DNS policy the project’s default.
deleteDnsPolicyDeletes a DNS policy.

Errors and limits