@hostinger/sdk 1.60.0 → 1.61.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 +373 -23
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +233 -23
- 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 +233 -23
- 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/BillingV1SubscriptionSubscriptionResource.md +2 -2
- 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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.61.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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.61.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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.61.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.61.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
|
|
@@ -2468,13 +2468,13 @@ export interface BillingV1SubscriptionSubscriptionResource {
|
|
|
2468
2468
|
*/
|
|
2469
2469
|
'created_at': string;
|
|
2470
2470
|
/**
|
|
2471
|
-
*
|
|
2471
|
+
* Final date when the subscription will be or was cancelled and expire. Set when a cancellation is scheduled (e.g. after auto-renewal is disabled) or the subscription is already cancelled; `null` otherwise.
|
|
2472
2472
|
* @type {string}
|
|
2473
2473
|
* @memberof BillingV1SubscriptionSubscriptionResource
|
|
2474
2474
|
*/
|
|
2475
2475
|
'expires_at': string | null;
|
|
2476
2476
|
/**
|
|
2477
|
-
*
|
|
2477
|
+
* Date when the next charge will happen while the subscription is auto-renewing. Only relevant when `is_auto_renewed` is `true`; ignore it otherwise.
|
|
2478
2478
|
* @type {string}
|
|
2479
2479
|
* @memberof BillingV1SubscriptionSubscriptionResource
|
|
2480
2480
|
*/
|
|
@@ -15314,6 +15314,63 @@ export interface VPSV1SnapshotSnapshotResource {
|
|
|
15314
15314
|
*/
|
|
15315
15315
|
'expires_at': string;
|
|
15316
15316
|
}
|
|
15317
|
+
/**
|
|
15318
|
+
*
|
|
15319
|
+
* @export
|
|
15320
|
+
* @interface VPSV1SshKeyDestroyRequest
|
|
15321
|
+
*/
|
|
15322
|
+
export interface VPSV1SshKeyDestroyRequest {
|
|
15323
|
+
/**
|
|
15324
|
+
* SSH public keys in OpenSSH format to remove
|
|
15325
|
+
* @type {Array<string>}
|
|
15326
|
+
* @memberof VPSV1SshKeyDestroyRequest
|
|
15327
|
+
*/
|
|
15328
|
+
'keys': Array<string>;
|
|
15329
|
+
}
|
|
15330
|
+
/**
|
|
15331
|
+
*
|
|
15332
|
+
* @export
|
|
15333
|
+
* @interface VPSV1SshKeySshKeyResource
|
|
15334
|
+
*/
|
|
15335
|
+
export interface VPSV1SshKeySshKeyResource {
|
|
15336
|
+
/**
|
|
15337
|
+
* SSH public key in OpenSSH format
|
|
15338
|
+
* @type {string}
|
|
15339
|
+
* @memberof VPSV1SshKeySshKeyResource
|
|
15340
|
+
*/
|
|
15341
|
+
'key': string;
|
|
15342
|
+
/**
|
|
15343
|
+
* SSH key type
|
|
15344
|
+
* @type {string}
|
|
15345
|
+
* @memberof VPSV1SshKeySshKeyResource
|
|
15346
|
+
*/
|
|
15347
|
+
'type': string;
|
|
15348
|
+
/**
|
|
15349
|
+
* SSH key data (base64 encoded public key)
|
|
15350
|
+
* @type {string}
|
|
15351
|
+
* @memberof VPSV1SshKeySshKeyResource
|
|
15352
|
+
*/
|
|
15353
|
+
'data': string;
|
|
15354
|
+
/**
|
|
15355
|
+
* SSH key comment/name
|
|
15356
|
+
* @type {string}
|
|
15357
|
+
* @memberof VPSV1SshKeySshKeyResource
|
|
15358
|
+
*/
|
|
15359
|
+
'name': string;
|
|
15360
|
+
}
|
|
15361
|
+
/**
|
|
15362
|
+
*
|
|
15363
|
+
* @export
|
|
15364
|
+
* @interface VPSV1SshKeyStoreRequest
|
|
15365
|
+
*/
|
|
15366
|
+
export interface VPSV1SshKeyStoreRequest {
|
|
15367
|
+
/**
|
|
15368
|
+
* SSH public keys in OpenSSH format to add
|
|
15369
|
+
* @type {Array<string>}
|
|
15370
|
+
* @memberof VPSV1SshKeyStoreRequest
|
|
15371
|
+
*/
|
|
15372
|
+
'keys': Array<string>;
|
|
15373
|
+
}
|
|
15317
15374
|
/**
|
|
15318
15375
|
*
|
|
15319
15376
|
* @export
|
|
@@ -31982,35 +32039,39 @@ export declare class VPSPostInstallScriptsApi extends BaseAPI {
|
|
|
31982
32039
|
*/
|
|
31983
32040
|
export declare const VPSPublicKeysApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
31984
32041
|
/**
|
|
31985
|
-
* 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.
|
|
32042
|
+
* 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.
|
|
31986
32043
|
* @summary Attach public key
|
|
31987
32044
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
31988
32045
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
31989
32046
|
* @param {*} [options] Override http request option.
|
|
32047
|
+
* @deprecated
|
|
31990
32048
|
* @throws {RequiredError}
|
|
31991
32049
|
*/
|
|
31992
32050
|
attachPublicKeyV1: (virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31993
32051
|
/**
|
|
31994
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
32052
|
+
* 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.
|
|
31995
32053
|
* @summary Create public key
|
|
31996
32054
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
31997
32055
|
* @param {*} [options] Override http request option.
|
|
32056
|
+
* @deprecated
|
|
31998
32057
|
* @throws {RequiredError}
|
|
31999
32058
|
*/
|
|
32000
32059
|
createPublicKeyV1: (vPSV1PublicKeyStoreRequest: VPSV1PublicKeyStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32001
32060
|
/**
|
|
32002
|
-
* 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.
|
|
32061
|
+
* 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.
|
|
32003
32062
|
* @summary Delete public key
|
|
32004
32063
|
* @param {number} publicKeyId Public Key ID
|
|
32005
32064
|
* @param {*} [options] Override http request option.
|
|
32065
|
+
* @deprecated
|
|
32006
32066
|
* @throws {RequiredError}
|
|
32007
32067
|
*/
|
|
32008
32068
|
deletePublicKeyV1: (publicKeyId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32009
32069
|
/**
|
|
32010
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
32070
|
+
* 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.
|
|
32011
32071
|
* @summary Get public keys
|
|
32012
32072
|
* @param {number} [page] Page number
|
|
32013
32073
|
* @param {*} [options] Override http request option.
|
|
32074
|
+
* @deprecated
|
|
32014
32075
|
* @throws {RequiredError}
|
|
32015
32076
|
*/
|
|
32016
32077
|
getPublicKeysV1: (page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -32021,35 +32082,39 @@ export declare const VPSPublicKeysApiAxiosParamCreator: (configuration?: Configu
|
|
|
32021
32082
|
*/
|
|
32022
32083
|
export declare const VPSPublicKeysApiFp: (configuration?: Configuration) => {
|
|
32023
32084
|
/**
|
|
32024
|
-
* 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.
|
|
32085
|
+
* 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.
|
|
32025
32086
|
* @summary Attach public key
|
|
32026
32087
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
32027
32088
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
32028
32089
|
* @param {*} [options] Override http request option.
|
|
32090
|
+
* @deprecated
|
|
32029
32091
|
* @throws {RequiredError}
|
|
32030
32092
|
*/
|
|
32031
32093
|
attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionActionResource>>;
|
|
32032
32094
|
/**
|
|
32033
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
32095
|
+
* 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.
|
|
32034
32096
|
* @summary Create public key
|
|
32035
32097
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
32036
32098
|
* @param {*} [options] Override http request option.
|
|
32099
|
+
* @deprecated
|
|
32037
32100
|
* @throws {RequiredError}
|
|
32038
32101
|
*/
|
|
32039
32102
|
createPublicKeyV1(vPSV1PublicKeyStoreRequest: VPSV1PublicKeyStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyPublicKeyResource>>;
|
|
32040
32103
|
/**
|
|
32041
|
-
* 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.
|
|
32104
|
+
* 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.
|
|
32042
32105
|
* @summary Delete public key
|
|
32043
32106
|
* @param {number} publicKeyId Public Key ID
|
|
32044
32107
|
* @param {*} [options] Override http request option.
|
|
32108
|
+
* @deprecated
|
|
32045
32109
|
* @throws {RequiredError}
|
|
32046
32110
|
*/
|
|
32047
32111
|
deletePublicKeyV1(publicKeyId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
32048
32112
|
/**
|
|
32049
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
32113
|
+
* 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.
|
|
32050
32114
|
* @summary Get public keys
|
|
32051
32115
|
* @param {number} [page] Page number
|
|
32052
32116
|
* @param {*} [options] Override http request option.
|
|
32117
|
+
* @deprecated
|
|
32053
32118
|
* @throws {RequiredError}
|
|
32054
32119
|
*/
|
|
32055
32120
|
getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>>;
|
|
@@ -32060,35 +32125,39 @@ export declare const VPSPublicKeysApiFp: (configuration?: Configuration) => {
|
|
|
32060
32125
|
*/
|
|
32061
32126
|
export declare const VPSPublicKeysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
32062
32127
|
/**
|
|
32063
|
-
* 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.
|
|
32128
|
+
* 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.
|
|
32064
32129
|
* @summary Attach public key
|
|
32065
32130
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
32066
32131
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
32067
32132
|
* @param {*} [options] Override http request option.
|
|
32133
|
+
* @deprecated
|
|
32068
32134
|
* @throws {RequiredError}
|
|
32069
32135
|
*/
|
|
32070
32136
|
attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionActionResource>;
|
|
32071
32137
|
/**
|
|
32072
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
32138
|
+
* 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.
|
|
32073
32139
|
* @summary Create public key
|
|
32074
32140
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
32075
32141
|
* @param {*} [options] Override http request option.
|
|
32142
|
+
* @deprecated
|
|
32076
32143
|
* @throws {RequiredError}
|
|
32077
32144
|
*/
|
|
32078
32145
|
createPublicKeyV1(vPSV1PublicKeyStoreRequest: VPSV1PublicKeyStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyPublicKeyResource>;
|
|
32079
32146
|
/**
|
|
32080
|
-
* 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.
|
|
32147
|
+
* 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.
|
|
32081
32148
|
* @summary Delete public key
|
|
32082
32149
|
* @param {number} publicKeyId Public Key ID
|
|
32083
32150
|
* @param {*} [options] Override http request option.
|
|
32151
|
+
* @deprecated
|
|
32084
32152
|
* @throws {RequiredError}
|
|
32085
32153
|
*/
|
|
32086
32154
|
deletePublicKeyV1(publicKeyId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
32087
32155
|
/**
|
|
32088
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
32156
|
+
* 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.
|
|
32089
32157
|
* @summary Get public keys
|
|
32090
32158
|
* @param {number} [page] Page number
|
|
32091
32159
|
* @param {*} [options] Override http request option.
|
|
32160
|
+
* @deprecated
|
|
32092
32161
|
* @throws {RequiredError}
|
|
32093
32162
|
*/
|
|
32094
32163
|
getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse>;
|
|
@@ -32101,38 +32170,42 @@ export declare const VPSPublicKeysApiFactory: (configuration?: Configuration, ba
|
|
|
32101
32170
|
*/
|
|
32102
32171
|
export declare class VPSPublicKeysApi extends BaseAPI {
|
|
32103
32172
|
/**
|
|
32104
|
-
* 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.
|
|
32173
|
+
* 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.
|
|
32105
32174
|
* @summary Attach public key
|
|
32106
32175
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
32107
32176
|
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
32108
32177
|
* @param {*} [options] Override http request option.
|
|
32178
|
+
* @deprecated
|
|
32109
32179
|
* @throws {RequiredError}
|
|
32110
32180
|
* @memberof VPSPublicKeysApi
|
|
32111
32181
|
*/
|
|
32112
32182
|
attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1ActionActionResource, any, {}, any>>;
|
|
32113
32183
|
/**
|
|
32114
|
-
* Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
32184
|
+
* 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.
|
|
32115
32185
|
* @summary Create public key
|
|
32116
32186
|
* @param {VPSV1PublicKeyStoreRequest} vPSV1PublicKeyStoreRequest
|
|
32117
32187
|
* @param {*} [options] Override http request option.
|
|
32188
|
+
* @deprecated
|
|
32118
32189
|
* @throws {RequiredError}
|
|
32119
32190
|
* @memberof VPSPublicKeysApi
|
|
32120
32191
|
*/
|
|
32121
32192
|
createPublicKeyV1(vPSV1PublicKeyStoreRequest: VPSV1PublicKeyStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1PublicKeyPublicKeyResource, any, {}, any>>;
|
|
32122
32193
|
/**
|
|
32123
|
-
* 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.
|
|
32194
|
+
* 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.
|
|
32124
32195
|
* @summary Delete public key
|
|
32125
32196
|
* @param {number} publicKeyId Public Key ID
|
|
32126
32197
|
* @param {*} [options] Override http request option.
|
|
32198
|
+
* @deprecated
|
|
32127
32199
|
* @throws {RequiredError}
|
|
32128
32200
|
* @memberof VPSPublicKeysApi
|
|
32129
32201
|
*/
|
|
32130
32202
|
deletePublicKeyV1(publicKeyId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
32131
32203
|
/**
|
|
32132
|
-
* Retrieve public keys associated with your account. Use this endpoint to view available SSH keys for VPS authentication.
|
|
32204
|
+
* 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.
|
|
32133
32205
|
* @summary Get public keys
|
|
32134
32206
|
* @param {number} [page] Page number
|
|
32135
32207
|
* @param {*} [options] Override http request option.
|
|
32208
|
+
* @deprecated
|
|
32136
32209
|
* @throws {RequiredError}
|
|
32137
32210
|
* @memberof VPSPublicKeysApi
|
|
32138
32211
|
*/
|
|
@@ -32234,6 +32307,139 @@ export declare class VPSRecoveryApi extends BaseAPI {
|
|
|
32234
32307
|
*/
|
|
32235
32308
|
stopRecoveryModeV1(virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1ActionActionResource, any, {}, any>>;
|
|
32236
32309
|
}
|
|
32310
|
+
/**
|
|
32311
|
+
* VPSSSHKeysApi - axios parameter creator
|
|
32312
|
+
* @export
|
|
32313
|
+
*/
|
|
32314
|
+
export declare const VPSSSHKeysApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
32315
|
+
/**
|
|
32316
|
+
* 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.
|
|
32317
|
+
* @summary Add virtual machine SSH keys
|
|
32318
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32319
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
32320
|
+
* @param {*} [options] Override http request option.
|
|
32321
|
+
* @throws {RequiredError}
|
|
32322
|
+
*/
|
|
32323
|
+
addVirtualMachineSSHKeysV1: (virtualMachineId: number, vPSV1SshKeyStoreRequest: VPSV1SshKeyStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32324
|
+
/**
|
|
32325
|
+
* 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.
|
|
32326
|
+
* @summary List virtual machine SSH keys
|
|
32327
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32328
|
+
* @param {*} [options] Override http request option.
|
|
32329
|
+
* @throws {RequiredError}
|
|
32330
|
+
*/
|
|
32331
|
+
listVirtualMachineSSHKeysV1: (virtualMachineId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32332
|
+
/**
|
|
32333
|
+
* 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.
|
|
32334
|
+
* @summary Remove virtual machine SSH keys
|
|
32335
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32336
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
32337
|
+
* @param {*} [options] Override http request option.
|
|
32338
|
+
* @throws {RequiredError}
|
|
32339
|
+
*/
|
|
32340
|
+
removeVirtualMachineSSHKeysV1: (virtualMachineId: number, vPSV1SshKeyDestroyRequest: VPSV1SshKeyDestroyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32341
|
+
};
|
|
32342
|
+
/**
|
|
32343
|
+
* VPSSSHKeysApi - functional programming interface
|
|
32344
|
+
* @export
|
|
32345
|
+
*/
|
|
32346
|
+
export declare const VPSSSHKeysApiFp: (configuration?: Configuration) => {
|
|
32347
|
+
/**
|
|
32348
|
+
* 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.
|
|
32349
|
+
* @summary Add virtual machine SSH keys
|
|
32350
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32351
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
32352
|
+
* @param {*} [options] Override http request option.
|
|
32353
|
+
* @throws {RequiredError}
|
|
32354
|
+
*/
|
|
32355
|
+
addVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyStoreRequest: VPSV1SshKeyStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VPSV1SshKeySshKeyResource>>>;
|
|
32356
|
+
/**
|
|
32357
|
+
* 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.
|
|
32358
|
+
* @summary List virtual machine SSH keys
|
|
32359
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32360
|
+
* @param {*} [options] Override http request option.
|
|
32361
|
+
* @throws {RequiredError}
|
|
32362
|
+
*/
|
|
32363
|
+
listVirtualMachineSSHKeysV1(virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VPSV1SshKeySshKeyResource>>>;
|
|
32364
|
+
/**
|
|
32365
|
+
* 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.
|
|
32366
|
+
* @summary Remove virtual machine SSH keys
|
|
32367
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32368
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
32369
|
+
* @param {*} [options] Override http request option.
|
|
32370
|
+
* @throws {RequiredError}
|
|
32371
|
+
*/
|
|
32372
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyDestroyRequest: VPSV1SshKeyDestroyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VPSV1SshKeySshKeyResource>>>;
|
|
32373
|
+
};
|
|
32374
|
+
/**
|
|
32375
|
+
* VPSSSHKeysApi - factory interface
|
|
32376
|
+
* @export
|
|
32377
|
+
*/
|
|
32378
|
+
export declare const VPSSSHKeysApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
32379
|
+
/**
|
|
32380
|
+
* 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.
|
|
32381
|
+
* @summary Add virtual machine SSH keys
|
|
32382
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32383
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
32384
|
+
* @param {*} [options] Override http request option.
|
|
32385
|
+
* @throws {RequiredError}
|
|
32386
|
+
*/
|
|
32387
|
+
addVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyStoreRequest: VPSV1SshKeyStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<VPSV1SshKeySshKeyResource>>;
|
|
32388
|
+
/**
|
|
32389
|
+
* 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.
|
|
32390
|
+
* @summary List virtual machine SSH keys
|
|
32391
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32392
|
+
* @param {*} [options] Override http request option.
|
|
32393
|
+
* @throws {RequiredError}
|
|
32394
|
+
*/
|
|
32395
|
+
listVirtualMachineSSHKeysV1(virtualMachineId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<VPSV1SshKeySshKeyResource>>;
|
|
32396
|
+
/**
|
|
32397
|
+
* 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.
|
|
32398
|
+
* @summary Remove virtual machine SSH keys
|
|
32399
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32400
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
32401
|
+
* @param {*} [options] Override http request option.
|
|
32402
|
+
* @throws {RequiredError}
|
|
32403
|
+
*/
|
|
32404
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyDestroyRequest: VPSV1SshKeyDestroyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<VPSV1SshKeySshKeyResource>>;
|
|
32405
|
+
};
|
|
32406
|
+
/**
|
|
32407
|
+
* VPSSSHKeysApi - object-oriented interface
|
|
32408
|
+
* @export
|
|
32409
|
+
* @class VPSSSHKeysApi
|
|
32410
|
+
* @extends {BaseAPI}
|
|
32411
|
+
*/
|
|
32412
|
+
export declare class VPSSSHKeysApi extends BaseAPI {
|
|
32413
|
+
/**
|
|
32414
|
+
* 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.
|
|
32415
|
+
* @summary Add virtual machine SSH keys
|
|
32416
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32417
|
+
* @param {VPSV1SshKeyStoreRequest} vPSV1SshKeyStoreRequest
|
|
32418
|
+
* @param {*} [options] Override http request option.
|
|
32419
|
+
* @throws {RequiredError}
|
|
32420
|
+
* @memberof VPSSSHKeysApi
|
|
32421
|
+
*/
|
|
32422
|
+
addVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyStoreRequest: VPSV1SshKeyStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1SshKeySshKeyResource[], any, {}, any>>;
|
|
32423
|
+
/**
|
|
32424
|
+
* 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.
|
|
32425
|
+
* @summary List virtual machine SSH keys
|
|
32426
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32427
|
+
* @param {*} [options] Override http request option.
|
|
32428
|
+
* @throws {RequiredError}
|
|
32429
|
+
* @memberof VPSSSHKeysApi
|
|
32430
|
+
*/
|
|
32431
|
+
listVirtualMachineSSHKeysV1(virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1SshKeySshKeyResource[], any, {}, any>>;
|
|
32432
|
+
/**
|
|
32433
|
+
* 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.
|
|
32434
|
+
* @summary Remove virtual machine SSH keys
|
|
32435
|
+
* @param {number} virtualMachineId Virtual Machine ID
|
|
32436
|
+
* @param {VPSV1SshKeyDestroyRequest} vPSV1SshKeyDestroyRequest
|
|
32437
|
+
* @param {*} [options] Override http request option.
|
|
32438
|
+
* @throws {RequiredError}
|
|
32439
|
+
* @memberof VPSSSHKeysApi
|
|
32440
|
+
*/
|
|
32441
|
+
removeVirtualMachineSSHKeysV1(virtualMachineId: number, vPSV1SshKeyDestroyRequest: VPSV1SshKeyDestroyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1SshKeySshKeyResource[], any, {}, any>>;
|
|
32442
|
+
}
|
|
32237
32443
|
/**
|
|
32238
32444
|
* VPSSnapshotsApi - axios parameter creator
|
|
32239
32445
|
* @export
|
|
@@ -32398,11 +32604,12 @@ export declare class VPSSnapshotsApi extends BaseAPI {
|
|
|
32398
32604
|
*/
|
|
32399
32605
|
export declare const VPSVirtualMachineApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
32400
32606
|
/**
|
|
32401
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
32607
|
+
* 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.
|
|
32402
32608
|
* @summary Get attached public keys
|
|
32403
32609
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
32404
32610
|
* @param {number} [page] Page number
|
|
32405
32611
|
* @param {*} [options] Override http request option.
|
|
32612
|
+
* @deprecated
|
|
32406
32613
|
* @throws {RequiredError}
|
|
32407
32614
|
*/
|
|
32408
32615
|
getAttachedPublicKeysV1: (virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -32532,11 +32739,12 @@ export declare const VPSVirtualMachineApiAxiosParamCreator: (configuration?: Con
|
|
|
32532
32739
|
*/
|
|
32533
32740
|
export declare const VPSVirtualMachineApiFp: (configuration?: Configuration) => {
|
|
32534
32741
|
/**
|
|
32535
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
32742
|
+
* 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.
|
|
32536
32743
|
* @summary Get attached public keys
|
|
32537
32744
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
32538
32745
|
* @param {number} [page] Page number
|
|
32539
32746
|
* @param {*} [options] Override http request option.
|
|
32747
|
+
* @deprecated
|
|
32540
32748
|
* @throws {RequiredError}
|
|
32541
32749
|
*/
|
|
32542
32750
|
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>>;
|
|
@@ -32666,11 +32874,12 @@ export declare const VPSVirtualMachineApiFp: (configuration?: Configuration) =>
|
|
|
32666
32874
|
*/
|
|
32667
32875
|
export declare const VPSVirtualMachineApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
32668
32876
|
/**
|
|
32669
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
32877
|
+
* 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.
|
|
32670
32878
|
* @summary Get attached public keys
|
|
32671
32879
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
32672
32880
|
* @param {number} [page] Page number
|
|
32673
32881
|
* @param {*} [options] Override http request option.
|
|
32882
|
+
* @deprecated
|
|
32674
32883
|
* @throws {RequiredError}
|
|
32675
32884
|
*/
|
|
32676
32885
|
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse>;
|
|
@@ -32802,11 +33011,12 @@ export declare const VPSVirtualMachineApiFactory: (configuration?: Configuration
|
|
|
32802
33011
|
*/
|
|
32803
33012
|
export declare class VPSVirtualMachineApi extends BaseAPI {
|
|
32804
33013
|
/**
|
|
32805
|
-
* Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
33014
|
+
* 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.
|
|
32806
33015
|
* @summary Get attached public keys
|
|
32807
33016
|
* @param {number} virtualMachineId Virtual Machine ID
|
|
32808
33017
|
* @param {number} [page] Page number
|
|
32809
33018
|
* @param {*} [options] Override http request option.
|
|
33019
|
+
* @deprecated
|
|
32810
33020
|
* @throws {RequiredError}
|
|
32811
33021
|
* @memberof VPSVirtualMachineApi
|
|
32812
33022
|
*/
|