hostinger-api-sdk 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +2333 -1289
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1701 -1059
- package/dist/api.js +1739 -976
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +1701 -1059
- package/dist/esm/api.js +1728 -969
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BillingCatalogApi.md +64 -0
- package/docs/BillingOrdersApi.md +63 -0
- package/docs/BillingPaymentMethodsApi.md +162 -0
- package/docs/BillingSubscriptionsApi.md +113 -0
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +32 -0
- package/docs/BillingV1CatalogCatalogItemResource.md +28 -0
- package/docs/BillingV1OrderOrderBillingAddressResource.md +40 -0
- package/docs/BillingV1OrderOrderResource.md +36 -0
- package/docs/BillingV1OrderStoreRequest.md +24 -0
- package/docs/BillingV1OrderStoreRequestItemsInner.md +22 -0
- package/docs/BillingV1OrderVirtualMachineOrderResource.md +22 -0
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
- package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
- package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
- package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
- package/docs/CommonSuccessEmptyResource.md +20 -0
- package/docs/DNSSnapshotApi.md +175 -0
- package/docs/DNSV1SnapshotSnapshotResource.md +24 -0
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +26 -0
- package/docs/DNSV1ZoneDestroyRequest.md +20 -0
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +22 -0
- package/docs/DNSV1ZoneNameRecordResource.md +22 -0
- package/docs/DNSV1ZoneRecordResource.md +26 -0
- package/docs/DNSV1ZoneResetRequest.md +24 -0
- package/docs/DNSV1ZoneUpdateRequest.md +22 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +26 -0
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +20 -0
- package/docs/DNSZoneApi.md +297 -0
- package/docs/DomainsAvailabilityApi.md +63 -0
- package/docs/DomainsForwardingApi.md +171 -0
- package/docs/DomainsPortfolioApi.md +439 -0
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +24 -0
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +26 -0
- package/docs/DomainsV1DomainDomainExtendedResource.md +48 -0
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +27 -0
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +23 -0
- package/docs/DomainsV1DomainDomainResource.md +30 -0
- package/docs/DomainsV1ForwardingForwardingResource.md +28 -0
- package/docs/DomainsV1ForwardingStoreRequest.md +24 -0
- package/docs/DomainsV1PortfolioPurchaseRequest.md +30 -0
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +27 -0
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +26 -0
- package/docs/DomainsV1WHOISProfileResource.md +34 -0
- package/docs/DomainsV1WHOISStoreRequest.md +28 -0
- package/docs/DomainsWHOISApi.md +279 -0
- package/docs/InlineObject.md +22 -0
- package/docs/InlineObject1.md +22 -0
- package/docs/InlineObject2.md +24 -0
- package/docs/InlineObject2Errors.md +23 -0
- package/docs/VPSActionsApi.md +121 -0
- package/docs/VPSBackupsApi.md +121 -0
- package/docs/VPSDataCentersApi.md +54 -0
- package/docs/VPSDockerManagerApi.md +585 -0
- package/docs/VPSFirewallApi.md +577 -0
- package/docs/VPSGetActionsV1200Response.md +22 -0
- package/docs/VPSGetBackupsV1200Response.md +22 -0
- package/docs/VPSGetFirewallListV1200Response.md +22 -0
- package/docs/VPSGetPostInstallScriptsV1200Response.md +22 -0
- package/docs/VPSGetPublicKeysV1200Response.md +22 -0
- package/docs/VPSMalwareScannerApi.md +172 -0
- package/docs/VPSOSTemplatesApi.md +108 -0
- package/docs/VPSPTRRecordsApi.md +126 -0
- package/docs/VPSPostInstallScriptsApi.md +284 -0
- package/docs/VPSPublicKeysApi.md +230 -0
- package/docs/VPSRecoveryApi.md +120 -0
- package/docs/VPSSnapshotsApi.md +223 -0
- package/docs/VPSV1ActionActionResource.md +28 -0
- package/docs/VPSV1BackupBackupResource.md +24 -0
- package/docs/VPSV1DataCenterDataCenterResource.md +28 -0
- package/docs/VPSV1DockerManagerContainerPortResource.md +36 -0
- package/docs/VPSV1DockerManagerContainerResource.md +34 -0
- package/docs/VPSV1DockerManagerContainerStatsResource.md +30 -0
- package/docs/VPSV1DockerManagerContentResource.md +20 -0
- package/docs/VPSV1DockerManagerLogEntryResource.md +22 -0
- package/docs/VPSV1DockerManagerLogsResource.md +22 -0
- package/docs/VPSV1DockerManagerProjectResource.md +26 -0
- package/docs/VPSV1FirewallFirewallResource.md +30 -0
- package/docs/VPSV1FirewallFirewallRuleResource.md +30 -0
- package/docs/VPSV1FirewallRulesStoreRequest.md +26 -0
- package/docs/VPSV1FirewallStoreRequest.md +20 -0
- package/docs/VPSV1IPAddressIPAddressResource.md +24 -0
- package/docs/VPSV1MalwareMetricsResource.md +30 -0
- package/docs/VPSV1MetricsMetricsCollection.md +30 -0
- package/docs/VPSV1MetricsMetricsResource.md +22 -0
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +28 -0
- package/docs/VPSV1PostInstallScriptStoreRequest.md +22 -0
- package/docs/VPSV1PublicKeyAttachRequest.md +20 -0
- package/docs/VPSV1PublicKeyPublicKeyResource.md +24 -0
- package/docs/VPSV1PublicKeyStoreRequest.md +22 -0
- package/docs/VPSV1SnapshotSnapshotResource.md +24 -0
- package/docs/VPSV1TemplateTemplateResource.md +26 -0
- package/docs/VPSV1VirtualMachineDockerManagerUpRequest.md +22 -0
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineMetricGetRequest.md +22 -0
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +24 -0
- package/docs/VPSV1VirtualMachinePTRStoreRequest.md +20 -0
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachinePurchaseRequest.md +26 -0
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecreateRequest.md +26 -0
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +23 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
- package/docs/VPSVirtualMachineApi.md +852 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,585 @@
|
|
|
1
|
+
# VPSDockerManagerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createNewProjectV1**](#createnewprojectv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/docker | Create new project|
|
|
8
|
+
|[**deleteProjectV1**](#deleteprojectv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/down | Delete project|
|
|
9
|
+
|[**getProjectContainersV1**](#getprojectcontainersv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/containers | Get project containers|
|
|
10
|
+
|[**getProjectContentsV1**](#getprojectcontentsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName} | Get project contents|
|
|
11
|
+
|[**getProjectListV1**](#getprojectlistv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/docker | Get project list|
|
|
12
|
+
|[**getProjectLogsV1**](#getprojectlogsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/logs | Get project logs|
|
|
13
|
+
|[**restartProjectV1**](#restartprojectv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/restart | Restart project|
|
|
14
|
+
|[**startProjectV1**](#startprojectv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/start | Start project|
|
|
15
|
+
|[**stopProjectV1**](#stopprojectv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/stop | Stop project|
|
|
16
|
+
|[**updateProjectV1**](#updateprojectv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/update | Update project|
|
|
17
|
+
|
|
18
|
+
# **createNewProjectV1**
|
|
19
|
+
> VPSV1ActionActionResource createNewProjectV1(vPSV1VirtualMachineDockerManagerUpRequest)
|
|
20
|
+
|
|
21
|
+
Deploy new project from docker-compose.yaml contents or download contents from URL. URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents. If project already exists, it will be replaced.
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import {
|
|
27
|
+
VPSDockerManagerApi,
|
|
28
|
+
Configuration,
|
|
29
|
+
VPSV1VirtualMachineDockerManagerUpRequest
|
|
30
|
+
} from 'hostinger-api-sdk';
|
|
31
|
+
|
|
32
|
+
const configuration = new Configuration();
|
|
33
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
34
|
+
|
|
35
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
36
|
+
let vPSV1VirtualMachineDockerManagerUpRequest: VPSV1VirtualMachineDockerManagerUpRequest; //
|
|
37
|
+
|
|
38
|
+
const { status, data } = await apiInstance.createNewProjectV1(
|
|
39
|
+
virtualMachineId,
|
|
40
|
+
vPSV1VirtualMachineDockerManagerUpRequest
|
|
41
|
+
);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
|Name | Type | Description | Notes|
|
|
47
|
+
|------------- | ------------- | ------------- | -------------|
|
|
48
|
+
| **vPSV1VirtualMachineDockerManagerUpRequest** | **VPSV1VirtualMachineDockerManagerUpRequest**| | |
|
|
49
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Return type
|
|
53
|
+
|
|
54
|
+
**VPSV1ActionActionResource**
|
|
55
|
+
|
|
56
|
+
### Authorization
|
|
57
|
+
|
|
58
|
+
[apiToken](../README.md#apiToken)
|
|
59
|
+
|
|
60
|
+
### HTTP request headers
|
|
61
|
+
|
|
62
|
+
- **Content-Type**: application/json
|
|
63
|
+
- **Accept**: application/json
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### HTTP response details
|
|
67
|
+
| Status code | Description | Response headers |
|
|
68
|
+
|-------------|-------------|------------------|
|
|
69
|
+
|**200** | Success response | - |
|
|
70
|
+
|**422** | Validation error response | - |
|
|
71
|
+
|**401** | Unauthenticated response | - |
|
|
72
|
+
|**500** | Error response | - |
|
|
73
|
+
|
|
74
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
75
|
+
|
|
76
|
+
# **deleteProjectV1**
|
|
77
|
+
> VPSV1ActionActionResource deleteProjectV1()
|
|
78
|
+
|
|
79
|
+
Completely removes a Docker Compose project from the virtual machine, stopping all containers and cleaning up associated resources including networks, volumes, and images. This operation is irreversible and will delete all project data. Use this when you want to permanently remove a project and free up system resources.
|
|
80
|
+
|
|
81
|
+
### Example
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import {
|
|
85
|
+
VPSDockerManagerApi,
|
|
86
|
+
Configuration
|
|
87
|
+
} from 'hostinger-api-sdk';
|
|
88
|
+
|
|
89
|
+
const configuration = new Configuration();
|
|
90
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
91
|
+
|
|
92
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
93
|
+
let projectName: string; //Docker Compose project name using alphanumeric characters, dashes, and underscores only (default to undefined)
|
|
94
|
+
|
|
95
|
+
const { status, data } = await apiInstance.deleteProjectV1(
|
|
96
|
+
virtualMachineId,
|
|
97
|
+
projectName
|
|
98
|
+
);
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Parameters
|
|
102
|
+
|
|
103
|
+
|Name | Type | Description | Notes|
|
|
104
|
+
|------------- | ------------- | ------------- | -------------|
|
|
105
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
106
|
+
| **projectName** | [**string**] | Docker Compose project name using alphanumeric characters, dashes, and underscores only | defaults to undefined|
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### Return type
|
|
110
|
+
|
|
111
|
+
**VPSV1ActionActionResource**
|
|
112
|
+
|
|
113
|
+
### Authorization
|
|
114
|
+
|
|
115
|
+
[apiToken](../README.md#apiToken)
|
|
116
|
+
|
|
117
|
+
### HTTP request headers
|
|
118
|
+
|
|
119
|
+
- **Content-Type**: Not defined
|
|
120
|
+
- **Accept**: application/json
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### HTTP response details
|
|
124
|
+
| Status code | Description | Response headers |
|
|
125
|
+
|-------------|-------------|------------------|
|
|
126
|
+
|**200** | Success response | - |
|
|
127
|
+
|**422** | Validation error response | - |
|
|
128
|
+
|**401** | Unauthenticated response | - |
|
|
129
|
+
|**500** | Error response | - |
|
|
130
|
+
|
|
131
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
132
|
+
|
|
133
|
+
# **getProjectContainersV1**
|
|
134
|
+
> Array<VPSV1DockerManagerContainerResource> getProjectContainersV1()
|
|
135
|
+
|
|
136
|
+
Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration. Use this to monitor the health and state of all services within your Docker Compose project.
|
|
137
|
+
|
|
138
|
+
### Example
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
import {
|
|
142
|
+
VPSDockerManagerApi,
|
|
143
|
+
Configuration
|
|
144
|
+
} from 'hostinger-api-sdk';
|
|
145
|
+
|
|
146
|
+
const configuration = new Configuration();
|
|
147
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
148
|
+
|
|
149
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
150
|
+
let projectName: string; //Docker Compose project name using alphanumeric characters, dashes, and underscores only (default to undefined)
|
|
151
|
+
|
|
152
|
+
const { status, data } = await apiInstance.getProjectContainersV1(
|
|
153
|
+
virtualMachineId,
|
|
154
|
+
projectName
|
|
155
|
+
);
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Parameters
|
|
159
|
+
|
|
160
|
+
|Name | Type | Description | Notes|
|
|
161
|
+
|------------- | ------------- | ------------- | -------------|
|
|
162
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
163
|
+
| **projectName** | [**string**] | Docker Compose project name using alphanumeric characters, dashes, and underscores only | defaults to undefined|
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Return type
|
|
167
|
+
|
|
168
|
+
**Array<VPSV1DockerManagerContainerResource>**
|
|
169
|
+
|
|
170
|
+
### Authorization
|
|
171
|
+
|
|
172
|
+
[apiToken](../README.md#apiToken)
|
|
173
|
+
|
|
174
|
+
### HTTP request headers
|
|
175
|
+
|
|
176
|
+
- **Content-Type**: Not defined
|
|
177
|
+
- **Accept**: application/json
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### HTTP response details
|
|
181
|
+
| Status code | Description | Response headers |
|
|
182
|
+
|-------------|-------------|------------------|
|
|
183
|
+
|**200** | Success response | - |
|
|
184
|
+
|**422** | Validation error response | - |
|
|
185
|
+
|**401** | Unauthenticated response | - |
|
|
186
|
+
|**500** | Error response | - |
|
|
187
|
+
|
|
188
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
189
|
+
|
|
190
|
+
# **getProjectContentsV1**
|
|
191
|
+
> VPSV1DockerManagerContentResource getProjectContentsV1()
|
|
192
|
+
|
|
193
|
+
Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status. This endpoint provides the full configuration and state details of a specific Docker Compose project. Use this to inspect project settings, review the compose file, or check the overall project health.
|
|
194
|
+
|
|
195
|
+
### Example
|
|
196
|
+
|
|
197
|
+
```typescript
|
|
198
|
+
import {
|
|
199
|
+
VPSDockerManagerApi,
|
|
200
|
+
Configuration
|
|
201
|
+
} from 'hostinger-api-sdk';
|
|
202
|
+
|
|
203
|
+
const configuration = new Configuration();
|
|
204
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
205
|
+
|
|
206
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
207
|
+
let projectName: string; //Docker Compose project name using alphanumeric characters, dashes, and underscores only (default to undefined)
|
|
208
|
+
|
|
209
|
+
const { status, data } = await apiInstance.getProjectContentsV1(
|
|
210
|
+
virtualMachineId,
|
|
211
|
+
projectName
|
|
212
|
+
);
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Parameters
|
|
216
|
+
|
|
217
|
+
|Name | Type | Description | Notes|
|
|
218
|
+
|------------- | ------------- | ------------- | -------------|
|
|
219
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
220
|
+
| **projectName** | [**string**] | Docker Compose project name using alphanumeric characters, dashes, and underscores only | defaults to undefined|
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
**VPSV1DockerManagerContentResource**
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[apiToken](../README.md#apiToken)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: Not defined
|
|
234
|
+
- **Accept**: application/json
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
### HTTP response details
|
|
238
|
+
| Status code | Description | Response headers |
|
|
239
|
+
|-------------|-------------|------------------|
|
|
240
|
+
|**200** | Success response | - |
|
|
241
|
+
|**422** | Validation error response | - |
|
|
242
|
+
|**401** | Unauthenticated response | - |
|
|
243
|
+
|**500** | Error response | - |
|
|
244
|
+
|
|
245
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
246
|
+
|
|
247
|
+
# **getProjectListV1**
|
|
248
|
+
> Array<VPSV1DockerManagerProjectResource> getProjectListV1()
|
|
249
|
+
|
|
250
|
+
Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. This endpoint returns basic information about each project including name, status, and file path. Use this to get an overview of all Docker projects on your VPS instance.
|
|
251
|
+
|
|
252
|
+
### Example
|
|
253
|
+
|
|
254
|
+
```typescript
|
|
255
|
+
import {
|
|
256
|
+
VPSDockerManagerApi,
|
|
257
|
+
Configuration
|
|
258
|
+
} from 'hostinger-api-sdk';
|
|
259
|
+
|
|
260
|
+
const configuration = new Configuration();
|
|
261
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
262
|
+
|
|
263
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
264
|
+
|
|
265
|
+
const { status, data } = await apiInstance.getProjectListV1(
|
|
266
|
+
virtualMachineId
|
|
267
|
+
);
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Parameters
|
|
271
|
+
|
|
272
|
+
|Name | Type | Description | Notes|
|
|
273
|
+
|------------- | ------------- | ------------- | -------------|
|
|
274
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### Return type
|
|
278
|
+
|
|
279
|
+
**Array<VPSV1DockerManagerProjectResource>**
|
|
280
|
+
|
|
281
|
+
### Authorization
|
|
282
|
+
|
|
283
|
+
[apiToken](../README.md#apiToken)
|
|
284
|
+
|
|
285
|
+
### HTTP request headers
|
|
286
|
+
|
|
287
|
+
- **Content-Type**: Not defined
|
|
288
|
+
- **Accept**: application/json
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
### HTTP response details
|
|
292
|
+
| Status code | Description | Response headers |
|
|
293
|
+
|-------------|-------------|------------------|
|
|
294
|
+
|**200** | Success response | - |
|
|
295
|
+
|**422** | Validation error response | - |
|
|
296
|
+
|**401** | Unauthenticated response | - |
|
|
297
|
+
|**500** | Error response | - |
|
|
298
|
+
|
|
299
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
300
|
+
|
|
301
|
+
# **getProjectLogsV1**
|
|
302
|
+
> Array<VPSV1DockerManagerLogsResource> getProjectLogsV1()
|
|
303
|
+
|
|
304
|
+
Retrieves aggregated log entries from all services within a Docker Compose project. This endpoint returns recent log output from each container, organized by service name with timestamps. The response contains the last 300 log entries across all services. Use this for debugging, monitoring application behavior, and troubleshooting issues across your entire project stack.
|
|
305
|
+
|
|
306
|
+
### Example
|
|
307
|
+
|
|
308
|
+
```typescript
|
|
309
|
+
import {
|
|
310
|
+
VPSDockerManagerApi,
|
|
311
|
+
Configuration
|
|
312
|
+
} from 'hostinger-api-sdk';
|
|
313
|
+
|
|
314
|
+
const configuration = new Configuration();
|
|
315
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
316
|
+
|
|
317
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
318
|
+
let projectName: string; //Docker Compose project name using alphanumeric characters, dashes, and underscores only (default to undefined)
|
|
319
|
+
|
|
320
|
+
const { status, data } = await apiInstance.getProjectLogsV1(
|
|
321
|
+
virtualMachineId,
|
|
322
|
+
projectName
|
|
323
|
+
);
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
### Parameters
|
|
327
|
+
|
|
328
|
+
|Name | Type | Description | Notes|
|
|
329
|
+
|------------- | ------------- | ------------- | -------------|
|
|
330
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
331
|
+
| **projectName** | [**string**] | Docker Compose project name using alphanumeric characters, dashes, and underscores only | defaults to undefined|
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
### Return type
|
|
335
|
+
|
|
336
|
+
**Array<VPSV1DockerManagerLogsResource>**
|
|
337
|
+
|
|
338
|
+
### Authorization
|
|
339
|
+
|
|
340
|
+
[apiToken](../README.md#apiToken)
|
|
341
|
+
|
|
342
|
+
### HTTP request headers
|
|
343
|
+
|
|
344
|
+
- **Content-Type**: Not defined
|
|
345
|
+
- **Accept**: application/json
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
### HTTP response details
|
|
349
|
+
| Status code | Description | Response headers |
|
|
350
|
+
|-------------|-------------|------------------|
|
|
351
|
+
|**200** | Success response | - |
|
|
352
|
+
|**422** | Validation error response | - |
|
|
353
|
+
|**401** | Unauthenticated response | - |
|
|
354
|
+
|**500** | Error response | - |
|
|
355
|
+
|
|
356
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
357
|
+
|
|
358
|
+
# **restartProjectV1**
|
|
359
|
+
> VPSV1ActionActionResource restartProjectV1()
|
|
360
|
+
|
|
361
|
+
Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order. This operation preserves data volumes and network configurations while refreshing the running containers. Use this to apply configuration changes or recover from service failures.
|
|
362
|
+
|
|
363
|
+
### Example
|
|
364
|
+
|
|
365
|
+
```typescript
|
|
366
|
+
import {
|
|
367
|
+
VPSDockerManagerApi,
|
|
368
|
+
Configuration
|
|
369
|
+
} from 'hostinger-api-sdk';
|
|
370
|
+
|
|
371
|
+
const configuration = new Configuration();
|
|
372
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
373
|
+
|
|
374
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
375
|
+
let projectName: string; //Docker Compose project name using alphanumeric characters, dashes, and underscores only (default to undefined)
|
|
376
|
+
|
|
377
|
+
const { status, data } = await apiInstance.restartProjectV1(
|
|
378
|
+
virtualMachineId,
|
|
379
|
+
projectName
|
|
380
|
+
);
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Parameters
|
|
384
|
+
|
|
385
|
+
|Name | Type | Description | Notes|
|
|
386
|
+
|------------- | ------------- | ------------- | -------------|
|
|
387
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
388
|
+
| **projectName** | [**string**] | Docker Compose project name using alphanumeric characters, dashes, and underscores only | defaults to undefined|
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
### Return type
|
|
392
|
+
|
|
393
|
+
**VPSV1ActionActionResource**
|
|
394
|
+
|
|
395
|
+
### Authorization
|
|
396
|
+
|
|
397
|
+
[apiToken](../README.md#apiToken)
|
|
398
|
+
|
|
399
|
+
### HTTP request headers
|
|
400
|
+
|
|
401
|
+
- **Content-Type**: Not defined
|
|
402
|
+
- **Accept**: application/json
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
### HTTP response details
|
|
406
|
+
| Status code | Description | Response headers |
|
|
407
|
+
|-------------|-------------|------------------|
|
|
408
|
+
|**200** | Success response | - |
|
|
409
|
+
|**422** | Validation error response | - |
|
|
410
|
+
|**401** | Unauthenticated response | - |
|
|
411
|
+
|**500** | Error response | - |
|
|
412
|
+
|
|
413
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
414
|
+
|
|
415
|
+
# **startProjectV1**
|
|
416
|
+
> VPSV1ActionActionResource startProjectV1()
|
|
417
|
+
|
|
418
|
+
Starts all services in a Docker Compose project that are currently stopped. This operation brings up containers in the correct dependency order as defined in the compose file. Use this to resume a project that was previously stopped or to start services after a system reboot.
|
|
419
|
+
|
|
420
|
+
### Example
|
|
421
|
+
|
|
422
|
+
```typescript
|
|
423
|
+
import {
|
|
424
|
+
VPSDockerManagerApi,
|
|
425
|
+
Configuration
|
|
426
|
+
} from 'hostinger-api-sdk';
|
|
427
|
+
|
|
428
|
+
const configuration = new Configuration();
|
|
429
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
430
|
+
|
|
431
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
432
|
+
let projectName: string; //Docker Compose project name using alphanumeric characters, dashes, and underscores only (default to undefined)
|
|
433
|
+
|
|
434
|
+
const { status, data } = await apiInstance.startProjectV1(
|
|
435
|
+
virtualMachineId,
|
|
436
|
+
projectName
|
|
437
|
+
);
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
### Parameters
|
|
441
|
+
|
|
442
|
+
|Name | Type | Description | Notes|
|
|
443
|
+
|------------- | ------------- | ------------- | -------------|
|
|
444
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
445
|
+
| **projectName** | [**string**] | Docker Compose project name using alphanumeric characters, dashes, and underscores only | defaults to undefined|
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
### Return type
|
|
449
|
+
|
|
450
|
+
**VPSV1ActionActionResource**
|
|
451
|
+
|
|
452
|
+
### Authorization
|
|
453
|
+
|
|
454
|
+
[apiToken](../README.md#apiToken)
|
|
455
|
+
|
|
456
|
+
### HTTP request headers
|
|
457
|
+
|
|
458
|
+
- **Content-Type**: Not defined
|
|
459
|
+
- **Accept**: application/json
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
### HTTP response details
|
|
463
|
+
| Status code | Description | Response headers |
|
|
464
|
+
|-------------|-------------|------------------|
|
|
465
|
+
|**200** | Success response | - |
|
|
466
|
+
|**422** | Validation error response | - |
|
|
467
|
+
|**401** | Unauthenticated response | - |
|
|
468
|
+
|**500** | Error response | - |
|
|
469
|
+
|
|
470
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
471
|
+
|
|
472
|
+
# **stopProjectV1**
|
|
473
|
+
> VPSV1ActionActionResource stopProjectV1()
|
|
474
|
+
|
|
475
|
+
Stops all running services in a Docker Compose project while preserving container configurations and data volumes. This operation gracefully shuts down containers in reverse dependency order. Use this to temporarily halt a project without removing data or configurations.
|
|
476
|
+
|
|
477
|
+
### Example
|
|
478
|
+
|
|
479
|
+
```typescript
|
|
480
|
+
import {
|
|
481
|
+
VPSDockerManagerApi,
|
|
482
|
+
Configuration
|
|
483
|
+
} from 'hostinger-api-sdk';
|
|
484
|
+
|
|
485
|
+
const configuration = new Configuration();
|
|
486
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
487
|
+
|
|
488
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
489
|
+
let projectName: string; //Docker Compose project name using alphanumeric characters, dashes, and underscores only (default to undefined)
|
|
490
|
+
|
|
491
|
+
const { status, data } = await apiInstance.stopProjectV1(
|
|
492
|
+
virtualMachineId,
|
|
493
|
+
projectName
|
|
494
|
+
);
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
### Parameters
|
|
498
|
+
|
|
499
|
+
|Name | Type | Description | Notes|
|
|
500
|
+
|------------- | ------------- | ------------- | -------------|
|
|
501
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
502
|
+
| **projectName** | [**string**] | Docker Compose project name using alphanumeric characters, dashes, and underscores only | defaults to undefined|
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
### Return type
|
|
506
|
+
|
|
507
|
+
**VPSV1ActionActionResource**
|
|
508
|
+
|
|
509
|
+
### Authorization
|
|
510
|
+
|
|
511
|
+
[apiToken](../README.md#apiToken)
|
|
512
|
+
|
|
513
|
+
### HTTP request headers
|
|
514
|
+
|
|
515
|
+
- **Content-Type**: Not defined
|
|
516
|
+
- **Accept**: application/json
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
### HTTP response details
|
|
520
|
+
| Status code | Description | Response headers |
|
|
521
|
+
|-------------|-------------|------------------|
|
|
522
|
+
|**200** | Success response | - |
|
|
523
|
+
|**422** | Validation error response | - |
|
|
524
|
+
|**401** | Unauthenticated response | - |
|
|
525
|
+
|**500** | Error response | - |
|
|
526
|
+
|
|
527
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
528
|
+
|
|
529
|
+
# **updateProjectV1**
|
|
530
|
+
> VPSV1ActionActionResource updateProjectV1()
|
|
531
|
+
|
|
532
|
+
Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations. This operation preserves data volumes while applying changes from the compose file. Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.
|
|
533
|
+
|
|
534
|
+
### Example
|
|
535
|
+
|
|
536
|
+
```typescript
|
|
537
|
+
import {
|
|
538
|
+
VPSDockerManagerApi,
|
|
539
|
+
Configuration
|
|
540
|
+
} from 'hostinger-api-sdk';
|
|
541
|
+
|
|
542
|
+
const configuration = new Configuration();
|
|
543
|
+
const apiInstance = new VPSDockerManagerApi(configuration);
|
|
544
|
+
|
|
545
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
546
|
+
let projectName: string; //Docker Compose project name using alphanumeric characters, dashes, and underscores only (default to undefined)
|
|
547
|
+
|
|
548
|
+
const { status, data } = await apiInstance.updateProjectV1(
|
|
549
|
+
virtualMachineId,
|
|
550
|
+
projectName
|
|
551
|
+
);
|
|
552
|
+
```
|
|
553
|
+
|
|
554
|
+
### Parameters
|
|
555
|
+
|
|
556
|
+
|Name | Type | Description | Notes|
|
|
557
|
+
|------------- | ------------- | ------------- | -------------|
|
|
558
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
559
|
+
| **projectName** | [**string**] | Docker Compose project name using alphanumeric characters, dashes, and underscores only | defaults to undefined|
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
### Return type
|
|
563
|
+
|
|
564
|
+
**VPSV1ActionActionResource**
|
|
565
|
+
|
|
566
|
+
### Authorization
|
|
567
|
+
|
|
568
|
+
[apiToken](../README.md#apiToken)
|
|
569
|
+
|
|
570
|
+
### HTTP request headers
|
|
571
|
+
|
|
572
|
+
- **Content-Type**: Not defined
|
|
573
|
+
- **Accept**: application/json
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
### HTTP response details
|
|
577
|
+
| Status code | Description | Response headers |
|
|
578
|
+
|-------------|-------------|------------------|
|
|
579
|
+
|**200** | Success response | - |
|
|
580
|
+
|**422** | Validation error response | - |
|
|
581
|
+
|**401** | Unauthenticated response | - |
|
|
582
|
+
|**500** | Error response | - |
|
|
583
|
+
|
|
584
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
585
|
+
|