yellowgrid-api-ts 3.2.29 → 3.2.30
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 +1 -0
- package/api.ts +79 -0
- package/dist/api.d.ts +37 -0
- package/dist/api.js +91 -0
- package/docs/Class3CXInstallationsApi.md +58 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,6 +110,7 @@ Class | Method | HTTP request | Description
|
|
|
110
110
|
*Class3CXInstallationsApi* | [**getGetDetails**](docs/Class3CXInstallationsApi.md#getgetdetails) | **GET** /tcx/installations/{wizard_id}/details | Get 3CX Installation Details
|
|
111
111
|
*Class3CXInstallationsApi* | [**getGetInstallations**](docs/Class3CXInstallationsApi.md#getgetinstallations) | **GET** /tcx/installations | Get 3CX Installations
|
|
112
112
|
*Class3CXInstallationsApi* | [**patchUpdateAutoFailover**](docs/Class3CXInstallationsApi.md#patchupdateautofailover) | **PATCH** /tcx/installations/{instance_id}/failover/auto | Update 3CX Instance Auto Failover
|
|
113
|
+
*Class3CXInstallationsApi* | [**postAddDisk**](docs/Class3CXInstallationsApi.md#postadddisk) | **POST** /tcx/installations/{instance_id}/disk | Add additional disk on 3CX Instance
|
|
113
114
|
*Class3CXInstallationsApi* | [**postCreateSshUser**](docs/Class3CXInstallationsApi.md#postcreatesshuser) | **POST** /tcx/installations/{instance_id}/create/user/root | Create a root user
|
|
114
115
|
*Class3CXInstallationsApi* | [**postDeleteInstance**](docs/Class3CXInstallationsApi.md#postdeleteinstance) | **POST** /tcx/installations/{instance_id}/delete | Delete 3CX Instance
|
|
115
116
|
*Class3CXInstallationsApi* | [**postExtendDisk**](docs/Class3CXInstallationsApi.md#postextenddisk) | **POST** /tcx/installations/{instance_id}/disk/extend | Extend additional disk on 3CX Instance
|
package/api.ts
CHANGED
|
@@ -13934,6 +13934,47 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
|
|
|
13934
13934
|
|
|
13935
13935
|
|
|
13936
13936
|
|
|
13937
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13938
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13939
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13940
|
+
|
|
13941
|
+
return {
|
|
13942
|
+
url: toPathString(localVarUrlObj),
|
|
13943
|
+
options: localVarRequestOptions,
|
|
13944
|
+
};
|
|
13945
|
+
},
|
|
13946
|
+
/**
|
|
13947
|
+
* Add additional disk on 3CX Instance
|
|
13948
|
+
* @summary Add additional disk on 3CX Instance
|
|
13949
|
+
* @param {string} instanceId Instance ID
|
|
13950
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
13951
|
+
* @param {*} [options] Override http request option.
|
|
13952
|
+
* @throws {RequiredError}
|
|
13953
|
+
*/
|
|
13954
|
+
postAddDisk: async (instanceId: string, gigabytes: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13955
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
13956
|
+
assertParamExists('postAddDisk', 'instanceId', instanceId)
|
|
13957
|
+
// verify required parameter 'gigabytes' is not null or undefined
|
|
13958
|
+
assertParamExists('postAddDisk', 'gigabytes', gigabytes)
|
|
13959
|
+
const localVarPath = `/tcx/installations/{instance_id}/disk`
|
|
13960
|
+
.replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
|
|
13961
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13962
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13963
|
+
let baseOptions;
|
|
13964
|
+
if (configuration) {
|
|
13965
|
+
baseOptions = configuration.baseOptions;
|
|
13966
|
+
}
|
|
13967
|
+
|
|
13968
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13969
|
+
const localVarHeaderParameter = {} as any;
|
|
13970
|
+
const localVarQueryParameter = {} as any;
|
|
13971
|
+
|
|
13972
|
+
if (gigabytes !== undefined) {
|
|
13973
|
+
localVarQueryParameter['gigabytes'] = gigabytes;
|
|
13974
|
+
}
|
|
13975
|
+
|
|
13976
|
+
|
|
13977
|
+
|
|
13937
13978
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13938
13979
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13939
13980
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -14364,6 +14405,20 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
|
|
|
14364
14405
|
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.patchUpdateAutoFailover']?.[localVarOperationServerIndex]?.url;
|
|
14365
14406
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14366
14407
|
},
|
|
14408
|
+
/**
|
|
14409
|
+
* Add additional disk on 3CX Instance
|
|
14410
|
+
* @summary Add additional disk on 3CX Instance
|
|
14411
|
+
* @param {string} instanceId Instance ID
|
|
14412
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
14413
|
+
* @param {*} [options] Override http request option.
|
|
14414
|
+
* @throws {RequiredError}
|
|
14415
|
+
*/
|
|
14416
|
+
async postAddDisk(instanceId: string, gigabytes: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
14417
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postAddDisk(instanceId, gigabytes, options);
|
|
14418
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14419
|
+
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.postAddDisk']?.[localVarOperationServerIndex]?.url;
|
|
14420
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14421
|
+
},
|
|
14367
14422
|
/**
|
|
14368
14423
|
* Create a root user
|
|
14369
14424
|
* @summary Create a root user
|
|
@@ -14537,6 +14592,17 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
|
|
|
14537
14592
|
patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
14538
14593
|
return localVarFp.patchUpdateAutoFailover(instanceId, enable, options).then((request) => request(axios, basePath));
|
|
14539
14594
|
},
|
|
14595
|
+
/**
|
|
14596
|
+
* Add additional disk on 3CX Instance
|
|
14597
|
+
* @summary Add additional disk on 3CX Instance
|
|
14598
|
+
* @param {string} instanceId Instance ID
|
|
14599
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
14600
|
+
* @param {*} [options] Override http request option.
|
|
14601
|
+
* @throws {RequiredError}
|
|
14602
|
+
*/
|
|
14603
|
+
postAddDisk(instanceId: string, gigabytes: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
14604
|
+
return localVarFp.postAddDisk(instanceId, gigabytes, options).then((request) => request(axios, basePath));
|
|
14605
|
+
},
|
|
14540
14606
|
/**
|
|
14541
14607
|
* Create a root user
|
|
14542
14608
|
* @summary Create a root user
|
|
@@ -14689,6 +14755,19 @@ export class Class3CXInstallationsApi extends BaseAPI {
|
|
|
14689
14755
|
return Class3CXInstallationsApiFp(this.configuration).patchUpdateAutoFailover(instanceId, enable, options).then((request) => request(this.axios, this.basePath));
|
|
14690
14756
|
}
|
|
14691
14757
|
|
|
14758
|
+
/**
|
|
14759
|
+
* Add additional disk on 3CX Instance
|
|
14760
|
+
* @summary Add additional disk on 3CX Instance
|
|
14761
|
+
* @param {string} instanceId Instance ID
|
|
14762
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
14763
|
+
* @param {*} [options] Override http request option.
|
|
14764
|
+
* @throws {RequiredError}
|
|
14765
|
+
* @memberof Class3CXInstallationsApi
|
|
14766
|
+
*/
|
|
14767
|
+
public postAddDisk(instanceId: string, gigabytes: number, options?: RawAxiosRequestConfig) {
|
|
14768
|
+
return Class3CXInstallationsApiFp(this.configuration).postAddDisk(instanceId, gigabytes, options).then((request) => request(this.axios, this.basePath));
|
|
14769
|
+
}
|
|
14770
|
+
|
|
14692
14771
|
/**
|
|
14693
14772
|
* Create a root user
|
|
14694
14773
|
* @summary Create a root user
|
package/dist/api.d.ts
CHANGED
|
@@ -11617,6 +11617,15 @@ export declare const Class3CXInstallationsApiAxiosParamCreator: (configuration?:
|
|
|
11617
11617
|
* @throws {RequiredError}
|
|
11618
11618
|
*/
|
|
11619
11619
|
patchUpdateAutoFailover: (instanceId: string, enable: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11620
|
+
/**
|
|
11621
|
+
* Add additional disk on 3CX Instance
|
|
11622
|
+
* @summary Add additional disk on 3CX Instance
|
|
11623
|
+
* @param {string} instanceId Instance ID
|
|
11624
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
11625
|
+
* @param {*} [options] Override http request option.
|
|
11626
|
+
* @throws {RequiredError}
|
|
11627
|
+
*/
|
|
11628
|
+
postAddDisk: (instanceId: string, gigabytes: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
11620
11629
|
/**
|
|
11621
11630
|
* Create a root user
|
|
11622
11631
|
* @summary Create a root user
|
|
@@ -11735,6 +11744,15 @@ export declare const Class3CXInstallationsApiFp: (configuration?: Configuration)
|
|
|
11735
11744
|
* @throws {RequiredError}
|
|
11736
11745
|
*/
|
|
11737
11746
|
patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
11747
|
+
/**
|
|
11748
|
+
* Add additional disk on 3CX Instance
|
|
11749
|
+
* @summary Add additional disk on 3CX Instance
|
|
11750
|
+
* @param {string} instanceId Instance ID
|
|
11751
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
11752
|
+
* @param {*} [options] Override http request option.
|
|
11753
|
+
* @throws {RequiredError}
|
|
11754
|
+
*/
|
|
11755
|
+
postAddDisk(instanceId: string, gigabytes: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
11738
11756
|
/**
|
|
11739
11757
|
* Create a root user
|
|
11740
11758
|
* @summary Create a root user
|
|
@@ -11853,6 +11871,15 @@ export declare const Class3CXInstallationsApiFactory: (configuration?: Configura
|
|
|
11853
11871
|
* @throws {RequiredError}
|
|
11854
11872
|
*/
|
|
11855
11873
|
patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
11874
|
+
/**
|
|
11875
|
+
* Add additional disk on 3CX Instance
|
|
11876
|
+
* @summary Add additional disk on 3CX Instance
|
|
11877
|
+
* @param {string} instanceId Instance ID
|
|
11878
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
11879
|
+
* @param {*} [options] Override http request option.
|
|
11880
|
+
* @throws {RequiredError}
|
|
11881
|
+
*/
|
|
11882
|
+
postAddDisk(instanceId: string, gigabytes: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
11856
11883
|
/**
|
|
11857
11884
|
* Create a root user
|
|
11858
11885
|
* @summary Create a root user
|
|
@@ -11976,6 +12003,16 @@ export declare class Class3CXInstallationsApi extends BaseAPI {
|
|
|
11976
12003
|
* @memberof Class3CXInstallationsApi
|
|
11977
12004
|
*/
|
|
11978
12005
|
patchUpdateAutoFailover(instanceId: string, enable: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
12006
|
+
/**
|
|
12007
|
+
* Add additional disk on 3CX Instance
|
|
12008
|
+
* @summary Add additional disk on 3CX Instance
|
|
12009
|
+
* @param {string} instanceId Instance ID
|
|
12010
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
12011
|
+
* @param {*} [options] Override http request option.
|
|
12012
|
+
* @throws {RequiredError}
|
|
12013
|
+
* @memberof Class3CXInstallationsApi
|
|
12014
|
+
*/
|
|
12015
|
+
postAddDisk(instanceId: string, gigabytes: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
11979
12016
|
/**
|
|
11980
12017
|
* Create a root user
|
|
11981
12018
|
* @summary Create a root user
|
package/dist/api.js
CHANGED
|
@@ -5237,6 +5237,49 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
5237
5237
|
});
|
|
5238
5238
|
});
|
|
5239
5239
|
},
|
|
5240
|
+
/**
|
|
5241
|
+
* Add additional disk on 3CX Instance
|
|
5242
|
+
* @summary Add additional disk on 3CX Instance
|
|
5243
|
+
* @param {string} instanceId Instance ID
|
|
5244
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
5245
|
+
* @param {*} [options] Override http request option.
|
|
5246
|
+
* @throws {RequiredError}
|
|
5247
|
+
*/
|
|
5248
|
+
postAddDisk: function (instanceId_1, gigabytes_1) {
|
|
5249
|
+
var args_1 = [];
|
|
5250
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
5251
|
+
args_1[_i - 2] = arguments[_i];
|
|
5252
|
+
}
|
|
5253
|
+
return __awaiter(_this, __spreadArray([instanceId_1, gigabytes_1], args_1, true), void 0, function (instanceId, gigabytes, options) {
|
|
5254
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5255
|
+
if (options === void 0) { options = {}; }
|
|
5256
|
+
return __generator(this, function (_a) {
|
|
5257
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
5258
|
+
(0, common_1.assertParamExists)('postAddDisk', 'instanceId', instanceId);
|
|
5259
|
+
// verify required parameter 'gigabytes' is not null or undefined
|
|
5260
|
+
(0, common_1.assertParamExists)('postAddDisk', 'gigabytes', gigabytes);
|
|
5261
|
+
localVarPath = "/tcx/installations/{instance_id}/disk"
|
|
5262
|
+
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
5263
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5264
|
+
if (configuration) {
|
|
5265
|
+
baseOptions = configuration.baseOptions;
|
|
5266
|
+
}
|
|
5267
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
5268
|
+
localVarHeaderParameter = {};
|
|
5269
|
+
localVarQueryParameter = {};
|
|
5270
|
+
if (gigabytes !== undefined) {
|
|
5271
|
+
localVarQueryParameter['gigabytes'] = gigabytes;
|
|
5272
|
+
}
|
|
5273
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5274
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5275
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5276
|
+
return [2 /*return*/, {
|
|
5277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5278
|
+
options: localVarRequestOptions,
|
|
5279
|
+
}];
|
|
5280
|
+
});
|
|
5281
|
+
});
|
|
5282
|
+
},
|
|
5240
5283
|
/**
|
|
5241
5284
|
* Create a root user
|
|
5242
5285
|
* @summary Create a root user
|
|
@@ -5706,6 +5749,30 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
5706
5749
|
});
|
|
5707
5750
|
});
|
|
5708
5751
|
},
|
|
5752
|
+
/**
|
|
5753
|
+
* Add additional disk on 3CX Instance
|
|
5754
|
+
* @summary Add additional disk on 3CX Instance
|
|
5755
|
+
* @param {string} instanceId Instance ID
|
|
5756
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
5757
|
+
* @param {*} [options] Override http request option.
|
|
5758
|
+
* @throws {RequiredError}
|
|
5759
|
+
*/
|
|
5760
|
+
postAddDisk: function (instanceId, gigabytes, options) {
|
|
5761
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5762
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5763
|
+
var _a, _b, _c;
|
|
5764
|
+
return __generator(this, function (_d) {
|
|
5765
|
+
switch (_d.label) {
|
|
5766
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postAddDisk(instanceId, gigabytes, options)];
|
|
5767
|
+
case 1:
|
|
5768
|
+
localVarAxiosArgs = _d.sent();
|
|
5769
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5770
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.postAddDisk']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5771
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
5772
|
+
}
|
|
5773
|
+
});
|
|
5774
|
+
});
|
|
5775
|
+
},
|
|
5709
5776
|
/**
|
|
5710
5777
|
* Create a root user
|
|
5711
5778
|
* @summary Create a root user
|
|
@@ -5969,6 +6036,17 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
5969
6036
|
patchUpdateAutoFailover: function (instanceId, enable, options) {
|
|
5970
6037
|
return localVarFp.patchUpdateAutoFailover(instanceId, enable, options).then(function (request) { return request(axios, basePath); });
|
|
5971
6038
|
},
|
|
6039
|
+
/**
|
|
6040
|
+
* Add additional disk on 3CX Instance
|
|
6041
|
+
* @summary Add additional disk on 3CX Instance
|
|
6042
|
+
* @param {string} instanceId Instance ID
|
|
6043
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
6044
|
+
* @param {*} [options] Override http request option.
|
|
6045
|
+
* @throws {RequiredError}
|
|
6046
|
+
*/
|
|
6047
|
+
postAddDisk: function (instanceId, gigabytes, options) {
|
|
6048
|
+
return localVarFp.postAddDisk(instanceId, gigabytes, options).then(function (request) { return request(axios, basePath); });
|
|
6049
|
+
},
|
|
5972
6050
|
/**
|
|
5973
6051
|
* Create a root user
|
|
5974
6052
|
* @summary Create a root user
|
|
@@ -6125,6 +6203,19 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6125
6203
|
var _this = this;
|
|
6126
6204
|
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).patchUpdateAutoFailover(instanceId, enable, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6127
6205
|
};
|
|
6206
|
+
/**
|
|
6207
|
+
* Add additional disk on 3CX Instance
|
|
6208
|
+
* @summary Add additional disk on 3CX Instance
|
|
6209
|
+
* @param {string} instanceId Instance ID
|
|
6210
|
+
* @param {number} gigabytes Disk Space (GB)
|
|
6211
|
+
* @param {*} [options] Override http request option.
|
|
6212
|
+
* @throws {RequiredError}
|
|
6213
|
+
* @memberof Class3CXInstallationsApi
|
|
6214
|
+
*/
|
|
6215
|
+
Class3CXInstallationsApi.prototype.postAddDisk = function (instanceId, gigabytes, options) {
|
|
6216
|
+
var _this = this;
|
|
6217
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).postAddDisk(instanceId, gigabytes, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6218
|
+
};
|
|
6128
6219
|
/**
|
|
6129
6220
|
* Create a root user
|
|
6130
6221
|
* @summary Create a root user
|
|
@@ -7,6 +7,7 @@ All URIs are relative to *http://api.yellowgrid.local*
|
|
|
7
7
|
|[**getGetDetails**](#getgetdetails) | **GET** /tcx/installations/{wizard_id}/details | Get 3CX Installation Details|
|
|
8
8
|
|[**getGetInstallations**](#getgetinstallations) | **GET** /tcx/installations | Get 3CX Installations|
|
|
9
9
|
|[**patchUpdateAutoFailover**](#patchupdateautofailover) | **PATCH** /tcx/installations/{instance_id}/failover/auto | Update 3CX Instance Auto Failover|
|
|
10
|
+
|[**postAddDisk**](#postadddisk) | **POST** /tcx/installations/{instance_id}/disk | Add additional disk on 3CX Instance|
|
|
10
11
|
|[**postCreateSshUser**](#postcreatesshuser) | **POST** /tcx/installations/{instance_id}/create/user/root | Create a root user|
|
|
11
12
|
|[**postDeleteInstance**](#postdeleteinstance) | **POST** /tcx/installations/{instance_id}/delete | Delete 3CX Instance|
|
|
12
13
|
|[**postExtendDisk**](#postextenddisk) | **POST** /tcx/installations/{instance_id}/disk/extend | Extend additional disk on 3CX Instance|
|
|
@@ -176,6 +177,63 @@ const { status, data } = await apiInstance.patchUpdateAutoFailover(
|
|
|
176
177
|
| **enable** | [**boolean**] | Enable | defaults to undefined|
|
|
177
178
|
|
|
178
179
|
|
|
180
|
+
### Return type
|
|
181
|
+
|
|
182
|
+
void (empty response body)
|
|
183
|
+
|
|
184
|
+
### Authorization
|
|
185
|
+
|
|
186
|
+
No authorization required
|
|
187
|
+
|
|
188
|
+
### HTTP request headers
|
|
189
|
+
|
|
190
|
+
- **Content-Type**: Not defined
|
|
191
|
+
- **Accept**: Not defined
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
### HTTP response details
|
|
195
|
+
| Status code | Description | Response headers |
|
|
196
|
+
|-------------|-------------|------------------|
|
|
197
|
+
|**200** | No Response | - |
|
|
198
|
+
|**400** | Bad Request | - |
|
|
199
|
+
|**401** | Unauthorised | - |
|
|
200
|
+
|**403** | Access Denied | - |
|
|
201
|
+
|
|
202
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
203
|
+
|
|
204
|
+
# **postAddDisk**
|
|
205
|
+
> postAddDisk()
|
|
206
|
+
|
|
207
|
+
Add additional disk on 3CX Instance
|
|
208
|
+
|
|
209
|
+
### Example
|
|
210
|
+
|
|
211
|
+
```typescript
|
|
212
|
+
import {
|
|
213
|
+
Class3CXInstallationsApi,
|
|
214
|
+
Configuration
|
|
215
|
+
} from 'yellowgrid-api-ts';
|
|
216
|
+
|
|
217
|
+
const configuration = new Configuration();
|
|
218
|
+
const apiInstance = new Class3CXInstallationsApi(configuration);
|
|
219
|
+
|
|
220
|
+
let instanceId: string; //Instance ID (default to undefined)
|
|
221
|
+
let gigabytes: number; //Disk Space (GB) (default to undefined)
|
|
222
|
+
|
|
223
|
+
const { status, data } = await apiInstance.postAddDisk(
|
|
224
|
+
instanceId,
|
|
225
|
+
gigabytes
|
|
226
|
+
);
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
### Parameters
|
|
230
|
+
|
|
231
|
+
|Name | Type | Description | Notes|
|
|
232
|
+
|------------- | ------------- | ------------- | -------------|
|
|
233
|
+
| **instanceId** | [**string**] | Instance ID | defaults to undefined|
|
|
234
|
+
| **gigabytes** | [**number**] | Disk Space (GB) | defaults to undefined|
|
|
235
|
+
|
|
236
|
+
|
|
179
237
|
### Return type
|
|
180
238
|
|
|
181
239
|
void (empty response body)
|