hostinger-api-sdk 0.0.10 → 0.0.12
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 +386 -148
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +319 -143
- package/dist/api.js +139 -41
- 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 +319 -143
- package/dist/esm/api.js +136 -38
- 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/index.ts +1 -1
- package/package.json +1 -1
- package/docs/BillingCatalogApi.md +0 -54
- package/docs/BillingOrdersApi.md +0 -63
- package/docs/BillingPaymentMethodsApi.md +0 -162
- package/docs/BillingSubscriptionsApi.md +0 -113
- package/docs/BillingV1CatalogCatalogItemPriceResource.md +0 -32
- package/docs/BillingV1CatalogCatalogItemResource.md +0 -26
- package/docs/BillingV1OrderOrderBillingAddressResource.md +0 -40
- package/docs/BillingV1OrderOrderResource.md +0 -36
- package/docs/BillingV1OrderStoreRequest.md +0 -24
- package/docs/BillingV1OrderStoreRequestItemsInner.md +0 -22
- package/docs/BillingV1PaymentMethodPaymentMethodResource.md +0 -36
- package/docs/BillingV1SubscriptionCancelRequest.md +0 -22
- package/docs/BillingV1SubscriptionSubscriptionResource.md +0 -42
- package/docs/CommonSchemaErrorResponseSchema.md +0 -22
- package/docs/CommonSchemaPaginationMetaSchema.md +0 -24
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +0 -22
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +0 -24
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +0 -22
- package/docs/CommonSuccessEmptyResource.md +0 -20
- package/docs/DNSSnapshotApi.md +0 -175
- package/docs/DNSV1SnapshotSnapshotResource.md +0 -24
- package/docs/DNSV1SnapshotSnapshotWithContentResource.md +0 -26
- package/docs/DNSV1ZoneDestroyRequest.md +0 -20
- package/docs/DNSV1ZoneDestroyRequestFiltersInner.md +0 -22
- package/docs/DNSV1ZoneNameRecordResource.md +0 -22
- package/docs/DNSV1ZoneRecordResource.md +0 -26
- package/docs/DNSV1ZoneResetRequest.md +0 -24
- package/docs/DNSV1ZoneUpdateRequest.md +0 -22
- package/docs/DNSV1ZoneUpdateRequestZoneInner.md +0 -26
- package/docs/DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md +0 -20
- package/docs/DNSZoneApi.md +0 -297
- package/docs/DomainsAvailabilityApi.md +0 -63
- package/docs/DomainsForwardingApi.md +0 -171
- package/docs/DomainsPortfolioApi.md +0 -439
- package/docs/DomainsV1AvailabilityAvailabilityRequest.md +0 -24
- package/docs/DomainsV1AvailabilityAvailabilityResource.md +0 -26
- package/docs/DomainsV1DomainDomainExtendedResource.md +0 -48
- package/docs/DomainsV1DomainDomainExtendedResourceDomainContacts.md +0 -27
- package/docs/DomainsV1DomainDomainExtendedResourceNameServers.md +0 -23
- package/docs/DomainsV1DomainDomainResource.md +0 -30
- package/docs/DomainsV1ForwardingForwardingResource.md +0 -28
- package/docs/DomainsV1ForwardingStoreRequest.md +0 -24
- package/docs/DomainsV1PortfolioPurchaseRequest.md +0 -30
- package/docs/DomainsV1PortfolioPurchaseRequestDomainContacts.md +0 -27
- package/docs/DomainsV1PortfolioUpdateNameserversRequest.md +0 -26
- package/docs/DomainsV1WHOISProfileResource.md +0 -34
- package/docs/DomainsV1WHOISStoreRequest.md +0 -28
- package/docs/DomainsWHOISApi.md +0 -279
- package/docs/VPSActionsApi.md +0 -121
- package/docs/VPSBackupsApi.md +0 -178
- package/docs/VPSDataCentersApi.md +0 -54
- package/docs/VPSFirewallApi.md +0 -577
- package/docs/VPSGetActionListV1200Response.md +0 -22
- package/docs/VPSGetBackupListV1200Response.md +0 -22
- package/docs/VPSGetFirewallListV1200Response.md +0 -22
- package/docs/VPSGetPostInstallScriptListV1200Response.md +0 -22
- package/docs/VPSGetPublicKeyListV1200Response.md +0 -22
- package/docs/VPSMalwareScannerApi.md +0 -172
- package/docs/VPSOSTemplatesApi.md +0 -108
- package/docs/VPSPTRRecordsApi.md +0 -115
- package/docs/VPSPostInstallScriptsApi.md +0 -284
- package/docs/VPSPublicKeysApi.md +0 -230
- package/docs/VPSRecoveryApi.md +0 -120
- package/docs/VPSSnapshotsApi.md +0 -223
- package/docs/VPSV1ActionActionResource.md +0 -28
- package/docs/VPSV1BackupBackupResource.md +0 -24
- package/docs/VPSV1DataCenterDataCenterResource.md +0 -28
- package/docs/VPSV1FirewallFirewallResource.md +0 -30
- package/docs/VPSV1FirewallFirewallRuleResource.md +0 -30
- package/docs/VPSV1FirewallRulesStoreRequest.md +0 -26
- package/docs/VPSV1FirewallStoreRequest.md +0 -20
- package/docs/VPSV1IPAddressIPAddressResource.md +0 -24
- package/docs/VPSV1MalwareMetricsResource.md +0 -30
- package/docs/VPSV1MetricsMetricsCollection.md +0 -30
- package/docs/VPSV1MetricsMetricsResource.md +0 -22
- package/docs/VPSV1PostInstallScriptPostInstallScriptResource.md +0 -28
- package/docs/VPSV1PostInstallScriptStoreRequest.md +0 -22
- package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
- package/docs/VPSV1PublicKeyPublicKeyResource.md +0 -24
- package/docs/VPSV1PublicKeyStoreRequest.md +0 -22
- package/docs/VPSV1SnapshotSnapshotResource.md +0 -24
- package/docs/VPSV1TemplateTemplateResource.md +0 -26
- package/docs/VPSV1VirtualMachineHostnameUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +0 -22
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +0 -20
- package/docs/VPSV1VirtualMachineRecreateRequest.md +0 -24
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +0 -20
- package/docs/VPSV1VirtualMachineSetupRequest.md +0 -38
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +0 -22
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +0 -52
- package/docs/VPSVirtualMachineApi.md +0 -796
package/docs/VPSBackupsApi.md
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
# VPSBackupsApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**deleteBackupV1**](#deletebackupv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId} | Delete backup|
|
|
8
|
-
|[**getBackupListV1**](#getbackuplistv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/backups | Get backup list|
|
|
9
|
-
|[**restoreBackupV1**](#restorebackupv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/backups/{backupId}/restore | Restore backup|
|
|
10
|
-
|
|
11
|
-
# **deleteBackupV1**
|
|
12
|
-
> CommonSuccessEmptyResource deleteBackupV1()
|
|
13
|
-
|
|
14
|
-
This endpoint deletes a specified backup for a virtual machine.
|
|
15
|
-
|
|
16
|
-
### Example
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import {
|
|
20
|
-
VPSBackupsApi,
|
|
21
|
-
Configuration
|
|
22
|
-
} from 'hostinger-api-sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new VPSBackupsApi(configuration);
|
|
26
|
-
|
|
27
|
-
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
28
|
-
let backupId: number; //Backup ID (default to undefined)
|
|
29
|
-
|
|
30
|
-
const { status, data } = await apiInstance.deleteBackupV1(
|
|
31
|
-
virtualMachineId,
|
|
32
|
-
backupId
|
|
33
|
-
);
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Parameters
|
|
37
|
-
|
|
38
|
-
|Name | Type | Description | Notes|
|
|
39
|
-
|------------- | ------------- | ------------- | -------------|
|
|
40
|
-
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
41
|
-
| **backupId** | [**number**] | Backup ID | defaults to undefined|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### Return type
|
|
45
|
-
|
|
46
|
-
**CommonSuccessEmptyResource**
|
|
47
|
-
|
|
48
|
-
### Authorization
|
|
49
|
-
|
|
50
|
-
[apiToken](../README.md#apiToken)
|
|
51
|
-
|
|
52
|
-
### HTTP request headers
|
|
53
|
-
|
|
54
|
-
- **Content-Type**: Not defined
|
|
55
|
-
- **Accept**: application/json
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### HTTP response details
|
|
59
|
-
| Status code | Description | Response headers |
|
|
60
|
-
|-------------|-------------|------------------|
|
|
61
|
-
|**200** | Success empty response | - |
|
|
62
|
-
|**401** | Unauthenticated | - |
|
|
63
|
-
|**500** | Error response | - |
|
|
64
|
-
|
|
65
|
-
[[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)
|
|
66
|
-
|
|
67
|
-
# **getBackupListV1**
|
|
68
|
-
> VPSGetBackupListV1200Response getBackupListV1()
|
|
69
|
-
|
|
70
|
-
This endpoint retrieves a list of backups for a specified virtual machine.
|
|
71
|
-
|
|
72
|
-
### Example
|
|
73
|
-
|
|
74
|
-
```typescript
|
|
75
|
-
import {
|
|
76
|
-
VPSBackupsApi,
|
|
77
|
-
Configuration
|
|
78
|
-
} from 'hostinger-api-sdk';
|
|
79
|
-
|
|
80
|
-
const configuration = new Configuration();
|
|
81
|
-
const apiInstance = new VPSBackupsApi(configuration);
|
|
82
|
-
|
|
83
|
-
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
84
|
-
let page: number; //Page number (optional) (default to undefined)
|
|
85
|
-
|
|
86
|
-
const { status, data } = await apiInstance.getBackupListV1(
|
|
87
|
-
virtualMachineId,
|
|
88
|
-
page
|
|
89
|
-
);
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### Parameters
|
|
93
|
-
|
|
94
|
-
|Name | Type | Description | Notes|
|
|
95
|
-
|------------- | ------------- | ------------- | -------------|
|
|
96
|
-
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
97
|
-
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
### Return type
|
|
101
|
-
|
|
102
|
-
**VPSGetBackupListV1200Response**
|
|
103
|
-
|
|
104
|
-
### Authorization
|
|
105
|
-
|
|
106
|
-
[apiToken](../README.md#apiToken)
|
|
107
|
-
|
|
108
|
-
### HTTP request headers
|
|
109
|
-
|
|
110
|
-
- **Content-Type**: Not defined
|
|
111
|
-
- **Accept**: application/json
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### HTTP response details
|
|
115
|
-
| Status code | Description | Response headers |
|
|
116
|
-
|-------------|-------------|------------------|
|
|
117
|
-
|**200** | Success response | - |
|
|
118
|
-
|**401** | Unauthenticated | - |
|
|
119
|
-
|**500** | Error response | - |
|
|
120
|
-
|
|
121
|
-
[[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)
|
|
122
|
-
|
|
123
|
-
# **restoreBackupV1**
|
|
124
|
-
> VPSV1ActionActionResource restoreBackupV1()
|
|
125
|
-
|
|
126
|
-
This endpoint restores a backup for a specified virtual machine. The system will then initiate the restore process, which may take some time depending on the size of the backup. **All data on the virtual machine will be overwritten with the data from the backup.**
|
|
127
|
-
|
|
128
|
-
### Example
|
|
129
|
-
|
|
130
|
-
```typescript
|
|
131
|
-
import {
|
|
132
|
-
VPSBackupsApi,
|
|
133
|
-
Configuration
|
|
134
|
-
} from 'hostinger-api-sdk';
|
|
135
|
-
|
|
136
|
-
const configuration = new Configuration();
|
|
137
|
-
const apiInstance = new VPSBackupsApi(configuration);
|
|
138
|
-
|
|
139
|
-
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
140
|
-
let backupId: number; //Backup ID (default to undefined)
|
|
141
|
-
|
|
142
|
-
const { status, data } = await apiInstance.restoreBackupV1(
|
|
143
|
-
virtualMachineId,
|
|
144
|
-
backupId
|
|
145
|
-
);
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
### Parameters
|
|
149
|
-
|
|
150
|
-
|Name | Type | Description | Notes|
|
|
151
|
-
|------------- | ------------- | ------------- | -------------|
|
|
152
|
-
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
153
|
-
| **backupId** | [**number**] | Backup ID | defaults to undefined|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
### Return type
|
|
157
|
-
|
|
158
|
-
**VPSV1ActionActionResource**
|
|
159
|
-
|
|
160
|
-
### Authorization
|
|
161
|
-
|
|
162
|
-
[apiToken](../README.md#apiToken)
|
|
163
|
-
|
|
164
|
-
### HTTP request headers
|
|
165
|
-
|
|
166
|
-
- **Content-Type**: Not defined
|
|
167
|
-
- **Accept**: application/json
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
### HTTP response details
|
|
171
|
-
| Status code | Description | Response headers |
|
|
172
|
-
|-------------|-------------|------------------|
|
|
173
|
-
|**200** | Success response | - |
|
|
174
|
-
|**401** | Unauthenticated | - |
|
|
175
|
-
|**500** | Error response | - |
|
|
176
|
-
|
|
177
|
-
[[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)
|
|
178
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# VPSDataCentersApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getDataCentersListV1**](#getdatacenterslistv1) | **GET** /api/vps/v1/data-centers | Get data centers list|
|
|
8
|
-
|
|
9
|
-
# **getDataCentersListV1**
|
|
10
|
-
> Array<VPSV1DataCenterDataCenterResource> getDataCentersListV1()
|
|
11
|
-
|
|
12
|
-
This endpoint retrieves a list of all data centers available.
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
VPSDataCentersApi,
|
|
19
|
-
Configuration
|
|
20
|
-
} from 'hostinger-api-sdk';
|
|
21
|
-
|
|
22
|
-
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new VPSDataCentersApi(configuration);
|
|
24
|
-
|
|
25
|
-
const { status, data } = await apiInstance.getDataCentersListV1();
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Parameters
|
|
29
|
-
This endpoint does not have any parameters.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Return type
|
|
33
|
-
|
|
34
|
-
**Array<VPSV1DataCenterDataCenterResource>**
|
|
35
|
-
|
|
36
|
-
### Authorization
|
|
37
|
-
|
|
38
|
-
[apiToken](../README.md#apiToken)
|
|
39
|
-
|
|
40
|
-
### HTTP request headers
|
|
41
|
-
|
|
42
|
-
- **Content-Type**: Not defined
|
|
43
|
-
- **Accept**: application/json
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### HTTP response details
|
|
47
|
-
| Status code | Description | Response headers |
|
|
48
|
-
|-------------|-------------|------------------|
|
|
49
|
-
|**200** | Success response | - |
|
|
50
|
-
|**401** | Unauthenticated | - |
|
|
51
|
-
|**500** | Error response | - |
|
|
52
|
-
|
|
53
|
-
[[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)
|
|
54
|
-
|