oauth2
OAuth2 Authentication
| Security Scheme Type | OAuth2 |
|---|---|
| clientCredentials OAuth Flow | access - Access Control products - Products Control service - Service Control |
POST /api/v2/test-connection
AUTHORIZATIONS: oauth2 (access)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
GET /api/v2/version
AUTHORIZATIONS: oauth2 (access)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
GET /api/v2/products
AUTHORIZATIONS: oauth2 (products)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
GET /api/v2/product/{product_uuid}/plans
AUTHORIZATIONS: oauth2 (products)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /v2/service/create-order
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
| product_id | string | Remote product UUID | Required |
| domain_name | string | Domain name | Required |
| template_id | string | OS template UUID | Required |
| cpu | int | vCores amount | Required |
| ram | int | GB of RAM amount | Required |
| hdd | int | GB of hard drive amount | Required |
| ip | int | IP amount | Required |
| backup | int | GB of backup space amount | Required |
POST /api/v2/service/{service_id}/create
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/terminate
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/suspend
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
| suspend_reason | string | Suspend reason | Optional |
POST /api/v2/service/{service_id}/unsuspend
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/upgrade
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
| CPU | int | vCores amount | Required |
| RAM | int | GB of RAM amount | Required |
| HDD | int | GB of hard drive amount | Required |
| IP | int | IP amount | Required |
| BACKUP | int | GB of backup space amount | Required |
POST /api/v2/service/{service_id}/start
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/stop
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/restart
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/reset-password
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
| password | string | New VM password | Required |
GET /api/v2/service/{service_id}/details
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
GET /api/v2/service/{service_id}/status
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
GET /api/v2/service/{service_id}/jobs
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
GET /api/v2/service/{service_id}/backups
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/backup/create
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/backup/restore/{backup_id}
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/backup/delete/{backup_id}
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
GET /api/v2/service/{service_id}/backup-schedule
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
POST /api/v2/service/{service_id}/backup-schedule/create
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|---|---|---|
| BsTime | string | Backup creation time format(24h 00:00) | Required |
| BSDays | string | Backup creation day format(coma separated string "mon,tue,wed,thu,fri,sat,sun") | Required |
POST /api/v2/service/{service_id}/backup-schedule/delete/{backup_schedule_id}
AUTHORIZATIONS: oauth2 (service)
| Key | Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer {YOUR_ACCESS_TOKEN} |
| Parameter | Type | Description | Required |
|---|