@hostinger/sdk 1.60.1 → 1.62.0
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 +371 -21
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +231 -21
- package/dist/api.js +301 -23
- 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 +231 -21
- package/dist/esm/api.js +295 -21
- 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 +4 -4
- package/docs/VPSSSHKeysApi.md +179 -0
- package/docs/VPSV1SshKeyDestroyRequest.md +20 -0
- package/docs/VPSV1SshKeySshKeyResource.md +26 -0
- package/docs/VPSV1SshKeyStoreRequest.md +20 -0
- package/docs/VPSVirtualMachineApi.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.62.0
|
|
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
|
|
@@ -29,8 +29,8 @@ exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports
|
|
|
29
29
|
exports.MailLogsApiFp = exports.MailLogsApiAxiosParamCreator = exports.MailForwardersApi = exports.MailForwardersApiFactory = exports.MailForwardersApiFp = exports.MailForwardersApiAxiosParamCreator = exports.MailCatchallsApi = exports.MailCatchallsApiFactory = exports.MailCatchallsApiFp = exports.MailCatchallsApiAxiosParamCreator = exports.MailAutorepliesApi = exports.MailAutorepliesApiFactory = exports.MailAutorepliesApiFp = exports.MailAutorepliesApiAxiosParamCreator = exports.MailAliasesApi = exports.MailAliasesApiFactory = exports.MailAliasesApiFp = exports.MailAliasesApiAxiosParamCreator = exports.MailAPITokensApi = exports.MailAPITokensApiFactory = exports.MailAPITokensApiFp = exports.MailAPITokensApiAxiosParamCreator = exports.ListWebsitesV1WebsiteTypesEnum = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.HostingSSLApi = exports.HostingSSLApiFactory = exports.HostingSSLApiFp = exports.HostingSSLApiAxiosParamCreator = exports.HostingRedirectsApi = exports.HostingRedirectsApiFactory = exports.HostingRedirectsApiFp = exports.HostingRedirectsApiAxiosParamCreator = exports.HostingPHPApi = exports.HostingPHPApiFactory = exports.HostingPHPApiFp = exports.HostingPHPApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJsVulnerabilitiesV1SeveritiesEnum = exports.ListNodeJSBuildsV1StatesEnum = exports.GetNodeJsRuntimeLogsV1LevelsEnum = exports.GetNodeJsRuntimeLogsV1PeriodEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = void 0;
|
|
30
30
|
exports.ReachFormsApiFactory = exports.ReachFormsApiFp = exports.ReachFormsApiAxiosParamCreator = exports.ListProfileContactsV1SubscriptionStatusEnum = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ReachContactFieldsApi = exports.ReachContactFieldsApiFactory = exports.ReachContactFieldsApiFp = exports.ReachContactFieldsApiAxiosParamCreator = exports.ListCampaignsV1SortDirectionEnum = exports.ListCampaignsV1TypeEnum = exports.ListCampaignsV1StatusEnum = exports.ReachCampaignsApi = exports.ReachCampaignsApiFactory = exports.ReachCampaignsApiFp = exports.ReachCampaignsApiAxiosParamCreator = exports.ListAutomationsV1SortDirectionEnum = exports.ListAutomationsV1StatusEnum = exports.ReachAutomationsApi = exports.ReachAutomationsApiFactory = exports.ReachAutomationsApiFp = exports.ReachAutomationsApiAxiosParamCreator = exports.ListWebhooksV1StatusEnum = exports.MailWebhooksApi = exports.MailWebhooksApiFactory = exports.MailWebhooksApiFp = exports.MailWebhooksApiAxiosParamCreator = exports.ListOrdersV1SortEnum = exports.ListOrdersV1StatusEnum = exports.MailOrdersApi = exports.MailOrdersApiFactory = exports.MailOrdersApiFp = exports.MailOrdersApiAxiosParamCreator = exports.ListMailboxesV1SortEnum = exports.MailMailboxesApi = exports.MailMailboxesApiFactory = exports.MailMailboxesApiFp = exports.MailMailboxesApiAxiosParamCreator = exports.ListOutboundLogsV1StatusEnum = exports.ListMailboxActionLogsV1EventEnum = exports.ListInboundLogsV1StatusEnum = exports.ListActionLogsV1StatusEnum = exports.ListAccessLogsV1ProtocolEnum = exports.ListAccessLogsV1StatusEnum = exports.MailLogsApi = exports.MailLogsApiFactory = void 0;
|
|
31
31
|
exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachTemplatesApi = exports.ReachTemplatesApiFactory = exports.ReachTemplatesApiFp = exports.ReachTemplatesApiAxiosParamCreator = exports.ReachTagsApi = exports.ReachTagsApiFactory = exports.ReachTagsApiFp = exports.ReachTagsApiAxiosParamCreator = exports.ListProfileSegmentsV1CountTypeEnum = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ReachFormsApi = void 0;
|
|
32
|
-
exports.
|
|
33
|
-
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = void 0;
|
|
32
|
+
exports.WordPressObjectCacheApi = exports.WordPressObjectCacheApiFactory = exports.WordPressObjectCacheApiFp = exports.WordPressObjectCacheApiAxiosParamCreator = exports.WordPressMaintenanceApi = exports.WordPressMaintenanceApiFactory = exports.WordPressMaintenanceApiFp = exports.WordPressMaintenanceApiAxiosParamCreator = exports.WordPressLoginApi = exports.WordPressLoginApiFactory = exports.WordPressLoginApiFp = exports.WordPressLoginApiAxiosParamCreator = exports.WordPressLiteSpeedCacheApi = exports.WordPressLiteSpeedCacheApiFactory = exports.WordPressLiteSpeedCacheApiFp = exports.WordPressLiteSpeedCacheApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.WordPressInstallationsApi = exports.WordPressInstallationsApiFactory = exports.WordPressInstallationsApiFp = exports.WordPressInstallationsApiAxiosParamCreator = exports.ShowAIOptionStatusV1OptionEnum = exports.WordPressAIToolsApi = exports.WordPressAIToolsApiFactory = exports.WordPressAIToolsApiFp = exports.WordPressAIToolsApiAxiosParamCreator = exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSSSHKeysApi = exports.VPSSSHKeysApiFactory = exports.VPSSSHKeysApiFp = exports.VPSSSHKeysApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = void 0;
|
|
33
|
+
exports.WordPressThemesApi = exports.WordPressThemesApiFactory = exports.WordPressThemesApiFp = exports.WordPressThemesApiAxiosParamCreator = exports.ListInstalledWordPressPluginsV1CategoryEnum = exports.WordPressPluginsApi = exports.WordPressPluginsApiFactory = exports.WordPressPluginsApiFp = exports.WordPressPluginsApiAxiosParamCreator = void 0;
|
|
34
34
|
const axios_1 = require("axios");
|
|
35
35
|
// Some imports not used depending on template conditions
|
|
36
36
|
// @ts-ignore
|
|
@@ -30059,11 +30059,12 @@ exports.VPSPostInstallScriptsApi = VPSPostInstallScriptsApi;
|
|
|
30059
30059
|
const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
30060
30060
|
return {
|
|
30061
30061
|
/**
|
|
30062
|
-
* 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.
|
|
30062
|
+
* 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.
|
|
30063
30063
|
* @summary Attach public key
|
|
30064
30064
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
30065
30065
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
30066
30066
|
* @param {*} [options] Override http request option.
|
|
30067
|
+
* @deprecated
|
|
30067
30068
|
* @throws {RequiredError}
|
|
30068
30069
|
*/
|
|
30069
30070
|
attachPublicKeyV1: (virtualMachineId_1, vPSV1PublicKeyAttachRequest_1, ...args_1) => __awaiter(this, [virtualMachineId_1, vPSV1PublicKeyAttachRequest_1, ...args_1], void 0, function* (virtualMachineId, vPSV1PublicKeyAttachRequest, options = {}) {
|
|
@@ -30096,10 +30097,11 @@ const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
|
30096
30097
|
};
|
|
30097
30098
|
}),
|
|
30098
30099
|
/**
|
|
30099
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
30100
|
+
* 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.
|
|
30100
30101
|
* @summary Create public key
|
|
30101
30102
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
30102
30103
|
* @param {*} [options] Override http request option.
|
|
30104
|
+
* @deprecated
|
|
30103
30105
|
* @throws {RequiredError}
|
|
30104
30106
|
*/
|
|
30105
30107
|
createPublicKeyV1: (vPSV1PublicKeyStoreRequest_1, ...args_1) => __awaiter(this, [vPSV1PublicKeyStoreRequest_1, ...args_1], void 0, function* (vPSV1PublicKeyStoreRequest, options = {}) {
|
|
@@ -30129,10 +30131,11 @@ const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
|
30129
30131
|
};
|
|
30130
30132
|
}),
|
|
30131
30133
|
/**
|
|
30132
|
-
* Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30134
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30133
30135
|
* @summary Delete public key
|
|
30134
30136
|
* @param {number} publicKeyId Public Key ID
|
|
30135
30137
|
* @param {*} [options] Override http request option.
|
|
30138
|
+
* @deprecated
|
|
30136
30139
|
* @throws {RequiredError}
|
|
30137
30140
|
*/
|
|
30138
30141
|
deletePublicKeyV1: (publicKeyId_1, ...args_1) => __awaiter(this, [publicKeyId_1, ...args_1], void 0, function* (publicKeyId, options = {}) {
|
|
@@ -30161,10 +30164,11 @@ const VPSPublicKeysApiAxiosParamCreator = function (configuration) {
|
|
|
30161
30164
|
};
|
|
30162
30165
|
}),
|
|
30163
30166
|
/**
|
|
30164
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30167
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30165
30168
|
* @summary Get public keys
|
|
30166
30169
|
* @param {number} [page] Page number
|
|
30167
30170
|
* @param {*} [options] Override http request option.
|
|
30171
|
+
* @deprecated
|
|
30168
30172
|
* @throws {RequiredError}
|
|
30169
30173
|
*/
|
|
30170
30174
|
getPublicKeysV1: (page_1, ...args_1) => __awaiter(this, [page_1, ...args_1], void 0, function* (page, options = {}) {
|
|
@@ -30203,11 +30207,12 @@ const VPSPublicKeysApiFp = function (configuration) {
|
|
|
30203
30207
|
const localVarAxiosParamCreator = (0, exports.VPSPublicKeysApiAxiosParamCreator)(configuration);
|
|
30204
30208
|
return {
|
|
30205
30209
|
/**
|
|
30206
|
-
* 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.
|
|
30210
|
+
* 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.
|
|
30207
30211
|
* @summary Attach public key
|
|
30208
30212
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
30209
30213
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
30210
30214
|
* @param {*} [options] Override http request option.
|
|
30215
|
+
* @deprecated
|
|
30211
30216
|
* @throws {RequiredError}
|
|
30212
30217
|
*/
|
|
30213
30218
|
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
@@ -30219,10 +30224,11 @@ const VPSPublicKeysApiFp = function (configuration) {
|
|
|
30219
30224
|
});
|
|
30220
30225
|
},
|
|
30221
30226
|
/**
|
|
30222
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
30227
|
+
* 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.
|
|
30223
30228
|
* @summary Create public key
|
|
30224
30229
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
30225
30230
|
* @param {*} [options] Override http request option.
|
|
30231
|
+
* @deprecated
|
|
30226
30232
|
* @throws {RequiredError}
|
|
30227
30233
|
*/
|
|
30228
30234
|
createPublicKeyV1(vPSV1PublicKeyStoreRequest, options) {
|
|
@@ -30234,10 +30240,11 @@ const VPSPublicKeysApiFp = function (configuration) {
|
|
|
30234
30240
|
});
|
|
30235
30241
|
},
|
|
30236
30242
|
/**
|
|
30237
|
-
* Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30243
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30238
30244
|
* @summary Delete public key
|
|
30239
30245
|
* @param {number} publicKeyId Public Key ID
|
|
30240
30246
|
* @param {*} [options] Override http request option.
|
|
30247
|
+
* @deprecated
|
|
30241
30248
|
* @throws {RequiredError}
|
|
30242
30249
|
*/
|
|
30243
30250
|
deletePublicKeyV1(publicKeyId, options) {
|
|
@@ -30249,10 +30256,11 @@ const VPSPublicKeysApiFp = function (configuration) {
|
|
|
30249
30256
|
});
|
|
30250
30257
|
},
|
|
30251
30258
|
/**
|
|
30252
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30259
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30253
30260
|
* @summary Get public keys
|
|
30254
30261
|
* @param {number} [page] Page number
|
|
30255
30262
|
* @param {*} [options] Override http request option.
|
|
30263
|
+
* @deprecated
|
|
30256
30264
|
* @throws {RequiredError}
|
|
30257
30265
|
*/
|
|
30258
30266
|
getPublicKeysV1(page, options) {
|
|
@@ -30274,41 +30282,45 @@ const VPSPublicKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
30274
30282
|
const localVarFp = (0, exports.VPSPublicKeysApiFp)(configuration);
|
|
30275
30283
|
return {
|
|
30276
30284
|
/**
|
|
30277
|
-
* 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.
|
|
30285
|
+
* 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.
|
|
30278
30286
|
* @summary Attach public key
|
|
30279
30287
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
30280
30288
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
30281
30289
|
* @param {*} [options] Override http request option.
|
|
30290
|
+
* @deprecated
|
|
30282
30291
|
* @throws {RequiredError}
|
|
30283
30292
|
*/
|
|
30284
30293
|
attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options) {
|
|
30285
30294
|
return localVarFp.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(axios, basePath));
|
|
30286
30295
|
},
|
|
30287
30296
|
/**
|
|
30288
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
30297
|
+
* 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.
|
|
30289
30298
|
* @summary Create public key
|
|
30290
30299
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
30291
30300
|
* @param {*} [options] Override http request option.
|
|
30301
|
+
* @deprecated
|
|
30292
30302
|
* @throws {RequiredError}
|
|
30293
30303
|
*/
|
|
30294
30304
|
createPublicKeyV1(vPSV1PublicKeyStoreRequest, options) {
|
|
30295
30305
|
return localVarFp.createPublicKeyV1(vPSV1PublicKeyStoreRequest, options).then((request) => request(axios, basePath));
|
|
30296
30306
|
},
|
|
30297
30307
|
/**
|
|
30298
|
-
* Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30308
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30299
30309
|
* @summary Delete public key
|
|
30300
30310
|
* @param {number} publicKeyId Public Key ID
|
|
30301
30311
|
* @param {*} [options] Override http request option.
|
|
30312
|
+
* @deprecated
|
|
30302
30313
|
* @throws {RequiredError}
|
|
30303
30314
|
*/
|
|
30304
30315
|
deletePublicKeyV1(publicKeyId, options) {
|
|
30305
30316
|
return localVarFp.deletePublicKeyV1(publicKeyId, options).then((request) => request(axios, basePath));
|
|
30306
30317
|
},
|
|
30307
30318
|
/**
|
|
30308
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30319
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30309
30320
|
* @summary Get public keys
|
|
30310
30321
|
* @param {number} [page] Page number
|
|
30311
30322
|
* @param {*} [options] Override http request option.
|
|
30323
|
+
* @deprecated
|
|
30312
30324
|
* @throws {RequiredError}
|
|
30313
30325
|
*/
|
|
30314
30326
|
getPublicKeysV1(page, options) {
|
|
@@ -30325,11 +30337,12 @@ exports.VPSPublicKeysApiFactory = VPSPublicKeysApiFactory;
|
|
|
30325
30337
|
*/
|
|
30326
30338
|
class VPSPublicKeysApi extends base_1.BaseAPI {
|
|
30327
30339
|
/**
|
|
30328
|
-
* 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.
|
|
30340
|
+
* 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.
|
|
30329
30341
|
* @summary Attach public key
|
|
30330
30342
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
30331
30343
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
30332
30344
|
* @param {*} [options] Override http request option.
|
|
30345
|
+
* @deprecated
|
|
30333
30346
|
* @throws {RequiredError}
|
|
30334
30347
|
* @memberof VPSPublicKeysApi
|
|
30335
30348
|
*/
|
|
@@ -30337,10 +30350,11 @@ class VPSPublicKeysApi extends base_1.BaseAPI {
|
|
|
30337
30350
|
return (0, exports.VPSPublicKeysApiFp)(this.configuration).attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30338
30351
|
}
|
|
30339
30352
|
/**
|
|
30340
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
30353
|
+
* 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.
|
|
30341
30354
|
* @summary Create public key
|
|
30342
30355
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
30343
30356
|
* @param {*} [options] Override http request option.
|
|
30357
|
+
* @deprecated
|
|
30344
30358
|
* @throws {RequiredError}
|
|
30345
30359
|
* @memberof VPSPublicKeysApi
|
|
30346
30360
|
*/
|
|
@@ -30348,10 +30362,11 @@ class VPSPublicKeysApi extends base_1.BaseAPI {
|
|
|
30348
30362
|
return (0, exports.VPSPublicKeysApiFp)(this.configuration).createPublicKeyV1(vPSV1PublicKeyStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30349
30363
|
}
|
|
30350
30364
|
/**
|
|
30351
|
-
* Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30365
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `DELETE /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Delete a public key from your account. **Deleting public key from account does not remove it from virtual machine** Use this endpoint to remove unused SSH keys from account.
|
|
30352
30366
|
* @summary Delete public key
|
|
30353
30367
|
* @param {number} publicKeyId Public Key ID
|
|
30354
30368
|
* @param {*} [options] Override http request option.
|
|
30369
|
+
* @deprecated
|
|
30355
30370
|
* @throws {RequiredError}
|
|
30356
30371
|
* @memberof VPSPublicKeysApi
|
|
30357
30372
|
*/
|
|
@@ -30359,10 +30374,11 @@ class VPSPublicKeysApi extends base_1.BaseAPI {
|
|
|
30359
30374
|
return (0, exports.VPSPublicKeysApiFp)(this.configuration).deletePublicKeyV1(publicKeyId, options).then((request) => request(this.axios, this.basePath));
|
|
30360
30375
|
}
|
|
30361
30376
|
/**
|
|
30362
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30377
|
+
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
30363
30378
|
* @summary Get public keys
|
|
30364
30379
|
* @param {number} [page] Page number
|
|
30365
30380
|
* @param {*} [options] Override http request option.
|
|
30381
|
+
* @deprecated
|
|
30366
30382
|
* @throws {RequiredError}
|
|
30367
30383
|
* @memberof VPSPublicKeysApi
|
|
30368
30384
|
*/
|
|
@@ -30553,6 +30569,264 @@ class VPSRecoveryApi extends base_1.BaseAPI {
|
|
|
30553
30569
|
}
|
|
30554
30570
|
}
|
|
30555
30571
|
exports.VPSRecoveryApi = VPSRecoveryApi;
|
|
30572
|
+
/**
|
|
30573
|
+
* VPSSSHKeysApi - axios parameter creator
|
|
30574
|
+
* @export
|
|
30575
|
+
*/
|
|
30576
|
+
const VPSSSHKeysApiAxiosParamCreator = function (configuration) {
|
|
30577
|
+
return {
|
|
30578
|
+
/**
|
|
30579
|
+
* Add one or more SSH public keys to a specified virtual machine. Keys are added to the `root` user and can be used for passwordless SSH authentication. Returns the complete list of SSH keys currently configured on the virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
30580
|
+
* @summary Add virtual machine SSH keys
|
|
30581
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30582
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
30583
|
+
* @param {*} [options] Override http request option.
|
|
30584
|
+
* @throws {RequiredError}
|
|
30585
|
+
*/
|
|
30586
|
+
addVirtualMachineSSHKeysV1: (virtualMachineId_1, vPSV1SshKeyStoreRequest_1, ...args_1) => __awaiter(this, [virtualMachineId_1, vPSV1SshKeyStoreRequest_1, ...args_1], void 0, function* (virtualMachineId, vPSV1SshKeyStoreRequest, options = {}) {
|
|
30587
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
30588
|
+
(0, common_1.assertParamExists)('addVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId);
|
|
30589
|
+
// verify required parameter 'vPSV1SshKeyStoreRequest' is not null or undefined
|
|
30590
|
+
(0, common_1.assertParamExists)('addVirtualMachineSSHKeysV1', 'vPSV1SshKeyStoreRequest', vPSV1SshKeyStoreRequest);
|
|
30591
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
30592
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
30593
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30594
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30595
|
+
let baseOptions;
|
|
30596
|
+
if (configuration) {
|
|
30597
|
+
baseOptions = configuration.baseOptions;
|
|
30598
|
+
}
|
|
30599
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
30600
|
+
const localVarHeaderParameter = {};
|
|
30601
|
+
const localVarQueryParameter = {};
|
|
30602
|
+
// authentication apiToken required
|
|
30603
|
+
// http bearer authentication required
|
|
30604
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
30605
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30606
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30607
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30608
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30609
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(vPSV1SshKeyStoreRequest, localVarRequestOptions, configuration);
|
|
30610
|
+
return {
|
|
30611
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30612
|
+
options: localVarRequestOptions,
|
|
30613
|
+
};
|
|
30614
|
+
}),
|
|
30615
|
+
/**
|
|
30616
|
+
* Retrieve SSH public keys currently configured on a specified virtual machine. Only keys of the `root` user are listed. Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
|
|
30617
|
+
* @summary List virtual machine SSH keys
|
|
30618
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30619
|
+
* @param {*} [options] Override http request option.
|
|
30620
|
+
* @throws {RequiredError}
|
|
30621
|
+
*/
|
|
30622
|
+
listVirtualMachineSSHKeysV1: (virtualMachineId_1, ...args_1) => __awaiter(this, [virtualMachineId_1, ...args_1], void 0, function* (virtualMachineId, options = {}) {
|
|
30623
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
30624
|
+
(0, common_1.assertParamExists)('listVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId);
|
|
30625
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
30626
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
30627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30628
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30629
|
+
let baseOptions;
|
|
30630
|
+
if (configuration) {
|
|
30631
|
+
baseOptions = configuration.baseOptions;
|
|
30632
|
+
}
|
|
30633
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
30634
|
+
const localVarHeaderParameter = {};
|
|
30635
|
+
const localVarQueryParameter = {};
|
|
30636
|
+
// authentication apiToken required
|
|
30637
|
+
// http bearer authentication required
|
|
30638
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
30639
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30640
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30641
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30642
|
+
return {
|
|
30643
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30644
|
+
options: localVarRequestOptions,
|
|
30645
|
+
};
|
|
30646
|
+
}),
|
|
30647
|
+
/**
|
|
30648
|
+
* Remove one or more SSH public keys from a specified virtual machine. Removed keys can no longer be used to authenticate via SSH as the `root` user. Returns the remaining list of SSH keys configured on the virtual machine. Use this endpoint to revoke SSH key access to VPS instances.
|
|
30649
|
+
* @summary Remove virtual machine SSH keys
|
|
30650
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30651
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
30652
|
+
* @param {*} [options] Override http request option.
|
|
30653
|
+
* @throws {RequiredError}
|
|
30654
|
+
*/
|
|
30655
|
+
removeVirtualMachineSSHKeysV1: (virtualMachineId_1, vPSV1SshKeyDestroyRequest_1, ...args_1) => __awaiter(this, [virtualMachineId_1, vPSV1SshKeyDestroyRequest_1, ...args_1], void 0, function* (virtualMachineId, vPSV1SshKeyDestroyRequest, options = {}) {
|
|
30656
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
30657
|
+
(0, common_1.assertParamExists)('removeVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId);
|
|
30658
|
+
// verify required parameter 'vPSV1SshKeyDestroyRequest' is not null or undefined
|
|
30659
|
+
(0, common_1.assertParamExists)('removeVirtualMachineSSHKeysV1', 'vPSV1SshKeyDestroyRequest', vPSV1SshKeyDestroyRequest);
|
|
30660
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
30661
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
30662
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30663
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
30664
|
+
let baseOptions;
|
|
30665
|
+
if (configuration) {
|
|
30666
|
+
baseOptions = configuration.baseOptions;
|
|
30667
|
+
}
|
|
30668
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
30669
|
+
const localVarHeaderParameter = {};
|
|
30670
|
+
const localVarQueryParameter = {};
|
|
30671
|
+
// authentication apiToken required
|
|
30672
|
+
// http bearer authentication required
|
|
30673
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
30674
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30675
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
30676
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30677
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
30678
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(vPSV1SshKeyDestroyRequest, localVarRequestOptions, configuration);
|
|
30679
|
+
return {
|
|
30680
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
30681
|
+
options: localVarRequestOptions,
|
|
30682
|
+
};
|
|
30683
|
+
}),
|
|
30684
|
+
};
|
|
30685
|
+
};
|
|
30686
|
+
exports.VPSSSHKeysApiAxiosParamCreator = VPSSSHKeysApiAxiosParamCreator;
|
|
30687
|
+
/**
|
|
30688
|
+
* VPSSSHKeysApi - functional programming interface
|
|
30689
|
+
* @export
|
|
30690
|
+
*/
|
|
30691
|
+
const VPSSSHKeysApiFp = function (configuration) {
|
|
30692
|
+
const localVarAxiosParamCreator = (0, exports.VPSSSHKeysApiAxiosParamCreator)(configuration);
|
|
30693
|
+
return {
|
|
30694
|
+
/**
|
|
30695
|
+
* Add one or more SSH public keys to a specified virtual machine. Keys are added to the `root` user and can be used for passwordless SSH authentication. Returns the complete list of SSH keys currently configured on the virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
30696
|
+
* @summary Add virtual machine SSH keys
|
|
30697
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30698
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
30699
|
+
* @param {*} [options] Override http request option.
|
|
30700
|
+
* @throws {RequiredError}
|
|
30701
|
+
*/
|
|
30702
|
+
addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options) {
|
|
30703
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30704
|
+
var _a, _b;
|
|
30705
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options);
|
|
30706
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['VPSSSHKeysApi.addVirtualMachineSSHKeysV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
30707
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30708
|
+
});
|
|
30709
|
+
},
|
|
30710
|
+
/**
|
|
30711
|
+
* Retrieve SSH public keys currently configured on a specified virtual machine. Only keys of the `root` user are listed. Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
|
|
30712
|
+
* @summary List virtual machine SSH keys
|
|
30713
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30714
|
+
* @param {*} [options] Override http request option.
|
|
30715
|
+
* @throws {RequiredError}
|
|
30716
|
+
*/
|
|
30717
|
+
listVirtualMachineSSHKeysV1(virtualMachineId, options) {
|
|
30718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30719
|
+
var _a, _b;
|
|
30720
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listVirtualMachineSSHKeysV1(virtualMachineId, options);
|
|
30721
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['VPSSSHKeysApi.listVirtualMachineSSHKeysV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
30722
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30723
|
+
});
|
|
30724
|
+
},
|
|
30725
|
+
/**
|
|
30726
|
+
* Remove one or more SSH public keys from a specified virtual machine. Removed keys can no longer be used to authenticate via SSH as the `root` user. Returns the remaining list of SSH keys configured on the virtual machine. Use this endpoint to revoke SSH key access to VPS instances.
|
|
30727
|
+
* @summary Remove virtual machine SSH keys
|
|
30728
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30729
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
30730
|
+
* @param {*} [options] Override http request option.
|
|
30731
|
+
* @throws {RequiredError}
|
|
30732
|
+
*/
|
|
30733
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options) {
|
|
30734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30735
|
+
var _a, _b;
|
|
30736
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options);
|
|
30737
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['VPSSSHKeysApi.removeVirtualMachineSSHKeysV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
30738
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30739
|
+
});
|
|
30740
|
+
},
|
|
30741
|
+
};
|
|
30742
|
+
};
|
|
30743
|
+
exports.VPSSSHKeysApiFp = VPSSSHKeysApiFp;
|
|
30744
|
+
/**
|
|
30745
|
+
* VPSSSHKeysApi - factory interface
|
|
30746
|
+
* @export
|
|
30747
|
+
*/
|
|
30748
|
+
const VPSSSHKeysApiFactory = function (configuration, basePath, axios) {
|
|
30749
|
+
const localVarFp = (0, exports.VPSSSHKeysApiFp)(configuration);
|
|
30750
|
+
return {
|
|
30751
|
+
/**
|
|
30752
|
+
* Add one or more SSH public keys to a specified virtual machine. Keys are added to the `root` user and can be used for passwordless SSH authentication. Returns the complete list of SSH keys currently configured on the virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
30753
|
+
* @summary Add virtual machine SSH keys
|
|
30754
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30755
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
30756
|
+
* @param {*} [options] Override http request option.
|
|
30757
|
+
* @throws {RequiredError}
|
|
30758
|
+
*/
|
|
30759
|
+
addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options) {
|
|
30760
|
+
return localVarFp.addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options).then((request) => request(axios, basePath));
|
|
30761
|
+
},
|
|
30762
|
+
/**
|
|
30763
|
+
* Retrieve SSH public keys currently configured on a specified virtual machine. Only keys of the `root` user are listed. Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
|
|
30764
|
+
* @summary List virtual machine SSH keys
|
|
30765
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30766
|
+
* @param {*} [options] Override http request option.
|
|
30767
|
+
* @throws {RequiredError}
|
|
30768
|
+
*/
|
|
30769
|
+
listVirtualMachineSSHKeysV1(virtualMachineId, options) {
|
|
30770
|
+
return localVarFp.listVirtualMachineSSHKeysV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
30771
|
+
},
|
|
30772
|
+
/**
|
|
30773
|
+
* Remove one or more SSH public keys from a specified virtual machine. Removed keys can no longer be used to authenticate via SSH as the `root` user. Returns the remaining list of SSH keys configured on the virtual machine. Use this endpoint to revoke SSH key access to VPS instances.
|
|
30774
|
+
* @summary Remove virtual machine SSH keys
|
|
30775
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30776
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
30777
|
+
* @param {*} [options] Override http request option.
|
|
30778
|
+
* @throws {RequiredError}
|
|
30779
|
+
*/
|
|
30780
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options) {
|
|
30781
|
+
return localVarFp.removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options).then((request) => request(axios, basePath));
|
|
30782
|
+
},
|
|
30783
|
+
};
|
|
30784
|
+
};
|
|
30785
|
+
exports.VPSSSHKeysApiFactory = VPSSSHKeysApiFactory;
|
|
30786
|
+
/**
|
|
30787
|
+
* VPSSSHKeysApi - object-oriented interface
|
|
30788
|
+
* @export
|
|
30789
|
+
* @class VPSSSHKeysApi
|
|
30790
|
+
* @extends {BaseAPI}
|
|
30791
|
+
*/
|
|
30792
|
+
class VPSSSHKeysApi extends base_1.BaseAPI {
|
|
30793
|
+
/**
|
|
30794
|
+
* Add one or more SSH public keys to a specified virtual machine. Keys are added to the `root` user and can be used for passwordless SSH authentication. Returns the complete list of SSH keys currently configured on the virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
30795
|
+
* @summary Add virtual machine SSH keys
|
|
30796
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30797
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
30798
|
+
* @param {*} [options] Override http request option.
|
|
30799
|
+
* @throws {RequiredError}
|
|
30800
|
+
* @memberof VPSSSHKeysApi
|
|
30801
|
+
*/
|
|
30802
|
+
addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options) {
|
|
30803
|
+
return (0, exports.VPSSSHKeysApiFp)(this.configuration).addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30804
|
+
}
|
|
30805
|
+
/**
|
|
30806
|
+
* Retrieve SSH public keys currently configured on a specified virtual machine. Only keys of the `root` user are listed. Use this endpoint to view SSH keys that can be used for authentication on VPS instances.
|
|
30807
|
+
* @summary List virtual machine SSH keys
|
|
30808
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30809
|
+
* @param {*} [options] Override http request option.
|
|
30810
|
+
* @throws {RequiredError}
|
|
30811
|
+
* @memberof VPSSSHKeysApi
|
|
30812
|
+
*/
|
|
30813
|
+
listVirtualMachineSSHKeysV1(virtualMachineId, options) {
|
|
30814
|
+
return (0, exports.VPSSSHKeysApiFp)(this.configuration).listVirtualMachineSSHKeysV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
30815
|
+
}
|
|
30816
|
+
/**
|
|
30817
|
+
* Remove one or more SSH public keys from a specified virtual machine. Removed keys can no longer be used to authenticate via SSH as the `root` user. Returns the remaining list of SSH keys configured on the virtual machine. Use this endpoint to revoke SSH key access to VPS instances.
|
|
30818
|
+
* @summary Remove virtual machine SSH keys
|
|
30819
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
30820
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
30821
|
+
* @param {*} [options] Override http request option.
|
|
30822
|
+
* @throws {RequiredError}
|
|
30823
|
+
* @memberof VPSSSHKeysApi
|
|
30824
|
+
*/
|
|
30825
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options) {
|
|
30826
|
+
return (0, exports.VPSSSHKeysApiFp)(this.configuration).removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30827
|
+
}
|
|
30828
|
+
}
|
|
30829
|
+
exports.VPSSSHKeysApi = VPSSSHKeysApi;
|
|
30556
30830
|
/**
|
|
30557
30831
|
* VPSSnapshotsApi - axios parameter creator
|
|
30558
30832
|
* @export
|
|
@@ -30870,11 +31144,12 @@ exports.VPSSnapshotsApi = VPSSnapshotsApi;
|
|
|
30870
31144
|
const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
|
|
30871
31145
|
return {
|
|
30872
31146
|
/**
|
|
30873
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
31147
|
+
* 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.
|
|
30874
31148
|
* @summary Get attached public keys
|
|
30875
31149
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
30876
31150
|
* @param {number} [page] Page number
|
|
30877
31151
|
* @param {*} [options] Override http request option.
|
|
31152
|
+
* @deprecated
|
|
30878
31153
|
* @throws {RequiredError}
|
|
30879
31154
|
*/
|
|
30880
31155
|
getAttachedPublicKeysV1: (virtualMachineId_1, page_1, ...args_1) => __awaiter(this, [virtualMachineId_1, page_1, ...args_1], void 0, function* (virtualMachineId, page, options = {}) {
|
|
@@ -31407,11 +31682,12 @@ const VPSVirtualMachineApiFp = function (configuration) {
|
|
|
31407
31682
|
const localVarAxiosParamCreator = (0, exports.VPSVirtualMachineApiAxiosParamCreator)(configuration);
|
|
31408
31683
|
return {
|
|
31409
31684
|
/**
|
|
31410
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
31685
|
+
* 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.
|
|
31411
31686
|
* @summary Get attached public keys
|
|
31412
31687
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31413
31688
|
* @param {number} [page] Page number
|
|
31414
31689
|
* @param {*} [options] Override http request option.
|
|
31690
|
+
* @deprecated
|
|
31415
31691
|
* @throws {RequiredError}
|
|
31416
31692
|
*/
|
|
31417
31693
|
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
@@ -31650,11 +31926,12 @@ const VPSVirtualMachineApiFactory = function (configuration, basePath, axios) {
|
|
|
31650
31926
|
const localVarFp = (0, exports.VPSVirtualMachineApiFp)(configuration);
|
|
31651
31927
|
return {
|
|
31652
31928
|
/**
|
|
31653
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
31929
|
+
* 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.
|
|
31654
31930
|
* @summary Get attached public keys
|
|
31655
31931
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31656
31932
|
* @param {number} [page] Page number
|
|
31657
31933
|
* @param {*} [options] Override http request option.
|
|
31934
|
+
* @deprecated
|
|
31658
31935
|
* @throws {RequiredError}
|
|
31659
31936
|
*/
|
|
31660
31937
|
getAttachedPublicKeysV1(virtualMachineId, page, options) {
|
|
@@ -31818,11 +32095,12 @@ exports.VPSVirtualMachineApiFactory = VPSVirtualMachineApiFactory;
|
|
|
31818
32095
|
*/
|
|
31819
32096
|
class VPSVirtualMachineApi extends base_1.BaseAPI {
|
|
31820
32097
|
/**
|
|
31821
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
32098
|
+
* 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.
|
|
31822
32099
|
* @summary Get attached public keys
|
|
31823
32100
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31824
32101
|
* @param {number} [page] Page number
|
|
31825
32102
|
* @param {*} [options] Override http request option.
|
|
32103
|
+
* @deprecated
|
|
31826
32104
|
* @throws {RequiredError}
|
|
31827
32105
|
* @memberof VPSVirtualMachineApi
|
|
31828
32106
|
*/
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.62.0
|
|
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/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.62.0
|
|
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/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.62.0
|
|
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/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.62.0
|
|
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/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.62.0
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.62.0
|
|
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
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.62.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|