hostinger-api-sdk 2.6.2 → 2.7.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 +603 -11
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +433 -11
- package/dist/api.js +380 -15
- 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 +433 -11
- package/dist/esm/api.js +369 -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/GPUCatalogApi.md +219 -0
- package/docs/GPUV1OsTemplateOsTemplateResource.md +30 -0
- package/docs/GPUV1PoolPoolGroupResource.md +30 -0
- package/docs/GPUV1PoolPoolInstanceResource.md +32 -0
- package/docs/GPUV1PoolPoolResource.md +30 -0
- package/docs/GPUV1RegionRegionResource.md +26 -0
- package/docs/HostingV1OnboardingsStartOnboardingRequest.md +1 -1
- package/docs/HostingWebsitesApi.md +1 -1
- package/docs/WordPressInstallationsApi.md +1 -1
- package/docs/WordPressV1InstallationsInstallWordPressRequest.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.7.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
|
|
@@ -6888,6 +6888,215 @@ export interface EcommerceV1VariantVariantResponseResource {
|
|
|
6888
6888
|
*/
|
|
6889
6889
|
'data': EcommerceV1VariantVariantResource;
|
|
6890
6890
|
}
|
|
6891
|
+
/**
|
|
6892
|
+
*
|
|
6893
|
+
* @export
|
|
6894
|
+
* @interface GPUV1OsTemplateOsTemplateResource
|
|
6895
|
+
*/
|
|
6896
|
+
export interface GPUV1OsTemplateOsTemplateResource {
|
|
6897
|
+
/**
|
|
6898
|
+
* OS template ID
|
|
6899
|
+
* @type {number}
|
|
6900
|
+
* @memberof GPUV1OsTemplateOsTemplateResource
|
|
6901
|
+
*/
|
|
6902
|
+
'id': number;
|
|
6903
|
+
/**
|
|
6904
|
+
*
|
|
6905
|
+
* @type {string}
|
|
6906
|
+
* @memberof GPUV1OsTemplateOsTemplateResource
|
|
6907
|
+
*/
|
|
6908
|
+
'name': string;
|
|
6909
|
+
/**
|
|
6910
|
+
* Knowledge base article about the template
|
|
6911
|
+
* @type {string}
|
|
6912
|
+
* @memberof GPUV1OsTemplateOsTemplateResource
|
|
6913
|
+
*/
|
|
6914
|
+
'kb_url': string;
|
|
6915
|
+
/**
|
|
6916
|
+
* Icon image ID
|
|
6917
|
+
* @type {string}
|
|
6918
|
+
* @memberof GPUV1OsTemplateOsTemplateResource
|
|
6919
|
+
*/
|
|
6920
|
+
'image': string | null;
|
|
6921
|
+
/**
|
|
6922
|
+
* Dark theme icon image ID
|
|
6923
|
+
* @type {string}
|
|
6924
|
+
* @memberof GPUV1OsTemplateOsTemplateResource
|
|
6925
|
+
*/
|
|
6926
|
+
'dark_image_id': string | null;
|
|
6927
|
+
/**
|
|
6928
|
+
* Light theme icon image ID
|
|
6929
|
+
* @type {string}
|
|
6930
|
+
* @memberof GPUV1OsTemplateOsTemplateResource
|
|
6931
|
+
*/
|
|
6932
|
+
'light_image_id': string | null;
|
|
6933
|
+
}
|
|
6934
|
+
/**
|
|
6935
|
+
*
|
|
6936
|
+
* @export
|
|
6937
|
+
* @interface GPUV1PoolPoolGroupResource
|
|
6938
|
+
*/
|
|
6939
|
+
export interface GPUV1PoolPoolGroupResource {
|
|
6940
|
+
/**
|
|
6941
|
+
* GPU pool group ID
|
|
6942
|
+
* @type {number}
|
|
6943
|
+
* @memberof GPUV1PoolPoolGroupResource
|
|
6944
|
+
*/
|
|
6945
|
+
'id': number;
|
|
6946
|
+
/**
|
|
6947
|
+
*
|
|
6948
|
+
* @type {string}
|
|
6949
|
+
* @memberof GPUV1PoolPoolGroupResource
|
|
6950
|
+
*/
|
|
6951
|
+
'name': string;
|
|
6952
|
+
/**
|
|
6953
|
+
* Total VRAM in bytes
|
|
6954
|
+
* @type {number}
|
|
6955
|
+
* @memberof GPUV1PoolPoolGroupResource
|
|
6956
|
+
*/
|
|
6957
|
+
'vram': number | null;
|
|
6958
|
+
/**
|
|
6959
|
+
* Whether the group has any available pools
|
|
6960
|
+
* @type {boolean}
|
|
6961
|
+
* @memberof GPUV1PoolPoolGroupResource
|
|
6962
|
+
*/
|
|
6963
|
+
'is_available': boolean;
|
|
6964
|
+
/**
|
|
6965
|
+
* Lowest hourly price of the group instance types, in the requested currency
|
|
6966
|
+
* @type {number}
|
|
6967
|
+
* @memberof GPUV1PoolPoolGroupResource
|
|
6968
|
+
*/
|
|
6969
|
+
'min_price_per_hour': number | null;
|
|
6970
|
+
/**
|
|
6971
|
+
* Array of [`GPU.V1.Pool.PoolResource`](#model/gpuv1poolpoolresource)
|
|
6972
|
+
* @type {Array<GPUV1PoolPoolResource>}
|
|
6973
|
+
* @memberof GPUV1PoolPoolGroupResource
|
|
6974
|
+
*/
|
|
6975
|
+
'pools': Array<GPUV1PoolPoolResource>;
|
|
6976
|
+
}
|
|
6977
|
+
/**
|
|
6978
|
+
*
|
|
6979
|
+
* @export
|
|
6980
|
+
* @interface GPUV1PoolPoolInstanceResource
|
|
6981
|
+
*/
|
|
6982
|
+
export interface GPUV1PoolPoolInstanceResource {
|
|
6983
|
+
/**
|
|
6984
|
+
* GPU pool instance type ID
|
|
6985
|
+
* @type {number}
|
|
6986
|
+
* @memberof GPUV1PoolPoolInstanceResource
|
|
6987
|
+
*/
|
|
6988
|
+
'id': number;
|
|
6989
|
+
/**
|
|
6990
|
+
*
|
|
6991
|
+
* @type {string}
|
|
6992
|
+
* @memberof GPUV1PoolPoolInstanceResource
|
|
6993
|
+
*/
|
|
6994
|
+
'name': string;
|
|
6995
|
+
/**
|
|
6996
|
+
*
|
|
6997
|
+
* @type {string}
|
|
6998
|
+
* @memberof GPUV1PoolPoolInstanceResource
|
|
6999
|
+
*/
|
|
7000
|
+
'description': string | null;
|
|
7001
|
+
/**
|
|
7002
|
+
* Number of CPU cores
|
|
7003
|
+
* @type {number}
|
|
7004
|
+
* @memberof GPUV1PoolPoolInstanceResource
|
|
7005
|
+
*/
|
|
7006
|
+
'cpu_cores': number;
|
|
7007
|
+
/**
|
|
7008
|
+
* Total RAM in bytes
|
|
7009
|
+
* @type {number}
|
|
7010
|
+
* @memberof GPUV1PoolPoolInstanceResource
|
|
7011
|
+
*/
|
|
7012
|
+
'ram': number;
|
|
7013
|
+
/**
|
|
7014
|
+
* Total storage in bytes
|
|
7015
|
+
* @type {number}
|
|
7016
|
+
* @memberof GPUV1PoolPoolInstanceResource
|
|
7017
|
+
*/
|
|
7018
|
+
'storage': number;
|
|
7019
|
+
/**
|
|
7020
|
+
* Hourly price in cents (USD)
|
|
7021
|
+
* @type {number}
|
|
7022
|
+
* @memberof GPUV1PoolPoolInstanceResource
|
|
7023
|
+
*/
|
|
7024
|
+
'price_per_hour': number;
|
|
7025
|
+
}
|
|
7026
|
+
/**
|
|
7027
|
+
*
|
|
7028
|
+
* @export
|
|
7029
|
+
* @interface GPUV1PoolPoolResource
|
|
7030
|
+
*/
|
|
7031
|
+
export interface GPUV1PoolPoolResource {
|
|
7032
|
+
/**
|
|
7033
|
+
* GPU pool ID
|
|
7034
|
+
* @type {number}
|
|
7035
|
+
* @memberof GPUV1PoolPoolResource
|
|
7036
|
+
*/
|
|
7037
|
+
'id': number;
|
|
7038
|
+
/**
|
|
7039
|
+
*
|
|
7040
|
+
* @type {string}
|
|
7041
|
+
* @memberof GPUV1PoolPoolResource
|
|
7042
|
+
*/
|
|
7043
|
+
'name': string;
|
|
7044
|
+
/**
|
|
7045
|
+
* Number of GPUs
|
|
7046
|
+
* @type {number}
|
|
7047
|
+
* @memberof GPUV1PoolPoolResource
|
|
7048
|
+
*/
|
|
7049
|
+
'gpus': number;
|
|
7050
|
+
/**
|
|
7051
|
+
* Total VRAM in bytes
|
|
7052
|
+
* @type {number}
|
|
7053
|
+
* @memberof GPUV1PoolPoolResource
|
|
7054
|
+
*/
|
|
7055
|
+
'vram': number;
|
|
7056
|
+
/**
|
|
7057
|
+
* Whether the pool has available instances for booking
|
|
7058
|
+
* @type {boolean}
|
|
7059
|
+
* @memberof GPUV1PoolPoolResource
|
|
7060
|
+
*/
|
|
7061
|
+
'is_available': boolean;
|
|
7062
|
+
/**
|
|
7063
|
+
*
|
|
7064
|
+
* @type {GPUV1RegionRegionResource}
|
|
7065
|
+
* @memberof GPUV1PoolPoolResource
|
|
7066
|
+
*/
|
|
7067
|
+
'region': GPUV1RegionRegionResource | null;
|
|
7068
|
+
}
|
|
7069
|
+
/**
|
|
7070
|
+
*
|
|
7071
|
+
* @export
|
|
7072
|
+
* @interface GPUV1RegionRegionResource
|
|
7073
|
+
*/
|
|
7074
|
+
export interface GPUV1RegionRegionResource {
|
|
7075
|
+
/**
|
|
7076
|
+
* Region ID
|
|
7077
|
+
* @type {number}
|
|
7078
|
+
* @memberof GPUV1RegionRegionResource
|
|
7079
|
+
*/
|
|
7080
|
+
'id': number;
|
|
7081
|
+
/**
|
|
7082
|
+
* Region name
|
|
7083
|
+
* @type {string}
|
|
7084
|
+
* @memberof GPUV1RegionRegionResource
|
|
7085
|
+
*/
|
|
7086
|
+
'name': string | null;
|
|
7087
|
+
/**
|
|
7088
|
+
*
|
|
7089
|
+
* @type {string}
|
|
7090
|
+
* @memberof GPUV1RegionRegionResource
|
|
7091
|
+
*/
|
|
7092
|
+
'city': string;
|
|
7093
|
+
/**
|
|
7094
|
+
* ISO 3166-1 alpha-2 country code
|
|
7095
|
+
* @type {string}
|
|
7096
|
+
* @memberof GPUV1RegionRegionResource
|
|
7097
|
+
*/
|
|
7098
|
+
'country': string;
|
|
7099
|
+
}
|
|
6891
7100
|
/**
|
|
6892
7101
|
*
|
|
6893
7102
|
* @export
|
|
@@ -9681,7 +9890,7 @@ export interface HostingV1OnboardingsStartOnboardingRequest {
|
|
|
9681
9890
|
*/
|
|
9682
9891
|
'type': HostingV1OnboardingsStartOnboardingRequestTypeEnum | null;
|
|
9683
9892
|
/**
|
|
9684
|
-
* Customer-owned domain
|
|
9893
|
+
* Customer-owned domain. Omit or `null` to set the website up on a generated temporary free subdomain. Cannot start with \"www.\" and can have at most one subdomain level, e.g. `blog.example.com`. A free subdomain generated through `POST /api/hosting/v1/domains/free-subdomains` in the last 24 hours is also accepted.
|
|
9685
9894
|
* @type {string}
|
|
9686
9895
|
* @memberof HostingV1OnboardingsStartOnboardingRequest
|
|
9687
9896
|
*/
|
|
@@ -18000,7 +18209,7 @@ export interface WordPressV1InstallationsInstallWordPressRequest {
|
|
|
18000
18209
|
*/
|
|
18001
18210
|
'language': string | null;
|
|
18002
18211
|
/**
|
|
18003
|
-
* Installation kind; `default` when omitted. `headless` installs WordPress into the `cms` directory with the Hostinger headless MU plugin and marks the website as a headless WordPress website. Accepted only for a website that is already headless, e.g. one created by `POST /api/hosting/v1/orders/{order_id}/onboardings` (`
|
|
18212
|
+
* Installation kind; `default` when omitted. `headless` installs WordPress into the `cms` directory with the Hostinger headless MU plugin and marks the website as a headless WordPress website. Accepted only for a website that is already headless, e.g. one created by `POST /api/hosting/v1/orders/{order_id}/onboardings` (`hosting_websites_create`) with `type: headless_empty`; any other website is rejected with 422.
|
|
18004
18213
|
* @type {string}
|
|
18005
18214
|
* @memberof WordPressV1InstallationsInstallWordPressRequest
|
|
18006
18215
|
*/
|
|
@@ -30865,6 +31074,389 @@ export class EcommerceStoresApi extends BaseAPI {
|
|
|
30865
31074
|
|
|
30866
31075
|
|
|
30867
31076
|
|
|
31077
|
+
/**
|
|
31078
|
+
* GPUCatalogApi - axios parameter creator
|
|
31079
|
+
* @export
|
|
31080
|
+
*/
|
|
31081
|
+
export const GPUCatalogApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
31082
|
+
return {
|
|
31083
|
+
/**
|
|
31084
|
+
* Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
|
|
31085
|
+
* @summary Get pool groups
|
|
31086
|
+
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, `USD` by default
|
|
31087
|
+
* @param {*} [options] Override http request option.
|
|
31088
|
+
* @throws {RequiredError}
|
|
31089
|
+
*/
|
|
31090
|
+
getPoolGroupsV1: async (currency?: GetPoolGroupsV1CurrencyEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31091
|
+
const localVarPath = `/api/gpu/v1/pools/groups`;
|
|
31092
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31093
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31094
|
+
let baseOptions;
|
|
31095
|
+
if (configuration) {
|
|
31096
|
+
baseOptions = configuration.baseOptions;
|
|
31097
|
+
}
|
|
31098
|
+
|
|
31099
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
31100
|
+
const localVarHeaderParameter = {} as any;
|
|
31101
|
+
const localVarQueryParameter = {} as any;
|
|
31102
|
+
|
|
31103
|
+
// authentication apiToken required
|
|
31104
|
+
// http bearer authentication required
|
|
31105
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31106
|
+
|
|
31107
|
+
if (currency !== undefined) {
|
|
31108
|
+
localVarQueryParameter['currency'] = currency;
|
|
31109
|
+
}
|
|
31110
|
+
|
|
31111
|
+
|
|
31112
|
+
|
|
31113
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31115
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31116
|
+
|
|
31117
|
+
return {
|
|
31118
|
+
url: toPathString(localVarUrlObj),
|
|
31119
|
+
options: localVarRequestOptions,
|
|
31120
|
+
};
|
|
31121
|
+
},
|
|
31122
|
+
/**
|
|
31123
|
+
* Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
|
|
31124
|
+
* @summary Get pool instance types
|
|
31125
|
+
* @param {number} poolId GPU pool ID
|
|
31126
|
+
* @param {*} [options] Override http request option.
|
|
31127
|
+
* @throws {RequiredError}
|
|
31128
|
+
*/
|
|
31129
|
+
getPoolInstanceTypesV1: async (poolId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31130
|
+
// verify required parameter 'poolId' is not null or undefined
|
|
31131
|
+
assertParamExists('getPoolInstanceTypesV1', 'poolId', poolId)
|
|
31132
|
+
const localVarPath = `/api/gpu/v1/pools/{poolId}/instances`
|
|
31133
|
+
.replace(`{${"poolId"}}`, encodePathParam('poolId', poolId));
|
|
31134
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31135
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31136
|
+
let baseOptions;
|
|
31137
|
+
if (configuration) {
|
|
31138
|
+
baseOptions = configuration.baseOptions;
|
|
31139
|
+
}
|
|
31140
|
+
|
|
31141
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
31142
|
+
const localVarHeaderParameter = {} as any;
|
|
31143
|
+
const localVarQueryParameter = {} as any;
|
|
31144
|
+
|
|
31145
|
+
// authentication apiToken required
|
|
31146
|
+
// http bearer authentication required
|
|
31147
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31148
|
+
|
|
31149
|
+
|
|
31150
|
+
|
|
31151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31153
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31154
|
+
|
|
31155
|
+
return {
|
|
31156
|
+
url: toPathString(localVarUrlObj),
|
|
31157
|
+
options: localVarRequestOptions,
|
|
31158
|
+
};
|
|
31159
|
+
},
|
|
31160
|
+
/**
|
|
31161
|
+
* Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
|
|
31162
|
+
* @summary Get pool list
|
|
31163
|
+
* @param {*} [options] Override http request option.
|
|
31164
|
+
* @throws {RequiredError}
|
|
31165
|
+
*/
|
|
31166
|
+
getPoolListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31167
|
+
const localVarPath = `/api/gpu/v1/pools`;
|
|
31168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31169
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31170
|
+
let baseOptions;
|
|
31171
|
+
if (configuration) {
|
|
31172
|
+
baseOptions = configuration.baseOptions;
|
|
31173
|
+
}
|
|
31174
|
+
|
|
31175
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
31176
|
+
const localVarHeaderParameter = {} as any;
|
|
31177
|
+
const localVarQueryParameter = {} as any;
|
|
31178
|
+
|
|
31179
|
+
// authentication apiToken required
|
|
31180
|
+
// http bearer authentication required
|
|
31181
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31182
|
+
|
|
31183
|
+
|
|
31184
|
+
|
|
31185
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31186
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31187
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31188
|
+
|
|
31189
|
+
return {
|
|
31190
|
+
url: toPathString(localVarUrlObj),
|
|
31191
|
+
options: localVarRequestOptions,
|
|
31192
|
+
};
|
|
31193
|
+
},
|
|
31194
|
+
/**
|
|
31195
|
+
* Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
|
|
31196
|
+
* @summary Get pool OS templates
|
|
31197
|
+
* @param {number} poolId GPU pool ID
|
|
31198
|
+
* @param {number} poolInstanceId GPU pool instance type ID
|
|
31199
|
+
* @param {*} [options] Override http request option.
|
|
31200
|
+
* @throws {RequiredError}
|
|
31201
|
+
*/
|
|
31202
|
+
getPoolOSTemplatesV1: async (poolId: number, poolInstanceId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
31203
|
+
// verify required parameter 'poolId' is not null or undefined
|
|
31204
|
+
assertParamExists('getPoolOSTemplatesV1', 'poolId', poolId)
|
|
31205
|
+
// verify required parameter 'poolInstanceId' is not null or undefined
|
|
31206
|
+
assertParamExists('getPoolOSTemplatesV1', 'poolInstanceId', poolInstanceId)
|
|
31207
|
+
const localVarPath = `/api/gpu/v1/pools/{poolId}/instances/{poolInstanceId}/os-templates`
|
|
31208
|
+
.replace(`{${"poolId"}}`, encodePathParam('poolId', poolId))
|
|
31209
|
+
.replace(`{${"poolInstanceId"}}`, encodePathParam('poolInstanceId', poolInstanceId));
|
|
31210
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31211
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31212
|
+
let baseOptions;
|
|
31213
|
+
if (configuration) {
|
|
31214
|
+
baseOptions = configuration.baseOptions;
|
|
31215
|
+
}
|
|
31216
|
+
|
|
31217
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
31218
|
+
const localVarHeaderParameter = {} as any;
|
|
31219
|
+
const localVarQueryParameter = {} as any;
|
|
31220
|
+
|
|
31221
|
+
// authentication apiToken required
|
|
31222
|
+
// http bearer authentication required
|
|
31223
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
31224
|
+
|
|
31225
|
+
|
|
31226
|
+
|
|
31227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
31230
|
+
|
|
31231
|
+
return {
|
|
31232
|
+
url: toPathString(localVarUrlObj),
|
|
31233
|
+
options: localVarRequestOptions,
|
|
31234
|
+
};
|
|
31235
|
+
},
|
|
31236
|
+
}
|
|
31237
|
+
};
|
|
31238
|
+
|
|
31239
|
+
/**
|
|
31240
|
+
* GPUCatalogApi - functional programming interface
|
|
31241
|
+
* @export
|
|
31242
|
+
*/
|
|
31243
|
+
export const GPUCatalogApiFp = function(configuration?: Configuration) {
|
|
31244
|
+
const localVarAxiosParamCreator = GPUCatalogApiAxiosParamCreator(configuration)
|
|
31245
|
+
return {
|
|
31246
|
+
/**
|
|
31247
|
+
* Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
|
|
31248
|
+
* @summary Get pool groups
|
|
31249
|
+
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, `USD` by default
|
|
31250
|
+
* @param {*} [options] Override http request option.
|
|
31251
|
+
* @throws {RequiredError}
|
|
31252
|
+
*/
|
|
31253
|
+
async getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolGroupResource>>> {
|
|
31254
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolGroupsV1(currency, options);
|
|
31255
|
+
const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolGroupsV1']?.[0]?.url;
|
|
31256
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31257
|
+
},
|
|
31258
|
+
/**
|
|
31259
|
+
* Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
|
|
31260
|
+
* @summary Get pool instance types
|
|
31261
|
+
* @param {number} poolId GPU pool ID
|
|
31262
|
+
* @param {*} [options] Override http request option.
|
|
31263
|
+
* @throws {RequiredError}
|
|
31264
|
+
*/
|
|
31265
|
+
async getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolInstanceResource>>> {
|
|
31266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolInstanceTypesV1(poolId, options);
|
|
31267
|
+
const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolInstanceTypesV1']?.[0]?.url;
|
|
31268
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31269
|
+
},
|
|
31270
|
+
/**
|
|
31271
|
+
* Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
|
|
31272
|
+
* @summary Get pool list
|
|
31273
|
+
* @param {*} [options] Override http request option.
|
|
31274
|
+
* @throws {RequiredError}
|
|
31275
|
+
*/
|
|
31276
|
+
async getPoolListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1PoolPoolResource>>> {
|
|
31277
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolListV1(options);
|
|
31278
|
+
const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolListV1']?.[0]?.url;
|
|
31279
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31280
|
+
},
|
|
31281
|
+
/**
|
|
31282
|
+
* Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
|
|
31283
|
+
* @summary Get pool OS templates
|
|
31284
|
+
* @param {number} poolId GPU pool ID
|
|
31285
|
+
* @param {number} poolInstanceId GPU pool instance type ID
|
|
31286
|
+
* @param {*} [options] Override http request option.
|
|
31287
|
+
* @throws {RequiredError}
|
|
31288
|
+
*/
|
|
31289
|
+
async getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GPUV1OsTemplateOsTemplateResource>>> {
|
|
31290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPoolOSTemplatesV1(poolId, poolInstanceId, options);
|
|
31291
|
+
const localVarOperationServerBasePath = operationServerMap['GPUCatalogApi.getPoolOSTemplatesV1']?.[0]?.url;
|
|
31292
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31293
|
+
},
|
|
31294
|
+
}
|
|
31295
|
+
};
|
|
31296
|
+
|
|
31297
|
+
/**
|
|
31298
|
+
* GPUCatalogApi - factory interface
|
|
31299
|
+
* @export
|
|
31300
|
+
*/
|
|
31301
|
+
export const GPUCatalogApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
31302
|
+
const localVarFp = GPUCatalogApiFp(configuration)
|
|
31303
|
+
return {
|
|
31304
|
+
/**
|
|
31305
|
+
* Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
|
|
31306
|
+
* @summary Get pool groups
|
|
31307
|
+
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, `USD` by default
|
|
31308
|
+
* @param {*} [options] Override http request option.
|
|
31309
|
+
* @throws {RequiredError}
|
|
31310
|
+
*/
|
|
31311
|
+
getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolGroupResource>> {
|
|
31312
|
+
return localVarFp.getPoolGroupsV1(currency, options).then((request) => request(axios, basePath));
|
|
31313
|
+
},
|
|
31314
|
+
/**
|
|
31315
|
+
* Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
|
|
31316
|
+
* @summary Get pool instance types
|
|
31317
|
+
* @param {number} poolId GPU pool ID
|
|
31318
|
+
* @param {*} [options] Override http request option.
|
|
31319
|
+
* @throws {RequiredError}
|
|
31320
|
+
*/
|
|
31321
|
+
getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolInstanceResource>> {
|
|
31322
|
+
return localVarFp.getPoolInstanceTypesV1(poolId, options).then((request) => request(axios, basePath));
|
|
31323
|
+
},
|
|
31324
|
+
/**
|
|
31325
|
+
* Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
|
|
31326
|
+
* @summary Get pool list
|
|
31327
|
+
* @param {*} [options] Override http request option.
|
|
31328
|
+
* @throws {RequiredError}
|
|
31329
|
+
*/
|
|
31330
|
+
getPoolListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1PoolPoolResource>> {
|
|
31331
|
+
return localVarFp.getPoolListV1(options).then((request) => request(axios, basePath));
|
|
31332
|
+
},
|
|
31333
|
+
/**
|
|
31334
|
+
* Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
|
|
31335
|
+
* @summary Get pool OS templates
|
|
31336
|
+
* @param {number} poolId GPU pool ID
|
|
31337
|
+
* @param {number} poolInstanceId GPU pool instance type ID
|
|
31338
|
+
* @param {*} [options] Override http request option.
|
|
31339
|
+
* @throws {RequiredError}
|
|
31340
|
+
*/
|
|
31341
|
+
getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<GPUV1OsTemplateOsTemplateResource>> {
|
|
31342
|
+
return localVarFp.getPoolOSTemplatesV1(poolId, poolInstanceId, options).then((request) => request(axios, basePath));
|
|
31343
|
+
},
|
|
31344
|
+
};
|
|
31345
|
+
};
|
|
31346
|
+
|
|
31347
|
+
/**
|
|
31348
|
+
* GPUCatalogApi - object-oriented interface
|
|
31349
|
+
* @export
|
|
31350
|
+
* @class GPUCatalogApi
|
|
31351
|
+
* @extends {BaseAPI}
|
|
31352
|
+
*/
|
|
31353
|
+
export class GPUCatalogApi extends BaseAPI {
|
|
31354
|
+
/**
|
|
31355
|
+
* Retrieve GPU pool groups, ordered by name. Each group bundles the pools of one GPU model and lists its currently available pools, whether any of them is available and the lowest hourly price among its instance types. The price is returned even when the group is out of stock. Use this endpoint to show which GPU models can be ordered and from what price.
|
|
31356
|
+
* @summary Get pool groups
|
|
31357
|
+
* @param {GetPoolGroupsV1CurrencyEnum} [currency] Currency of the returned prices, `USD` by default
|
|
31358
|
+
* @param {*} [options] Override http request option.
|
|
31359
|
+
* @throws {RequiredError}
|
|
31360
|
+
* @memberof GPUCatalogApi
|
|
31361
|
+
*/
|
|
31362
|
+
public getPoolGroupsV1(currency?: GetPoolGroupsV1CurrencyEnum, options?: RawAxiosRequestConfig) {
|
|
31363
|
+
return GPUCatalogApiFp(this.configuration).getPoolGroupsV1(currency, options).then((request) => request(this.axios, this.basePath));
|
|
31364
|
+
}
|
|
31365
|
+
|
|
31366
|
+
/**
|
|
31367
|
+
* Retrieve the instance types offered by a specified GPU pool, ordered by CPU core count. Each instance type describes its CPU, memory and storage, and its hourly price. Only instance types that can currently be ordered are returned. Use this endpoint to choose the `pool_instance_id` for a new GPU instance.
|
|
31368
|
+
* @summary Get pool instance types
|
|
31369
|
+
* @param {number} poolId GPU pool ID
|
|
31370
|
+
* @param {*} [options] Override http request option.
|
|
31371
|
+
* @throws {RequiredError}
|
|
31372
|
+
* @memberof GPUCatalogApi
|
|
31373
|
+
*/
|
|
31374
|
+
public getPoolInstanceTypesV1(poolId: number, options?: RawAxiosRequestConfig) {
|
|
31375
|
+
return GPUCatalogApiFp(this.configuration).getPoolInstanceTypesV1(poolId, options).then((request) => request(this.axios, this.basePath));
|
|
31376
|
+
}
|
|
31377
|
+
|
|
31378
|
+
/**
|
|
31379
|
+
* Retrieve all available GPU pools, ordered by name. A pool serves GPU accelerators of one model from a single region. Use this endpoint to choose a pool before listing its instance types.
|
|
31380
|
+
* @summary Get pool list
|
|
31381
|
+
* @param {*} [options] Override http request option.
|
|
31382
|
+
* @throws {RequiredError}
|
|
31383
|
+
* @memberof GPUCatalogApi
|
|
31384
|
+
*/
|
|
31385
|
+
public getPoolListV1(options?: RawAxiosRequestConfig) {
|
|
31386
|
+
return GPUCatalogApiFp(this.configuration).getPoolListV1(options).then((request) => request(this.axios, this.basePath));
|
|
31387
|
+
}
|
|
31388
|
+
|
|
31389
|
+
/**
|
|
31390
|
+
* Retrieve the OS templates that can be installed on a specified GPU pool instance type. Use this endpoint to choose the `os_template_id` for a new GPU instance.
|
|
31391
|
+
* @summary Get pool OS templates
|
|
31392
|
+
* @param {number} poolId GPU pool ID
|
|
31393
|
+
* @param {number} poolInstanceId GPU pool instance type ID
|
|
31394
|
+
* @param {*} [options] Override http request option.
|
|
31395
|
+
* @throws {RequiredError}
|
|
31396
|
+
* @memberof GPUCatalogApi
|
|
31397
|
+
*/
|
|
31398
|
+
public getPoolOSTemplatesV1(poolId: number, poolInstanceId: number, options?: RawAxiosRequestConfig) {
|
|
31399
|
+
return GPUCatalogApiFp(this.configuration).getPoolOSTemplatesV1(poolId, poolInstanceId, options).then((request) => request(this.axios, this.basePath));
|
|
31400
|
+
}
|
|
31401
|
+
}
|
|
31402
|
+
|
|
31403
|
+
/**
|
|
31404
|
+
* @export
|
|
31405
|
+
*/
|
|
31406
|
+
export const GetPoolGroupsV1CurrencyEnum = {
|
|
31407
|
+
Usd: 'USD',
|
|
31408
|
+
Ars: 'ARS',
|
|
31409
|
+
Amd: 'AMD',
|
|
31410
|
+
Aud: 'AUD',
|
|
31411
|
+
Azn: 'AZN',
|
|
31412
|
+
Bdt: 'BDT',
|
|
31413
|
+
Brl: 'BRL',
|
|
31414
|
+
Btc: 'BTC',
|
|
31415
|
+
Byn: 'BYN',
|
|
31416
|
+
Cad: 'CAD',
|
|
31417
|
+
Chf: 'CHF',
|
|
31418
|
+
Clp: 'CLP',
|
|
31419
|
+
Cny: 'CNY',
|
|
31420
|
+
Cop: 'COP',
|
|
31421
|
+
Czk: 'CZK',
|
|
31422
|
+
Dkk: 'DKK',
|
|
31423
|
+
Egp: 'EGP',
|
|
31424
|
+
Eur: 'EUR',
|
|
31425
|
+
Gbp: 'GBP',
|
|
31426
|
+
Gel: 'GEL',
|
|
31427
|
+
Hkd: 'HKD',
|
|
31428
|
+
Hrk: 'HRK',
|
|
31429
|
+
Huf: 'HUF',
|
|
31430
|
+
Idr: 'IDR',
|
|
31431
|
+
Ils: 'ILS',
|
|
31432
|
+
Inr: 'INR',
|
|
31433
|
+
Jpy: 'JPY',
|
|
31434
|
+
Kgs: 'KGS',
|
|
31435
|
+
Krw: 'KRW',
|
|
31436
|
+
Kzt: 'KZT',
|
|
31437
|
+
Mad: 'MAD',
|
|
31438
|
+
Mxn: 'MXN',
|
|
31439
|
+
Myr: 'MYR',
|
|
31440
|
+
Ngn: 'NGN',
|
|
31441
|
+
Nok: 'NOK',
|
|
31442
|
+
Nzd: 'NZD',
|
|
31443
|
+
Pen: 'PEN',
|
|
31444
|
+
Php: 'PHP',
|
|
31445
|
+
Pkr: 'PKR',
|
|
31446
|
+
Pln: 'PLN',
|
|
31447
|
+
Sek: 'SEK',
|
|
31448
|
+
Sgd: 'SGD',
|
|
31449
|
+
Thb: 'THB',
|
|
31450
|
+
Tjs: 'TJS',
|
|
31451
|
+
Try: 'TRY',
|
|
31452
|
+
Twd: 'TWD',
|
|
31453
|
+
Uah: 'UAH',
|
|
31454
|
+
Vnd: 'VND',
|
|
31455
|
+
Zar: 'ZAR'
|
|
31456
|
+
} as const;
|
|
31457
|
+
export type GetPoolGroupsV1CurrencyEnum = typeof GetPoolGroupsV1CurrencyEnum[keyof typeof GetPoolGroupsV1CurrencyEnum];
|
|
31458
|
+
|
|
31459
|
+
|
|
30868
31460
|
/**
|
|
30869
31461
|
* HorizonsWebsitesApi - axios parameter creator
|
|
30870
31462
|
* @export
|
|
@@ -38496,7 +39088,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration?: Con
|
|
|
38496
39088
|
};
|
|
38497
39089
|
},
|
|
38498
39090
|
/**
|
|
38499
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain
|
|
39091
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
38500
39092
|
* @summary Start website setup
|
|
38501
39093
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
38502
39094
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -38621,7 +39213,7 @@ export const HostingWebsitesApiFp = function(configuration?: Configuration) {
|
|
|
38621
39213
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38622
39214
|
},
|
|
38623
39215
|
/**
|
|
38624
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain
|
|
39216
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
38625
39217
|
* @summary Start website setup
|
|
38626
39218
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
38627
39219
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -38705,7 +39297,7 @@ export const HostingWebsitesApiFactory = function (configuration?: Configuration
|
|
|
38705
39297
|
return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
|
|
38706
39298
|
},
|
|
38707
39299
|
/**
|
|
38708
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain
|
|
39300
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
38709
39301
|
* @summary Start website setup
|
|
38710
39302
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
38711
39303
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -38797,7 +39389,7 @@ export class HostingWebsitesApi extends BaseAPI {
|
|
|
38797
39389
|
}
|
|
38798
39390
|
|
|
38799
39391
|
/**
|
|
38800
|
-
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain
|
|
39392
|
+
* Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain; the created setup returns it as `domain`. REST clients that need to know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, can generate one through `POST /api/hosting/v1/domains/free-subdomains` and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
|
|
38801
39393
|
* @summary Start website setup
|
|
38802
39394
|
* @param {number} orderId Hosting order ID. List orders to find available IDs.
|
|
38803
39395
|
* @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
|
|
@@ -55218,7 +55810,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
|
|
|
55218
55810
|
};
|
|
55219
55811
|
},
|
|
55220
55812
|
/**
|
|
55221
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`
|
|
55813
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
|
|
55222
55814
|
* @summary Install WordPress
|
|
55223
55815
|
* @param {string} username
|
|
55224
55816
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -55519,7 +56111,7 @@ export const WordPressInstallationsApiFp = function(configuration?: Configuratio
|
|
|
55519
56111
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55520
56112
|
},
|
|
55521
56113
|
/**
|
|
55522
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`
|
|
56114
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
|
|
55523
56115
|
* @summary Install WordPress
|
|
55524
56116
|
* @param {string} username
|
|
55525
56117
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -55652,7 +56244,7 @@ export const WordPressInstallationsApiFactory = function (configuration?: Config
|
|
|
55652
56244
|
return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
|
|
55653
56245
|
},
|
|
55654
56246
|
/**
|
|
55655
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`
|
|
56247
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
|
|
55656
56248
|
* @summary Install WordPress
|
|
55657
56249
|
* @param {string} username
|
|
55658
56250
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|
|
@@ -55785,7 +56377,7 @@ export class WordPressInstallationsApi extends BaseAPI {
|
|
|
55785
56377
|
}
|
|
55786
56378
|
|
|
55787
56379
|
/**
|
|
55788
|
-
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`
|
|
56380
|
+
* Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_create`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_create` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
|
|
55789
56381
|
* @summary Install WordPress
|
|
55790
56382
|
* @param {string} username
|
|
55791
56383
|
* @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
|