hostinger-api-sdk 2.14.2 → 2.15.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 +640 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +425 -1
- package/dist/api.js +416 -14
- 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 +425 -1
- package/dist/esm/api.js +399 -1
- 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/GPUInstancesApi.md +272 -0
- package/docs/GPUV1InstanceInstanceListResource.md +32 -0
- package/docs/GPUV1InstanceInstanceResource.md +34 -0
- package/docs/GPUV1InstanceStoreRequest.md +26 -0
- package/docs/GPUV1MetricsMetricsResource.md +30 -0
- package/docs/GPUV1SshKeySshKeyResource.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.15.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/2.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.15.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.15.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
|
|
@@ -6867,6 +6867,218 @@ export interface EcommerceV1VariantVariantResponseResource {
|
|
|
6867
6867
|
*/
|
|
6868
6868
|
'data': EcommerceV1VariantVariantResource;
|
|
6869
6869
|
}
|
|
6870
|
+
/**
|
|
6871
|
+
*
|
|
6872
|
+
* @export
|
|
6873
|
+
* @interface GPUV1InstanceInstanceListResource
|
|
6874
|
+
*/
|
|
6875
|
+
export interface GPUV1InstanceInstanceListResource {
|
|
6876
|
+
/**
|
|
6877
|
+
* GPU instance ID
|
|
6878
|
+
* @type {number}
|
|
6879
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
6880
|
+
*/
|
|
6881
|
+
'id': number;
|
|
6882
|
+
/**
|
|
6883
|
+
*
|
|
6884
|
+
* @type {string}
|
|
6885
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
6886
|
+
*/
|
|
6887
|
+
'name': string;
|
|
6888
|
+
/**
|
|
6889
|
+
*
|
|
6890
|
+
* @type {string}
|
|
6891
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
6892
|
+
*/
|
|
6893
|
+
'status': GPUV1InstanceInstanceListResourceStatusEnum;
|
|
6894
|
+
/**
|
|
6895
|
+
* Whether an action is in progress on the instance
|
|
6896
|
+
* @type {string}
|
|
6897
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
6898
|
+
*/
|
|
6899
|
+
'action_lock': GPUV1InstanceInstanceListResourceActionLockEnum;
|
|
6900
|
+
/**
|
|
6901
|
+
*
|
|
6902
|
+
* @type {GPUV1PoolPoolResource}
|
|
6903
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
6904
|
+
*/
|
|
6905
|
+
'pool': GPUV1PoolPoolResource;
|
|
6906
|
+
/**
|
|
6907
|
+
*
|
|
6908
|
+
* @type {GPUV1PoolPoolInstanceResource}
|
|
6909
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
6910
|
+
*/
|
|
6911
|
+
'pool_instance': GPUV1PoolPoolInstanceResource;
|
|
6912
|
+
/**
|
|
6913
|
+
*
|
|
6914
|
+
* @type {GPUV1OsTemplateOsTemplateResource}
|
|
6915
|
+
* @memberof GPUV1InstanceInstanceListResource
|
|
6916
|
+
*/
|
|
6917
|
+
'os_template': GPUV1OsTemplateOsTemplateResource;
|
|
6918
|
+
}
|
|
6919
|
+
export declare const GPUV1InstanceInstanceListResourceStatusEnum: {
|
|
6920
|
+
readonly Created: "created";
|
|
6921
|
+
readonly Creating: "creating";
|
|
6922
|
+
readonly Running: "running";
|
|
6923
|
+
readonly Stopped: "stopped";
|
|
6924
|
+
readonly Destroying: "destroying";
|
|
6925
|
+
readonly Destroyed: "destroyed";
|
|
6926
|
+
readonly InsufficientFunds: "insufficient_funds";
|
|
6927
|
+
readonly Error: "error";
|
|
6928
|
+
readonly Abuse: "abuse";
|
|
6929
|
+
};
|
|
6930
|
+
export type GPUV1InstanceInstanceListResourceStatusEnum = typeof GPUV1InstanceInstanceListResourceStatusEnum[keyof typeof GPUV1InstanceInstanceListResourceStatusEnum];
|
|
6931
|
+
export declare const GPUV1InstanceInstanceListResourceActionLockEnum: {
|
|
6932
|
+
readonly Unlocked: "unlocked";
|
|
6933
|
+
readonly Locked: "locked";
|
|
6934
|
+
};
|
|
6935
|
+
export type GPUV1InstanceInstanceListResourceActionLockEnum = typeof GPUV1InstanceInstanceListResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceListResourceActionLockEnum];
|
|
6936
|
+
/**
|
|
6937
|
+
*
|
|
6938
|
+
* @export
|
|
6939
|
+
* @interface GPUV1InstanceInstanceResource
|
|
6940
|
+
*/
|
|
6941
|
+
export interface GPUV1InstanceInstanceResource {
|
|
6942
|
+
/**
|
|
6943
|
+
* GPU instance ID
|
|
6944
|
+
* @type {number}
|
|
6945
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
6946
|
+
*/
|
|
6947
|
+
'id': number;
|
|
6948
|
+
/**
|
|
6949
|
+
*
|
|
6950
|
+
* @type {string}
|
|
6951
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
6952
|
+
*/
|
|
6953
|
+
'name': string;
|
|
6954
|
+
/**
|
|
6955
|
+
*
|
|
6956
|
+
* @type {string}
|
|
6957
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
6958
|
+
*/
|
|
6959
|
+
'status': GPUV1InstanceInstanceResourceStatusEnum;
|
|
6960
|
+
/**
|
|
6961
|
+
* Whether an action is in progress on the instance
|
|
6962
|
+
* @type {string}
|
|
6963
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
6964
|
+
*/
|
|
6965
|
+
'action_lock': GPUV1InstanceInstanceResourceActionLockEnum;
|
|
6966
|
+
/**
|
|
6967
|
+
*
|
|
6968
|
+
* @type {GPUV1PoolPoolResource}
|
|
6969
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
6970
|
+
*/
|
|
6971
|
+
'pool': GPUV1PoolPoolResource;
|
|
6972
|
+
/**
|
|
6973
|
+
*
|
|
6974
|
+
* @type {GPUV1PoolPoolInstanceResource}
|
|
6975
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
6976
|
+
*/
|
|
6977
|
+
'pool_instance': GPUV1PoolPoolInstanceResource;
|
|
6978
|
+
/**
|
|
6979
|
+
*
|
|
6980
|
+
* @type {GPUV1OsTemplateOsTemplateResource}
|
|
6981
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
6982
|
+
*/
|
|
6983
|
+
'os_template': GPUV1OsTemplateOsTemplateResource;
|
|
6984
|
+
/**
|
|
6985
|
+
* Array of [`GPU.V1.SshKey.SshKeyResource`](#model/gpuv1sshkeysshkeyresource)
|
|
6986
|
+
* @type {Array<GPUV1SshKeySshKeyResource>}
|
|
6987
|
+
* @memberof GPUV1InstanceInstanceResource
|
|
6988
|
+
*/
|
|
6989
|
+
'ssh_keys': Array<GPUV1SshKeySshKeyResource>;
|
|
6990
|
+
}
|
|
6991
|
+
export declare const GPUV1InstanceInstanceResourceStatusEnum: {
|
|
6992
|
+
readonly Created: "created";
|
|
6993
|
+
readonly Creating: "creating";
|
|
6994
|
+
readonly Running: "running";
|
|
6995
|
+
readonly Stopped: "stopped";
|
|
6996
|
+
readonly Destroying: "destroying";
|
|
6997
|
+
readonly Destroyed: "destroyed";
|
|
6998
|
+
readonly InsufficientFunds: "insufficient_funds";
|
|
6999
|
+
readonly Error: "error";
|
|
7000
|
+
readonly Abuse: "abuse";
|
|
7001
|
+
};
|
|
7002
|
+
export type GPUV1InstanceInstanceResourceStatusEnum = typeof GPUV1InstanceInstanceResourceStatusEnum[keyof typeof GPUV1InstanceInstanceResourceStatusEnum];
|
|
7003
|
+
export declare const GPUV1InstanceInstanceResourceActionLockEnum: {
|
|
7004
|
+
readonly Unlocked: "unlocked";
|
|
7005
|
+
readonly Locked: "locked";
|
|
7006
|
+
};
|
|
7007
|
+
export type GPUV1InstanceInstanceResourceActionLockEnum = typeof GPUV1InstanceInstanceResourceActionLockEnum[keyof typeof GPUV1InstanceInstanceResourceActionLockEnum];
|
|
7008
|
+
/**
|
|
7009
|
+
*
|
|
7010
|
+
* @export
|
|
7011
|
+
* @interface GPUV1InstanceStoreRequest
|
|
7012
|
+
*/
|
|
7013
|
+
export interface GPUV1InstanceStoreRequest {
|
|
7014
|
+
/**
|
|
7015
|
+
* Instance type ID from the pool instance types list
|
|
7016
|
+
* @type {number}
|
|
7017
|
+
* @memberof GPUV1InstanceStoreRequest
|
|
7018
|
+
*/
|
|
7019
|
+
'pool_instance_id': number;
|
|
7020
|
+
/**
|
|
7021
|
+
* OS template ID available for the selected instance type
|
|
7022
|
+
* @type {number}
|
|
7023
|
+
* @memberof GPUV1InstanceStoreRequest
|
|
7024
|
+
*/
|
|
7025
|
+
'os_template_id': number;
|
|
7026
|
+
/**
|
|
7027
|
+
* Instance name, unique among your instances. Letters, numbers, dashes and underscores only
|
|
7028
|
+
* @type {string}
|
|
7029
|
+
* @memberof GPUV1InstanceStoreRequest
|
|
7030
|
+
*/
|
|
7031
|
+
'name': string;
|
|
7032
|
+
/**
|
|
7033
|
+
* SSH public keys to add to the instance
|
|
7034
|
+
* @type {Array<string>}
|
|
7035
|
+
* @memberof GPUV1InstanceStoreRequest
|
|
7036
|
+
*/
|
|
7037
|
+
'public_keys': Array<string>;
|
|
7038
|
+
}
|
|
7039
|
+
/**
|
|
7040
|
+
*
|
|
7041
|
+
* @export
|
|
7042
|
+
* @interface GPUV1MetricsMetricsResource
|
|
7043
|
+
*/
|
|
7044
|
+
export interface GPUV1MetricsMetricsResource {
|
|
7045
|
+
/**
|
|
7046
|
+
* Unix timestamp of the measurement
|
|
7047
|
+
* @type {number}
|
|
7048
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7049
|
+
*/
|
|
7050
|
+
'timestamp': number;
|
|
7051
|
+
/**
|
|
7052
|
+
* CPU utilisation in percent
|
|
7053
|
+
* @type {number}
|
|
7054
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7055
|
+
*/
|
|
7056
|
+
'cpu_percentage': number;
|
|
7057
|
+
/**
|
|
7058
|
+
* Used memory in bytes
|
|
7059
|
+
* @type {number}
|
|
7060
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7061
|
+
*/
|
|
7062
|
+
'memory_used': number;
|
|
7063
|
+
/**
|
|
7064
|
+
* GPU utilisation in percent
|
|
7065
|
+
* @type {number}
|
|
7066
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7067
|
+
*/
|
|
7068
|
+
'gpu_percentage': number;
|
|
7069
|
+
/**
|
|
7070
|
+
* Used GPU memory in bytes
|
|
7071
|
+
* @type {number}
|
|
7072
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7073
|
+
*/
|
|
7074
|
+
'gpu_memory_used': number;
|
|
7075
|
+
/**
|
|
7076
|
+
* GPU throughput in TFLOPS
|
|
7077
|
+
* @type {number}
|
|
7078
|
+
* @memberof GPUV1MetricsMetricsResource
|
|
7079
|
+
*/
|
|
7080
|
+
'gpu_tflops': number;
|
|
7081
|
+
}
|
|
6870
7082
|
/**
|
|
6871
7083
|
*
|
|
6872
7084
|
* @export
|
|
@@ -7076,6 +7288,31 @@ export interface GPUV1RegionRegionResource {
|
|
|
7076
7288
|
*/
|
|
7077
7289
|
'country': string;
|
|
7078
7290
|
}
|
|
7291
|
+
/**
|
|
7292
|
+
*
|
|
7293
|
+
* @export
|
|
7294
|
+
* @interface GPUV1SshKeySshKeyResource
|
|
7295
|
+
*/
|
|
7296
|
+
export interface GPUV1SshKeySshKeyResource {
|
|
7297
|
+
/**
|
|
7298
|
+
* SSH key ID
|
|
7299
|
+
* @type {number}
|
|
7300
|
+
* @memberof GPUV1SshKeySshKeyResource
|
|
7301
|
+
*/
|
|
7302
|
+
'id': number;
|
|
7303
|
+
/**
|
|
7304
|
+
*
|
|
7305
|
+
* @type {string}
|
|
7306
|
+
* @memberof GPUV1SshKeySshKeyResource
|
|
7307
|
+
*/
|
|
7308
|
+
'name': string | null;
|
|
7309
|
+
/**
|
|
7310
|
+
*
|
|
7311
|
+
* @type {string}
|
|
7312
|
+
* @memberof GPUV1SshKeySshKeyResource
|
|
7313
|
+
*/
|
|
7314
|
+
'public_key': string;
|
|
7315
|
+
}
|
|
7079
7316
|
/**
|
|
7080
7317
|
*
|
|
7081
7318
|
* @export
|
|
@@ -25283,6 +25520,193 @@ export declare const GetPoolGroupsV1CurrencyEnum: {
|
|
|
25283
25520
|
readonly Zar: "ZAR";
|
|
25284
25521
|
};
|
|
25285
25522
|
export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
|
|
25523
|
+
/**
|
|
25524
|
+
* GPUInstancesApi - axios parameter creator
|
|
25525
|
+
* @export
|
|
25526
|
+
*/
|
|
25527
|
+
export declare const GPUInstancesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25528
|
+
/**
|
|
25529
|
+
* Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
|
|
25530
|
+
* @summary Create instance
|
|
25531
|
+
* @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
|
|
25532
|
+
* @param {*} [options] Override http request option.
|
|
25533
|
+
* @throws {RequiredError}
|
|
25534
|
+
*/
|
|
25535
|
+
createInstanceV1: (gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25536
|
+
/**
|
|
25537
|
+
* Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
|
|
25538
|
+
* @summary Delete instance
|
|
25539
|
+
* @param {number} instanceId GPU instance ID
|
|
25540
|
+
* @param {*} [options] Override http request option.
|
|
25541
|
+
* @throws {RequiredError}
|
|
25542
|
+
*/
|
|
25543
|
+
deleteInstanceV1: (instanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25544
|
+
/**
|
|
25545
|
+
* Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
|
|
25546
|
+
* @summary Get instance details
|
|
25547
|
+
* @param {number} instanceId GPU instance ID
|
|
25548
|
+
* @param {*} [options] Override http request option.
|
|
25549
|
+
* @throws {RequiredError}
|
|
25550
|
+
*/
|
|
25551
|
+
getInstanceDetailsV1: (instanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25552
|
+
/**
|
|
25553
|
+
* Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
|
|
25554
|
+
* @summary Get instance metrics
|
|
25555
|
+
* @param {number} instanceId GPU instance ID
|
|
25556
|
+
* @param {*} [options] Override http request option.
|
|
25557
|
+
* @throws {RequiredError}
|
|
25558
|
+
*/
|
|
25559
|
+
getInstanceMetricsV1: (instanceId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25560
|
+
/**
|
|
25561
|
+
* Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
|
|
25562
|
+
* @summary Get instances
|
|
25563
|
+
* @param {*} [options] Override http request option.
|
|
25564
|
+
* @throws {RequiredError}
|
|
25565
|
+
*/
|
|
25566
|
+
getInstancesV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25567
|
+
};
|
|
25568
|
+
/**
|
|
25569
|
+
* GPUInstancesApi - functional programming interface
|
|
25570
|
+
* @export
|
|
25571
|
+
*/
|
|
25572
|
+
export declare const GPUInstancesApiFp: (configuration?: Configuration) => {
|
|
25573
|
+
/**
|
|
25574
|
+
* Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
|
|
25575
|
+
* @summary Create instance
|
|
25576
|
+
* @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
|
|
25577
|
+
* @param {*} [options] Override http request option.
|
|
25578
|
+
* @throws {RequiredError}
|
|
25579
|
+
*/
|
|
25580
|
+
createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
25581
|
+
/**
|
|
25582
|
+
* Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
|
|
25583
|
+
* @summary Delete instance
|
|
25584
|
+
* @param {number} instanceId GPU instance ID
|
|
25585
|
+
* @param {*} [options] Override http request option.
|
|
25586
|
+
* @throws {RequiredError}
|
|
25587
|
+
*/
|
|
25588
|
+
deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
25589
|
+
/**
|
|
25590
|
+
* Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
|
|
25591
|
+
* @summary Get instance details
|
|
25592
|
+
* @param {number} instanceId GPU instance ID
|
|
25593
|
+
* @param {*} [options] Override http request option.
|
|
25594
|
+
* @throws {RequiredError}
|
|
25595
|
+
*/
|
|
25596
|
+
getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GPUV1InstanceInstanceResource>>;
|
|
25597
|
+
/**
|
|
25598
|
+
* Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
|
|
25599
|
+
* @summary Get instance metrics
|
|
25600
|
+
* @param {number} instanceId GPU instance ID
|
|
25601
|
+
* @param {*} [options] Override http request option.
|
|
25602
|
+
* @throws {RequiredError}
|
|
25603
|
+
*/
|
|
25604
|
+
getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1MetricsMetricsResource>>>;
|
|
25605
|
+
/**
|
|
25606
|
+
* Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
|
|
25607
|
+
* @summary Get instances
|
|
25608
|
+
* @param {*} [options] Override http request option.
|
|
25609
|
+
* @throws {RequiredError}
|
|
25610
|
+
*/
|
|
25611
|
+
getInstancesV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1InstanceInstanceListResource>>>;
|
|
25612
|
+
};
|
|
25613
|
+
/**
|
|
25614
|
+
* GPUInstancesApi - factory interface
|
|
25615
|
+
* @export
|
|
25616
|
+
*/
|
|
25617
|
+
export declare const GPUInstancesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25618
|
+
/**
|
|
25619
|
+
* Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
|
|
25620
|
+
* @summary Create instance
|
|
25621
|
+
* @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
|
|
25622
|
+
* @param {*} [options] Override http request option.
|
|
25623
|
+
* @throws {RequiredError}
|
|
25624
|
+
*/
|
|
25625
|
+
createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
25626
|
+
/**
|
|
25627
|
+
* Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
|
|
25628
|
+
* @summary Delete instance
|
|
25629
|
+
* @param {number} instanceId GPU instance ID
|
|
25630
|
+
* @param {*} [options] Override http request option.
|
|
25631
|
+
* @throws {RequiredError}
|
|
25632
|
+
*/
|
|
25633
|
+
deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
25634
|
+
/**
|
|
25635
|
+
* Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
|
|
25636
|
+
* @summary Get instance details
|
|
25637
|
+
* @param {number} instanceId GPU instance ID
|
|
25638
|
+
* @param {*} [options] Override http request option.
|
|
25639
|
+
* @throws {RequiredError}
|
|
25640
|
+
*/
|
|
25641
|
+
getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<GPUV1InstanceInstanceResource>;
|
|
25642
|
+
/**
|
|
25643
|
+
* Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
|
|
25644
|
+
* @summary Get instance metrics
|
|
25645
|
+
* @param {number} instanceId GPU instance ID
|
|
25646
|
+
* @param {*} [options] Override http request option.
|
|
25647
|
+
* @throws {RequiredError}
|
|
25648
|
+
*/
|
|
25649
|
+
getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1MetricsMetricsResource>>;
|
|
25650
|
+
/**
|
|
25651
|
+
* Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
|
|
25652
|
+
* @summary Get instances
|
|
25653
|
+
* @param {*} [options] Override http request option.
|
|
25654
|
+
* @throws {RequiredError}
|
|
25655
|
+
*/
|
|
25656
|
+
getInstancesV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1InstanceInstanceListResource>>;
|
|
25657
|
+
};
|
|
25658
|
+
/**
|
|
25659
|
+
* GPUInstancesApi - object-oriented interface
|
|
25660
|
+
* @export
|
|
25661
|
+
* @class GPUInstancesApi
|
|
25662
|
+
* @extends {BaseAPI}
|
|
25663
|
+
*/
|
|
25664
|
+
export declare class GPUInstancesApi extends BaseAPI {
|
|
25665
|
+
/**
|
|
25666
|
+
* Create a new GPU instance. Pick `pool_instance_id` from the pool instance types list and `os_template_id` from the OS templates available for that instance type. Your account must have enough credits to run the instance for its first hour. The instance is created asynchronously: a successful request returns immediately, and the instance appears in the instance list while its `status` moves from `created` through `creating` to `running`. Use this endpoint to provision GPU compute.
|
|
25667
|
+
* @summary Create instance
|
|
25668
|
+
* @param {GPUV1InstanceStoreRequest} gPUV1InstanceStoreRequest
|
|
25669
|
+
* @param {*} [options] Override http request option.
|
|
25670
|
+
* @throws {RequiredError}
|
|
25671
|
+
* @memberof GPUInstancesApi
|
|
25672
|
+
*/
|
|
25673
|
+
createInstanceV1(gPUV1InstanceStoreRequest: GPUV1InstanceStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
25674
|
+
/**
|
|
25675
|
+
* Delete a specified GPU instance. The instance is destroyed asynchronously: a successful request returns immediately and the instance `status` moves to `destroying`. Deleting fails while the instance is in `created`, `destroying`, `destroyed` or `abuse` status, or while another action is in progress on it. Use this endpoint to stop billing for a GPU instance you no longer need.
|
|
25676
|
+
* @summary Delete instance
|
|
25677
|
+
* @param {number} instanceId GPU instance ID
|
|
25678
|
+
* @param {*} [options] Override http request option.
|
|
25679
|
+
* @throws {RequiredError}
|
|
25680
|
+
* @memberof GPUInstancesApi
|
|
25681
|
+
*/
|
|
25682
|
+
deleteInstanceV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
25683
|
+
/**
|
|
25684
|
+
* Retrieve detailed information about a specified GPU instance, including its SSH keys. Use this endpoint to follow the instance `status` after creating or deleting it.
|
|
25685
|
+
* @summary Get instance details
|
|
25686
|
+
* @param {number} instanceId GPU instance ID
|
|
25687
|
+
* @param {*} [options] Override http request option.
|
|
25688
|
+
* @throws {RequiredError}
|
|
25689
|
+
* @memberof GPUInstancesApi
|
|
25690
|
+
*/
|
|
25691
|
+
getInstanceDetailsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1InstanceInstanceResource, any, {}, any>>;
|
|
25692
|
+
/**
|
|
25693
|
+
* Retrieve utilisation metrics of a specified GPU instance for the last hour. Each data point contains CPU, memory and GPU utilisation, used GPU memory and GPU throughput. The list is empty until the instance is provisioned. Use this endpoint to monitor GPU instance load.
|
|
25694
|
+
* @summary Get instance metrics
|
|
25695
|
+
* @param {number} instanceId GPU instance ID
|
|
25696
|
+
* @param {*} [options] Override http request option.
|
|
25697
|
+
* @throws {RequiredError}
|
|
25698
|
+
* @memberof GPUInstancesApi
|
|
25699
|
+
*/
|
|
25700
|
+
getInstanceMetricsV1(instanceId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1MetricsMetricsResource[], any, {}, any>>;
|
|
25701
|
+
/**
|
|
25702
|
+
* Retrieve all GPU instances of your account. Use this endpoint to view your GPU instances with their status, pool, instance type and OS template.
|
|
25703
|
+
* @summary Get instances
|
|
25704
|
+
* @param {*} [options] Override http request option.
|
|
25705
|
+
* @throws {RequiredError}
|
|
25706
|
+
* @memberof GPUInstancesApi
|
|
25707
|
+
*/
|
|
25708
|
+
getInstancesV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GPUV1InstanceInstanceListResource[], any, {}, any>>;
|
|
25709
|
+
}
|
|
25286
25710
|
/**
|
|
25287
25711
|
* HorizonsWebsitesApi - axios parameter creator
|
|
25288
25712
|
* @export
|