hostinger-api-sdk 0.0.8 → 0.0.10
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 +1911 -180
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1218 -170
- package/dist/api.js +1277 -37
- 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 +1218 -170
- package/dist/esm/api.js +1258 -31
- 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 +54 -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 +26 -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/BillingV1PaymentMethodPaymentMethodResource.md +36 -0
- package/docs/BillingV1SubscriptionCancelRequest.md +22 -0
- package/docs/BillingV1SubscriptionSubscriptionResource.md +42 -0
- package/docs/CommonSchemaErrorResponseSchema.md +22 -0
- package/docs/CommonSchemaPaginationMetaSchema.md +24 -0
- package/docs/CommonSchemaUnauthorizedResponseSchema.md +22 -0
- package/docs/CommonSchemaUnprocessableContentResponseSchema.md +24 -0
- package/docs/CommonSchemaUnprocessableContentResponseSchemaErrors.md +22 -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/VPSActionsApi.md +121 -0
- package/docs/VPSBackupsApi.md +178 -0
- package/docs/VPSDataCentersApi.md +54 -0
- package/docs/VPSFirewallApi.md +577 -0
- package/docs/VPSGetActionListV1200Response.md +22 -0
- package/docs/VPSGetBackupListV1200Response.md +22 -0
- package/docs/VPSGetFirewallListV1200Response.md +22 -0
- package/docs/VPSGetPostInstallScriptListV1200Response.md +22 -0
- package/docs/VPSGetPublicKeyListV1200Response.md +22 -0
- package/docs/VPSMalwareScannerApi.md +172 -0
- package/docs/VPSOSTemplatesApi.md +108 -0
- package/docs/VPSPTRRecordsApi.md +115 -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/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/VPSV1VirtualMachineHostnameUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineNameserversUpdateRequest.md +22 -0
- package/docs/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecoveryStartRequest.md +20 -0
- package/docs/VPSV1VirtualMachineRecreateRequest.md +24 -0
- package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +20 -0
- package/docs/VPSV1VirtualMachineSetupRequest.md +38 -0
- package/docs/VPSV1VirtualMachineSetupRequestPublicKey.md +22 -0
- package/docs/VPSV1VirtualMachineVirtualMachineResource.md +52 -0
- package/docs/VPSVirtualMachineApi.md +796 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
# VPSMalwareScannerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getScanMetricsV1**](#getscanmetricsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/monarx | Get scan metrics|
|
|
8
|
+
|[**installMonarxV1**](#installmonarxv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/monarx | Install Monarx|
|
|
9
|
+
|[**uninstallMonarxV1**](#uninstallmonarxv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/monarx | Uninstall Monarx|
|
|
10
|
+
|
|
11
|
+
# **getScanMetricsV1**
|
|
12
|
+
> VPSV1MalwareMetricsResource getScanMetricsV1()
|
|
13
|
+
|
|
14
|
+
This endpoint retrieves the scan metrics for the [Monarx](https://www.monarx.com/) malware scanner installed on a specified virtual machine. The scan metrics provide detailed information about the malware scans performed by Monarx, including the number of scans, detected threats, and other relevant statistics. This information is useful for monitoring the security status of the virtual machine and assessing the effectiveness of the malware scanner.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
VPSMalwareScannerApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new VPSMalwareScannerApi(configuration);
|
|
26
|
+
|
|
27
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.getScanMetricsV1(
|
|
30
|
+
virtualMachineId
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**VPSV1MalwareMetricsResource**
|
|
44
|
+
|
|
45
|
+
### Authorization
|
|
46
|
+
|
|
47
|
+
[apiToken](../README.md#apiToken)
|
|
48
|
+
|
|
49
|
+
### HTTP request headers
|
|
50
|
+
|
|
51
|
+
- **Content-Type**: Not defined
|
|
52
|
+
- **Accept**: application/json
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### HTTP response details
|
|
56
|
+
| Status code | Description | Response headers |
|
|
57
|
+
|-------------|-------------|------------------|
|
|
58
|
+
|**200** | Success response | - |
|
|
59
|
+
|**422** | Validation error response | - |
|
|
60
|
+
|**401** | Unauthenticated | - |
|
|
61
|
+
|**500** | Error response | - |
|
|
62
|
+
|
|
63
|
+
[[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)
|
|
64
|
+
|
|
65
|
+
# **installMonarxV1**
|
|
66
|
+
> VPSV1ActionActionResource installMonarxV1()
|
|
67
|
+
|
|
68
|
+
This endpoint installs the Monarx malware scanner on a specified virtual machine. [Monarx](https://www.monarx.com/) is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software.
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
VPSMalwareScannerApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from 'hostinger-api-sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new VPSMalwareScannerApi(configuration);
|
|
80
|
+
|
|
81
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.installMonarxV1(
|
|
84
|
+
virtualMachineId
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**VPSV1ActionActionResource**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[apiToken](../README.md#apiToken)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | Success response | - |
|
|
113
|
+
|**422** | Validation error response | - |
|
|
114
|
+
|**401** | Unauthenticated | - |
|
|
115
|
+
|**500** | Error response | - |
|
|
116
|
+
|
|
117
|
+
[[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)
|
|
118
|
+
|
|
119
|
+
# **uninstallMonarxV1**
|
|
120
|
+
> VPSV1ActionActionResource uninstallMonarxV1()
|
|
121
|
+
|
|
122
|
+
This endpoint uninstalls the Monarx malware scanner on a specified virtual machine. If Monarx is not installed, the request will still be processed without any effect.
|
|
123
|
+
|
|
124
|
+
### Example
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import {
|
|
128
|
+
VPSMalwareScannerApi,
|
|
129
|
+
Configuration
|
|
130
|
+
} from 'hostinger-api-sdk';
|
|
131
|
+
|
|
132
|
+
const configuration = new Configuration();
|
|
133
|
+
const apiInstance = new VPSMalwareScannerApi(configuration);
|
|
134
|
+
|
|
135
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
136
|
+
|
|
137
|
+
const { status, data } = await apiInstance.uninstallMonarxV1(
|
|
138
|
+
virtualMachineId
|
|
139
|
+
);
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Parameters
|
|
143
|
+
|
|
144
|
+
|Name | Type | Description | Notes|
|
|
145
|
+
|------------- | ------------- | ------------- | -------------|
|
|
146
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### Return type
|
|
150
|
+
|
|
151
|
+
**VPSV1ActionActionResource**
|
|
152
|
+
|
|
153
|
+
### Authorization
|
|
154
|
+
|
|
155
|
+
[apiToken](../README.md#apiToken)
|
|
156
|
+
|
|
157
|
+
### HTTP request headers
|
|
158
|
+
|
|
159
|
+
- **Content-Type**: Not defined
|
|
160
|
+
- **Accept**: application/json
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### HTTP response details
|
|
164
|
+
| Status code | Description | Response headers |
|
|
165
|
+
|-------------|-------------|------------------|
|
|
166
|
+
|**200** | Success response | - |
|
|
167
|
+
|**422** | Validation error response | - |
|
|
168
|
+
|**401** | Unauthenticated | - |
|
|
169
|
+
|**500** | Error response | - |
|
|
170
|
+
|
|
171
|
+
[[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)
|
|
172
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# VPSOSTemplatesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getTemplateListV1**](#gettemplatelistv1) | **GET** /api/vps/v1/templates | Get template list|
|
|
8
|
+
|[**getTemplateV1**](#gettemplatev1) | **GET** /api/vps/v1/templates/{templateId} | Get template|
|
|
9
|
+
|
|
10
|
+
# **getTemplateListV1**
|
|
11
|
+
> Array<VPSV1TemplateTemplateResource> getTemplateListV1()
|
|
12
|
+
|
|
13
|
+
This endpoint retrieves a list of available OS templates for virtual machines.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
VPSOSTemplatesApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new VPSOSTemplatesApi(configuration);
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getTemplateListV1();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
This endpoint does not have any parameters.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Return type
|
|
34
|
+
|
|
35
|
+
**Array<VPSV1TemplateTemplateResource>**
|
|
36
|
+
|
|
37
|
+
### Authorization
|
|
38
|
+
|
|
39
|
+
[apiToken](../README.md#apiToken)
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: Not defined
|
|
44
|
+
- **Accept**: application/json
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### HTTP response details
|
|
48
|
+
| Status code | Description | Response headers |
|
|
49
|
+
|-------------|-------------|------------------|
|
|
50
|
+
|**200** | Success response | - |
|
|
51
|
+
|**401** | Unauthenticated | - |
|
|
52
|
+
|**500** | Error response | - |
|
|
53
|
+
|
|
54
|
+
[[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)
|
|
55
|
+
|
|
56
|
+
# **getTemplateV1**
|
|
57
|
+
> VPSV1TemplateTemplateResource getTemplateV1()
|
|
58
|
+
|
|
59
|
+
This endpoint retrieves details of a specific OS template for virtual machines.
|
|
60
|
+
|
|
61
|
+
### Example
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
import {
|
|
65
|
+
VPSOSTemplatesApi,
|
|
66
|
+
Configuration
|
|
67
|
+
} from 'hostinger-api-sdk';
|
|
68
|
+
|
|
69
|
+
const configuration = new Configuration();
|
|
70
|
+
const apiInstance = new VPSOSTemplatesApi(configuration);
|
|
71
|
+
|
|
72
|
+
let templateId: number; //Template ID (default to undefined)
|
|
73
|
+
|
|
74
|
+
const { status, data } = await apiInstance.getTemplateV1(
|
|
75
|
+
templateId
|
|
76
|
+
);
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Parameters
|
|
80
|
+
|
|
81
|
+
|Name | Type | Description | Notes|
|
|
82
|
+
|------------- | ------------- | ------------- | -------------|
|
|
83
|
+
| **templateId** | [**number**] | Template ID | defaults to undefined|
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Return type
|
|
87
|
+
|
|
88
|
+
**VPSV1TemplateTemplateResource**
|
|
89
|
+
|
|
90
|
+
### Authorization
|
|
91
|
+
|
|
92
|
+
[apiToken](../README.md#apiToken)
|
|
93
|
+
|
|
94
|
+
### HTTP request headers
|
|
95
|
+
|
|
96
|
+
- **Content-Type**: Not defined
|
|
97
|
+
- **Accept**: application/json
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### HTTP response details
|
|
101
|
+
| Status code | Description | Response headers |
|
|
102
|
+
|-------------|-------------|------------------|
|
|
103
|
+
|**200** | Success response | - |
|
|
104
|
+
|**401** | Unauthenticated | - |
|
|
105
|
+
|**500** | Error response | - |
|
|
106
|
+
|
|
107
|
+
[[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)
|
|
108
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# VPSPTRRecordsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createPTRRecordV1**](#createptrrecordv1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr | Create PTR record|
|
|
8
|
+
|[**deletePTRRecordV1**](#deleteptrrecordv1) | **DELETE** /api/vps/v1/virtual-machines/{virtualMachineId}/ptr | Delete PTR record|
|
|
9
|
+
|
|
10
|
+
# **createPTRRecordV1**
|
|
11
|
+
> VPSV1ActionActionResource createPTRRecordV1()
|
|
12
|
+
|
|
13
|
+
This endpoint creates or updates a PTR (Pointer) record for a specified virtual machine.
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
VPSPTRRecordsApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new VPSPTRRecordsApi(configuration);
|
|
25
|
+
|
|
26
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.createPTRRecordV1(
|
|
29
|
+
virtualMachineId
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**VPSV1ActionActionResource**
|
|
43
|
+
|
|
44
|
+
### Authorization
|
|
45
|
+
|
|
46
|
+
[apiToken](../README.md#apiToken)
|
|
47
|
+
|
|
48
|
+
### HTTP request headers
|
|
49
|
+
|
|
50
|
+
- **Content-Type**: Not defined
|
|
51
|
+
- **Accept**: application/json
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### HTTP response details
|
|
55
|
+
| Status code | Description | Response headers |
|
|
56
|
+
|-------------|-------------|------------------|
|
|
57
|
+
|**200** | Success response | - |
|
|
58
|
+
|**401** | Unauthenticated | - |
|
|
59
|
+
|**500** | Error response | - |
|
|
60
|
+
|
|
61
|
+
[[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)
|
|
62
|
+
|
|
63
|
+
# **deletePTRRecordV1**
|
|
64
|
+
> VPSV1ActionActionResource deletePTRRecordV1()
|
|
65
|
+
|
|
66
|
+
This endpoint deletes a PTR (Pointer) record for a specified virtual machine. Once deleted, reverse DNS lookups to the virtual machine\'s IP address will no longer return the previously configured hostname.
|
|
67
|
+
|
|
68
|
+
### Example
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import {
|
|
72
|
+
VPSPTRRecordsApi,
|
|
73
|
+
Configuration
|
|
74
|
+
} from 'hostinger-api-sdk';
|
|
75
|
+
|
|
76
|
+
const configuration = new Configuration();
|
|
77
|
+
const apiInstance = new VPSPTRRecordsApi(configuration);
|
|
78
|
+
|
|
79
|
+
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
80
|
+
|
|
81
|
+
const { status, data } = await apiInstance.deletePTRRecordV1(
|
|
82
|
+
virtualMachineId
|
|
83
|
+
);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Parameters
|
|
87
|
+
|
|
88
|
+
|Name | Type | Description | Notes|
|
|
89
|
+
|------------- | ------------- | ------------- | -------------|
|
|
90
|
+
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Return type
|
|
94
|
+
|
|
95
|
+
**VPSV1ActionActionResource**
|
|
96
|
+
|
|
97
|
+
### Authorization
|
|
98
|
+
|
|
99
|
+
[apiToken](../README.md#apiToken)
|
|
100
|
+
|
|
101
|
+
### HTTP request headers
|
|
102
|
+
|
|
103
|
+
- **Content-Type**: Not defined
|
|
104
|
+
- **Accept**: application/json
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### HTTP response details
|
|
108
|
+
| Status code | Description | Response headers |
|
|
109
|
+
|-------------|-------------|------------------|
|
|
110
|
+
|**200** | Success response | - |
|
|
111
|
+
|**401** | Unauthenticated | - |
|
|
112
|
+
|**500** | Error response | - |
|
|
113
|
+
|
|
114
|
+
[[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)
|
|
115
|
+
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
# VPSPostInstallScriptsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**createPostInstallScriptV1**](#createpostinstallscriptv1) | **POST** /api/vps/v1/post-install-scripts | Create post-install script|
|
|
8
|
+
|[**deleteAPostInstallScriptV1**](#deleteapostinstallscriptv1) | **DELETE** /api/vps/v1/post-install-scripts/{postInstallScriptId} | Delete a post-install script|
|
|
9
|
+
|[**getPostInstallScriptListV1**](#getpostinstallscriptlistv1) | **GET** /api/vps/v1/post-install-scripts | Get post-install script list|
|
|
10
|
+
|[**getPostInstallScriptV1**](#getpostinstallscriptv1) | **GET** /api/vps/v1/post-install-scripts/{postInstallScriptId} | Get post-install script|
|
|
11
|
+
|[**updatePostInstallScriptV1**](#updatepostinstallscriptv1) | **PUT** /api/vps/v1/post-install-scripts/{postInstallScriptId} | Update post-install script|
|
|
12
|
+
|
|
13
|
+
# **createPostInstallScriptV1**
|
|
14
|
+
> VPSV1PostInstallScriptPostInstallScriptResource createPostInstallScriptV1(vPSV1PostInstallScriptStoreRequest)
|
|
15
|
+
|
|
16
|
+
This endpoint allows you to add a new post-install script to your account, which can then be used run after the installation of a virtual machine instance. The script contents will be saved to the file `/post_install` with executable attribute set and will be executed once virtual machine is installed. The output of the script will be redirected to `/post_install.log`. Maximum script size is 48KB.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
VPSPostInstallScriptsApi,
|
|
23
|
+
Configuration,
|
|
24
|
+
VPSV1PostInstallScriptStoreRequest
|
|
25
|
+
} from 'hostinger-api-sdk';
|
|
26
|
+
|
|
27
|
+
const configuration = new Configuration();
|
|
28
|
+
const apiInstance = new VPSPostInstallScriptsApi(configuration);
|
|
29
|
+
|
|
30
|
+
let vPSV1PostInstallScriptStoreRequest: VPSV1PostInstallScriptStoreRequest; //
|
|
31
|
+
|
|
32
|
+
const { status, data } = await apiInstance.createPostInstallScriptV1(
|
|
33
|
+
vPSV1PostInstallScriptStoreRequest
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **vPSV1PostInstallScriptStoreRequest** | **VPSV1PostInstallScriptStoreRequest**| | |
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Return type
|
|
45
|
+
|
|
46
|
+
**VPSV1PostInstallScriptPostInstallScriptResource**
|
|
47
|
+
|
|
48
|
+
### Authorization
|
|
49
|
+
|
|
50
|
+
[apiToken](../README.md#apiToken)
|
|
51
|
+
|
|
52
|
+
### HTTP request headers
|
|
53
|
+
|
|
54
|
+
- **Content-Type**: application/json
|
|
55
|
+
- **Accept**: application/json
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### HTTP response details
|
|
59
|
+
| Status code | Description | Response headers |
|
|
60
|
+
|-------------|-------------|------------------|
|
|
61
|
+
|**200** | Success response | - |
|
|
62
|
+
|**422** | Validation error response | - |
|
|
63
|
+
|**401** | Unauthenticated | - |
|
|
64
|
+
|**500** | Error response | - |
|
|
65
|
+
|
|
66
|
+
[[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)
|
|
67
|
+
|
|
68
|
+
# **deleteAPostInstallScriptV1**
|
|
69
|
+
> CommonSuccessEmptyResource deleteAPostInstallScriptV1()
|
|
70
|
+
|
|
71
|
+
This endpoint deletes a post-install script from your account.
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import {
|
|
77
|
+
VPSPostInstallScriptsApi,
|
|
78
|
+
Configuration
|
|
79
|
+
} from 'hostinger-api-sdk';
|
|
80
|
+
|
|
81
|
+
const configuration = new Configuration();
|
|
82
|
+
const apiInstance = new VPSPostInstallScriptsApi(configuration);
|
|
83
|
+
|
|
84
|
+
let postInstallScriptId: number; //Post-install script ID (default to undefined)
|
|
85
|
+
|
|
86
|
+
const { status, data } = await apiInstance.deleteAPostInstallScriptV1(
|
|
87
|
+
postInstallScriptId
|
|
88
|
+
);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
|Name | Type | Description | Notes|
|
|
94
|
+
|------------- | ------------- | ------------- | -------------|
|
|
95
|
+
| **postInstallScriptId** | [**number**] | Post-install script ID | defaults to undefined|
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### Return type
|
|
99
|
+
|
|
100
|
+
**CommonSuccessEmptyResource**
|
|
101
|
+
|
|
102
|
+
### Authorization
|
|
103
|
+
|
|
104
|
+
[apiToken](../README.md#apiToken)
|
|
105
|
+
|
|
106
|
+
### HTTP request headers
|
|
107
|
+
|
|
108
|
+
- **Content-Type**: Not defined
|
|
109
|
+
- **Accept**: application/json
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### HTTP response details
|
|
113
|
+
| Status code | Description | Response headers |
|
|
114
|
+
|-------------|-------------|------------------|
|
|
115
|
+
|**200** | Success empty response | - |
|
|
116
|
+
|**401** | Unauthenticated | - |
|
|
117
|
+
|**500** | Error response | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
|
121
|
+
# **getPostInstallScriptListV1**
|
|
122
|
+
> VPSGetPostInstallScriptListV1200Response getPostInstallScriptListV1()
|
|
123
|
+
|
|
124
|
+
This endpoint retrieves a list of post-install scripts associated with your account.
|
|
125
|
+
|
|
126
|
+
### Example
|
|
127
|
+
|
|
128
|
+
```typescript
|
|
129
|
+
import {
|
|
130
|
+
VPSPostInstallScriptsApi,
|
|
131
|
+
Configuration
|
|
132
|
+
} from 'hostinger-api-sdk';
|
|
133
|
+
|
|
134
|
+
const configuration = new Configuration();
|
|
135
|
+
const apiInstance = new VPSPostInstallScriptsApi(configuration);
|
|
136
|
+
|
|
137
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
138
|
+
|
|
139
|
+
const { status, data } = await apiInstance.getPostInstallScriptListV1(
|
|
140
|
+
page
|
|
141
|
+
);
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Parameters
|
|
145
|
+
|
|
146
|
+
|Name | Type | Description | Notes|
|
|
147
|
+
|------------- | ------------- | ------------- | -------------|
|
|
148
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### Return type
|
|
152
|
+
|
|
153
|
+
**VPSGetPostInstallScriptListV1200Response**
|
|
154
|
+
|
|
155
|
+
### Authorization
|
|
156
|
+
|
|
157
|
+
[apiToken](../README.md#apiToken)
|
|
158
|
+
|
|
159
|
+
### HTTP request headers
|
|
160
|
+
|
|
161
|
+
- **Content-Type**: Not defined
|
|
162
|
+
- **Accept**: application/json
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
### HTTP response details
|
|
166
|
+
| Status code | Description | Response headers |
|
|
167
|
+
|-------------|-------------|------------------|
|
|
168
|
+
|**200** | Success response | - |
|
|
169
|
+
|**401** | Unauthenticated | - |
|
|
170
|
+
|**500** | Error response | - |
|
|
171
|
+
|
|
172
|
+
[[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)
|
|
173
|
+
|
|
174
|
+
# **getPostInstallScriptV1**
|
|
175
|
+
> VPSV1PostInstallScriptPostInstallScriptResource getPostInstallScriptV1()
|
|
176
|
+
|
|
177
|
+
This endpoint retrieves post-install script by its ID.
|
|
178
|
+
|
|
179
|
+
### Example
|
|
180
|
+
|
|
181
|
+
```typescript
|
|
182
|
+
import {
|
|
183
|
+
VPSPostInstallScriptsApi,
|
|
184
|
+
Configuration
|
|
185
|
+
} from 'hostinger-api-sdk';
|
|
186
|
+
|
|
187
|
+
const configuration = new Configuration();
|
|
188
|
+
const apiInstance = new VPSPostInstallScriptsApi(configuration);
|
|
189
|
+
|
|
190
|
+
let postInstallScriptId: number; //Post-install script ID (default to undefined)
|
|
191
|
+
|
|
192
|
+
const { status, data } = await apiInstance.getPostInstallScriptV1(
|
|
193
|
+
postInstallScriptId
|
|
194
|
+
);
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
### Parameters
|
|
198
|
+
|
|
199
|
+
|Name | Type | Description | Notes|
|
|
200
|
+
|------------- | ------------- | ------------- | -------------|
|
|
201
|
+
| **postInstallScriptId** | [**number**] | Post-install script ID | defaults to undefined|
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Return type
|
|
205
|
+
|
|
206
|
+
**VPSV1PostInstallScriptPostInstallScriptResource**
|
|
207
|
+
|
|
208
|
+
### Authorization
|
|
209
|
+
|
|
210
|
+
[apiToken](../README.md#apiToken)
|
|
211
|
+
|
|
212
|
+
### HTTP request headers
|
|
213
|
+
|
|
214
|
+
- **Content-Type**: Not defined
|
|
215
|
+
- **Accept**: application/json
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
### HTTP response details
|
|
219
|
+
| Status code | Description | Response headers |
|
|
220
|
+
|-------------|-------------|------------------|
|
|
221
|
+
|**200** | Success response | - |
|
|
222
|
+
|**401** | Unauthenticated | - |
|
|
223
|
+
|**500** | Error response | - |
|
|
224
|
+
|
|
225
|
+
[[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)
|
|
226
|
+
|
|
227
|
+
# **updatePostInstallScriptV1**
|
|
228
|
+
> VPSV1PostInstallScriptPostInstallScriptResource updatePostInstallScriptV1(vPSV1PostInstallScriptStoreRequest)
|
|
229
|
+
|
|
230
|
+
This endpoint updates a specific post-install script.
|
|
231
|
+
|
|
232
|
+
### Example
|
|
233
|
+
|
|
234
|
+
```typescript
|
|
235
|
+
import {
|
|
236
|
+
VPSPostInstallScriptsApi,
|
|
237
|
+
Configuration,
|
|
238
|
+
VPSV1PostInstallScriptStoreRequest
|
|
239
|
+
} from 'hostinger-api-sdk';
|
|
240
|
+
|
|
241
|
+
const configuration = new Configuration();
|
|
242
|
+
const apiInstance = new VPSPostInstallScriptsApi(configuration);
|
|
243
|
+
|
|
244
|
+
let postInstallScriptId: number; //Post-install script ID (default to undefined)
|
|
245
|
+
let vPSV1PostInstallScriptStoreRequest: VPSV1PostInstallScriptStoreRequest; //
|
|
246
|
+
|
|
247
|
+
const { status, data } = await apiInstance.updatePostInstallScriptV1(
|
|
248
|
+
postInstallScriptId,
|
|
249
|
+
vPSV1PostInstallScriptStoreRequest
|
|
250
|
+
);
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### Parameters
|
|
254
|
+
|
|
255
|
+
|Name | Type | Description | Notes|
|
|
256
|
+
|------------- | ------------- | ------------- | -------------|
|
|
257
|
+
| **vPSV1PostInstallScriptStoreRequest** | **VPSV1PostInstallScriptStoreRequest**| | |
|
|
258
|
+
| **postInstallScriptId** | [**number**] | Post-install script ID | defaults to undefined|
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### Return type
|
|
262
|
+
|
|
263
|
+
**VPSV1PostInstallScriptPostInstallScriptResource**
|
|
264
|
+
|
|
265
|
+
### Authorization
|
|
266
|
+
|
|
267
|
+
[apiToken](../README.md#apiToken)
|
|
268
|
+
|
|
269
|
+
### HTTP request headers
|
|
270
|
+
|
|
271
|
+
- **Content-Type**: application/json
|
|
272
|
+
- **Accept**: application/json
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### HTTP response details
|
|
276
|
+
| Status code | Description | Response headers |
|
|
277
|
+
|-------------|-------------|------------------|
|
|
278
|
+
|**200** | Success response | - |
|
|
279
|
+
|**422** | Validation error response | - |
|
|
280
|
+
|**401** | Unauthenticated | - |
|
|
281
|
+
|**500** | Error response | - |
|
|
282
|
+
|
|
283
|
+
[[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)
|
|
284
|
+
|