hostinger-api-sdk 2.14.1 → 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 +684 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +467 -9
- package/dist/api.js +432 -22
- 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 +467 -9
- package/dist/esm/api.js +415 -9
- 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/docs/HostingPocketBaseApi.md +2 -2
- package/docs/HostingV1PocketBaseBackendResource.md +4 -0
- package/docs/HostingV1PocketBaseInstanceResource.md +4 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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
|
|
@@ -10223,6 +10460,18 @@ export interface HostingV1PocketBaseBackendResource {
|
|
|
10223
10460
|
* @memberof HostingV1PocketBaseBackendResource
|
|
10224
10461
|
*/
|
|
10225
10462
|
'state': HostingV1PocketBaseBackendResourceStateEnum | null;
|
|
10463
|
+
/**
|
|
10464
|
+
* Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running; `start_failed` is any other cause.
|
|
10465
|
+
* @type {string}
|
|
10466
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10467
|
+
*/
|
|
10468
|
+
'failure_reason': HostingV1PocketBaseBackendResourceFailureReasonEnum | null;
|
|
10469
|
+
/**
|
|
10470
|
+
* Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`. Null when the next try is due now.
|
|
10471
|
+
* @type {number}
|
|
10472
|
+
* @memberof HostingV1PocketBaseBackendResource
|
|
10473
|
+
*/
|
|
10474
|
+
'retry_after_seconds': number | null;
|
|
10226
10475
|
/**
|
|
10227
10476
|
* PocketBase version
|
|
10228
10477
|
* @type {string}
|
|
@@ -10247,6 +10496,11 @@ export declare const HostingV1PocketBaseBackendResourceStateEnum: {
|
|
|
10247
10496
|
readonly Missing: "missing";
|
|
10248
10497
|
};
|
|
10249
10498
|
export type HostingV1PocketBaseBackendResourceStateEnum = typeof HostingV1PocketBaseBackendResourceStateEnum[keyof typeof HostingV1PocketBaseBackendResourceStateEnum];
|
|
10499
|
+
export declare const HostingV1PocketBaseBackendResourceFailureReasonEnum: {
|
|
10500
|
+
readonly ProcessLimit: "process_limit";
|
|
10501
|
+
readonly StartFailed: "start_failed";
|
|
10502
|
+
};
|
|
10503
|
+
export type HostingV1PocketBaseBackendResourceFailureReasonEnum = typeof HostingV1PocketBaseBackendResourceFailureReasonEnum[keyof typeof HostingV1PocketBaseBackendResourceFailureReasonEnum];
|
|
10250
10504
|
/**
|
|
10251
10505
|
*
|
|
10252
10506
|
* @export
|
|
@@ -10302,6 +10556,18 @@ export interface HostingV1PocketBaseInstanceResource {
|
|
|
10302
10556
|
* @memberof HostingV1PocketBaseInstanceResource
|
|
10303
10557
|
*/
|
|
10304
10558
|
'state': HostingV1PocketBaseInstanceResourceStateEnum | null;
|
|
10559
|
+
/**
|
|
10560
|
+
* Why the last start did not succeed, set only while `state` is `failed`. `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running; `start_failed` is any other cause.
|
|
10561
|
+
* @type {string}
|
|
10562
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10563
|
+
*/
|
|
10564
|
+
'failure_reason': HostingV1PocketBaseInstanceResourceFailureReasonEnum | null;
|
|
10565
|
+
/**
|
|
10566
|
+
* Seconds until Hostinger tries to start the instance again, set only while `state` is `failed`. Null when the next try is due now.
|
|
10567
|
+
* @type {number}
|
|
10568
|
+
* @memberof HostingV1PocketBaseInstanceResource
|
|
10569
|
+
*/
|
|
10570
|
+
'retry_after_seconds': number | null;
|
|
10305
10571
|
/**
|
|
10306
10572
|
* PocketBase version
|
|
10307
10573
|
* @type {string}
|
|
@@ -10326,6 +10592,11 @@ export declare const HostingV1PocketBaseInstanceResourceStateEnum: {
|
|
|
10326
10592
|
readonly Missing: "missing";
|
|
10327
10593
|
};
|
|
10328
10594
|
export type HostingV1PocketBaseInstanceResourceStateEnum = typeof HostingV1PocketBaseInstanceResourceStateEnum[keyof typeof HostingV1PocketBaseInstanceResourceStateEnum];
|
|
10595
|
+
export declare const HostingV1PocketBaseInstanceResourceFailureReasonEnum: {
|
|
10596
|
+
readonly ProcessLimit: "process_limit";
|
|
10597
|
+
readonly StartFailed: "start_failed";
|
|
10598
|
+
};
|
|
10599
|
+
export type HostingV1PocketBaseInstanceResourceFailureReasonEnum = typeof HostingV1PocketBaseInstanceResourceFailureReasonEnum[keyof typeof HostingV1PocketBaseInstanceResourceFailureReasonEnum];
|
|
10329
10600
|
/**
|
|
10330
10601
|
*
|
|
10331
10602
|
* @export
|
|
@@ -25249,6 +25520,193 @@ export declare const GetPoolGroupsV1CurrencyEnum: {
|
|
|
25249
25520
|
readonly Zar: "ZAR";
|
|
25250
25521
|
};
|
|
25251
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
|
+
}
|
|
25252
25710
|
/**
|
|
25253
25711
|
* HorizonsWebsitesApi - axios parameter creator
|
|
25254
25712
|
* @export
|
|
@@ -28538,7 +28996,7 @@ export declare const HostingPocketBaseApiAxiosParamCreator: (configuration?: Con
|
|
|
28538
28996
|
*/
|
|
28539
28997
|
deletePocketBaseBackendV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28540
28998
|
/**
|
|
28541
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
28999
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28542
29000
|
* @summary Get PocketBase backend
|
|
28543
29001
|
* @param {string} username
|
|
28544
29002
|
* @param {string} domain Domain name
|
|
@@ -28547,7 +29005,7 @@ export declare const HostingPocketBaseApiAxiosParamCreator: (configuration?: Con
|
|
|
28547
29005
|
*/
|
|
28548
29006
|
getPocketBaseBackendV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28549
29007
|
/**
|
|
28550
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
29008
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28551
29009
|
* @summary List account PocketBase backends
|
|
28552
29010
|
* @param {string} username
|
|
28553
29011
|
* @param {*} [options] Override http request option.
|
|
@@ -28590,7 +29048,7 @@ export declare const HostingPocketBaseApiFp: (configuration?: Configuration) =>
|
|
|
28590
29048
|
*/
|
|
28591
29049
|
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
28592
29050
|
/**
|
|
28593
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
29051
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28594
29052
|
* @summary Get PocketBase backend
|
|
28595
29053
|
* @param {string} username
|
|
28596
29054
|
* @param {string} domain Domain name
|
|
@@ -28599,7 +29057,7 @@ export declare const HostingPocketBaseApiFp: (configuration?: Configuration) =>
|
|
|
28599
29057
|
*/
|
|
28600
29058
|
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1PocketBaseBackendResource>>;
|
|
28601
29059
|
/**
|
|
28602
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
29060
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28603
29061
|
* @summary List account PocketBase backends
|
|
28604
29062
|
* @param {string} username
|
|
28605
29063
|
* @param {*} [options] Override http request option.
|
|
@@ -28642,7 +29100,7 @@ export declare const HostingPocketBaseApiFactory: (configuration?: Configuration
|
|
|
28642
29100
|
*/
|
|
28643
29101
|
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
28644
29102
|
/**
|
|
28645
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
29103
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28646
29104
|
* @summary Get PocketBase backend
|
|
28647
29105
|
* @param {string} username
|
|
28648
29106
|
* @param {string} domain Domain name
|
|
@@ -28651,7 +29109,7 @@ export declare const HostingPocketBaseApiFactory: (configuration?: Configuration
|
|
|
28651
29109
|
*/
|
|
28652
29110
|
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1PocketBaseBackendResource>;
|
|
28653
29111
|
/**
|
|
28654
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
29112
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28655
29113
|
* @summary List account PocketBase backends
|
|
28656
29114
|
* @param {string} username
|
|
28657
29115
|
* @param {*} [options] Override http request option.
|
|
@@ -28698,7 +29156,7 @@ export declare class HostingPocketBaseApi extends BaseAPI {
|
|
|
28698
29156
|
*/
|
|
28699
29157
|
deletePocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
28700
29158
|
/**
|
|
28701
|
-
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy
|
|
29159
|
+
* Returns the PocketBase backend of a website: its REST API and dashboard URLs, live state and version. A PocketBase backend gives the website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain under `/api` and `/_`. Returns 404 when the website has no PocketBase backend. The superuser password is only shown once, when it is set, and is never returned here. If it is lost, set a new one with the `Set PocketBase superuser` endpoint. The instance sleeps when idle and wakes on the first request, so `asleep` is a normal state and the first call to a sleeping instance can take a few seconds. `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28702
29160
|
* @summary Get PocketBase backend
|
|
28703
29161
|
* @param {string} username
|
|
28704
29162
|
* @param {string} domain Domain name
|
|
@@ -28708,7 +29166,7 @@ export declare class HostingPocketBaseApi extends BaseAPI {
|
|
|
28708
29166
|
*/
|
|
28709
29167
|
getPocketBaseBackendV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1PocketBaseBackendResource, any, {}, any>>;
|
|
28710
29168
|
/**
|
|
28711
|
-
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy
|
|
29169
|
+
* Lists the PocketBase backends of all websites of a hosting account with their URLs, live state, version and disk usage. A PocketBase backend gives a website a database, authentication, file storage and a realtime REST API, served from the website\'s own domain. An empty list means no website of the account has a PocketBase backend. States: `asleep` is normal (the instance sleeps when idle and wakes on the first request); `starting`, `running` and `stopping` are healthy. `failed` means the last start did not succeed. Hostinger starts it again on its own after `retry_after_seconds`, and the data is intact: wait and call again, do not delete the backend. `failure_reason` says why: `process_limit` means the hosting account has no free process slots, usually because its Node.js apps are running. `unregistered` means the instance is broken. `missing` means its files are gone from the server, and creating the PocketBase backend again sets up a new, empty one. `state` is null when the server could not be reached; retry later. PocketBase is rolling out gradually: an account without access yet gets 422.
|
|
28712
29170
|
* @summary List account PocketBase backends
|
|
28713
29171
|
* @param {string} username
|
|
28714
29172
|
* @param {*} [options] Override http request option.
|