Cloudpepper Server Info API
The Server Info API from Cloudpepper — 6 operation(s) for server info.
The Server Info API from Cloudpepper — 6 operation(s) for server info.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/cloudpepper-io:cloudpepper-io-server-info-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Cloudpepper Io Server Info API
version: 1.0.0
description: 'Operations tagged Server Info across 2 of this provider''s published API definitions: cloudpepper-io-openapi.json, cloudpepper-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /
- url: https://api.cloudpepper.io
description: Resolved from the published relative server "/" against the host serving the spec (https://api.cloudpepper.io/openapi.json)
security:
- bearerAuth: []
tags:
- name: Server Info
paths:
/servers/{id}/version:
parameters:
- name: id
in: path
description: Server id
required: true
schema:
type: string
get:
tags:
- Server Info
summary: Get Odoo version information
description: 'Retrieves information about the currently installed Odoo version on the server and the latest available version. This endpoint helps you determine if your server is running the most current version of Odoo within your major version. You can use this information to decide whether to update your server.
**Key Parameters:**
- `id`: The unique identifier of the server
**Returns:**
- Current installed Odoo version
- Latest available Odoo version for your major release
**NOTE:** Version information is based on the official Odoo package repository. The ''latest'' version refers to the most recent stable release within your major version (e.g., the latest 16.0 release if you''re running Odoo 16).'
responses:
'200':
description: Version information retrieved successfully
content:
application/json:
schema:
type: object
properties:
current:
type: string
description: Currently installed Odoo version
example: 16.0.20230215
latest:
type: string
description: Latest available Odoo version
example: 16.0.20230301
'404':
description: Server not found
operationId: getServersByIdVersion
x-operation-id-source: derived
servers:
- url: /
/servers/{id}/stats:
parameters:
- name: id
in: path
description: Server id
required: true
schema:
type: string
get:
tags:
- Server Info
summary: Get server statistics
description: 'Retrieves detailed statistics about the server''s performance and resource usage. This endpoint provides comprehensive data about system resources including CPU, memory, disk usage, and database connections. The data comes from the server''s Prometheus monitoring system and can be used for performance analysis, capacity planning, and troubleshooting.
**Key Information Provided:**
- CPU usage and model information
- Memory usage metrics
- Disk space utilization
- Database connections and performance metrics
**NOTE:** This endpoint requires the server to have the Prometheus capability enabled. If the capability is not enabled, the endpoint will return a 403 error.'
responses:
'200':
description: Statistics retrieved successfully
content:
application/json:
schema:
type: object
properties:
cpu:
type: object
description: CPU usage information
disk:
type: object
description: Disk usage information
mem:
type: object
description: Memory usage information
db_backends:
type: object
description: Number of active database connections
db_maxconns:
type: object
description: Maximum allowed database connections
example:
cpu:
result:
value:
- 1675881600
- '15.23'
disk:
node_filesystem_free_bytes:
metric:
mountpoint: /
__name__: node_filesystem_free_bytes
value:
- 1675881600
- '42949672960'
node_filesystem_size_bytes:
metric:
mountpoint: /
__name__: node_filesystem_size_bytes
value:
- 1675881600
- '107374182400'
mem:
node_memory_MemTotal_bytes:
value:
- 1675881600
- '8589934592'
node_memory_MemFree_bytes:
value:
- 1675881600
- '4294967296'
db_backends:
result:
value:
- 1675881600
- '12'
db_maxconns:
result:
value:
- 1675881600
- '100'
'404':
description: Server not found
operationId: getServersByIdStats
x-operation-id-source: derived
servers:
- url: /
/servers/{id}/prometheus:
parameters:
- name: id
in: path
description: Server id
required: true
schema:
type: string
- name: query
in: query
description: Prometheus query string
required: true
schema:
type: string
- name: start
in: query
description: Start timestamp for range query
required: true
schema:
type: integer
format: int64
- name: end
in: query
description: End timestamp for range query
required: true
schema:
type: integer
format: int64
- name: step
in: query
description: Step interval for range query (e.g., '15s', '1m', '1h')
required: true
schema:
type: string
get:
tags:
- Server Info
summary: Query server metrics over time range
description: 'Executes a Prometheus range query to retrieve server metrics over a specified time period. This endpoint allows you to analyze performance trends, generate custom charts, and investigate performance issues by querying specific metrics with custom time ranges. The endpoint acts as a proxy to the server''s Prometheus instance, enabling powerful time-series data analysis.
For detailed information about query syntax, functions, and operators, refer to the Prometheus Query API documentation.
**Key Parameters:**
- `id`: The unique identifier of the server
- `query`: Prometheus query string (e.g., ''node_memory_MemFree_bytes'', ''rate(node_network_receive_bytes_total[5m])'')
- `start`: Unix timestamp for the start of the query range
- `end`: Unix timestamp for the end of the query range
- `step`: Resolution step for the data points (e.g., ''15s'', ''1m'', ''1h'')
**NOTE:** This endpoint requires the server to have the Prometheus capability enabled. Complex queries may take longer to execute, and very large time ranges with small steps may be limited for performance reasons.'
responses:
'200':
description: Query executed successfully
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: success
data:
type: object
properties:
resultType:
type: string
example: matrix
result:
type: array
items:
type: object
example:
status: success
data:
resultType: matrix
result:
- metric:
__name__: node_cpu_seconds_total
cpu: '0'
mode: idle
values:
- - 1675881600
- '3624546.8'
- - 1675881900
- '3624576.81'
- - 1675882200
- '3624606.71'
'400':
description: Invalid query parameters
'403':
description: Access denied or Prometheus capability not enabled
'404':
description: Server not found
operationId: getServersByIdPrometheus
x-operation-id-source: derived
servers:
- url: /
/servers:
get:
tags:
- Server Info
summary: List all servers
description: Retrieves a list of all servers in your account. This endpoint provides an overview of your server infrastructure, including server IDs, names, and status. This is useful for getting a comprehensive view of your server environment or selecting servers for other operations.
responses:
'200':
description: Servers retrieved successfully
content:
application/json:
schema:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the server
name:
type: string
description: Name of the server
status:
type: string
description: Current status of the server
example:
- id: 0196e-7f35-78da-919e-3ebb0afde
name: DigitalOcean 28963963
status: available
- id: 0199a-287e-74d6-8c42-f8d6f184
name: AWS 494450064
status: available
'403':
description: Insufficient permissions (requires admin privileges)
operationId: getServers
x-operation-id-source: derived
post:
tags:
- Server Info
summary: Create a new server
description: 'Creates a new server for hosting Odoo instances. This endpoint provisions a cloud server or sets up a custom SSH server with the necessary infrastructure to run Odoo applications. The server will be prepared with all required system dependencies, security configurations, and monitoring tools.
**Key Parameters:**
- `type`: The cloud provider to use (e.g., ''cloudpepper'', ''digitalocean'', ''vultr'', ''aws'', ''linode'', ''custom'')
- `region`: Datacenter location identifier (varies by provider, not required for custom servers)
- `plan`/`size`/`instanceType`: Server resources specification (name varies by provider, not required for custom servers)
- `config.odoo_version`: Version of Odoo to install (e.g., ''16.0'', ''17.0'')
- `ssh`: SSH configuration object (required only for custom servers)
**Custom SSH Server Requirements:**
- Must be a clean Linux installation (amd64 architecture)
- Supported operating systems:
- Debian 13 Trixie (for Odoo 19.0)
- Debian 12 Bookworm (for Odoo 16.0, 17.0, 18.0)
- Debian 11 Bullseye (for Odoo 13.0, 14.0, 15.0)
- Debian 10 Buster (for Odoo 11.0, 12.0)
- Ubuntu 26.04 LTS (planned for Odoo 20.0)
- Ubuntu 24.04 LTS (for Odoo 18.0, 19.0)
- Ubuntu 22.04 LTS (for Odoo 14.0, 15.0, 16.0, 17.0)
- Ubuntu 20.04 LTS (for Odoo 12.0, 13.0)
- User must have sudo privileges
- SSH access must be available
- User cannot be ''odoo'' (reserved for Odoo installation)
**NOTE:** Server provisioning runs asynchronously. After receiving a 200 response, the server will continue setting up in the background. The process typically takes 5-10 minutes to complete for cloud providers, or 10-15 minutes for custom SSH servers. You can check the server status using the server management endpoints.'
requestBody:
content:
application/json:
schema:
type: object
oneOf:
- properties:
type:
type: string
description: The cloud provider type
enum:
- cloudpepper
region:
type: string
description: Datacenter location identifier
plan:
type: string
description: Server plan identifier specifying CPU, RAM, and disk resources
config:
type: object
properties:
odoo_version:
type: string
description: Version of Odoo to install on the server
required:
- odoo_version
required:
- type
- region
- plan
- config
- properties:
type:
type: string
description: The cloud provider type
enum:
- digitalocean
region:
type: string
description: Datacenter location identifier
size:
type: string
description: Droplet size identifier specifying CPU, RAM, and disk resources
config:
type: object
properties:
odoo_version:
type: string
description: Version of Odoo to install on the server
required:
- odoo_version
required:
- type
- region
- size
- config
- properties:
type:
type: string
description: The cloud provider type
enum:
- vultr
region:
type: string
description: Datacenter location identifier
plan:
type: string
description: Server plan identifier specifying CPU, RAM, and disk resources
config:
type: object
properties:
odoo_version:
type: string
description: Version of Odoo to install on the server
required:
- odoo_version
required:
- type
- region
- plan
- config
- properties:
type:
type: string
description: The cloud provider type
enum:
- linode
region:
type: string
description: Datacenter location identifier
instanceType:
type: string
description: Linode instance type identifier specifying CPU, RAM, and disk resources
config:
type: object
properties:
odoo_version:
type: string
description: Version of Odoo to install on the server
required:
- odoo_version
required:
- type
- region
- instanceType
- config
- properties:
type:
type: string
description: The cloud provider type
enum:
- aws
region:
type: string
description: AWS region identifier
instanceType:
type: string
description: AWS EC2 instance type identifier
volumeSize:
type: integer
description: Storage size in GB
default: 30
enableSwap:
type: boolean
description: Whether to enable swap space
default: true
createElasticIp:
type: boolean
description: Whether to create and assign an Elastic IP
default: true
vpcId:
type:
- string
- 'null'
description: Optional VPC ID to launch the instance in
config:
type: object
properties:
odoo_version:
type: string
description: Version of Odoo to install on the server
required:
- odoo_version
required:
- type
- region
- instanceType
- config
- properties:
type:
type: string
description: Server type for custom SSH servers
enum:
- custom
ssh:
type: object
description: SSH connection configuration for the custom server
properties:
host:
type: string
description: IP address or hostname of the SSH server
example: 192.168.1.100
port:
type: integer
description: SSH port number
default: 22
example: 22
user:
type: string
description: SSH username (cannot be 'odoo' as it's reserved)
example: root
auth_type:
type: string
description: Authentication method for SSH connection
enum:
- password
- key
example: password
password:
type: string
description: SSH password (required when auth_type is 'password')
example: your_secure_password
private_key:
type: string
description: SSH private key content (required when auth_type is 'key')
example: REDACTED_PRIVATE_KEY_EXAMPLE
required:
- host
- user
- auth_type
allOf:
- if:
properties:
auth_type:
const: password
then:
required:
- password
- if:
properties:
auth_type:
const: key
then:
required:
- private_key
config:
type: object
properties:
odoo_version:
type: string
description: Version of Odoo to install on the server. Must be compatible with the server's operating system.
enum:
- '11.0'
- '12.0'
- '13.0'
- '14.0'
- '15.0'
- '16.0'
- '17.0'
- '18.0'
- '19.0'
- '20.0'
example: '17.0'
required:
- odoo_version
required:
- type
- ssh
- config
examples:
cloudpepper:
summary: Cloudpepper server creation
value:
type: cloudpepper
region: fra
plan: vhp-2c-4gb-amd
config:
odoo_version: '17.0'
digitalocean:
summary: DigitalOcean server creation
value:
type: digitalocean
region: ams3
size: s-2vcpu-4gb
config:
odoo_version: '17.0'
vultr:
summary: Vultr server creation
value:
type: vultr
region: fra
plan: vc2-2c-4gb
config:
odoo_version: '17.0'
linode:
summary: Linode server creation
value:
type: linode
region: ap-west
instanceType: g6-standard-1
config:
odoo_version: '17.0'
aws:
summary: AWS server creation
value:
type: aws
region: us-west-2
instanceType: t3.micro
volumeSize: 30
enableSwap: true
vpcId: vpc-0a1b2c3d4e5f6g7h8
config:
odoo_version: '17.0'
custom_password:
summary: Custom SSH server with password authentication
value:
type: custom
ssh:
host: 192.168.1.100
port: 22
user: root
auth_type: password
password: your_secure_password
config:
odoo_version: '17.0'
custom_key:
summary: Custom SSH server with SSH key authentication
value:
type: custom
ssh:
host: 192.168.1.100
port: 22
user: ubuntu
auth_type: key
private_key: REDACTED_PRIVATE_KEY_EXAMPLE
config:
odoo_version: '17.0'
required: true
parameters:
- name: venv
in: query
description: Whether to use a virtual environment for Odoo
required: false
schema:
type: string
enum:
- 'true'
- 'false'
default: 'false'
responses:
'200':
description: Server creation initiated successfully
content:
application/json:
schema:
type: object
properties:
id:
type: string
format: uuid
description: Unique identifier for the newly created server
example:
Server id: 550e8400-e29b-41d4-a716-446655440000
'400':
description: Invalid request data or payment processing issue
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Error message describing the issue
example:
error: Unable to process your payment, please contact Cloudpepper support.
'403':
description: Insufficient permissions to create servers
security:
- bearerAuth: []
operationId: postServers
x-operation-id-source: derived
servers:
- url: /
/servers/{id}/update:
parameters:
- name: id
in: path
description: Server id
required: true
schema:
type: string
post:
tags:
- Server Info
summary: Update Odoo on server
description: 'Initiates an update of the Odoo installation on the server. This endpoint triggers the update process for the core Odoo system, applying any available security patches, bug fixes, or feature updates from the official Odoo repository. This helps ensure your server is running the latest stable version of Odoo within your chosen major version.
**Key Parameters:**
- `id`: The unique identifier of the server to update
**NOTE:** The update process runs asynchronously and may take several minutes to complete. During this time, your Odoo instances on the server will remain accessible, but some administrative operations might be temporarily unavailable. It''s recommended to schedule updates during low-traffic periods.'
responses:
'200':
description: Update process initiated successfully
'403':
description: Insufficient permissions
'404':
description: Server not found
operationId: postServersByIdUpdate
x-operation-id-source: derived
servers:
- url: /
/servers/{id}:
parameters:
- name: id
in: path
description: Server id
required: true
schema:
type: string
patch:
tags:
- Server Info
summary: Update server settings
description: 'Updates server settings such as the server name, features, and configuration options. This endpoint allows you to modify server properties after it has been created. Changes are applied immediately to the server configuration.
**Key Parameters:**
- `id`: The unique identifier of the server to update
- `name`: Optional new name for the server
- `features.autoUpdate.enabled`: Optional boolean to enable/disable automatic updates to server
- `features.geoIP.enabled`: Optional boolean to enable/disable GeoIP functionality
**NOTE:** Only the fields you specify in the request body will be updated. Other server properties will remain unchanged.'
requestBody:
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: New name for the server
example: Production Server - Updated
features:
type: object
description: Server features configuration
properties:
autoUpdate:
type: object
properties:
enabled:
type: boolean
description: Enable or disable automatic updates for the server
example: true
geoIP:
type: object
properties:
enabled:
type: boolean
description: Enable or disable GeoIP functionality on the server
example: true
examples:
Update server name:
value:
name: My Production Server
Enable auto-update:
value:
features:
autoUpdate:
enabled: true
Enable GeoIP:
value:
features:
geoIP:
enabled: true
Update multiple settings:
value:
name: Updated Production Server
features:
autoUpdate:
enabled: true
geoIP:
enabled: false
required: true
responses:
'200':
description: Server updated successfully
'400':
description: Invalid request data
'403':
description: Insufficient permissions
security:
- bearerAuth: []
operationId: patchServersById
x-operation-id-source: derived
delete:
parameters:
- name: force
in: query
description: Force deletion even if server is not reachable
required: false
schema:
type: boolean
tags:
- Server Info
summary: Delete server
description: 'Permanently deletes a server from your account. When deleting a server normally, the system will initiate a clean deletion process that removes all associated resources. If the `force` parameter is used, the system will directly remove the server from the database without attempting to clean up resources, which is useful when a server is no longer reachable but still appears in your account.
**Key Parameters:**
- `id`: The unique identifier of the server to delete
- `force`: Optional boolean flag to force deletion even if the server is not reachable
**NOTE:** This is a permanent operation and cannot be undone. All instances on the server will be deleted as well. Use the force parameter with caution, as it bypasses normal cleanup procedures and may leave orphaned resources.'
responses:
'204':
description: Server deleted successfully
'400':
description: Invalid request - force parameter used but last heartbeat not available
'404':
description: Server not found
operationId: deleteServersById
x-operation-id-source: derived
servers:
- url: /
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
x-refined-from:
- cloudpepper-io-openapi.json
- cloudpepper-io-openapi.yml