hostinger-api-sdk 1.34.0 → 1.36.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 +771 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +514 -1
- package/dist/api.js +510 -9
- 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 +514 -1
- package/dist/esm/api.js +494 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgencyHostingMetricsApi.md +123 -0
- package/docs/AgencyHostingV1OrdersDiskUsageMetricsLimitsResource.md +22 -0
- package/docs/AgencyHostingV1OrdersDiskUsageMetricsMetricResource.md +24 -0
- package/docs/AgencyHostingV1OrdersDiskUsageMetricsMetricsResource.md +22 -0
- package/docs/AgencyHostingV1OrdersResourceUsageMetricsLimitsResource.md +24 -0
- package/docs/AgencyHostingV1OrdersResourceUsageMetricsMetricResource.md +26 -0
- package/docs/AgencyHostingV1OrdersResourceUsageMetricsMetricsResource.md +24 -0
- package/docs/AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource.md +24 -0
- package/docs/HostingListWebsiteRedirectsV1200Response.md +22 -0
- package/docs/HostingRedirectsApi.md +193 -0
- package/docs/HostingV1RedirectsCreateRedirectRequest.md +22 -0
- package/docs/HostingV1RedirectsDeleteRedirectRequest.md +20 -0
- package/docs/HostingV1RedirectsRedirectResource.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.38.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.38.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.38.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/1.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.36.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.38.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
|
|
@@ -250,6 +250,69 @@ export interface AgencyHostingV1OrdersDatacenterResource {
|
|
|
250
250
|
*/
|
|
251
251
|
'country': string;
|
|
252
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @export
|
|
256
|
+
* @interface AgencyHostingV1OrdersDiskUsageMetricsLimitsResource
|
|
257
|
+
*/
|
|
258
|
+
export interface AgencyHostingV1OrdersDiskUsageMetricsLimitsResource {
|
|
259
|
+
/**
|
|
260
|
+
* Disk usage quota in bytes
|
|
261
|
+
* @type {number}
|
|
262
|
+
* @memberof AgencyHostingV1OrdersDiskUsageMetricsLimitsResource
|
|
263
|
+
*/
|
|
264
|
+
'disk_bytes': number;
|
|
265
|
+
/**
|
|
266
|
+
* Inodes quota
|
|
267
|
+
* @type {number}
|
|
268
|
+
* @memberof AgencyHostingV1OrdersDiskUsageMetricsLimitsResource
|
|
269
|
+
*/
|
|
270
|
+
'inodes': number;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @export
|
|
275
|
+
* @interface AgencyHostingV1OrdersDiskUsageMetricsMetricResource
|
|
276
|
+
*/
|
|
277
|
+
export interface AgencyHostingV1OrdersDiskUsageMetricsMetricResource {
|
|
278
|
+
/**
|
|
279
|
+
* Disk usage in bytes at this sample
|
|
280
|
+
* @type {number}
|
|
281
|
+
* @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricResource
|
|
282
|
+
*/
|
|
283
|
+
'disk_bytes': number;
|
|
284
|
+
/**
|
|
285
|
+
* Number of inodes used at this sample
|
|
286
|
+
* @type {number}
|
|
287
|
+
* @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricResource
|
|
288
|
+
*/
|
|
289
|
+
'inodes': number;
|
|
290
|
+
/**
|
|
291
|
+
* Unix timestamp of the sample
|
|
292
|
+
* @type {number}
|
|
293
|
+
* @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricResource
|
|
294
|
+
*/
|
|
295
|
+
'timestamp': number;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @export
|
|
300
|
+
* @interface AgencyHostingV1OrdersDiskUsageMetricsMetricsResource
|
|
301
|
+
*/
|
|
302
|
+
export interface AgencyHostingV1OrdersDiskUsageMetricsMetricsResource {
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {AgencyHostingV1OrdersDiskUsageMetricsLimitsResource}
|
|
306
|
+
* @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricsResource
|
|
307
|
+
*/
|
|
308
|
+
'limits': AgencyHostingV1OrdersDiskUsageMetricsLimitsResource;
|
|
309
|
+
/**
|
|
310
|
+
* Array of [`AgencyHosting.V1.Orders.DiskUsageMetrics.MetricResource`](#model/agencyhostingv1ordersdiskusagemetricsmetricresource)
|
|
311
|
+
* @type {Array<AgencyHostingV1OrdersDiskUsageMetricsMetricResource>}
|
|
312
|
+
* @memberof AgencyHostingV1OrdersDiskUsageMetricsMetricsResource
|
|
313
|
+
*/
|
|
314
|
+
'metrics': Array<AgencyHostingV1OrdersDiskUsageMetricsMetricResource>;
|
|
315
|
+
}
|
|
253
316
|
/**
|
|
254
317
|
*
|
|
255
318
|
* @export
|
|
@@ -312,6 +375,112 @@ export interface AgencyHostingV1OrdersPlanResource {
|
|
|
312
375
|
*/
|
|
313
376
|
'key': string | null;
|
|
314
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
*
|
|
380
|
+
* @export
|
|
381
|
+
* @interface AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
|
|
382
|
+
*/
|
|
383
|
+
export interface AgencyHostingV1OrdersResourceUsageMetricsLimitsResource {
|
|
384
|
+
/**
|
|
385
|
+
* Memory usage quota in bytes
|
|
386
|
+
* @type {number}
|
|
387
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
|
|
388
|
+
*/
|
|
389
|
+
'memory_bytes': number;
|
|
390
|
+
/**
|
|
391
|
+
* CPU usage quota in percent
|
|
392
|
+
* @type {number}
|
|
393
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
|
|
394
|
+
*/
|
|
395
|
+
'cpu_percent': number;
|
|
396
|
+
/**
|
|
397
|
+
* Process usage quota
|
|
398
|
+
* @type {number}
|
|
399
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsLimitsResource
|
|
400
|
+
*/
|
|
401
|
+
'processes': number;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @export
|
|
406
|
+
* @interface AgencyHostingV1OrdersResourceUsageMetricsMetricResource
|
|
407
|
+
*/
|
|
408
|
+
export interface AgencyHostingV1OrdersResourceUsageMetricsMetricResource {
|
|
409
|
+
/**
|
|
410
|
+
* CPU usage percentage at this sample
|
|
411
|
+
* @type {number}
|
|
412
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricResource
|
|
413
|
+
*/
|
|
414
|
+
'cpu_percent': number;
|
|
415
|
+
/**
|
|
416
|
+
* Memory usage in bytes at this sample
|
|
417
|
+
* @type {number}
|
|
418
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricResource
|
|
419
|
+
*/
|
|
420
|
+
'memory_bytes': number;
|
|
421
|
+
/**
|
|
422
|
+
* Number of processes at this sample
|
|
423
|
+
* @type {number}
|
|
424
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricResource
|
|
425
|
+
*/
|
|
426
|
+
'processes': number;
|
|
427
|
+
/**
|
|
428
|
+
* Unix timestamp of the sample
|
|
429
|
+
* @type {number}
|
|
430
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricResource
|
|
431
|
+
*/
|
|
432
|
+
'timestamp': number;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @export
|
|
437
|
+
* @interface AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
|
|
438
|
+
*/
|
|
439
|
+
export interface AgencyHostingV1OrdersResourceUsageMetricsMetricsResource {
|
|
440
|
+
/**
|
|
441
|
+
*
|
|
442
|
+
* @type {AgencyHostingV1OrdersResourceUsageMetricsLimitsResource}
|
|
443
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
|
|
444
|
+
*/
|
|
445
|
+
'limits': AgencyHostingV1OrdersResourceUsageMetricsLimitsResource;
|
|
446
|
+
/**
|
|
447
|
+
* Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricResource`](#model/agencyhostingv1ordersresourceusagemetricsmetricresource)
|
|
448
|
+
* @type {Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>}
|
|
449
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
|
|
450
|
+
*/
|
|
451
|
+
'metrics': Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>;
|
|
452
|
+
/**
|
|
453
|
+
* Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.WebsiteResource`](#model/agencyhostingv1ordersresourceusagemetricswebsiteresource)
|
|
454
|
+
* @type {Array<AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource>}
|
|
455
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsMetricsResource
|
|
456
|
+
*/
|
|
457
|
+
'websites': Array<AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource>;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
*
|
|
461
|
+
* @export
|
|
462
|
+
* @interface AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
|
|
463
|
+
*/
|
|
464
|
+
export interface AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource {
|
|
465
|
+
/**
|
|
466
|
+
* Website UID
|
|
467
|
+
* @type {string}
|
|
468
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
|
|
469
|
+
*/
|
|
470
|
+
'uid': string;
|
|
471
|
+
/**
|
|
472
|
+
* Domains associated with the website
|
|
473
|
+
* @type {Array<string>}
|
|
474
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
|
|
475
|
+
*/
|
|
476
|
+
'domains': Array<string>;
|
|
477
|
+
/**
|
|
478
|
+
* Array of [`AgencyHosting.V1.Orders.ResourceUsageMetrics.MetricResource`](#model/agencyhostingv1ordersresourceusagemetricsmetricresource)
|
|
479
|
+
* @type {Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>}
|
|
480
|
+
* @memberof AgencyHostingV1OrdersResourceUsageMetricsWebsiteResource
|
|
481
|
+
*/
|
|
482
|
+
'metrics': Array<AgencyHostingV1OrdersResourceUsageMetricsMetricResource>;
|
|
483
|
+
}
|
|
315
484
|
/**
|
|
316
485
|
*
|
|
317
486
|
* @export
|
|
@@ -4403,6 +4572,25 @@ export interface HostingListOrdersV1200Response {
|
|
|
4403
4572
|
*/
|
|
4404
4573
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
4405
4574
|
}
|
|
4575
|
+
/**
|
|
4576
|
+
*
|
|
4577
|
+
* @export
|
|
4578
|
+
* @interface HostingListWebsiteRedirectsV1200Response
|
|
4579
|
+
*/
|
|
4580
|
+
export interface HostingListWebsiteRedirectsV1200Response {
|
|
4581
|
+
/**
|
|
4582
|
+
* Array of [`Hosting.V1.Redirects.RedirectResource`](#model/hostingv1redirectsredirectresource)
|
|
4583
|
+
* @type {Array<HostingV1RedirectsRedirectResource>}
|
|
4584
|
+
* @memberof HostingListWebsiteRedirectsV1200Response
|
|
4585
|
+
*/
|
|
4586
|
+
'data': Array<HostingV1RedirectsRedirectResource>;
|
|
4587
|
+
/**
|
|
4588
|
+
*
|
|
4589
|
+
* @type {CommonSchemaPaginationMetaSchema}
|
|
4590
|
+
* @memberof HostingListWebsiteRedirectsV1200Response
|
|
4591
|
+
*/
|
|
4592
|
+
'meta': CommonSchemaPaginationMetaSchema;
|
|
4593
|
+
}
|
|
4406
4594
|
/**
|
|
4407
4595
|
*
|
|
4408
4596
|
* @export
|
|
@@ -5634,6 +5822,57 @@ export interface HostingV1PhpUpdatePhpVersionRequest {
|
|
|
5634
5822
|
*/
|
|
5635
5823
|
'version': string;
|
|
5636
5824
|
}
|
|
5825
|
+
/**
|
|
5826
|
+
*
|
|
5827
|
+
* @export
|
|
5828
|
+
* @interface HostingV1RedirectsCreateRedirectRequest
|
|
5829
|
+
*/
|
|
5830
|
+
export interface HostingV1RedirectsCreateRedirectRequest {
|
|
5831
|
+
/**
|
|
5832
|
+
* Source URL on the selected website
|
|
5833
|
+
* @type {string}
|
|
5834
|
+
* @memberof HostingV1RedirectsCreateRedirectRequest
|
|
5835
|
+
*/
|
|
5836
|
+
'from': string;
|
|
5837
|
+
/**
|
|
5838
|
+
* Destination URL or IP address
|
|
5839
|
+
* @type {string}
|
|
5840
|
+
* @memberof HostingV1RedirectsCreateRedirectRequest
|
|
5841
|
+
*/
|
|
5842
|
+
'to': string;
|
|
5843
|
+
}
|
|
5844
|
+
/**
|
|
5845
|
+
*
|
|
5846
|
+
* @export
|
|
5847
|
+
* @interface HostingV1RedirectsDeleteRedirectRequest
|
|
5848
|
+
*/
|
|
5849
|
+
export interface HostingV1RedirectsDeleteRedirectRequest {
|
|
5850
|
+
/**
|
|
5851
|
+
* Source URL returned by the list redirects endpoint
|
|
5852
|
+
* @type {string}
|
|
5853
|
+
* @memberof HostingV1RedirectsDeleteRedirectRequest
|
|
5854
|
+
*/
|
|
5855
|
+
'from': string;
|
|
5856
|
+
}
|
|
5857
|
+
/**
|
|
5858
|
+
*
|
|
5859
|
+
* @export
|
|
5860
|
+
* @interface HostingV1RedirectsRedirectResource
|
|
5861
|
+
*/
|
|
5862
|
+
export interface HostingV1RedirectsRedirectResource {
|
|
5863
|
+
/**
|
|
5864
|
+
* Source URL
|
|
5865
|
+
* @type {string}
|
|
5866
|
+
* @memberof HostingV1RedirectsRedirectResource
|
|
5867
|
+
*/
|
|
5868
|
+
'from': string;
|
|
5869
|
+
/**
|
|
5870
|
+
* Destination URL
|
|
5871
|
+
* @type {string}
|
|
5872
|
+
* @memberof HostingV1RedirectsRedirectResource
|
|
5873
|
+
*/
|
|
5874
|
+
'to': string;
|
|
5875
|
+
}
|
|
5637
5876
|
/**
|
|
5638
5877
|
*
|
|
5639
5878
|
* @export
|
|
@@ -13439,6 +13678,127 @@ export declare class AgencyHostingFilesApi extends BaseAPI {
|
|
|
13439
13678
|
*/
|
|
13440
13679
|
importWebsiteFromArchiveV1(websiteUid: string, agencyHostingV1FilesImportArchiveRequest: AgencyHostingV1FilesImportArchiveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
13441
13680
|
}
|
|
13681
|
+
/**
|
|
13682
|
+
* AgencyHostingMetricsApi - axios parameter creator
|
|
13683
|
+
* @export
|
|
13684
|
+
*/
|
|
13685
|
+
export declare const AgencyHostingMetricsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
13686
|
+
/**
|
|
13687
|
+
* Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
|
|
13688
|
+
* @summary List Agency Plan order disk usage metrics
|
|
13689
|
+
* @param {number} orderId Agency Plan order ID
|
|
13690
|
+
* @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
|
|
13691
|
+
* @param {*} [options] Override http request option.
|
|
13692
|
+
* @throws {RequiredError}
|
|
13693
|
+
*/
|
|
13694
|
+
listAgencyPlanOrderDiskUsageMetricsV1: (orderId: number, timeFrameDays?: ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13695
|
+
/**
|
|
13696
|
+
* Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
|
|
13697
|
+
* @summary List order resource usage metrics
|
|
13698
|
+
* @param {number} orderId Agency Plan order ID
|
|
13699
|
+
* @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
|
|
13700
|
+
* @param {*} [options] Override http request option.
|
|
13701
|
+
* @throws {RequiredError}
|
|
13702
|
+
*/
|
|
13703
|
+
listOrderResourceUsageMetricsV1: (orderId: number, timeFrameHours?: ListOrderResourceUsageMetricsV1TimeFrameHoursEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13704
|
+
};
|
|
13705
|
+
/**
|
|
13706
|
+
* AgencyHostingMetricsApi - functional programming interface
|
|
13707
|
+
* @export
|
|
13708
|
+
*/
|
|
13709
|
+
export declare const AgencyHostingMetricsApiFp: (configuration?: Configuration) => {
|
|
13710
|
+
/**
|
|
13711
|
+
* Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
|
|
13712
|
+
* @summary List Agency Plan order disk usage metrics
|
|
13713
|
+
* @param {number} orderId Agency Plan order ID
|
|
13714
|
+
* @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
|
|
13715
|
+
* @param {*} [options] Override http request option.
|
|
13716
|
+
* @throws {RequiredError}
|
|
13717
|
+
*/
|
|
13718
|
+
listAgencyPlanOrderDiskUsageMetricsV1(orderId: number, timeFrameDays?: ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgencyHostingV1OrdersDiskUsageMetricsMetricsResource>>;
|
|
13719
|
+
/**
|
|
13720
|
+
* Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
|
|
13721
|
+
* @summary List order resource usage metrics
|
|
13722
|
+
* @param {number} orderId Agency Plan order ID
|
|
13723
|
+
* @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
|
|
13724
|
+
* @param {*} [options] Override http request option.
|
|
13725
|
+
* @throws {RequiredError}
|
|
13726
|
+
*/
|
|
13727
|
+
listOrderResourceUsageMetricsV1(orderId: number, timeFrameHours?: ListOrderResourceUsageMetricsV1TimeFrameHoursEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AgencyHostingV1OrdersResourceUsageMetricsMetricsResource>>;
|
|
13728
|
+
};
|
|
13729
|
+
/**
|
|
13730
|
+
* AgencyHostingMetricsApi - factory interface
|
|
13731
|
+
* @export
|
|
13732
|
+
*/
|
|
13733
|
+
export declare const AgencyHostingMetricsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
13734
|
+
/**
|
|
13735
|
+
* Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
|
|
13736
|
+
* @summary List Agency Plan order disk usage metrics
|
|
13737
|
+
* @param {number} orderId Agency Plan order ID
|
|
13738
|
+
* @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
|
|
13739
|
+
* @param {*} [options] Override http request option.
|
|
13740
|
+
* @throws {RequiredError}
|
|
13741
|
+
*/
|
|
13742
|
+
listAgencyPlanOrderDiskUsageMetricsV1(orderId: number, timeFrameDays?: ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum, options?: RawAxiosRequestConfig): AxiosPromise<AgencyHostingV1OrdersDiskUsageMetricsMetricsResource>;
|
|
13743
|
+
/**
|
|
13744
|
+
* Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
|
|
13745
|
+
* @summary List order resource usage metrics
|
|
13746
|
+
* @param {number} orderId Agency Plan order ID
|
|
13747
|
+
* @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
|
|
13748
|
+
* @param {*} [options] Override http request option.
|
|
13749
|
+
* @throws {RequiredError}
|
|
13750
|
+
*/
|
|
13751
|
+
listOrderResourceUsageMetricsV1(orderId: number, timeFrameHours?: ListOrderResourceUsageMetricsV1TimeFrameHoursEnum, options?: RawAxiosRequestConfig): AxiosPromise<AgencyHostingV1OrdersResourceUsageMetricsMetricsResource>;
|
|
13752
|
+
};
|
|
13753
|
+
/**
|
|
13754
|
+
* AgencyHostingMetricsApi - object-oriented interface
|
|
13755
|
+
* @export
|
|
13756
|
+
* @class AgencyHostingMetricsApi
|
|
13757
|
+
* @extends {BaseAPI}
|
|
13758
|
+
*/
|
|
13759
|
+
export declare class AgencyHostingMetricsApi extends BaseAPI {
|
|
13760
|
+
/**
|
|
13761
|
+
* Returns aggregated disk and inode usage for the Agency Plan order over the selected time frame, plus the plan quotas. Figures cover the whole order account. Values may be up to one hour stale. CPU, memory, and process usage are on the resource-usage-metrics endpoint.
|
|
13762
|
+
* @summary List Agency Plan order disk usage metrics
|
|
13763
|
+
* @param {number} orderId Agency Plan order ID
|
|
13764
|
+
* @param {ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum} [timeFrameDays] Length of the window in days, ending now. Bucket size grows with the window.
|
|
13765
|
+
* @param {*} [options] Override http request option.
|
|
13766
|
+
* @throws {RequiredError}
|
|
13767
|
+
* @memberof AgencyHostingMetricsApi
|
|
13768
|
+
*/
|
|
13769
|
+
listAgencyPlanOrderDiskUsageMetricsV1(orderId: number, timeFrameDays?: ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1OrdersDiskUsageMetricsMetricsResource, any, {}, any>>;
|
|
13770
|
+
/**
|
|
13771
|
+
* Returns aggregated CPU, memory, and process usage for the Agency Plan order over the selected time frame, plus the plan quotas and a per-website breakdown. Each website is identified by uid. Suspended and deleted websites are excluded from both the order totals and the per-website breakdown. Values may be up to one hour stale. Disk and inode usage are on the disk-usage-metrics endpoint.
|
|
13772
|
+
* @summary List order resource usage metrics
|
|
13773
|
+
* @param {number} orderId Agency Plan order ID
|
|
13774
|
+
* @param {ListOrderResourceUsageMetricsV1TimeFrameHoursEnum} [timeFrameHours] Length of the window in hours, ending now. Bucket size grows with the window.
|
|
13775
|
+
* @param {*} [options] Override http request option.
|
|
13776
|
+
* @throws {RequiredError}
|
|
13777
|
+
* @memberof AgencyHostingMetricsApi
|
|
13778
|
+
*/
|
|
13779
|
+
listOrderResourceUsageMetricsV1(orderId: number, timeFrameHours?: ListOrderResourceUsageMetricsV1TimeFrameHoursEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AgencyHostingV1OrdersResourceUsageMetricsMetricsResource, any, {}, any>>;
|
|
13780
|
+
}
|
|
13781
|
+
/**
|
|
13782
|
+
* @export
|
|
13783
|
+
*/
|
|
13784
|
+
export declare const ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum: {
|
|
13785
|
+
readonly NUMBER_1: 1;
|
|
13786
|
+
readonly NUMBER_7: 7;
|
|
13787
|
+
readonly NUMBER_14: 14;
|
|
13788
|
+
readonly NUMBER_30: 30;
|
|
13789
|
+
};
|
|
13790
|
+
export type ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum = typeof ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum[keyof typeof ListAgencyPlanOrderDiskUsageMetricsV1TimeFrameDaysEnum];
|
|
13791
|
+
/**
|
|
13792
|
+
* @export
|
|
13793
|
+
*/
|
|
13794
|
+
export declare const ListOrderResourceUsageMetricsV1TimeFrameHoursEnum: {
|
|
13795
|
+
readonly NUMBER_1: 1;
|
|
13796
|
+
readonly NUMBER_24: 24;
|
|
13797
|
+
readonly NUMBER_168: 168;
|
|
13798
|
+
readonly NUMBER_336: 336;
|
|
13799
|
+
readonly NUMBER_720: 720;
|
|
13800
|
+
};
|
|
13801
|
+
export type ListOrderResourceUsageMetricsV1TimeFrameHoursEnum = typeof ListOrderResourceUsageMetricsV1TimeFrameHoursEnum[keyof typeof ListOrderResourceUsageMetricsV1TimeFrameHoursEnum];
|
|
13442
13802
|
/**
|
|
13443
13803
|
* AgencyHostingOrdersApi - axios parameter creator
|
|
13444
13804
|
* @export
|
|
@@ -19039,6 +19399,159 @@ export declare class HostingPHPApi extends BaseAPI {
|
|
|
19039
19399
|
*/
|
|
19040
19400
|
updatePHPVersionV1(username: string, domain: string, hostingV1PhpUpdatePhpVersionRequest: HostingV1PhpUpdatePhpVersionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
19041
19401
|
}
|
|
19402
|
+
/**
|
|
19403
|
+
* HostingRedirectsApi - axios parameter creator
|
|
19404
|
+
* @export
|
|
19405
|
+
*/
|
|
19406
|
+
export declare const HostingRedirectsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
19407
|
+
/**
|
|
19408
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
19409
|
+
* @summary Create website redirect
|
|
19410
|
+
* @param {string} username
|
|
19411
|
+
* @param {string} domain Domain name
|
|
19412
|
+
* @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
|
|
19413
|
+
* @param {*} [options] Override http request option.
|
|
19414
|
+
* @throws {RequiredError}
|
|
19415
|
+
*/
|
|
19416
|
+
createWebsiteRedirectV1: (username: string, domain: string, hostingV1RedirectsCreateRedirectRequest: HostingV1RedirectsCreateRedirectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19417
|
+
/**
|
|
19418
|
+
* Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
19419
|
+
* @summary Delete website redirect
|
|
19420
|
+
* @param {string} username
|
|
19421
|
+
* @param {string} domain Domain name
|
|
19422
|
+
* @param {string} from Source URL returned by the list redirects endpoint.
|
|
19423
|
+
* @param {*} [options] Override http request option.
|
|
19424
|
+
* @throws {RequiredError}
|
|
19425
|
+
*/
|
|
19426
|
+
deleteWebsiteRedirectV1: (username: string, domain: string, from: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19427
|
+
/**
|
|
19428
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
19429
|
+
* @summary List website redirects
|
|
19430
|
+
* @param {string} username
|
|
19431
|
+
* @param {string} domain Domain name
|
|
19432
|
+
* @param {number} [page] Page number
|
|
19433
|
+
* @param {number} [perPage] Number of items per page
|
|
19434
|
+
* @param {*} [options] Override http request option.
|
|
19435
|
+
* @throws {RequiredError}
|
|
19436
|
+
*/
|
|
19437
|
+
listWebsiteRedirectsV1: (username: string, domain: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
19438
|
+
};
|
|
19439
|
+
/**
|
|
19440
|
+
* HostingRedirectsApi - functional programming interface
|
|
19441
|
+
* @export
|
|
19442
|
+
*/
|
|
19443
|
+
export declare const HostingRedirectsApiFp: (configuration?: Configuration) => {
|
|
19444
|
+
/**
|
|
19445
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
19446
|
+
* @summary Create website redirect
|
|
19447
|
+
* @param {string} username
|
|
19448
|
+
* @param {string} domain Domain name
|
|
19449
|
+
* @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
|
|
19450
|
+
* @param {*} [options] Override http request option.
|
|
19451
|
+
* @throws {RequiredError}
|
|
19452
|
+
*/
|
|
19453
|
+
createWebsiteRedirectV1(username: string, domain: string, hostingV1RedirectsCreateRedirectRequest: HostingV1RedirectsCreateRedirectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1RedirectsRedirectResource>>;
|
|
19454
|
+
/**
|
|
19455
|
+
* Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
19456
|
+
* @summary Delete website redirect
|
|
19457
|
+
* @param {string} username
|
|
19458
|
+
* @param {string} domain Domain name
|
|
19459
|
+
* @param {string} from Source URL returned by the list redirects endpoint.
|
|
19460
|
+
* @param {*} [options] Override http request option.
|
|
19461
|
+
* @throws {RequiredError}
|
|
19462
|
+
*/
|
|
19463
|
+
deleteWebsiteRedirectV1(username: string, domain: string, from: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
19464
|
+
/**
|
|
19465
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
19466
|
+
* @summary List website redirects
|
|
19467
|
+
* @param {string} username
|
|
19468
|
+
* @param {string} domain Domain name
|
|
19469
|
+
* @param {number} [page] Page number
|
|
19470
|
+
* @param {number} [perPage] Number of items per page
|
|
19471
|
+
* @param {*} [options] Override http request option.
|
|
19472
|
+
* @throws {RequiredError}
|
|
19473
|
+
*/
|
|
19474
|
+
listWebsiteRedirectsV1(username: string, domain: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingListWebsiteRedirectsV1200Response>>;
|
|
19475
|
+
};
|
|
19476
|
+
/**
|
|
19477
|
+
* HostingRedirectsApi - factory interface
|
|
19478
|
+
* @export
|
|
19479
|
+
*/
|
|
19480
|
+
export declare const HostingRedirectsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
19481
|
+
/**
|
|
19482
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
19483
|
+
* @summary Create website redirect
|
|
19484
|
+
* @param {string} username
|
|
19485
|
+
* @param {string} domain Domain name
|
|
19486
|
+
* @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
|
|
19487
|
+
* @param {*} [options] Override http request option.
|
|
19488
|
+
* @throws {RequiredError}
|
|
19489
|
+
*/
|
|
19490
|
+
createWebsiteRedirectV1(username: string, domain: string, hostingV1RedirectsCreateRedirectRequest: HostingV1RedirectsCreateRedirectRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1RedirectsRedirectResource>;
|
|
19491
|
+
/**
|
|
19492
|
+
* Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
19493
|
+
* @summary Delete website redirect
|
|
19494
|
+
* @param {string} username
|
|
19495
|
+
* @param {string} domain Domain name
|
|
19496
|
+
* @param {string} from Source URL returned by the list redirects endpoint.
|
|
19497
|
+
* @param {*} [options] Override http request option.
|
|
19498
|
+
* @throws {RequiredError}
|
|
19499
|
+
*/
|
|
19500
|
+
deleteWebsiteRedirectV1(username: string, domain: string, from: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
19501
|
+
/**
|
|
19502
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
19503
|
+
* @summary List website redirects
|
|
19504
|
+
* @param {string} username
|
|
19505
|
+
* @param {string} domain Domain name
|
|
19506
|
+
* @param {number} [page] Page number
|
|
19507
|
+
* @param {number} [perPage] Number of items per page
|
|
19508
|
+
* @param {*} [options] Override http request option.
|
|
19509
|
+
* @throws {RequiredError}
|
|
19510
|
+
*/
|
|
19511
|
+
listWebsiteRedirectsV1(username: string, domain: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<HostingListWebsiteRedirectsV1200Response>;
|
|
19512
|
+
};
|
|
19513
|
+
/**
|
|
19514
|
+
* HostingRedirectsApi - object-oriented interface
|
|
19515
|
+
* @export
|
|
19516
|
+
* @class HostingRedirectsApi
|
|
19517
|
+
* @extends {BaseAPI}
|
|
19518
|
+
*/
|
|
19519
|
+
export declare class HostingRedirectsApi extends BaseAPI {
|
|
19520
|
+
/**
|
|
19521
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
19522
|
+
* @summary Create website redirect
|
|
19523
|
+
* @param {string} username
|
|
19524
|
+
* @param {string} domain Domain name
|
|
19525
|
+
* @param {HostingV1RedirectsCreateRedirectRequest} hostingV1RedirectsCreateRedirectRequest
|
|
19526
|
+
* @param {*} [options] Override http request option.
|
|
19527
|
+
* @throws {RequiredError}
|
|
19528
|
+
* @memberof HostingRedirectsApi
|
|
19529
|
+
*/
|
|
19530
|
+
createWebsiteRedirectV1(username: string, domain: string, hostingV1RedirectsCreateRedirectRequest: HostingV1RedirectsCreateRedirectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1RedirectsRedirectResource, any, {}, any>>;
|
|
19531
|
+
/**
|
|
19532
|
+
* Permanently deletes the redirect identified by its source URL. Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
19533
|
+
* @summary Delete website redirect
|
|
19534
|
+
* @param {string} username
|
|
19535
|
+
* @param {string} domain Domain name
|
|
19536
|
+
* @param {string} from Source URL returned by the list redirects endpoint.
|
|
19537
|
+
* @param {*} [options] Override http request option.
|
|
19538
|
+
* @throws {RequiredError}
|
|
19539
|
+
* @memberof HostingRedirectsApi
|
|
19540
|
+
*/
|
|
19541
|
+
deleteWebsiteRedirectV1(username: string, domain: string, from: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
19542
|
+
/**
|
|
19543
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
19544
|
+
* @summary List website redirects
|
|
19545
|
+
* @param {string} username
|
|
19546
|
+
* @param {string} domain Domain name
|
|
19547
|
+
* @param {number} [page] Page number
|
|
19548
|
+
* @param {number} [perPage] Number of items per page
|
|
19549
|
+
* @param {*} [options] Override http request option.
|
|
19550
|
+
* @throws {RequiredError}
|
|
19551
|
+
* @memberof HostingRedirectsApi
|
|
19552
|
+
*/
|
|
19553
|
+
listWebsiteRedirectsV1(username: string, domain: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingListWebsiteRedirectsV1200Response, any, {}, any>>;
|
|
19554
|
+
}
|
|
19042
19555
|
/**
|
|
19043
19556
|
* HostingWebsitesApi - axios parameter creator
|
|
19044
19557
|
* @export
|