Overview
The Xloud Networking API provides full programmatic control over virtual network resources — networks, subnets, routers, ports, security groups, floating IPs, and QoS policies. The API uses a RESTful design with JSON bodies and project-scoped resource isolation.Prerequisites
- A valid project-scoped token from the Identity API
- Base URL:
https://api.<your-domain>/networking/v2.0 - Network resources are project-isolated by default — shared resources are admin-managed
Key Endpoints
| Resource | Method | Endpoint | Description |
|---|---|---|---|
| List networks | GET | /networks | List networks visible to the project |
| Create network | POST | /networks | Create a new tenant network |
| Get network | GET | /networks/{id} | Get network details |
| Delete network | DELETE | /networks/{id} | Delete a network |
| List subnets | GET | /subnets | List subnets in the project |
| Create subnet | POST | /subnets | Create a subnet on a network |
| List routers | GET | /routers | List routers in the project |
| Create router | POST | /routers | Create a new router |
| Add interface | PUT | /routers/{id}/add_router_interface | Attach subnet to router |
| Remove interface | PUT | /routers/{id}/remove_router_interface | Detach subnet from router |
| List ports | GET | /ports | List all ports |
| Create port | POST | /ports | Create a network port |
| List security groups | GET | /security-groups | List security groups |
| Create security group | POST | /security-groups | Create a security group |
| Add SG rule | POST | /security-group-rules | Add a rule to a security group |
| List floating IPs | GET | /floatingips | List floating IP allocations |
| Create floating IP | POST | /floatingips | Allocate a floating IP |
| Associate floating IP | PUT | /floatingips/{id} | Associate with a port |
| List QoS policies | GET | /qos/policies | List QoS policies (admin) |
| Create QoS policy | POST | /qos/policies | Create a QoS policy (admin) |
Create a Network and Subnet
Routers
- Create Router
- Attach Subnet
- Remove Subnet
Create a router with external gateway
Security Groups
Create a security group
Allow SSH inbound (TCP 22)
Allow HTTPS inbound (TCP 443)
| Parameter | Values | Description |
|---|---|---|
direction | ingress, egress | Traffic direction |
protocol | tcp, udp, icmp, null | IP protocol |
port_range_min | 1–65535 | Start of port range |
port_range_max | 1–65535 | End of port range |
remote_ip_prefix | CIDR e.g. 10.0.0.0/8 | Source or destination IP range |
remote_group_id | Security group ID | Allow traffic from another group |
Floating IPs
Allocate a floating IP from external network
Associate floating IP with a port
Disassociate floating IP (keep allocated)
Release floating IP back to the pool
Ports
Network ID to create the port on.
Display name for the port.
List of objects specifying
subnet_id and optionally a specific ip_address.List of security group IDs to apply to this port.
Create a port with specific IP
Network Resource Status
| Status | Meaning |
|---|---|
ACTIVE | Resource is operational |
DOWN | Resource exists but is not passing traffic |
BUILD | Resource is being provisioned |
ERROR | Provisioning or operation failed |
Next Steps
Compute API
Launch instances connected to the networks you create
Network QoS
Apply bandwidth limits and DSCP marking via the QoS API
Identity API
Manage project membership and resource access
Automation
Script full network topology provisioning end-to-end