hostinger-api-sdk 0.0.9 → 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 +1777 -215
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1097 -164
- package/dist/api.js +1170 -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 +1097 -164
- package/dist/esm/api.js +1155 -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,30 @@
|
|
|
1
|
+
# VPSV1FirewallFirewallRuleResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Firewall rule ID | [optional] [default to undefined]
|
|
9
|
+
**action** | **string** | Firewall rule action | [optional] [default to undefined]
|
|
10
|
+
**protocol** | **string** | Firewall rule protocol | [optional] [default to undefined]
|
|
11
|
+
**port** | **string** | Firewall rule destination port: single or port range | [optional] [default to undefined]
|
|
12
|
+
**source** | **string** | Firewall rule source. Can be `any` or `custom` | [optional] [default to undefined]
|
|
13
|
+
**source_detail** | **string** | Firewall rule source detail. Can be `any` or IP address, CIDR or range | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { VPSV1FirewallFirewallRuleResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: VPSV1FirewallFirewallRuleResource = {
|
|
21
|
+
id,
|
|
22
|
+
action,
|
|
23
|
+
protocol,
|
|
24
|
+
port,
|
|
25
|
+
source,
|
|
26
|
+
source_detail,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# VPSV1FirewallRulesStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**protocol** | **string** | | [default to undefined]
|
|
9
|
+
**port** | **string** | Port or port range, ex: 1024:2048 | [default to undefined]
|
|
10
|
+
**source** | **string** | | [default to undefined]
|
|
11
|
+
**source_detail** | **string** | IP range, CIDR, single IP or `any` | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { VPSV1FirewallRulesStoreRequest } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: VPSV1FirewallRulesStoreRequest = {
|
|
19
|
+
protocol,
|
|
20
|
+
port,
|
|
21
|
+
source,
|
|
22
|
+
source_detail,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VPSV1FirewallStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1FirewallStoreRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1FirewallStoreRequest = {
|
|
16
|
+
name,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# VPSV1IPAddressIPAddressResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | IP address ID | [optional] [default to undefined]
|
|
9
|
+
**address** | **string** | IP address: IPv4 or IPv6 | [optional] [default to undefined]
|
|
10
|
+
**ptr** | **string** | IP address PTR record | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { VPSV1IPAddressIPAddressResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: VPSV1IPAddressIPAddressResource = {
|
|
18
|
+
id,
|
|
19
|
+
address,
|
|
20
|
+
ptr,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# VPSV1MalwareMetricsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**records** | **number** | Records found during last scan | [optional] [default to undefined]
|
|
9
|
+
**malicious** | **number** | Malicious files found during last scan | [optional] [default to undefined]
|
|
10
|
+
**compromised** | **number** | Compromised files found during last scan | [optional] [default to undefined]
|
|
11
|
+
**scanned_files** | **number** | Total number of files scanned during last scan | [optional] [default to undefined]
|
|
12
|
+
**scan_started_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**scan_ended_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { VPSV1MalwareMetricsResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: VPSV1MalwareMetricsResource = {
|
|
21
|
+
records,
|
|
22
|
+
malicious,
|
|
23
|
+
compromised,
|
|
24
|
+
scanned_files,
|
|
25
|
+
scan_started_at,
|
|
26
|
+
scan_ended_at,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# VPSV1MetricsMetricsCollection
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**cpu_usage** | [**VPSV1MetricsMetricsResource**](VPSV1MetricsMetricsResource.md) | | [optional] [default to undefined]
|
|
9
|
+
**ram_usage** | [**VPSV1MetricsMetricsResource**](VPSV1MetricsMetricsResource.md) | | [optional] [default to undefined]
|
|
10
|
+
**disk_space** | [**VPSV1MetricsMetricsResource**](VPSV1MetricsMetricsResource.md) | | [optional] [default to undefined]
|
|
11
|
+
**outgoing_traffic** | [**VPSV1MetricsMetricsResource**](VPSV1MetricsMetricsResource.md) | | [optional] [default to undefined]
|
|
12
|
+
**incoming_traffic** | [**VPSV1MetricsMetricsResource**](VPSV1MetricsMetricsResource.md) | | [optional] [default to undefined]
|
|
13
|
+
**uptime** | [**VPSV1MetricsMetricsResource**](VPSV1MetricsMetricsResource.md) | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { VPSV1MetricsMetricsCollection } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: VPSV1MetricsMetricsCollection = {
|
|
21
|
+
cpu_usage,
|
|
22
|
+
ram_usage,
|
|
23
|
+
disk_space,
|
|
24
|
+
outgoing_traffic,
|
|
25
|
+
incoming_traffic,
|
|
26
|
+
uptime,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VPSV1MetricsMetricsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**unit** | **string** | Measurement unit | [optional] [default to undefined]
|
|
9
|
+
**usage** | **object** | Object, containing UNIX timestamps as a key and measurement as a value. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1MetricsMetricsResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1MetricsMetricsResource = {
|
|
17
|
+
unit,
|
|
18
|
+
usage,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# VPSV1PostInstallScriptPostInstallScriptResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Post-install script ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | Name of the script | [optional] [default to undefined]
|
|
10
|
+
**content** | **string** | Content of the script | [optional] [default to undefined]
|
|
11
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { VPSV1PostInstallScriptPostInstallScriptResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: VPSV1PostInstallScriptPostInstallScriptResource = {
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
content,
|
|
23
|
+
created_at,
|
|
24
|
+
updated_at,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VPSV1PostInstallScriptStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Name of the script | [default to undefined]
|
|
9
|
+
**content** | **string** | Content of the script | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1PostInstallScriptStoreRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1PostInstallScriptStoreRequest = {
|
|
17
|
+
name,
|
|
18
|
+
content,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VPSV1PublicKeyAttachRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**ids** | **Array<number>** | Public Key IDs to attach | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1PublicKeyAttachRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1PublicKeyAttachRequest = {
|
|
16
|
+
ids,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# VPSV1PublicKeyPublicKeyResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Public key ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | Public key name | [optional] [default to undefined]
|
|
10
|
+
**key** | **string** | Public key content | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { VPSV1PublicKeyPublicKeyResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: VPSV1PublicKeyPublicKeyResource = {
|
|
18
|
+
id,
|
|
19
|
+
name,
|
|
20
|
+
key,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VPSV1PublicKeyStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [default to undefined]
|
|
9
|
+
**key** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1PublicKeyStoreRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1PublicKeyStoreRequest = {
|
|
17
|
+
name,
|
|
18
|
+
key,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# VPSV1SnapshotSnapshotResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Snapshot ID | [optional] [default to undefined]
|
|
9
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**expires_at** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { VPSV1SnapshotSnapshotResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: VPSV1SnapshotSnapshotResource = {
|
|
18
|
+
id,
|
|
19
|
+
created_at,
|
|
20
|
+
expires_at,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# VPSV1TemplateTemplateResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Template ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | Template name | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | Template description | [optional] [default to undefined]
|
|
11
|
+
**documentation** | **string** | Link to official OS documentation | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { VPSV1TemplateTemplateResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: VPSV1TemplateTemplateResource = {
|
|
19
|
+
id,
|
|
20
|
+
name,
|
|
21
|
+
description,
|
|
22
|
+
documentation,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VPSV1VirtualMachineHostnameUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**hostname** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1VirtualMachineHostnameUpdateRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1VirtualMachineHostnameUpdateRequest = {
|
|
16
|
+
hostname,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VPSV1VirtualMachineNameserversUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**ns1** | **string** | | [default to undefined]
|
|
9
|
+
**ns2** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1VirtualMachineNameserversUpdateRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1VirtualMachineNameserversUpdateRequest = {
|
|
17
|
+
ns1,
|
|
18
|
+
ns2,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VPSV1VirtualMachinePanelPasswordUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**password** | **string** | Panel password for the virtual machine | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1VirtualMachinePanelPasswordUpdateRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1VirtualMachinePanelPasswordUpdateRequest = {
|
|
16
|
+
password,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VPSV1VirtualMachineRecoveryStartRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**root_password** | **string** | Temporary root password for recovery mode | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1VirtualMachineRecoveryStartRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1VirtualMachineRecoveryStartRequest = {
|
|
16
|
+
root_password,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# VPSV1VirtualMachineRecreateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**template_id** | **number** | Template ID | [default to undefined]
|
|
9
|
+
**password** | **string** | Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. | [optional] [default to undefined]
|
|
10
|
+
**post_install_script_id** | **number** | Post-install script ID | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { VPSV1VirtualMachineRecreateRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: VPSV1VirtualMachineRecreateRequest = {
|
|
18
|
+
template_id,
|
|
19
|
+
password,
|
|
20
|
+
post_install_script_id,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VPSV1VirtualMachineRootPasswordUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**password** | **string** | Root password for the virtual machine | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1VirtualMachineRootPasswordUpdateRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1VirtualMachineRootPasswordUpdateRequest = {
|
|
16
|
+
password,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# VPSV1VirtualMachineSetupRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**template_id** | **number** | Template ID | [default to undefined]
|
|
9
|
+
**data_center_id** | **number** | Data center ID | [default to undefined]
|
|
10
|
+
**post_install_script_id** | **number** | Post-install script ID | [optional] [default to undefined]
|
|
11
|
+
**password** | **string** | Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. | [optional] [default to undefined]
|
|
12
|
+
**hostname** | **string** | Override default hostname of the virtual machine | [optional] [default to undefined]
|
|
13
|
+
**install_monarx** | **boolean** | Install Monarx malware scanner (if supported) | [optional] [default to false]
|
|
14
|
+
**enable_backups** | **boolean** | Enable weekly backup schedule | [optional] [default to true]
|
|
15
|
+
**ns1** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**ns2** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**public_key** | [**VPSV1VirtualMachineSetupRequestPublicKey**](VPSV1VirtualMachineSetupRequestPublicKey.md) | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { VPSV1VirtualMachineSetupRequest } from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const instance: VPSV1VirtualMachineSetupRequest = {
|
|
25
|
+
template_id,
|
|
26
|
+
data_center_id,
|
|
27
|
+
post_install_script_id,
|
|
28
|
+
password,
|
|
29
|
+
hostname,
|
|
30
|
+
install_monarx,
|
|
31
|
+
enable_backups,
|
|
32
|
+
ns1,
|
|
33
|
+
ns2,
|
|
34
|
+
public_key,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# VPSV1VirtualMachineSetupRequestPublicKey
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Name of the SSH key | [optional] [default to undefined]
|
|
9
|
+
**key** | **string** | SSH public key | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1VirtualMachineSetupRequestPublicKey } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1VirtualMachineSetupRequestPublicKey = {
|
|
17
|
+
name,
|
|
18
|
+
key,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# VPSV1VirtualMachineVirtualMachineResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Virtual machine ID | [optional] [default to undefined]
|
|
9
|
+
**firewall_group_id** | **number** | Active firewall ID, `null` if disabled | [optional] [default to undefined]
|
|
10
|
+
**subscription_id** | **string** | Subscription ID | [optional] [default to undefined]
|
|
11
|
+
**plan** | **string** | VPS plan name | [optional] [default to undefined]
|
|
12
|
+
**hostname** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**state** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**actions_lock** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**cpus** | **number** | CPUs count assigned to virtual machine | [optional] [default to undefined]
|
|
16
|
+
**memory** | **number** | Memory available to virtual machine (in megabytes) | [optional] [default to undefined]
|
|
17
|
+
**disk** | **number** | Virtual machine disk size (in megabytes) | [optional] [default to undefined]
|
|
18
|
+
**bandwidth** | **number** | Monthly internet traffic available to virtual machine (in megabytes) | [optional] [default to undefined]
|
|
19
|
+
**ns1** | **string** | Primary DNS resolver | [optional] [default to undefined]
|
|
20
|
+
**ns2** | **string** | Secondary DNS resolver | [optional] [default to undefined]
|
|
21
|
+
**ipv4** | [**Array<VPSV1IPAddressIPAddressResource>**](VPSV1IPAddressIPAddressResource.md) | Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource) | [optional] [default to undefined]
|
|
22
|
+
**ipv6** | [**Array<VPSV1IPAddressIPAddressResource>**](VPSV1IPAddressIPAddressResource.md) | Array of [`VPS.V1.IPAddress.IPAddressResource`](#model/vpsv1ipaddressipaddressresource) | [optional] [default to undefined]
|
|
23
|
+
**template** | [**VPSV1TemplateTemplateResource**](VPSV1TemplateTemplateResource.md) | | [optional] [default to undefined]
|
|
24
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { VPSV1VirtualMachineVirtualMachineResource } from 'hostinger-api-sdk';
|
|
30
|
+
|
|
31
|
+
const instance: VPSV1VirtualMachineVirtualMachineResource = {
|
|
32
|
+
id,
|
|
33
|
+
firewall_group_id,
|
|
34
|
+
subscription_id,
|
|
35
|
+
plan,
|
|
36
|
+
hostname,
|
|
37
|
+
state,
|
|
38
|
+
actions_lock,
|
|
39
|
+
cpus,
|
|
40
|
+
memory,
|
|
41
|
+
disk,
|
|
42
|
+
bandwidth,
|
|
43
|
+
ns1,
|
|
44
|
+
ns2,
|
|
45
|
+
ipv4,
|
|
46
|
+
ipv6,
|
|
47
|
+
template,
|
|
48
|
+
created_at,
|
|
49
|
+
};
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|