@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/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.62.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.
|
|
8
|
+
npm install @hostinger/sdk@1.62.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.62.0
|
|
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
|
|
@@ -15670,6 +15670,63 @@ export interface VPSV1SnapshotSnapshotResource {
|
|
|
15670
15670
|
*/
|
|
15671
15671
|
'expires_at': string;
|
|
15672
15672
|
}
|
|
15673
|
+
/**
|
|
15674
|
+
*
|
|
15675
|
+
* @export
|
|
15676
|
+
* @interface VPSV1SshKeyDestroyRequest
|
|
15677
|
+
*/
|
|
15678
|
+
export interface VPSV1SshKeyDestroyRequest {
|
|
15679
|
+
/**
|
|
15680
|
+
* SSH public keys in OpenSSH format to remove
|
|
15681
|
+
* @type {Array<string>}
|
|
15682
|
+
* @memberof VPSV1SshKeyDestroyRequest
|
|
15683
|
+
*/
|
|
15684
|
+
'keys': Array<string>;
|
|
15685
|
+
}
|
|
15686
|
+
/**
|
|
15687
|
+
*
|
|
15688
|
+
* @export
|
|
15689
|
+
* @interface VPSV1SshKeySshKeyResource
|
|
15690
|
+
*/
|
|
15691
|
+
export interface VPSV1SshKeySshKeyResource {
|
|
15692
|
+
/**
|
|
15693
|
+
* SSH public key in OpenSSH format
|
|
15694
|
+
* @type {string}
|
|
15695
|
+
* @memberof VPSV1SshKeySshKeyResource
|
|
15696
|
+
*/
|
|
15697
|
+
'key': string;
|
|
15698
|
+
/**
|
|
15699
|
+
* SSH key type
|
|
15700
|
+
* @type {string}
|
|
15701
|
+
* @memberof VPSV1SshKeySshKeyResource
|
|
15702
|
+
*/
|
|
15703
|
+
'type': string;
|
|
15704
|
+
/**
|
|
15705
|
+
* SSH key data (base64 encoded public key)
|
|
15706
|
+
* @type {string}
|
|
15707
|
+
* @memberof VPSV1SshKeySshKeyResource
|
|
15708
|
+
*/
|
|
15709
|
+
'data': string;
|
|
15710
|
+
/**
|
|
15711
|
+
* SSH key comment/name
|
|
15712
|
+
* @type {string}
|
|
15713
|
+
* @memberof VPSV1SshKeySshKeyResource
|
|
15714
|
+
*/
|
|
15715
|
+
'name': string;
|
|
15716
|
+
}
|
|
15717
|
+
/**
|
|
15718
|
+
*
|
|
15719
|
+
* @export
|
|
15720
|
+
* @interface VPSV1SshKeyStoreRequest
|
|
15721
|
+
*/
|
|
15722
|
+
export interface VPSV1SshKeyStoreRequest {
|
|
15723
|
+
/**
|
|
15724
|
+
* SSH public keys in OpenSSH format to add
|
|
15725
|
+
* @type {Array<string>}
|
|
15726
|
+
* @memberof VPSV1SshKeyStoreRequest
|
|
15727
|
+
*/
|
|
15728
|
+
'keys': Array<string>;
|
|
15729
|
+
}
|
|
15673
15730
|
/**
|
|
15674
15731
|
*
|
|
15675
15732
|
* @export
|
|
@@ -48028,11 +48085,12 @@ export class VPSPostInstallScriptsApi extends BaseAPI {
|
|
|
48028
48085
|
export const VPSPublicKeysApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
48029
48086
|
return {
|
|
48030
48087
|
/**
|
|
48031
|
-
* 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.
|
|
48088
|
+
* 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.
|
|
48032
48089
|
* @summary Attach public key
|
|
48033
48090
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
48034
48091
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
48035
48092
|
* @param {*} [options] Override http request option.
|
|
48093
|
+
* @deprecated
|
|
48036
48094
|
* @throws {RequiredError}
|
|
48037
48095
|
*/
|
|
48038
48096
|
attachPublicKeyV1: async (virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -48072,10 +48130,11 @@ export const VPSPublicKeysApiAxiosParamCreator = function (configuration?: Confi
|
|
|
48072
48130
|
};
|
|
48073
48131
|
},
|
|
48074
48132
|
/**
|
|
48075
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
48133
|
+
* 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.
|
|
48076
48134
|
* @summary Create public key
|
|
48077
48135
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
48078
48136
|
* @param {*} [options] Override http request option.
|
|
48137
|
+
* @deprecated
|
|
48079
48138
|
* @throws {RequiredError}
|
|
48080
48139
|
*/
|
|
48081
48140
|
createPublicKeyV1: async (vPSV1PublicKeyStoreRequest: VPSV1PublicKeyStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -48112,10 +48171,11 @@ export const VPSPublicKeysApiAxiosParamCreator = function (configuration?: Confi
|
|
|
48112
48171
|
};
|
|
48113
48172
|
},
|
|
48114
48173
|
/**
|
|
48115
|
-
* 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.
|
|
48174
|
+
* 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.
|
|
48116
48175
|
* @summary Delete public key
|
|
48117
48176
|
* @param {number} publicKeyId Public Key ID
|
|
48118
48177
|
* @param {*} [options] Override http request option.
|
|
48178
|
+
* @deprecated
|
|
48119
48179
|
* @throws {RequiredError}
|
|
48120
48180
|
*/
|
|
48121
48181
|
deletePublicKeyV1: async (publicKeyId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -48150,10 +48210,11 @@ export const VPSPublicKeysApiAxiosParamCreator = function (configuration?: Confi
|
|
|
48150
48210
|
};
|
|
48151
48211
|
},
|
|
48152
48212
|
/**
|
|
48153
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
48213
|
+
* 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.
|
|
48154
48214
|
* @summary Get public keys
|
|
48155
48215
|
* @param {number} [page] Page number
|
|
48156
48216
|
* @param {*} [options] Override http request option.
|
|
48217
|
+
* @deprecated
|
|
48157
48218
|
* @throws {RequiredError}
|
|
48158
48219
|
*/
|
|
48159
48220
|
getPublicKeysV1: async (page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -48199,11 +48260,12 @@ export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
|
|
|
48199
48260
|
const localVarAxiosParamCreator = VPSPublicKeysApiAxiosParamCreator(configuration)
|
|
48200
48261
|
return {
|
|
48201
48262
|
/**
|
|
48202
|
-
* 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.
|
|
48263
|
+
* 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.
|
|
48203
48264
|
* @summary Attach public key
|
|
48204
48265
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
48205
48266
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
48206
48267
|
* @param {*} [options] Override http request option.
|
|
48268
|
+
* @deprecated
|
|
48207
48269
|
* @throws {RequiredError}
|
|
48208
48270
|
*/
|
|
48209
48271
|
async attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionActionResource>> {
|
|
@@ -48212,10 +48274,11 @@ export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
|
|
|
48212
48274
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48213
48275
|
},
|
|
48214
48276
|
/**
|
|
48215
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
48277
|
+
* 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.
|
|
48216
48278
|
* @summary Create public key
|
|
48217
48279
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
48218
48280
|
* @param {*} [options] Override http request option.
|
|
48281
|
+
* @deprecated
|
|
48219
48282
|
* @throws {RequiredError}
|
|
48220
48283
|
*/
|
|
48221
48284
|
async createPublicKeyV1(vPSV1PublicKeyStoreRequest: VPSV1PublicKeyStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyPublicKeyResource>> {
|
|
@@ -48224,10 +48287,11 @@ export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
|
|
|
48224
48287
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48225
48288
|
},
|
|
48226
48289
|
/**
|
|
48227
|
-
* 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.
|
|
48290
|
+
* 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.
|
|
48228
48291
|
* @summary Delete public key
|
|
48229
48292
|
* @param {number} publicKeyId Public Key ID
|
|
48230
48293
|
* @param {*} [options] Override http request option.
|
|
48294
|
+
* @deprecated
|
|
48231
48295
|
* @throws {RequiredError}
|
|
48232
48296
|
*/
|
|
48233
48297
|
async deletePublicKeyV1(publicKeyId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
@@ -48236,10 +48300,11 @@ export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
|
|
|
48236
48300
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48237
48301
|
},
|
|
48238
48302
|
/**
|
|
48239
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
48303
|
+
* 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.
|
|
48240
48304
|
* @summary Get public keys
|
|
48241
48305
|
* @param {number} [page] Page number
|
|
48242
48306
|
* @param {*} [options] Override http request option.
|
|
48307
|
+
* @deprecated
|
|
48243
48308
|
* @throws {RequiredError}
|
|
48244
48309
|
*/
|
|
48245
48310
|
async getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
|
|
@@ -48258,41 +48323,45 @@ export const VPSPublicKeysApiFactory = function (configuration?: Configuration,
|
|
|
48258
48323
|
const localVarFp = VPSPublicKeysApiFp(configuration)
|
|
48259
48324
|
return {
|
|
48260
48325
|
/**
|
|
48261
|
-
* 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.
|
|
48326
|
+
* 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.
|
|
48262
48327
|
* @summary Attach public key
|
|
48263
48328
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
48264
48329
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
48265
48330
|
* @param {*} [options] Override http request option.
|
|
48331
|
+
* @deprecated
|
|
48266
48332
|
* @throws {RequiredError}
|
|
48267
48333
|
*/
|
|
48268
48334
|
attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionActionResource> {
|
|
48269
48335
|
return localVarFp.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(axios, basePath));
|
|
48270
48336
|
},
|
|
48271
48337
|
/**
|
|
48272
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
48338
|
+
* 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.
|
|
48273
48339
|
* @summary Create public key
|
|
48274
48340
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
48275
48341
|
* @param {*} [options] Override http request option.
|
|
48342
|
+
* @deprecated
|
|
48276
48343
|
* @throws {RequiredError}
|
|
48277
48344
|
*/
|
|
48278
48345
|
createPublicKeyV1(vPSV1PublicKeyStoreRequest: VPSV1PublicKeyStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyPublicKeyResource> {
|
|
48279
48346
|
return localVarFp.createPublicKeyV1(vPSV1PublicKeyStoreRequest, options).then((request) => request(axios, basePath));
|
|
48280
48347
|
},
|
|
48281
48348
|
/**
|
|
48282
|
-
* 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.
|
|
48349
|
+
* 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.
|
|
48283
48350
|
* @summary Delete public key
|
|
48284
48351
|
* @param {number} publicKeyId Public Key ID
|
|
48285
48352
|
* @param {*} [options] Override http request option.
|
|
48353
|
+
* @deprecated
|
|
48286
48354
|
* @throws {RequiredError}
|
|
48287
48355
|
*/
|
|
48288
48356
|
deletePublicKeyV1(publicKeyId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
48289
48357
|
return localVarFp.deletePublicKeyV1(publicKeyId, options).then((request) => request(axios, basePath));
|
|
48290
48358
|
},
|
|
48291
48359
|
/**
|
|
48292
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
48360
|
+
* 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.
|
|
48293
48361
|
* @summary Get public keys
|
|
48294
48362
|
* @param {number} [page] Page number
|
|
48295
48363
|
* @param {*} [options] Override http request option.
|
|
48364
|
+
* @deprecated
|
|
48296
48365
|
* @throws {RequiredError}
|
|
48297
48366
|
*/
|
|
48298
48367
|
getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
|
|
@@ -48309,11 +48378,12 @@ export const VPSPublicKeysApiFactory = function (configuration?: Configuration,
|
|
|
48309
48378
|
*/
|
|
48310
48379
|
export class VPSPublicKeysApi extends BaseAPI {
|
|
48311
48380
|
/**
|
|
48312
|
-
* 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.
|
|
48381
|
+
* 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.
|
|
48313
48382
|
* @summary Attach public key
|
|
48314
48383
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
48315
48384
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
48316
48385
|
* @param {*} [options] Override http request option.
|
|
48386
|
+
* @deprecated
|
|
48317
48387
|
* @throws {RequiredError}
|
|
48318
48388
|
* @memberof VPSPublicKeysApi
|
|
48319
48389
|
*/
|
|
@@ -48322,10 +48392,11 @@ export class VPSPublicKeysApi extends BaseAPI {
|
|
|
48322
48392
|
}
|
|
48323
48393
|
|
|
48324
48394
|
/**
|
|
48325
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
48395
|
+
* 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.
|
|
48326
48396
|
* @summary Create public key
|
|
48327
48397
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
48328
48398
|
* @param {*} [options] Override http request option.
|
|
48399
|
+
* @deprecated
|
|
48329
48400
|
* @throws {RequiredError}
|
|
48330
48401
|
* @memberof VPSPublicKeysApi
|
|
48331
48402
|
*/
|
|
@@ -48334,10 +48405,11 @@ export class VPSPublicKeysApi extends BaseAPI {
|
|
|
48334
48405
|
}
|
|
48335
48406
|
|
|
48336
48407
|
/**
|
|
48337
|
-
* 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.
|
|
48408
|
+
* 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.
|
|
48338
48409
|
* @summary Delete public key
|
|
48339
48410
|
* @param {number} publicKeyId Public Key ID
|
|
48340
48411
|
* @param {*} [options] Override http request option.
|
|
48412
|
+
* @deprecated
|
|
48341
48413
|
* @throws {RequiredError}
|
|
48342
48414
|
* @memberof VPSPublicKeysApi
|
|
48343
48415
|
*/
|
|
@@ -48346,10 +48418,11 @@ export class VPSPublicKeysApi extends BaseAPI {
|
|
|
48346
48418
|
}
|
|
48347
48419
|
|
|
48348
48420
|
/**
|
|
48349
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
48421
|
+
* 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.
|
|
48350
48422
|
* @summary Get public keys
|
|
48351
48423
|
* @param {number} [page] Page number
|
|
48352
48424
|
* @param {*} [options] Override http request option.
|
|
48425
|
+
* @deprecated
|
|
48353
48426
|
* @throws {RequiredError}
|
|
48354
48427
|
* @memberof VPSPublicKeysApi
|
|
48355
48428
|
*/
|
|
@@ -48552,6 +48625,279 @@ export class VPSRecoveryApi extends BaseAPI {
|
|
|
48552
48625
|
|
|
48553
48626
|
|
|
48554
48627
|
|
|
48628
|
+
/**
|
|
48629
|
+
* VPSSSHKeysApi - axios parameter creator
|
|
48630
|
+
* @export
|
|
48631
|
+
*/
|
|
48632
|
+
export const VPSSSHKeysApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
48633
|
+
return {
|
|
48634
|
+
/**
|
|
48635
|
+
* 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.
|
|
48636
|
+
* @summary Add virtual machine SSH keys
|
|
48637
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48638
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
48639
|
+
* @param {*} [options] Override http request option.
|
|
48640
|
+
* @throws {RequiredError}
|
|
48641
|
+
*/
|
|
48642
|
+
addVirtualMachineSSHKeysV1: async (virtualMachineId: number, vPSV1SshKeyStoreRequest: VPSV1SshKeyStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48643
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
48644
|
+
assertParamExists('addVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId)
|
|
48645
|
+
// verify required parameter 'vPSV1SshKeyStoreRequest' is not null or undefined
|
|
48646
|
+
assertParamExists('addVirtualMachineSSHKeysV1', 'vPSV1SshKeyStoreRequest', vPSV1SshKeyStoreRequest)
|
|
48647
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
48648
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
48649
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48650
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48651
|
+
let baseOptions;
|
|
48652
|
+
if (configuration) {
|
|
48653
|
+
baseOptions = configuration.baseOptions;
|
|
48654
|
+
}
|
|
48655
|
+
|
|
48656
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
48657
|
+
const localVarHeaderParameter = {} as any;
|
|
48658
|
+
const localVarQueryParameter = {} as any;
|
|
48659
|
+
|
|
48660
|
+
// authentication apiToken required
|
|
48661
|
+
// http bearer authentication required
|
|
48662
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
48663
|
+
|
|
48664
|
+
|
|
48665
|
+
|
|
48666
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
48667
|
+
|
|
48668
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48669
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48670
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
48671
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1SshKeyStoreRequest, localVarRequestOptions, configuration)
|
|
48672
|
+
|
|
48673
|
+
return {
|
|
48674
|
+
url: toPathString(localVarUrlObj),
|
|
48675
|
+
options: localVarRequestOptions,
|
|
48676
|
+
};
|
|
48677
|
+
},
|
|
48678
|
+
/**
|
|
48679
|
+
* 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.
|
|
48680
|
+
* @summary List virtual machine SSH keys
|
|
48681
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48682
|
+
* @param {*} [options] Override http request option.
|
|
48683
|
+
* @throws {RequiredError}
|
|
48684
|
+
*/
|
|
48685
|
+
listVirtualMachineSSHKeysV1: async (virtualMachineId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48686
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
48687
|
+
assertParamExists('listVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId)
|
|
48688
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
48689
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
48690
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48691
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48692
|
+
let baseOptions;
|
|
48693
|
+
if (configuration) {
|
|
48694
|
+
baseOptions = configuration.baseOptions;
|
|
48695
|
+
}
|
|
48696
|
+
|
|
48697
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48698
|
+
const localVarHeaderParameter = {} as any;
|
|
48699
|
+
const localVarQueryParameter = {} as any;
|
|
48700
|
+
|
|
48701
|
+
// authentication apiToken required
|
|
48702
|
+
// http bearer authentication required
|
|
48703
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
48704
|
+
|
|
48705
|
+
|
|
48706
|
+
|
|
48707
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48708
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48709
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
48710
|
+
|
|
48711
|
+
return {
|
|
48712
|
+
url: toPathString(localVarUrlObj),
|
|
48713
|
+
options: localVarRequestOptions,
|
|
48714
|
+
};
|
|
48715
|
+
},
|
|
48716
|
+
/**
|
|
48717
|
+
* 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.
|
|
48718
|
+
* @summary Remove virtual machine SSH keys
|
|
48719
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48720
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
48721
|
+
* @param {*} [options] Override http request option.
|
|
48722
|
+
* @throws {RequiredError}
|
|
48723
|
+
*/
|
|
48724
|
+
removeVirtualMachineSSHKeysV1: async (virtualMachineId: number, vPSV1SshKeyDestroyRequest: VPSV1SshKeyDestroyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48725
|
+
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
48726
|
+
assertParamExists('removeVirtualMachineSSHKeysV1', 'virtualMachineId', virtualMachineId)
|
|
48727
|
+
// verify required parameter 'vPSV1SshKeyDestroyRequest' is not null or undefined
|
|
48728
|
+
assertParamExists('removeVirtualMachineSSHKeysV1', 'vPSV1SshKeyDestroyRequest', vPSV1SshKeyDestroyRequest)
|
|
48729
|
+
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`
|
|
48730
|
+
.replace(`{${"virtualMachineId"}}`, encodeURIComponent(String(virtualMachineId)));
|
|
48731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48732
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48733
|
+
let baseOptions;
|
|
48734
|
+
if (configuration) {
|
|
48735
|
+
baseOptions = configuration.baseOptions;
|
|
48736
|
+
}
|
|
48737
|
+
|
|
48738
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
48739
|
+
const localVarHeaderParameter = {} as any;
|
|
48740
|
+
const localVarQueryParameter = {} as any;
|
|
48741
|
+
|
|
48742
|
+
// authentication apiToken required
|
|
48743
|
+
// http bearer authentication required
|
|
48744
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
48745
|
+
|
|
48746
|
+
|
|
48747
|
+
|
|
48748
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
48749
|
+
|
|
48750
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48752
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
48753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1SshKeyDestroyRequest, localVarRequestOptions, configuration)
|
|
48754
|
+
|
|
48755
|
+
return {
|
|
48756
|
+
url: toPathString(localVarUrlObj),
|
|
48757
|
+
options: localVarRequestOptions,
|
|
48758
|
+
};
|
|
48759
|
+
},
|
|
48760
|
+
}
|
|
48761
|
+
};
|
|
48762
|
+
|
|
48763
|
+
/**
|
|
48764
|
+
* VPSSSHKeysApi - functional programming interface
|
|
48765
|
+
* @export
|
|
48766
|
+
*/
|
|
48767
|
+
export const VPSSSHKeysApiFp = function(configuration?: Configuration) {
|
|
48768
|
+
const localVarAxiosParamCreator = VPSSSHKeysApiAxiosParamCreator(configuration)
|
|
48769
|
+
return {
|
|
48770
|
+
/**
|
|
48771
|
+
* 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.
|
|
48772
|
+
* @summary Add virtual machine SSH keys
|
|
48773
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48774
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
48775
|
+
* @param {*} [options] Override http request option.
|
|
48776
|
+
* @throws {RequiredError}
|
|
48777
|
+
*/
|
|
48778
|
+
async addVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyStoreRequest: VPSV1SshKeyStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VPSV1SshKeySshKeyResource>>> {
|
|
48779
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options);
|
|
48780
|
+
const localVarOperationServerBasePath = operationServerMap['VPSSSHKeysApi.addVirtualMachineSSHKeysV1']?.[0]?.url;
|
|
48781
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48782
|
+
},
|
|
48783
|
+
/**
|
|
48784
|
+
* 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.
|
|
48785
|
+
* @summary List virtual machine SSH keys
|
|
48786
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48787
|
+
* @param {*} [options] Override http request option.
|
|
48788
|
+
* @throws {RequiredError}
|
|
48789
|
+
*/
|
|
48790
|
+
async listVirtualMachineSSHKeysV1(virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VPSV1SshKeySshKeyResource>>> {
|
|
48791
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listVirtualMachineSSHKeysV1(virtualMachineId, options);
|
|
48792
|
+
const localVarOperationServerBasePath = operationServerMap['VPSSSHKeysApi.listVirtualMachineSSHKeysV1']?.[0]?.url;
|
|
48793
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48794
|
+
},
|
|
48795
|
+
/**
|
|
48796
|
+
* 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.
|
|
48797
|
+
* @summary Remove virtual machine SSH keys
|
|
48798
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48799
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
48800
|
+
* @param {*} [options] Override http request option.
|
|
48801
|
+
* @throws {RequiredError}
|
|
48802
|
+
*/
|
|
48803
|
+
async removeVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyDestroyRequest: VPSV1SshKeyDestroyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VPSV1SshKeySshKeyResource>>> {
|
|
48804
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options);
|
|
48805
|
+
const localVarOperationServerBasePath = operationServerMap['VPSSSHKeysApi.removeVirtualMachineSSHKeysV1']?.[0]?.url;
|
|
48806
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48807
|
+
},
|
|
48808
|
+
}
|
|
48809
|
+
};
|
|
48810
|
+
|
|
48811
|
+
/**
|
|
48812
|
+
* VPSSSHKeysApi - factory interface
|
|
48813
|
+
* @export
|
|
48814
|
+
*/
|
|
48815
|
+
export const VPSSSHKeysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
48816
|
+
const localVarFp = VPSSSHKeysApiFp(configuration)
|
|
48817
|
+
return {
|
|
48818
|
+
/**
|
|
48819
|
+
* 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.
|
|
48820
|
+
* @summary Add virtual machine SSH keys
|
|
48821
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48822
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
48823
|
+
* @param {*} [options] Override http request option.
|
|
48824
|
+
* @throws {RequiredError}
|
|
48825
|
+
*/
|
|
48826
|
+
addVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyStoreRequest: VPSV1SshKeyStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<VPSV1SshKeySshKeyResource>> {
|
|
48827
|
+
return localVarFp.addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options).then((request) => request(axios, basePath));
|
|
48828
|
+
},
|
|
48829
|
+
/**
|
|
48830
|
+
* 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.
|
|
48831
|
+
* @summary List virtual machine SSH keys
|
|
48832
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48833
|
+
* @param {*} [options] Override http request option.
|
|
48834
|
+
* @throws {RequiredError}
|
|
48835
|
+
*/
|
|
48836
|
+
listVirtualMachineSSHKeysV1(virtualMachineId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<VPSV1SshKeySshKeyResource>> {
|
|
48837
|
+
return localVarFp.listVirtualMachineSSHKeysV1(virtualMachineId, options).then((request) => request(axios, basePath));
|
|
48838
|
+
},
|
|
48839
|
+
/**
|
|
48840
|
+
* 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.
|
|
48841
|
+
* @summary Remove virtual machine SSH keys
|
|
48842
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48843
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
48844
|
+
* @param {*} [options] Override http request option.
|
|
48845
|
+
* @throws {RequiredError}
|
|
48846
|
+
*/
|
|
48847
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyDestroyRequest: VPSV1SshKeyDestroyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<VPSV1SshKeySshKeyResource>> {
|
|
48848
|
+
return localVarFp.removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options).then((request) => request(axios, basePath));
|
|
48849
|
+
},
|
|
48850
|
+
};
|
|
48851
|
+
};
|
|
48852
|
+
|
|
48853
|
+
/**
|
|
48854
|
+
* VPSSSHKeysApi - object-oriented interface
|
|
48855
|
+
* @export
|
|
48856
|
+
* @class VPSSSHKeysApi
|
|
48857
|
+
* @extends {BaseAPI}
|
|
48858
|
+
*/
|
|
48859
|
+
export class VPSSSHKeysApi extends BaseAPI {
|
|
48860
|
+
/**
|
|
48861
|
+
* 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.
|
|
48862
|
+
* @summary Add virtual machine SSH keys
|
|
48863
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48864
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
48865
|
+
* @param {*} [options] Override http request option.
|
|
48866
|
+
* @throws {RequiredError}
|
|
48867
|
+
* @memberof VPSSSHKeysApi
|
|
48868
|
+
*/
|
|
48869
|
+
public addVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyStoreRequest: VPSV1SshKeyStoreRequest, options?: RawAxiosRequestConfig) {
|
|
48870
|
+
return VPSSSHKeysApiFp(this.configuration).addVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
48871
|
+
}
|
|
48872
|
+
|
|
48873
|
+
/**
|
|
48874
|
+
* 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.
|
|
48875
|
+
* @summary List virtual machine SSH keys
|
|
48876
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48877
|
+
* @param {*} [options] Override http request option.
|
|
48878
|
+
* @throws {RequiredError}
|
|
48879
|
+
* @memberof VPSSSHKeysApi
|
|
48880
|
+
*/
|
|
48881
|
+
public listVirtualMachineSSHKeysV1(virtualMachineId: number, options?: RawAxiosRequestConfig) {
|
|
48882
|
+
return VPSSSHKeysApiFp(this.configuration).listVirtualMachineSSHKeysV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
|
|
48883
|
+
}
|
|
48884
|
+
|
|
48885
|
+
/**
|
|
48886
|
+
* 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.
|
|
48887
|
+
* @summary Remove virtual machine SSH keys
|
|
48888
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
48889
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
48890
|
+
* @param {*} [options] Override http request option.
|
|
48891
|
+
* @throws {RequiredError}
|
|
48892
|
+
* @memberof VPSSSHKeysApi
|
|
48893
|
+
*/
|
|
48894
|
+
public removeVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyDestroyRequest: VPSV1SshKeyDestroyRequest, options?: RawAxiosRequestConfig) {
|
|
48895
|
+
return VPSSSHKeysApiFp(this.configuration).removeVirtualMachineSSHKeysV1(virtualMachineId, vPSV1SshKeyDestroyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
48896
|
+
}
|
|
48897
|
+
}
|
|
48898
|
+
|
|
48899
|
+
|
|
48900
|
+
|
|
48555
48901
|
/**
|
|
48556
48902
|
* VPSSnapshotsApi - axios parameter creator
|
|
48557
48903
|
* @export
|
|
@@ -48886,11 +49232,12 @@ export class VPSSnapshotsApi extends BaseAPI {
|
|
|
48886
49232
|
export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
48887
49233
|
return {
|
|
48888
49234
|
/**
|
|
48889
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
49235
|
+
* 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.
|
|
48890
49236
|
* @summary Get attached public keys
|
|
48891
49237
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
48892
49238
|
* @param {number} [page] Page number
|
|
48893
49239
|
* @param {*} [options] Override http request option.
|
|
49240
|
+
* @deprecated
|
|
48894
49241
|
* @throws {RequiredError}
|
|
48895
49242
|
*/
|
|
48896
49243
|
getAttachedPublicKeysV1: async (virtualMachineId: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -49523,11 +49870,12 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
49523
49870
|
const localVarAxiosParamCreator = VPSVirtualMachineApiAxiosParamCreator(configuration)
|
|
49524
49871
|
return {
|
|
49525
49872
|
/**
|
|
49526
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
49873
|
+
* 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.
|
|
49527
49874
|
* @summary Get attached public keys
|
|
49528
49875
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
49529
49876
|
* @param {number} [page] Page number
|
|
49530
49877
|
* @param {*} [options] Override http request option.
|
|
49878
|
+
* @deprecated
|
|
49531
49879
|
* @throws {RequiredError}
|
|
49532
49880
|
*/
|
|
49533
49881
|
async getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
|
|
@@ -49721,11 +50069,12 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
49721
50069
|
const localVarFp = VPSVirtualMachineApiFp(configuration)
|
|
49722
50070
|
return {
|
|
49723
50071
|
/**
|
|
49724
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
50072
|
+
* 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.
|
|
49725
50073
|
* @summary Get attached public keys
|
|
49726
50074
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
49727
50075
|
* @param {number} [page] Page number
|
|
49728
50076
|
* @param {*} [options] Override http request option.
|
|
50077
|
+
* @deprecated
|
|
49729
50078
|
* @throws {RequiredError}
|
|
49730
50079
|
*/
|
|
49731
50080
|
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
|
|
@@ -49889,11 +50238,12 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
49889
50238
|
*/
|
|
49890
50239
|
export class VPSVirtualMachineApi extends BaseAPI {
|
|
49891
50240
|
/**
|
|
49892
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
50241
|
+
* 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.
|
|
49893
50242
|
* @summary Get attached public keys
|
|
49894
50243
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
49895
50244
|
* @param {number} [page] Page number
|
|
49896
50245
|
* @param {*} [options] Override http request option.
|
|
50246
|
+
* @deprecated
|
|
49897
50247
|
* @throws {RequiredError}
|
|
49898
50248
|
* @memberof VPSVirtualMachineApi
|
|
49899
50249
|
*/
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.62.0
|
|
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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.62.0
|
|
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
|