yellowgrid-api-ts 3.2.85 → 3.2.87
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 +77 -0
- package/dist/api.d.ts +36 -0
- package/dist/api.js +90 -0
- package/docs/Class3CXInstallationsApi.md +58 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -109,6 +109,7 @@ Class | Method | HTTP request | Description
|
|
|
109
109
|
*Class3CXInstallationWizardApi* | [**postUploadBackup**](docs/Class3CXInstallationWizardApi.md#postuploadbackup) | **POST** /tcx/wizards/backup |
|
|
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
|
+
*Class3CXInstallationsApi* | [**patchChangeOwner**](docs/Class3CXInstallationsApi.md#patchchangeowner) | **PATCH** /tcx/installations/{instance_id}/owner | Change instance owner
|
|
112
113
|
*Class3CXInstallationsApi* | [**patchUpdateAutoFailover**](docs/Class3CXInstallationsApi.md#patchupdateautofailover) | **PATCH** /tcx/installations/{instance_id}/failover/auto | Update 3CX Instance Auto Failover
|
|
113
114
|
*Class3CXInstallationsApi* | [**postAddDisk**](docs/Class3CXInstallationsApi.md#postadddisk) | **POST** /tcx/installations/{instance_id}/disk | Add additional disk on 3CX Instance
|
|
114
115
|
*Class3CXInstallationsApi* | [**postCreateSshUser**](docs/Class3CXInstallationsApi.md#postcreatesshuser) | **POST** /tcx/installations/{instance_id}/create/user/root | Create a root user
|
package/api.ts
CHANGED
|
@@ -11914,6 +11914,46 @@ export const Class3CXInstallationsApiAxiosParamCreator = function (configuration
|
|
|
11914
11914
|
|
|
11915
11915
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
11916
11916
|
|
|
11917
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11918
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11919
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11920
|
+
|
|
11921
|
+
return {
|
|
11922
|
+
url: toPathString(localVarUrlObj),
|
|
11923
|
+
options: localVarRequestOptions,
|
|
11924
|
+
};
|
|
11925
|
+
},
|
|
11926
|
+
/**
|
|
11927
|
+
* Change instance owner
|
|
11928
|
+
* @summary Change instance owner
|
|
11929
|
+
* @param {string} instanceId Instance ID
|
|
11930
|
+
* @param {number} customerId Customer ID
|
|
11931
|
+
* @param {*} [options] Override http request option.
|
|
11932
|
+
* @throws {RequiredError}
|
|
11933
|
+
*/
|
|
11934
|
+
patchChangeOwner: async (instanceId: string, customerId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11935
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
11936
|
+
assertParamExists('patchChangeOwner', 'instanceId', instanceId)
|
|
11937
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
11938
|
+
assertParamExists('patchChangeOwner', 'customerId', customerId)
|
|
11939
|
+
const localVarPath = `/tcx/installations/{instance_id}/owner`
|
|
11940
|
+
.replace(`{${"instance_id"}}`, encodeURIComponent(String(instanceId)));
|
|
11941
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11942
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11943
|
+
let baseOptions;
|
|
11944
|
+
if (configuration) {
|
|
11945
|
+
baseOptions = configuration.baseOptions;
|
|
11946
|
+
}
|
|
11947
|
+
|
|
11948
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
11949
|
+
const localVarHeaderParameter = {} as any;
|
|
11950
|
+
const localVarQueryParameter = {} as any;
|
|
11951
|
+
|
|
11952
|
+
if (customerId !== undefined) {
|
|
11953
|
+
localVarQueryParameter['customer_id'] = customerId;
|
|
11954
|
+
}
|
|
11955
|
+
|
|
11956
|
+
|
|
11917
11957
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11918
11958
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11919
11959
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -12401,6 +12441,20 @@ export const Class3CXInstallationsApiFp = function(configuration?: Configuration
|
|
|
12401
12441
|
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.getGetInstallations']?.[localVarOperationServerIndex]?.url;
|
|
12402
12442
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12403
12443
|
},
|
|
12444
|
+
/**
|
|
12445
|
+
* Change instance owner
|
|
12446
|
+
* @summary Change instance owner
|
|
12447
|
+
* @param {string} instanceId Instance ID
|
|
12448
|
+
* @param {number} customerId Customer ID
|
|
12449
|
+
* @param {*} [options] Override http request option.
|
|
12450
|
+
* @throws {RequiredError}
|
|
12451
|
+
*/
|
|
12452
|
+
async patchChangeOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
12453
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchChangeOwner(instanceId, customerId, options);
|
|
12454
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
12455
|
+
const localVarOperationServerBasePath = operationServerMap['Class3CXInstallationsApi.patchChangeOwner']?.[localVarOperationServerIndex]?.url;
|
|
12456
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12457
|
+
},
|
|
12404
12458
|
/**
|
|
12405
12459
|
* Update 3CX Instance Auto Failover
|
|
12406
12460
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -12590,6 +12644,17 @@ export const Class3CXInstallationsApiFactory = function (configuration?: Configu
|
|
|
12590
12644
|
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationsModel> {
|
|
12591
12645
|
return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(axios, basePath));
|
|
12592
12646
|
},
|
|
12647
|
+
/**
|
|
12648
|
+
* Change instance owner
|
|
12649
|
+
* @summary Change instance owner
|
|
12650
|
+
* @param {string} instanceId Instance ID
|
|
12651
|
+
* @param {number} customerId Customer ID
|
|
12652
|
+
* @param {*} [options] Override http request option.
|
|
12653
|
+
* @throws {RequiredError}
|
|
12654
|
+
*/
|
|
12655
|
+
patchChangeOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
12656
|
+
return localVarFp.patchChangeOwner(instanceId, customerId, options).then((request) => request(axios, basePath));
|
|
12657
|
+
},
|
|
12593
12658
|
/**
|
|
12594
12659
|
* Update 3CX Instance Auto Failover
|
|
12595
12660
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -12746,6 +12811,18 @@ export class Class3CXInstallationsApi extends BaseAPI {
|
|
|
12746
12811
|
return Class3CXInstallationsApiFp(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then((request) => request(this.axios, this.basePath));
|
|
12747
12812
|
}
|
|
12748
12813
|
|
|
12814
|
+
/**
|
|
12815
|
+
* Change instance owner
|
|
12816
|
+
* @summary Change instance owner
|
|
12817
|
+
* @param {string} instanceId Instance ID
|
|
12818
|
+
* @param {number} customerId Customer ID
|
|
12819
|
+
* @param {*} [options] Override http request option.
|
|
12820
|
+
* @throws {RequiredError}
|
|
12821
|
+
*/
|
|
12822
|
+
public patchChangeOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig) {
|
|
12823
|
+
return Class3CXInstallationsApiFp(this.configuration).patchChangeOwner(instanceId, customerId, options).then((request) => request(this.axios, this.basePath));
|
|
12824
|
+
}
|
|
12825
|
+
|
|
12749
12826
|
/**
|
|
12750
12827
|
* Update 3CX Instance Auto Failover
|
|
12751
12828
|
* @summary Update 3CX Instance Auto Failover
|
package/dist/api.d.ts
CHANGED
|
@@ -9642,6 +9642,15 @@ export declare const Class3CXInstallationsApiAxiosParamCreator: (configuration?:
|
|
|
9642
9642
|
* @throws {RequiredError}
|
|
9643
9643
|
*/
|
|
9644
9644
|
getGetInstallations: (pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9645
|
+
/**
|
|
9646
|
+
* Change instance owner
|
|
9647
|
+
* @summary Change instance owner
|
|
9648
|
+
* @param {string} instanceId Instance ID
|
|
9649
|
+
* @param {number} customerId Customer ID
|
|
9650
|
+
* @param {*} [options] Override http request option.
|
|
9651
|
+
* @throws {RequiredError}
|
|
9652
|
+
*/
|
|
9653
|
+
patchChangeOwner: (instanceId: string, customerId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
9645
9654
|
/**
|
|
9646
9655
|
* Update 3CX Instance Auto Failover
|
|
9647
9656
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -9768,6 +9777,15 @@ export declare const Class3CXInstallationsApiFp: (configuration?: Configuration)
|
|
|
9768
9777
|
* @throws {RequiredError}
|
|
9769
9778
|
*/
|
|
9770
9779
|
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TcxInstallationsModel>>;
|
|
9780
|
+
/**
|
|
9781
|
+
* Change instance owner
|
|
9782
|
+
* @summary Change instance owner
|
|
9783
|
+
* @param {string} instanceId Instance ID
|
|
9784
|
+
* @param {number} customerId Customer ID
|
|
9785
|
+
* @param {*} [options] Override http request option.
|
|
9786
|
+
* @throws {RequiredError}
|
|
9787
|
+
*/
|
|
9788
|
+
patchChangeOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
9771
9789
|
/**
|
|
9772
9790
|
* Update 3CX Instance Auto Failover
|
|
9773
9791
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -9894,6 +9912,15 @@ export declare const Class3CXInstallationsApiFactory: (configuration?: Configura
|
|
|
9894
9912
|
* @throws {RequiredError}
|
|
9895
9913
|
*/
|
|
9896
9914
|
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): AxiosPromise<TcxInstallationsModel>;
|
|
9915
|
+
/**
|
|
9916
|
+
* Change instance owner
|
|
9917
|
+
* @summary Change instance owner
|
|
9918
|
+
* @param {string} instanceId Instance ID
|
|
9919
|
+
* @param {number} customerId Customer ID
|
|
9920
|
+
* @param {*} [options] Override http request option.
|
|
9921
|
+
* @throws {RequiredError}
|
|
9922
|
+
*/
|
|
9923
|
+
patchChangeOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
9897
9924
|
/**
|
|
9898
9925
|
* Update 3CX Instance Auto Failover
|
|
9899
9926
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -10020,6 +10047,15 @@ export declare class Class3CXInstallationsApi extends BaseAPI {
|
|
|
10020
10047
|
* @throws {RequiredError}
|
|
10021
10048
|
*/
|
|
10022
10049
|
getGetInstallations(pageSize?: number, page?: number, customerId?: string, search?: string, status?: GetGetInstallationsStatusEnum, hosting?: GetGetInstallationsHostingEnum, installType?: GetGetInstallationsInstallTypeEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TcxInstallationsModel, any, {}>>;
|
|
10050
|
+
/**
|
|
10051
|
+
* Change instance owner
|
|
10052
|
+
* @summary Change instance owner
|
|
10053
|
+
* @param {string} instanceId Instance ID
|
|
10054
|
+
* @param {number} customerId Customer ID
|
|
10055
|
+
* @param {*} [options] Override http request option.
|
|
10056
|
+
* @throws {RequiredError}
|
|
10057
|
+
*/
|
|
10058
|
+
patchChangeOwner(instanceId: string, customerId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
10023
10059
|
/**
|
|
10024
10060
|
* Update 3CX Instance Auto Failover
|
|
10025
10061
|
* @summary Update 3CX Instance Auto Failover
|
package/dist/api.js
CHANGED
|
@@ -5285,6 +5285,49 @@ var Class3CXInstallationsApiAxiosParamCreator = function (configuration) {
|
|
|
5285
5285
|
});
|
|
5286
5286
|
});
|
|
5287
5287
|
},
|
|
5288
|
+
/**
|
|
5289
|
+
* Change instance owner
|
|
5290
|
+
* @summary Change instance owner
|
|
5291
|
+
* @param {string} instanceId Instance ID
|
|
5292
|
+
* @param {number} customerId Customer ID
|
|
5293
|
+
* @param {*} [options] Override http request option.
|
|
5294
|
+
* @throws {RequiredError}
|
|
5295
|
+
*/
|
|
5296
|
+
patchChangeOwner: function (instanceId_1, customerId_1) {
|
|
5297
|
+
var args_1 = [];
|
|
5298
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
5299
|
+
args_1[_i - 2] = arguments[_i];
|
|
5300
|
+
}
|
|
5301
|
+
return __awaiter(_this, __spreadArray([instanceId_1, customerId_1], args_1, true), void 0, function (instanceId, customerId, options) {
|
|
5302
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5303
|
+
if (options === void 0) { options = {}; }
|
|
5304
|
+
return __generator(this, function (_a) {
|
|
5305
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
5306
|
+
(0, common_1.assertParamExists)('patchChangeOwner', 'instanceId', instanceId);
|
|
5307
|
+
// verify required parameter 'customerId' is not null or undefined
|
|
5308
|
+
(0, common_1.assertParamExists)('patchChangeOwner', 'customerId', customerId);
|
|
5309
|
+
localVarPath = "/tcx/installations/{instance_id}/owner"
|
|
5310
|
+
.replace("{".concat("instance_id", "}"), encodeURIComponent(String(instanceId)));
|
|
5311
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5312
|
+
if (configuration) {
|
|
5313
|
+
baseOptions = configuration.baseOptions;
|
|
5314
|
+
}
|
|
5315
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
5316
|
+
localVarHeaderParameter = {};
|
|
5317
|
+
localVarQueryParameter = {};
|
|
5318
|
+
if (customerId !== undefined) {
|
|
5319
|
+
localVarQueryParameter['customer_id'] = customerId;
|
|
5320
|
+
}
|
|
5321
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5322
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5323
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5324
|
+
return [2 /*return*/, {
|
|
5325
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5326
|
+
options: localVarRequestOptions,
|
|
5327
|
+
}];
|
|
5328
|
+
});
|
|
5329
|
+
});
|
|
5330
|
+
},
|
|
5288
5331
|
/**
|
|
5289
5332
|
* Update 3CX Instance Auto Failover
|
|
5290
5333
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -5816,6 +5859,30 @@ var Class3CXInstallationsApiFp = function (configuration) {
|
|
|
5816
5859
|
});
|
|
5817
5860
|
});
|
|
5818
5861
|
},
|
|
5862
|
+
/**
|
|
5863
|
+
* Change instance owner
|
|
5864
|
+
* @summary Change instance owner
|
|
5865
|
+
* @param {string} instanceId Instance ID
|
|
5866
|
+
* @param {number} customerId Customer ID
|
|
5867
|
+
* @param {*} [options] Override http request option.
|
|
5868
|
+
* @throws {RequiredError}
|
|
5869
|
+
*/
|
|
5870
|
+
patchChangeOwner: function (instanceId, customerId, options) {
|
|
5871
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5872
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5873
|
+
var _a, _b, _c;
|
|
5874
|
+
return __generator(this, function (_d) {
|
|
5875
|
+
switch (_d.label) {
|
|
5876
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchChangeOwner(instanceId, customerId, options)];
|
|
5877
|
+
case 1:
|
|
5878
|
+
localVarAxiosArgs = _d.sent();
|
|
5879
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5880
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['Class3CXInstallationsApi.patchChangeOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5881
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
5882
|
+
}
|
|
5883
|
+
});
|
|
5884
|
+
});
|
|
5885
|
+
},
|
|
5819
5886
|
/**
|
|
5820
5887
|
* Update 3CX Instance Auto Failover
|
|
5821
5888
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -6115,6 +6182,17 @@ var Class3CXInstallationsApiFactory = function (configuration, basePath, axios)
|
|
|
6115
6182
|
getGetInstallations: function (pageSize, page, customerId, search, status, hosting, installType, options) {
|
|
6116
6183
|
return localVarFp.getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(axios, basePath); });
|
|
6117
6184
|
},
|
|
6185
|
+
/**
|
|
6186
|
+
* Change instance owner
|
|
6187
|
+
* @summary Change instance owner
|
|
6188
|
+
* @param {string} instanceId Instance ID
|
|
6189
|
+
* @param {number} customerId Customer ID
|
|
6190
|
+
* @param {*} [options] Override http request option.
|
|
6191
|
+
* @throws {RequiredError}
|
|
6192
|
+
*/
|
|
6193
|
+
patchChangeOwner: function (instanceId, customerId, options) {
|
|
6194
|
+
return localVarFp.patchChangeOwner(instanceId, customerId, options).then(function (request) { return request(axios, basePath); });
|
|
6195
|
+
},
|
|
6118
6196
|
/**
|
|
6119
6197
|
* Update 3CX Instance Auto Failover
|
|
6120
6198
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -6275,6 +6353,18 @@ var Class3CXInstallationsApi = /** @class */ (function (_super) {
|
|
|
6275
6353
|
var _this = this;
|
|
6276
6354
|
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).getGetInstallations(pageSize, page, customerId, search, status, hosting, installType, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6277
6355
|
};
|
|
6356
|
+
/**
|
|
6357
|
+
* Change instance owner
|
|
6358
|
+
* @summary Change instance owner
|
|
6359
|
+
* @param {string} instanceId Instance ID
|
|
6360
|
+
* @param {number} customerId Customer ID
|
|
6361
|
+
* @param {*} [options] Override http request option.
|
|
6362
|
+
* @throws {RequiredError}
|
|
6363
|
+
*/
|
|
6364
|
+
Class3CXInstallationsApi.prototype.patchChangeOwner = function (instanceId, customerId, options) {
|
|
6365
|
+
var _this = this;
|
|
6366
|
+
return (0, exports.Class3CXInstallationsApiFp)(this.configuration).patchChangeOwner(instanceId, customerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6367
|
+
};
|
|
6278
6368
|
/**
|
|
6279
6369
|
* Update 3CX Instance Auto Failover
|
|
6280
6370
|
* @summary Update 3CX Instance Auto Failover
|
|
@@ -6,6 +6,7 @@ All URIs are relative to *https://bitbucket.org*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
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
|
+
|[**patchChangeOwner**](#patchchangeowner) | **PATCH** /tcx/installations/{instance_id}/owner | Change instance owner|
|
|
9
10
|
|[**patchUpdateAutoFailover**](#patchupdateautofailover) | **PATCH** /tcx/installations/{instance_id}/failover/auto | Update 3CX Instance Auto Failover|
|
|
10
11
|
|[**postAddDisk**](#postadddisk) | **POST** /tcx/installations/{instance_id}/disk | Add additional disk on 3CX Instance|
|
|
11
12
|
|[**postCreateSshUser**](#postcreatesshuser) | **POST** /tcx/installations/{instance_id}/create/user/root | Create a root user|
|
|
@@ -144,6 +145,63 @@ No authorization required
|
|
|
144
145
|
|
|
145
146
|
[[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)
|
|
146
147
|
|
|
148
|
+
# **patchChangeOwner**
|
|
149
|
+
> patchChangeOwner()
|
|
150
|
+
|
|
151
|
+
Change instance owner
|
|
152
|
+
|
|
153
|
+
### Example
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
import {
|
|
157
|
+
Class3CXInstallationsApi,
|
|
158
|
+
Configuration
|
|
159
|
+
} from 'yellowgrid-api-ts';
|
|
160
|
+
|
|
161
|
+
const configuration = new Configuration();
|
|
162
|
+
const apiInstance = new Class3CXInstallationsApi(configuration);
|
|
163
|
+
|
|
164
|
+
let instanceId: string; //Instance ID (default to undefined)
|
|
165
|
+
let customerId: number; //Customer ID (default to undefined)
|
|
166
|
+
|
|
167
|
+
const { status, data } = await apiInstance.patchChangeOwner(
|
|
168
|
+
instanceId,
|
|
169
|
+
customerId
|
|
170
|
+
);
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Parameters
|
|
174
|
+
|
|
175
|
+
|Name | Type | Description | Notes|
|
|
176
|
+
|------------- | ------------- | ------------- | -------------|
|
|
177
|
+
| **instanceId** | [**string**] | Instance ID | defaults to undefined|
|
|
178
|
+
| **customerId** | [**number**] | Customer ID | defaults to undefined|
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### Return type
|
|
182
|
+
|
|
183
|
+
void (empty response body)
|
|
184
|
+
|
|
185
|
+
### Authorization
|
|
186
|
+
|
|
187
|
+
No authorization required
|
|
188
|
+
|
|
189
|
+
### HTTP request headers
|
|
190
|
+
|
|
191
|
+
- **Content-Type**: Not defined
|
|
192
|
+
- **Accept**: Not defined
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### HTTP response details
|
|
196
|
+
| Status code | Description | Response headers |
|
|
197
|
+
|-------------|-------------|------------------|
|
|
198
|
+
|**200** | No Response | - |
|
|
199
|
+
|**400** | Bad Request | - |
|
|
200
|
+
|**401** | Unauthorised | - |
|
|
201
|
+
|**403** | Access Denied | - |
|
|
202
|
+
|
|
203
|
+
[[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)
|
|
204
|
+
|
|
147
205
|
# **patchUpdateAutoFailover**
|
|
148
206
|
> patchUpdateAutoFailover()
|
|
149
207
|
|