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,22 @@
|
|
|
1
|
+
# BillingV1OrderStoreRequestItemsInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**item_id** | **string** | Price Item ID | [default to undefined]
|
|
9
|
+
**quantity** | **number** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BillingV1OrderStoreRequestItemsInner } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BillingV1OrderStoreRequestItemsInner = {
|
|
17
|
+
item_id,
|
|
18
|
+
quantity,
|
|
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,36 @@
|
|
|
1
|
+
# BillingV1PaymentMethodPaymentMethodResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Payment method ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**identifier** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**payment_method** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**is_default** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
**is_expired** | **boolean** | | [optional] [default to undefined]
|
|
14
|
+
**is_suspended** | **boolean** | | [optional] [default to undefined]
|
|
15
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**expires_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { BillingV1PaymentMethodPaymentMethodResource } from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const instance: BillingV1PaymentMethodPaymentMethodResource = {
|
|
24
|
+
id,
|
|
25
|
+
name,
|
|
26
|
+
identifier,
|
|
27
|
+
payment_method,
|
|
28
|
+
is_default,
|
|
29
|
+
is_expired,
|
|
30
|
+
is_suspended,
|
|
31
|
+
created_at,
|
|
32
|
+
expires_at,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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
|
+
# BillingV1SubscriptionCancelRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**reason_code** | **string** | Cancellation reason code | [optional] [default to undefined]
|
|
9
|
+
**cancel_option** | **string** | Cancellation option | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BillingV1SubscriptionCancelRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: BillingV1SubscriptionCancelRequest = {
|
|
17
|
+
reason_code,
|
|
18
|
+
cancel_option,
|
|
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,42 @@
|
|
|
1
|
+
# BillingV1SubscriptionSubscriptionResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Subscription ID | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**billing_period** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**billing_period_unit** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**currency_code** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**total_price** | **number** | Total price in cents | [optional] [default to undefined]
|
|
15
|
+
**renewal_price** | **number** | Renewal price in cents | [optional] [default to undefined]
|
|
16
|
+
**is_auto_renewed** | **boolean** | | [optional] [default to undefined]
|
|
17
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
18
|
+
**expires_at** | **string** | | [optional] [default to undefined]
|
|
19
|
+
**next_billing_at** | **string** | | [optional] [default to undefined]
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { BillingV1SubscriptionSubscriptionResource } from 'hostinger-api-sdk';
|
|
25
|
+
|
|
26
|
+
const instance: BillingV1SubscriptionSubscriptionResource = {
|
|
27
|
+
id,
|
|
28
|
+
name,
|
|
29
|
+
status,
|
|
30
|
+
billing_period,
|
|
31
|
+
billing_period_unit,
|
|
32
|
+
currency_code,
|
|
33
|
+
total_price,
|
|
34
|
+
renewal_price,
|
|
35
|
+
is_auto_renewed,
|
|
36
|
+
created_at,
|
|
37
|
+
expires_at,
|
|
38
|
+
next_billing_at,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[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
|
+
# CommonSchemaErrorResponseSchema
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**correlation_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CommonSchemaErrorResponseSchema } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CommonSchemaErrorResponseSchema = {
|
|
17
|
+
message,
|
|
18
|
+
correlation_id,
|
|
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
|
+
# CommonSchemaPaginationMetaSchema
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**current_page** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**per_page** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**total** | **number** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CommonSchemaPaginationMetaSchema } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: CommonSchemaPaginationMetaSchema = {
|
|
18
|
+
current_page,
|
|
19
|
+
per_page,
|
|
20
|
+
total,
|
|
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
|
+
# CommonSchemaUnauthorizedResponseSchema
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**correlation_id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CommonSchemaUnauthorizedResponseSchema } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CommonSchemaUnauthorizedResponseSchema = {
|
|
17
|
+
message,
|
|
18
|
+
correlation_id,
|
|
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
|
+
# CommonSchemaUnprocessableContentResponseSchema
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Validation error message | [optional] [default to undefined]
|
|
9
|
+
**errors** | [**CommonSchemaUnprocessableContentResponseSchemaErrors**](CommonSchemaUnprocessableContentResponseSchemaErrors.md) | | [optional] [default to undefined]
|
|
10
|
+
**correlation_id** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CommonSchemaUnprocessableContentResponseSchema } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: CommonSchemaUnprocessableContentResponseSchema = {
|
|
18
|
+
message,
|
|
19
|
+
errors,
|
|
20
|
+
correlation_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,22 @@
|
|
|
1
|
+
# CommonSchemaUnprocessableContentResponseSchemaErrors
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**field_1** | **Array<any>** | | [optional] [default to undefined]
|
|
9
|
+
**field_2** | **Array<any>** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { CommonSchemaUnprocessableContentResponseSchemaErrors } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: CommonSchemaUnprocessableContentResponseSchemaErrors = {
|
|
17
|
+
field_1,
|
|
18
|
+
field_2,
|
|
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
|
+
# CommonSuccessEmptyResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { CommonSuccessEmptyResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: CommonSuccessEmptyResource = {
|
|
16
|
+
message,
|
|
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,175 @@
|
|
|
1
|
+
# DNSSnapshotApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getSnapshotListV1**](#getsnapshotlistv1) | **GET** /api/dns/v1/snapshots/{domain} | Get snapshot list|
|
|
8
|
+
|[**getSnapshotV1**](#getsnapshotv1) | **GET** /api/dns/v1/snapshots/{domain}/{snapshotId} | Get snapshot|
|
|
9
|
+
|[**restoreSnapshotV1**](#restoresnapshotv1) | **POST** /api/dns/v1/snapshots/{domain}/{snapshotId}/restore | Restore snapshot|
|
|
10
|
+
|
|
11
|
+
# **getSnapshotListV1**
|
|
12
|
+
> Array<DNSV1SnapshotSnapshotResource> getSnapshotListV1()
|
|
13
|
+
|
|
14
|
+
This endpoint retrieves list of DNS snapshots.
|
|
15
|
+
|
|
16
|
+
### Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import {
|
|
20
|
+
DNSSnapshotApi,
|
|
21
|
+
Configuration
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new DNSSnapshotApi(configuration);
|
|
26
|
+
|
|
27
|
+
let domain: string; //Domain name (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.getSnapshotListV1(
|
|
30
|
+
domain
|
|
31
|
+
);
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Parameters
|
|
35
|
+
|
|
36
|
+
|Name | Type | Description | Notes|
|
|
37
|
+
|------------- | ------------- | ------------- | -------------|
|
|
38
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Return type
|
|
42
|
+
|
|
43
|
+
**Array<DNSV1SnapshotSnapshotResource>**
|
|
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
|
+
|**401** | Unauthenticated | - |
|
|
60
|
+
|**500** | Error response | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
64
|
+
# **getSnapshotV1**
|
|
65
|
+
> DNSV1SnapshotSnapshotWithContentResource getSnapshotV1()
|
|
66
|
+
|
|
67
|
+
This endpoint retrieves particular DNS snapshot with the contents of DNS zone records.
|
|
68
|
+
|
|
69
|
+
### Example
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import {
|
|
73
|
+
DNSSnapshotApi,
|
|
74
|
+
Configuration
|
|
75
|
+
} from 'hostinger-api-sdk';
|
|
76
|
+
|
|
77
|
+
const configuration = new Configuration();
|
|
78
|
+
const apiInstance = new DNSSnapshotApi(configuration);
|
|
79
|
+
|
|
80
|
+
let domain: string; //Domain name (default to undefined)
|
|
81
|
+
let snapshotId: number; //Snapshot ID (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.getSnapshotV1(
|
|
84
|
+
domain,
|
|
85
|
+
snapshotId
|
|
86
|
+
);
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Parameters
|
|
90
|
+
|
|
91
|
+
|Name | Type | Description | Notes|
|
|
92
|
+
|------------- | ------------- | ------------- | -------------|
|
|
93
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
94
|
+
| **snapshotId** | [**number**] | Snapshot ID | defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
**DNSV1SnapshotSnapshotWithContentResource**
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
[apiToken](../README.md#apiToken)
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: Not defined
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | Success response | - |
|
|
115
|
+
|**401** | Unauthenticated | - |
|
|
116
|
+
|**500** | Error response | - |
|
|
117
|
+
|
|
118
|
+
[[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)
|
|
119
|
+
|
|
120
|
+
# **restoreSnapshotV1**
|
|
121
|
+
> CommonSuccessEmptyResource restoreSnapshotV1()
|
|
122
|
+
|
|
123
|
+
This endpoint restores DNS zone to the selected snapshot.
|
|
124
|
+
|
|
125
|
+
### Example
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
import {
|
|
129
|
+
DNSSnapshotApi,
|
|
130
|
+
Configuration
|
|
131
|
+
} from 'hostinger-api-sdk';
|
|
132
|
+
|
|
133
|
+
const configuration = new Configuration();
|
|
134
|
+
const apiInstance = new DNSSnapshotApi(configuration);
|
|
135
|
+
|
|
136
|
+
let domain: string; //Domain name (default to undefined)
|
|
137
|
+
let snapshotId: number; //Snapshot ID (default to undefined)
|
|
138
|
+
|
|
139
|
+
const { status, data } = await apiInstance.restoreSnapshotV1(
|
|
140
|
+
domain,
|
|
141
|
+
snapshotId
|
|
142
|
+
);
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
|Name | Type | Description | Notes|
|
|
148
|
+
|------------- | ------------- | ------------- | -------------|
|
|
149
|
+
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
150
|
+
| **snapshotId** | [**number**] | Snapshot ID | defaults to undefined|
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
**CommonSuccessEmptyResource**
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[apiToken](../README.md#apiToken)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
|**200** | Success response | - |
|
|
171
|
+
|**401** | Unauthenticated | - |
|
|
172
|
+
|**500** | Error response | - |
|
|
173
|
+
|
|
174
|
+
[[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)
|
|
175
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# DNSV1SnapshotSnapshotResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Snapshot ID | [optional] [default to undefined]
|
|
9
|
+
**reason** | **string** | Reason of the update | [optional] [default to undefined]
|
|
10
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DNSV1SnapshotSnapshotResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DNSV1SnapshotSnapshotResource = {
|
|
18
|
+
id,
|
|
19
|
+
reason,
|
|
20
|
+
created_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
|
+
# DNSV1SnapshotSnapshotWithContentResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | Snapshot ID | [optional] [default to undefined]
|
|
9
|
+
**reason** | **string** | Reason of the update | [optional] [default to undefined]
|
|
10
|
+
**snapshot** | [**Array<DNSV1ZoneRecordResource>**](DNSV1ZoneRecordResource.md) | Array of [`DNS.V1.Zone.RecordResource`](#model/dnsv1zonerecordresource) | [optional] [default to undefined]
|
|
11
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DNSV1SnapshotSnapshotWithContentResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DNSV1SnapshotSnapshotWithContentResource = {
|
|
19
|
+
id,
|
|
20
|
+
reason,
|
|
21
|
+
snapshot,
|
|
22
|
+
created_at,
|
|
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
|
+
# DNSV1ZoneDestroyRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**filters** | [**Array<DNSV1ZoneDestroyRequestFiltersInner>**](DNSV1ZoneDestroyRequestFiltersInner.md) | Filter records for deletion | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { DNSV1ZoneDestroyRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: DNSV1ZoneDestroyRequest = {
|
|
16
|
+
filters,
|
|
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
|
+
# DNSV1ZoneDestroyRequestFiltersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Name of the record | [default to undefined]
|
|
9
|
+
**type** | **string** | Type of the record | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DNSV1ZoneDestroyRequestFiltersInner } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DNSV1ZoneDestroyRequestFiltersInner = {
|
|
17
|
+
name,
|
|
18
|
+
type,
|
|
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
|
+
# DNSV1ZoneNameRecordResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**content** | **string** | Content of the name record | [optional] [default to undefined]
|
|
9
|
+
**is_disabled** | **boolean** | Flag to mark name record as disabled | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DNSV1ZoneNameRecordResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DNSV1ZoneNameRecordResource = {
|
|
17
|
+
content,
|
|
18
|
+
is_disabled,
|
|
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
|
+
# DNSV1ZoneRecordResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Name of the record (use `@` for wildcard name) | [optional] [default to undefined]
|
|
9
|
+
**records** | [**Array<DNSV1ZoneNameRecordResource>**](DNSV1ZoneNameRecordResource.md) | Array of [`DNS.V1.Zone.NameRecordResource`](#model/dnsv1zonenamerecordresource) | [optional] [default to undefined]
|
|
10
|
+
**ttl** | **number** | TTL (Time-To-Live) of the record | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | Type of the record | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DNSV1ZoneRecordResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DNSV1ZoneRecordResource = {
|
|
19
|
+
name,
|
|
20
|
+
records,
|
|
21
|
+
ttl,
|
|
22
|
+
type,
|
|
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,24 @@
|
|
|
1
|
+
# DNSV1ZoneResetRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**sync** | **boolean** | Determines if operation should be run synchronously | [optional] [default to true]
|
|
9
|
+
**reset_email_records** | **boolean** | Determines if email records should be reset | [optional] [default to true]
|
|
10
|
+
**whitelisted_record_types** | **Array<string>** | Specifies which record types to not reset | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DNSV1ZoneResetRequest } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DNSV1ZoneResetRequest = {
|
|
18
|
+
sync,
|
|
19
|
+
reset_email_records,
|
|
20
|
+
whitelisted_record_types,
|
|
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
|
+
# DNSV1ZoneUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**overwrite** | **boolean** | If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records\' ttl\'s are updated and new records are appended. If no matching RRs are found, they are created. | [optional] [default to true]
|
|
9
|
+
**zone** | [**Array<DNSV1ZoneUpdateRequestZoneInner>**](DNSV1ZoneUpdateRequestZoneInner.md) | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DNSV1ZoneUpdateRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DNSV1ZoneUpdateRequest = {
|
|
17
|
+
overwrite,
|
|
18
|
+
zone,
|
|
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
|
+
# DNSV1ZoneUpdateRequestZoneInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | Name of the record (use `@` for wildcard name) | [default to undefined]
|
|
9
|
+
**records** | [**Array<DNSV1ZoneUpdateRequestZoneInnerRecordsInner>**](DNSV1ZoneUpdateRequestZoneInnerRecordsInner.md) | Records assigned to the name | [optional] [default to undefined]
|
|
10
|
+
**ttl** | **number** | TTL (Time-To-Live) of the record | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | Type of the record | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { DNSV1ZoneUpdateRequestZoneInner } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: DNSV1ZoneUpdateRequestZoneInner = {
|
|
19
|
+
name,
|
|
20
|
+
records,
|
|
21
|
+
ttl,
|
|
22
|
+
type,
|
|
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)
|