VPC
[BETA] Configure VPC subnets and attach instances to them
create-subnet
[BETA] Create a Subnet
POST /vpc/{vpc-id}/subnetPath parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
address-space | string | yes | Subnet address space Allowed values: private. |
addressfamily | string | yes | Subnet address family Allowed values: inet4. |
name | string | yes | Subnet name Min length: 1. Max length: 255. |
description | string | no | Subnet description Max length: 4096. |
ipv4-block | string | no | Subnet ipv4 CIDR |
labels | object | no | Resource labels |
Example
{
"address-space": "private",
"addressfamily": "inet4",
"description": "string",
"ipv4-block": "string",
"labels": {},
"name": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID Must be a valid UUID. |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | Reference | Related resource reference |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}SDK reference for create-subnet: golang | Python | Java
CLI: exo api create-subnet
get-subnet
[BETA] Retrieve Subnet details
GET /vpc/{vpc-id}/subnet/{id}Path parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
id | path | Must be a valid UUID. |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
address-space | string | Subnet address space Allowed values: private. |
addressfamily | string | Subnet address family Allowed values: inet4, dual. |
created-at | string | Subnet creation date ISO 8601 date-time. |
description | string | Subnet description Max length: 4096. |
id | string | Subnet ID Must be a valid UUID. |
instances | array of Instances | Instances attached to the subnet |
ipv4-block | string | Subnet ipv4 CIDR |
labels | object | Resource labels |
name | string | Subnet name Min length: 1. Max length: 255. |
Example output
{
"address-space": "private",
"addressfamily": "inet4",
"created-at": "2024-01-01T12:00:00Z",
"description": "string",
"id": "string",
"instances": [
{
"id": "string",
"ipv4": "string",
"name": "string"
}
],
"ipv4-block": "string",
"labels": {},
"name": "string"
}SDK reference for get-subnet: golang | Python | Java
CLI: exo api get-subnet
update-subnet
[BETA] Update a Subnet
PUT /vpc/{vpc-id}/subnet/{id}Path parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
id | path | Must be a valid UUID. |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
description | string | no | Subnet description Max length: 4096. |
labels | object | no | Resource labels |
name | string | no | Subnet name Min length: 1. Max length: 255. |
Example
{
"description": "string",
"labels": {},
"name": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
address-space | string | Subnet address space Allowed values: private. |
addressfamily | string | Subnet address family Allowed values: inet4, dual. |
created-at | string | Subnet creation date ISO 8601 date-time. |
description | string | Subnet description Max length: 4096. |
id | string | Subnet ID Must be a valid UUID. |
instances | array of Instances | Instances attached to the subnet |
ipv4-block | string | Subnet ipv4 CIDR |
labels | object | Resource labels |
name | string | Subnet name Min length: 1. Max length: 255. |
Example output
{
"address-space": "private",
"addressfamily": "inet4",
"created-at": "2024-01-01T12:00:00Z",
"description": "string",
"id": "string",
"instances": [
{
"id": "string",
"ipv4": "string",
"name": "string"
}
],
"ipv4-block": "string",
"labels": {},
"name": "string"
}SDK reference for update-subnet: golang | Python | Java
CLI: exo api update-subnet
delete-subnet
[BETA] Delete a Subnet
DELETE /vpc/{vpc-id}/subnet/{id}Path parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
id | path | Must be a valid UUID. |
Responses
Status: 200 - 200
Content-Type: application/json
Example output
{}SDK reference for delete-subnet: golang | Python | Java
CLI: exo api delete-subnet
Other Operations
detach-instance-from-subnet
[BETA] Detach a Compute instance from a Subnet
PUT /vpc/{vpc-id}/subnet/{subnet-id}/detachPath parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
subnet-id | path | Must be a valid UUID. |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
instance | Target Instance | yes | Compute instance |
Example
{
"instance": {
"id": "string"
}
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID Must be a valid UUID. |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | Reference | Related resource reference |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}SDK reference for detach-instance-from-subnet: golang | Python | Java
CLI: exo api detach-instance-from-subnet
attach-instance-to-subnet
[BETA] Attach a Compute instance to a Subnet
PUT /vpc/{vpc-id}/subnet/{subnet-id}/attachPath parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
subnet-id | path | Must be a valid UUID. |
Request body
Content-Type: application/json
| Property | Type | Required | Description |
|---|---|---|---|
instance | Target Instance | yes | Compute instance |
ipv4 | string | no | Instance IPv4 Must be a valid IPv4 address. |
Example
{
"instance": {
"id": "string"
},
"ipv4": "string"
}Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
id | string | Operation ID Must be a valid UUID. |
message | string | Operation message |
reason | string | Operation failure reason Allowed values: incorrect, unknown, unavailable, forbidden, busy, fault, partial, not-found, interrupted, unsupported, conflict. |
reference | Reference | Related resource reference |
state | string | Operation status Allowed values: failure, pending, success, timeout. |
Example output
{
"id": "string",
"message": "string",
"reason": "incorrect",
"reference": {
"command": "string",
"id": "string",
"link": "string"
},
"state": "failure"
}SDK reference for attach-instance-to-subnet: golang | Python | Java
CLI: exo api attach-instance-to-subnet
list-subnets
[BETA] List Subnets
GET /vpc/{vpc-id}/subnetPath parameters
| Name | In | Description |
|---|---|---|
vpc-id | path | Must be a valid UUID. |
Responses
Status: 200 - 200
Content-Type: application/json
| Property | Type | Description |
|---|---|---|
subnets | array of Subnet |
Example output
{
"subnets": [
{
"address-space": "private",
"addressfamily": "inet4",
"created-at": "2024-01-01T12:00:00Z",
"description": "string",
"id": "string",
"ipv4-block": "string",
"labels": {},
"name": "string"
}
]
}SDK reference for list-subnets: golang | Python | Java
CLI: exo api list-subnets