Private Subnet
Disconnect private subnet from another private subnet
API Documentation
Project
Firewall
- GETReturn the list of firewalls in the project
- POSTCreate a new firewall
- GETGet details of a specific firewall
- DELDelete a specific firewall
- GETReturn the list of firewalls in the project and location
- GETGet details of a specific firewall
- POSTCreate a new firewall
- DELDelete a specific firewall
- POSTAttach a subnet to firewall
- POSTDetach a subnet from firewall
Firewall Rule
Load Balancer
- GETList Load Balancers in a specific project
- GETGet details of a specific Load Balancer
- POSTCreate a new Load Balancer in a project
- GETList Load Balancers in a specific location of a project
- GETGet details of a specific Load Balancer in a location
- POSTCreate a new Load Balancer in a specific location of a project
- DELDelete a specific Load Balancer
- PATCHUpdate a Load Balancer in a specific location of a project
- POSTAttach a VM to a Load Balancer in a specific location of a project
- POSTDetach a VM from a Load Balancer in a specific location of a project
Postgres Database
- GETList Postgres Databases in a specific location of a project
- GETGet details of a specific Postgres database in a location
- POSTCreate a new Postgres Database in a specific location of a project
- DELDelete a specific Postgres Database
- PATCHUpdate a Postgres Database in a specific location of a project
- GETDownload CA certificates for a specific Postgres Database in a location with name
- POSTReset superuser password of the Postgres database
- POSTRestart a specific Postgres Database
- POSTRestore a new Postgres database in a specific location of a project
- POSTSet maintenance window for the Postgres database
- GETList visible Postgres Databases
Postgres Metric Destination
Postgres Firewall Rule
Private Subnet
- GETList Private Subnets in a specific location of a project
- GETGet details of a specific Private Subnet in a location
- POSTCreate a new Private Subnet in a specific location of a project
- DELDelete a specific Private Subnet
- POSTConnect private subnet to another private subnet
- POSTDisconnect private subnet from another private subnet
- GETList visible Private Subnets
Virtual Machine
Private Subnet
Disconnect private subnet from another private subnet
POST
/
project
/
{project_id}
/
location
/
{location}
/
private-subnet
/
{private_subnet_name}
/
disconnect
/
{private_subnet_id}
Copy
curl --request POST \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/private-subnet/{private_subnet_name}/disconnect/{private_subnet_id} \
--header 'Authorization: Bearer <token>'
Copy
{
"firewalls": [
{
"description": "<string>",
"firewall_rules": [
{
"cidr": "<string>",
"id": "fraz0q3vbrpa7pkg7zbmah9csn",
"port_range": "<string>"
}
],
"id": "fwfg7td83em22qfw9pq5xyfqb7",
"location": "<string>",
"name": "<string>"
}
],
"id": "ps3dngttwvje2kmr2sn8x12x4r",
"location": "<string>",
"name": "<string>",
"net4": "<string>",
"net6": "<string>",
"nics": [
{
"id": "<string>",
"name": "<string>",
"private_ipv4": "127.0.0.1",
"private_ipv6": "2606:4700:3108::ac42:2835",
"vm_name": "<string>"
}
],
"state": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the project
Example:
"pjkkmx0f2vke4h36nk9cm8v8q0"
The Ubicloud location/region
Example:
"eu-central-h1"
Private subnet name
ID of the private subnet
Example:
"pskkmx0f2vke4h36nk9cm8v8q0"
Response
200
application/json
A Private Subnet
Description of the firewall
ID of the firewall
Example:
"fwfg7td83em22qfw9pq5xyfqb7"
Location of the the firewall
Name of the firewall
ID of the subnet
Example:
"ps3dngttwvje2kmr2sn8x12x4r"
Location of the subnet
Name of the subnet
IPv4 CIDR of the subnet
IPv6 CIDR of the subnet
State of the subnet
Copy
curl --request POST \
--url https://api.ubicloud.com/project/{project_id}/location/{location}/private-subnet/{private_subnet_name}/disconnect/{private_subnet_id} \
--header 'Authorization: Bearer <token>'
Copy
{
"firewalls": [
{
"description": "<string>",
"firewall_rules": [
{
"cidr": "<string>",
"id": "fraz0q3vbrpa7pkg7zbmah9csn",
"port_range": "<string>"
}
],
"id": "fwfg7td83em22qfw9pq5xyfqb7",
"location": "<string>",
"name": "<string>"
}
],
"id": "ps3dngttwvje2kmr2sn8x12x4r",
"location": "<string>",
"name": "<string>",
"net4": "<string>",
"net6": "<string>",
"nics": [
{
"id": "<string>",
"name": "<string>",
"private_ipv4": "127.0.0.1",
"private_ipv6": "2606:4700:3108::ac42:2835",
"vm_name": "<string>"
}
],
"state": "<string>"
}