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,34 @@
|
|
|
1
|
+
# VPSV1DockerManagerContainerResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Unique container identifier (short form of Docker container ID) | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | Container name as defined in docker-compose or assigned by Docker | [optional] [default to undefined]
|
|
10
|
+
**image** | **string** | Docker image name and tag used to create this container | [optional] [default to undefined]
|
|
11
|
+
**command** | **string** | Command being executed inside the container (may be truncated with ...) | [optional] [default to undefined]
|
|
12
|
+
**status** | **string** | Human-readable container status including uptime, exit codes, or error information | [optional] [default to undefined]
|
|
13
|
+
**state** | **string** | Programmatic container lifecycle state for automated processing | [optional] [default to undefined]
|
|
14
|
+
**ports** | [**Array<VPSV1DockerManagerContainerPortResource>**](VPSV1DockerManagerContainerPortResource.md) | Array of [`VPS.V1.DockerManager.ContainerPortResource`](#model/vpsv1dockermanagercontainerportresource) | [optional] [default to undefined]
|
|
15
|
+
**stats** | [**VPSV1DockerManagerContainerStatsResource**](VPSV1DockerManagerContainerStatsResource.md) | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { VPSV1DockerManagerContainerResource } from 'hostinger-api-sdk';
|
|
21
|
+
|
|
22
|
+
const instance: VPSV1DockerManagerContainerResource = {
|
|
23
|
+
id,
|
|
24
|
+
name,
|
|
25
|
+
image,
|
|
26
|
+
command,
|
|
27
|
+
status,
|
|
28
|
+
state,
|
|
29
|
+
ports,
|
|
30
|
+
stats,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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
|
+
# VPSV1DockerManagerContainerStatsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**cpu_percentage** | **number** | CPU usage in percentage | [optional] [default to undefined]
|
|
9
|
+
**memory_percentage** | **number** | Memory usage in percentage | [optional] [default to undefined]
|
|
10
|
+
**memory_used** | **number** | Used memory in bytes | [optional] [default to undefined]
|
|
11
|
+
**memory_total** | **number** | Total available memory in bytes | [optional] [default to undefined]
|
|
12
|
+
**net_in** | **number** | Inbound network traffic in bytes | [optional] [default to undefined]
|
|
13
|
+
**net_out** | **number** | Outbound network traffic in bytes | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { VPSV1DockerManagerContainerStatsResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: VPSV1DockerManagerContainerStatsResource = {
|
|
21
|
+
cpu_percentage,
|
|
22
|
+
memory_percentage,
|
|
23
|
+
memory_used,
|
|
24
|
+
memory_total,
|
|
25
|
+
net_in,
|
|
26
|
+
net_out,
|
|
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,20 @@
|
|
|
1
|
+
# VPSV1DockerManagerContentResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**content** | **string** | Contents of docker-compose file | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1DockerManagerContentResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1DockerManagerContentResource = {
|
|
16
|
+
content,
|
|
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
|
+
# VPSV1DockerManagerLogEntryResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**timestamp** | **string** | ISO 8601 formatted timestamp when the log entry was generated by the container | [optional] [default to undefined]
|
|
9
|
+
**line** | **string** | Raw log message content as output by the application inside the container | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1DockerManagerLogEntryResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1DockerManagerLogEntryResource = {
|
|
17
|
+
timestamp,
|
|
18
|
+
line,
|
|
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,22 @@
|
|
|
1
|
+
# VPSV1DockerManagerLogsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**service** | **string** | Name of the Docker Compose service that generated these log entries | [optional] [default to undefined]
|
|
9
|
+
**entries** | [**Array<VPSV1DockerManagerLogEntryResource>**](VPSV1DockerManagerLogEntryResource.md) | Array of [`VPS.V1.DockerManager.LogEntryResource`](#model/vpsv1dockermanagerlogentryresource) | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1DockerManagerLogsResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1DockerManagerLogsResource = {
|
|
17
|
+
service,
|
|
18
|
+
entries,
|
|
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,26 @@
|
|
|
1
|
+
# VPSV1DockerManagerProjectResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Docker Compose project name (derived from directory name or compose file) | [optional] [default to undefined]
|
|
9
|
+
**status** | **string** | Raw output from docker compose ps command showing service count and states | [optional] [default to undefined]
|
|
10
|
+
**state** | **string** | Derived project state parsed from the raw docker compose status | [optional] [default to undefined]
|
|
11
|
+
**path** | **string** | Full filesystem path to the docker-compose.yml file | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { VPSV1DockerManagerProjectResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: VPSV1DockerManagerProjectResource = {
|
|
19
|
+
name,
|
|
20
|
+
status,
|
|
21
|
+
state,
|
|
22
|
+
path,
|
|
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,30 @@
|
|
|
1
|
+
# VPSV1FirewallFirewallResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Firewall ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | Firewall name | [optional] [default to undefined]
|
|
10
|
+
**is_synced** | **boolean** | Is current firewall synced with VPS | [optional] [default to undefined]
|
|
11
|
+
**rules** | [**Array<VPSV1FirewallFirewallRuleResource>**](VPSV1FirewallFirewallRuleResource.md) | Array of [`VPS.V1.Firewall.FirewallRuleResource`](#model/vpsv1firewallfirewallruleresource) | [optional] [default to undefined]
|
|
12
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**updated_at** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { VPSV1FirewallFirewallResource } from 'hostinger-api-sdk';
|
|
19
|
+
|
|
20
|
+
const instance: VPSV1FirewallFirewallResource = {
|
|
21
|
+
id,
|
|
22
|
+
name,
|
|
23
|
+
is_synced,
|
|
24
|
+
rules,
|
|
25
|
+
created_at,
|
|
26
|
+
updated_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
|
+
# 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,22 @@
|
|
|
1
|
+
# VPSV1VirtualMachineDockerManagerUpRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**project_name** | **string** | Docker Compose project name using alphanumeric characters, dashes, and underscores only | [default to undefined]
|
|
9
|
+
**content** | **string** | URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1VirtualMachineDockerManagerUpRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1VirtualMachineDockerManagerUpRequest = {
|
|
17
|
+
project_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
|
+
# 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
|
+
# VPSV1VirtualMachineMetricGetRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**date_from** | **string** | | [default to undefined]
|
|
9
|
+
**date_to** | **string** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { VPSV1VirtualMachineMetricGetRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: VPSV1VirtualMachineMetricGetRequest = {
|
|
17
|
+
date_from,
|
|
18
|
+
date_to,
|
|
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
|
+
# 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
|
+
**ns3** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { VPSV1VirtualMachineNameserversUpdateRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: VPSV1VirtualMachineNameserversUpdateRequest = {
|
|
18
|
+
ns1,
|
|
19
|
+
ns2,
|
|
20
|
+
ns3,
|
|
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
|
+
# VPSV1VirtualMachinePTRStoreRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**domain** | **string** | Pointer record domain | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1VirtualMachinePTRStoreRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1VirtualMachinePTRStoreRequest = {
|
|
16
|
+
domain,
|
|
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)
|