hostinger-api-sdk 3.4.1 → 3.4.2
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 +1 -183
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1 -96
- package/dist/api.js +1 -160
- 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 +1 -96
- package/dist/esm/api.js +1 -160
- 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/VPSPublicKeysApi.md +0 -59
- package/docs/VPSVirtualMachineApi.md +0 -57
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -33810,44 +33810,6 @@ export class VPSPostInstallScriptsApi extends BaseAPI {
|
|
|
33810
33810
|
*/
|
|
33811
33811
|
export const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
33812
33812
|
return {
|
|
33813
|
-
/**
|
|
33814
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
33815
|
-
* @summary Attach public key
|
|
33816
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
33817
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
33818
|
-
* @param {*} [options] Override http request option.
|
|
33819
|
-
* @deprecated
|
|
33820
|
-
* @throws {RequiredError}
|
|
33821
|
-
*/
|
|
33822
|
-
attachPublicKeyV1: (virtualMachineId_1, vPSV1PublicKeyAttachRequest_1, ...args_1) => __awaiter(this, [virtualMachineId_1, vPSV1PublicKeyAttachRequest_1, ...args_1], void 0, function* (virtualMachineId, vPSV1PublicKeyAttachRequest, options = {}) {
|
|
33823
|
-
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
33824
|
-
assertParamExists('attachPublicKeyV1', 'virtualMachineId', virtualMachineId);
|
|
33825
|
-
// verify required parameter 'vPSV1PublicKeyAttachRequest' is not null or undefined
|
|
33826
|
-
assertParamExists('attachPublicKeyV1', 'vPSV1PublicKeyAttachRequest', vPSV1PublicKeyAttachRequest);
|
|
33827
|
-
const localVarPath = `/api/vps/v1/public-keys/attach/{virtualMachineId}`
|
|
33828
|
-
.replace(`{${"virtualMachineId"}}`, encodePathParam('virtualMachineId', virtualMachineId));
|
|
33829
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33830
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33831
|
-
let baseOptions;
|
|
33832
|
-
if (configuration) {
|
|
33833
|
-
baseOptions = configuration.baseOptions;
|
|
33834
|
-
}
|
|
33835
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
33836
|
-
const localVarHeaderParameter = {};
|
|
33837
|
-
const localVarQueryParameter = {};
|
|
33838
|
-
// authentication apiToken required
|
|
33839
|
-
// http bearer authentication required
|
|
33840
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
33841
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
33842
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33843
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33844
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
33845
|
-
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1PublicKeyAttachRequest, localVarRequestOptions, configuration);
|
|
33846
|
-
return {
|
|
33847
|
-
url: toPathString(localVarUrlObj),
|
|
33848
|
-
options: localVarRequestOptions,
|
|
33849
|
-
};
|
|
33850
|
-
}),
|
|
33851
33813
|
/**
|
|
33852
33814
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
33853
33815
|
* @summary Create public key
|
|
@@ -33957,23 +33919,6 @@ export const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
|
33957
33919
|
export const VPSPublicKeysApiFp = function (configuration) {
|
|
33958
33920
|
const localVarAxiosParamCreator = VPSPublicKeysApiAxiosParamCreator(configuration);
|
|
33959
33921
|
return {
|
|
33960
|
-
/**
|
|
33961
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
33962
|
-
* @summary Attach public key
|
|
33963
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
33964
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
33965
|
-
* @param {*} [options] Override http request option.
|
|
33966
|
-
* @deprecated
|
|
33967
|
-
* @throws {RequiredError}
|
|
33968
|
-
*/
|
|
33969
|
-
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
33970
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33971
|
-
var _a, _b;
|
|
33972
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options);
|
|
33973
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSPublicKeysApi.attachPublicKeyV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
33974
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33975
|
-
});
|
|
33976
|
-
},
|
|
33977
33922
|
/**
|
|
33978
33923
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
33979
33924
|
* @summary Create public key
|
|
@@ -34031,18 +33976,6 @@ export const VPSPublicKeysApiFp = function (configuration) {
|
|
|
34031
33976
|
export const VPSPublicKeysApiFactory = function (configuration, basePath, axios) {
|
|
34032
33977
|
const localVarFp = VPSPublicKeysApiFp(configuration);
|
|
34033
33978
|
return {
|
|
34034
|
-
/**
|
|
34035
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
34036
|
-
* @summary Attach public key
|
|
34037
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
34038
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
34039
|
-
* @param {*} [options] Override http request option.
|
|
34040
|
-
* @deprecated
|
|
34041
|
-
* @throws {RequiredError}
|
|
34042
|
-
*/
|
|
34043
|
-
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
34044
|
-
return localVarFp.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(axios, basePath));
|
|
34045
|
-
},
|
|
34046
33979
|
/**
|
|
34047
33980
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
34048
33981
|
* @summary Create public key
|
|
@@ -34085,19 +34018,6 @@ export const VPSPublicKeysApiFactory = function (configuration, basePath, axios)
|
|
|
34085
34018
|
* @extends {BaseAPI}
|
|
34086
34019
|
*/
|
|
34087
34020
|
export class VPSPublicKeysApi extends BaseAPI {
|
|
34088
|
-
/**
|
|
34089
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
34090
|
-
* @summary Attach public key
|
|
34091
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
34092
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
34093
|
-
* @param {*} [options] Override http request option.
|
|
34094
|
-
* @deprecated
|
|
34095
|
-
* @throws {RequiredError}
|
|
34096
|
-
* @memberof VPSPublicKeysApi
|
|
34097
|
-
*/
|
|
34098
|
-
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
34099
|
-
return VPSPublicKeysApiFp(this.configuration).attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34100
|
-
}
|
|
34101
34021
|
/**
|
|
34102
34022
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
34103
34023
|
* @summary Create public key
|
|
@@ -34879,43 +34799,6 @@ export class VPSSnapshotsApi extends BaseAPI {
|
|
|
34879
34799
|
*/
|
|
34880
34800
|
export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
34881
34801
|
return {
|
|
34882
|
-
/**
|
|
34883
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
34884
|
-
* @summary Get attached public keys
|
|
34885
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
34886
|
-
* @param {number} [page] Page number
|
|
34887
|
-
* @param {*} [options] Override http request option.
|
|
34888
|
-
* @deprecated
|
|
34889
|
-
* @throws {RequiredError}
|
|
34890
|
-
*/
|
|
34891
|
-
getAttachedPublicKeysV1: (virtualMachineId_1, page_1, ...args_1) => __awaiter(this, [virtualMachineId_1, page_1, ...args_1], void 0, function* (virtualMachineId, page, options = {}) {
|
|
34892
|
-
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
34893
|
-
assertParamExists('getAttachedPublicKeysV1', 'virtualMachineId', virtualMachineId);
|
|
34894
|
-
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/public-keys`
|
|
34895
|
-
.replace(`{${"virtualMachineId"}}`, encodePathParam('virtualMachineId', virtualMachineId));
|
|
34896
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34897
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34898
|
-
let baseOptions;
|
|
34899
|
-
if (configuration) {
|
|
34900
|
-
baseOptions = configuration.baseOptions;
|
|
34901
|
-
}
|
|
34902
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
34903
|
-
const localVarHeaderParameter = {};
|
|
34904
|
-
const localVarQueryParameter = {};
|
|
34905
|
-
// authentication apiToken required
|
|
34906
|
-
// http bearer authentication required
|
|
34907
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
34908
|
-
if (page !== undefined) {
|
|
34909
|
-
localVarQueryParameter['page'] = page;
|
|
34910
|
-
}
|
|
34911
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34912
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34913
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34914
|
-
return {
|
|
34915
|
-
url: toPathString(localVarUrlObj),
|
|
34916
|
-
options: localVarRequestOptions,
|
|
34917
|
-
};
|
|
34918
|
-
}),
|
|
34919
34802
|
/**
|
|
34920
34803
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
34921
34804
|
* @summary Get metrics
|
|
@@ -35416,23 +35299,6 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
|
35416
35299
|
export const VPSVirtualMachineApiFp = function (configuration) {
|
|
35417
35300
|
const localVarAxiosParamCreator = VPSVirtualMachineApiAxiosParamCreator(configuration);
|
|
35418
35301
|
return {
|
|
35419
|
-
/**
|
|
35420
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
35421
|
-
* @summary Get attached public keys
|
|
35422
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
35423
|
-
* @param {number} [page] Page number
|
|
35424
|
-
* @param {*} [options] Override http request option.
|
|
35425
|
-
* @deprecated
|
|
35426
|
-
* @throws {RequiredError}
|
|
35427
|
-
*/
|
|
35428
|
-
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
35429
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
35430
|
-
var _a, _b;
|
|
35431
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAttachedPublicKeysV1(virtualMachineId, page, options);
|
|
35432
|
-
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSVirtualMachineApi.getAttachedPublicKeysV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
35433
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35434
|
-
});
|
|
35435
|
-
},
|
|
35436
35302
|
/**
|
|
35437
35303
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
35438
35304
|
* @summary Get metrics
|
|
@@ -35659,18 +35525,6 @@ export const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
35659
35525
|
export const VPSVirtualMachineApiFactory = function (configuration, basePath, axios) {
|
|
35660
35526
|
const localVarFp = VPSVirtualMachineApiFp(configuration);
|
|
35661
35527
|
return {
|
|
35662
|
-
/**
|
|
35663
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
35664
|
-
* @summary Get attached public keys
|
|
35665
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
35666
|
-
* @param {number} [page] Page number
|
|
35667
|
-
* @param {*} [options] Override http request option.
|
|
35668
|
-
* @deprecated
|
|
35669
|
-
* @throws {RequiredError}
|
|
35670
|
-
*/
|
|
35671
|
-
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
35672
|
-
return localVarFp.getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
|
|
35673
|
-
},
|
|
35674
35528
|
/**
|
|
35675
35529
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
35676
35530
|
* @summary Get metrics
|
|
@@ -35827,19 +35681,6 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
|
|
|
35827
35681
|
* @extends {BaseAPI}
|
|
35828
35682
|
*/
|
|
35829
35683
|
export class VPSVirtualMachineApi extends BaseAPI {
|
|
35830
|
-
/**
|
|
35831
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
35832
|
-
* @summary Get attached public keys
|
|
35833
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
35834
|
-
* @param {number} [page] Page number
|
|
35835
|
-
* @param {*} [options] Override http request option.
|
|
35836
|
-
* @deprecated
|
|
35837
|
-
* @throws {RequiredError}
|
|
35838
|
-
* @memberof VPSVirtualMachineApi
|
|
35839
|
-
*/
|
|
35840
|
-
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
35841
|
-
return VPSVirtualMachineApiFp(this.configuration).getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(this.axios, this.basePath));
|
|
35842
|
-
}
|
|
35843
35684
|
/**
|
|
35844
35685
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
35845
35686
|
* @summary Get metrics
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.4.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.4.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.2
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.4.
|
|
7
|
+
* API Version: 3.4.2
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/docs/VPSPublicKeysApi.md
CHANGED
|
@@ -4,69 +4,10 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**attachPublicKeyV1**](#attachpublickeyv1) | **POST** /api/vps/v1/public-keys/attach/{virtualMachineId} | Attach public key|
|
|
8
7
|
|[**createPublicKeyV1**](#createpublickeyv1) | **POST** /api/vps/v1/public-keys | Create public key|
|
|
9
8
|
|[**deletePublicKeyV1**](#deletepublickeyv1) | **DELETE** /api/vps/v1/public-keys/{publicKeyId} | Delete public key|
|
|
10
9
|
|[**getPublicKeysV1**](#getpublickeysv1) | **GET** /api/vps/v1/public-keys | Get public keys|
|
|
11
10
|
|
|
12
|
-
# **attachPublicKeyV1**
|
|
13
|
-
> VPSV1ActionActionResource attachPublicKeyV1(vPSV1PublicKeyAttachRequest)
|
|
14
|
-
|
|
15
|
-
Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
16
|
-
|
|
17
|
-
### Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import {
|
|
21
|
-
VPSPublicKeysApi,
|
|
22
|
-
Configuration,
|
|
23
|
-
VPSV1PublicKeyAttachRequest
|
|
24
|
-
} from '@hostinger/sdk';
|
|
25
|
-
|
|
26
|
-
const configuration = new Configuration();
|
|
27
|
-
const apiInstance = new VPSPublicKeysApi(configuration);
|
|
28
|
-
|
|
29
|
-
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
30
|
-
let vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest; //
|
|
31
|
-
|
|
32
|
-
const { status, data } = await apiInstance.attachPublicKeyV1(
|
|
33
|
-
virtualMachineId,
|
|
34
|
-
vPSV1PublicKeyAttachRequest
|
|
35
|
-
);
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Parameters
|
|
39
|
-
|
|
40
|
-
|Name | Type | Description | Notes|
|
|
41
|
-
|------------- | ------------- | ------------- | -------------|
|
|
42
|
-
| **vPSV1PublicKeyAttachRequest** | **VPSV1PublicKeyAttachRequest**| | |
|
|
43
|
-
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
### Return type
|
|
47
|
-
|
|
48
|
-
**VPSV1ActionActionResource**
|
|
49
|
-
|
|
50
|
-
### Authorization
|
|
51
|
-
|
|
52
|
-
[apiToken](../README.md#apiToken)
|
|
53
|
-
|
|
54
|
-
### HTTP request headers
|
|
55
|
-
|
|
56
|
-
- **Content-Type**: application/json
|
|
57
|
-
- **Accept**: application/json
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
### HTTP response details
|
|
61
|
-
| Status code | Description | Response headers |
|
|
62
|
-
|-------------|-------------|------------------|
|
|
63
|
-
|**200** | Success response | - |
|
|
64
|
-
|**422** | Validation error response | - |
|
|
65
|
-
|**401** | Unauthenticated response | - |
|
|
66
|
-
|**500** | Error response | - |
|
|
67
|
-
|
|
68
|
-
[[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)
|
|
69
|
-
|
|
70
11
|
# **createPublicKeyV1**
|
|
71
12
|
> VPSV1PublicKeyPublicKeyResource createPublicKeyV1(vPSV1PublicKeyStoreRequest)
|
|
72
13
|
|
|
@@ -4,7 +4,6 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**getAttachedPublicKeysV1**](#getattachedpublickeysv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/public-keys | Get attached public keys|
|
|
8
7
|
|[**getMetricsV1**](#getmetricsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics|
|
|
9
8
|
|[**getVirtualMachineDetailsV1**](#getvirtualmachinedetailsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId} | Get virtual machine details|
|
|
10
9
|
|[**getVirtualMachinesV1**](#getvirtualmachinesv1) | **GET** /api/vps/v1/virtual-machines | Get virtual machines|
|
|
@@ -20,62 +19,6 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
20
19
|
|[**startVirtualMachineV1**](#startvirtualmachinev1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/start | Start virtual machine|
|
|
21
20
|
|[**stopVirtualMachineV1**](#stopvirtualmachinev1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/stop | Stop virtual machine|
|
|
22
21
|
|
|
23
|
-
# **getAttachedPublicKeysV1**
|
|
24
|
-
> VPSV1PublicKeyListResponse getAttachedPublicKeysV1()
|
|
25
|
-
|
|
26
|
-
Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
27
|
-
|
|
28
|
-
### Example
|
|
29
|
-
|
|
30
|
-
```typescript
|
|
31
|
-
import {
|
|
32
|
-
VPSVirtualMachineApi,
|
|
33
|
-
Configuration
|
|
34
|
-
} from '@hostinger/sdk';
|
|
35
|
-
|
|
36
|
-
const configuration = new Configuration();
|
|
37
|
-
const apiInstance = new VPSVirtualMachineApi(configuration);
|
|
38
|
-
|
|
39
|
-
let virtualMachineId: number; //Virtual Machine ID (default to undefined)
|
|
40
|
-
let page: number; //Page number (optional) (default to undefined)
|
|
41
|
-
|
|
42
|
-
const { status, data } = await apiInstance.getAttachedPublicKeysV1(
|
|
43
|
-
virtualMachineId,
|
|
44
|
-
page
|
|
45
|
-
);
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
|Name | Type | Description | Notes|
|
|
51
|
-
|------------- | ------------- | ------------- | -------------|
|
|
52
|
-
| **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
|
|
53
|
-
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
### Return type
|
|
57
|
-
|
|
58
|
-
**VPSV1PublicKeyListResponse**
|
|
59
|
-
|
|
60
|
-
### Authorization
|
|
61
|
-
|
|
62
|
-
[apiToken](../README.md#apiToken)
|
|
63
|
-
|
|
64
|
-
### HTTP request headers
|
|
65
|
-
|
|
66
|
-
- **Content-Type**: Not defined
|
|
67
|
-
- **Accept**: application/json
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### HTTP response details
|
|
71
|
-
| Status code | Description | Response headers |
|
|
72
|
-
|-------------|-------------|------------------|
|
|
73
|
-
|**200** | Success response | - |
|
|
74
|
-
|**401** | Unauthenticated response | - |
|
|
75
|
-
|**500** | Error response | - |
|
|
76
|
-
|
|
77
|
-
[[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)
|
|
78
|
-
|
|
79
22
|
# **getMetricsV1**
|
|
80
23
|
> VPSV1MetricsMetricsCollection getMetricsV1()
|
|
81
24
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
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/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)
|