@hostinger/sdk 1.45.0 → 1.46.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 +103 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +55 -1
- package/dist/api.js +84 -1
- 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 +55 -1
- package/dist/esm/api.js +84 -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/VPSFirewallApi.md +62 -0
- package/docs/VPSV1FirewallRulesReplaceRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.46.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@1.
|
|
8
|
+
npm install @hostinger/sdk@1.46.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.46.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
|
|
@@ -13851,6 +13851,19 @@ export interface VPSV1FirewallListResponse {
|
|
|
13851
13851
|
*/
|
|
13852
13852
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
13853
13853
|
}
|
|
13854
|
+
/**
|
|
13855
|
+
*
|
|
13856
|
+
* @export
|
|
13857
|
+
* @interface VPSV1FirewallRulesReplaceRequest
|
|
13858
|
+
*/
|
|
13859
|
+
export interface VPSV1FirewallRulesReplaceRequest {
|
|
13860
|
+
/**
|
|
13861
|
+
* The complete set of firewall rules that atomically replaces all existing rules in the group
|
|
13862
|
+
* @type {Array<VPSV1FirewallRulesStoreRequest>}
|
|
13863
|
+
* @memberof VPSV1FirewallRulesReplaceRequest
|
|
13864
|
+
*/
|
|
13865
|
+
'rules': Array<VPSV1FirewallRulesStoreRequest>;
|
|
13866
|
+
}
|
|
13854
13867
|
/**
|
|
13855
13868
|
*
|
|
13856
13869
|
* @export
|
|
@@ -41842,6 +41855,55 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration?: Configu
|
|
|
41842
41855
|
options: localVarRequestOptions,
|
|
41843
41856
|
};
|
|
41844
41857
|
},
|
|
41858
|
+
/**
|
|
41859
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
41860
|
+
* @summary Replace all firewall rules in group
|
|
41861
|
+
* @param {number} firewallId Firewall ID
|
|
41862
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
41863
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
41864
|
+
* @param {*} [options] Override http request option.
|
|
41865
|
+
* @throws {RequiredError}
|
|
41866
|
+
*/
|
|
41867
|
+
replaceAllFirewallRulesInGroupV1: async (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41868
|
+
// verify required parameter 'firewallId' is not null or undefined
|
|
41869
|
+
assertParamExists('replaceAllFirewallRulesInGroupV1', 'firewallId', firewallId)
|
|
41870
|
+
// verify required parameter 'vPSV1FirewallRulesReplaceRequest' is not null or undefined
|
|
41871
|
+
assertParamExists('replaceAllFirewallRulesInGroupV1', 'vPSV1FirewallRulesReplaceRequest', vPSV1FirewallRulesReplaceRequest)
|
|
41872
|
+
const localVarPath = `/api/vps/v1/firewall/{firewallId}/rules`
|
|
41873
|
+
.replace(`{${"firewallId"}}`, encodeURIComponent(String(firewallId)));
|
|
41874
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41875
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41876
|
+
let baseOptions;
|
|
41877
|
+
if (configuration) {
|
|
41878
|
+
baseOptions = configuration.baseOptions;
|
|
41879
|
+
}
|
|
41880
|
+
|
|
41881
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
41882
|
+
const localVarHeaderParameter = {} as any;
|
|
41883
|
+
const localVarQueryParameter = {} as any;
|
|
41884
|
+
|
|
41885
|
+
// authentication apiToken required
|
|
41886
|
+
// http bearer authentication required
|
|
41887
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
41888
|
+
|
|
41889
|
+
if (sync !== undefined) {
|
|
41890
|
+
localVarQueryParameter['sync'] = sync;
|
|
41891
|
+
}
|
|
41892
|
+
|
|
41893
|
+
|
|
41894
|
+
|
|
41895
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
41896
|
+
|
|
41897
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
41898
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
41899
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
41900
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1FirewallRulesReplaceRequest, localVarRequestOptions, configuration)
|
|
41901
|
+
|
|
41902
|
+
return {
|
|
41903
|
+
url: toPathString(localVarUrlObj),
|
|
41904
|
+
options: localVarRequestOptions,
|
|
41905
|
+
};
|
|
41906
|
+
},
|
|
41845
41907
|
/**
|
|
41846
41908
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
41847
41909
|
* @summary Sync firewall
|
|
@@ -42042,6 +42104,20 @@ export const VPSFirewallApiFp = function(configuration?: Configuration) {
|
|
|
42042
42104
|
const localVarOperationServerBasePath = operationServerMap['VPSFirewallApi.getFirewallListV1']?.[0]?.url;
|
|
42043
42105
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42044
42106
|
},
|
|
42107
|
+
/**
|
|
42108
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
42109
|
+
* @summary Replace all firewall rules in group
|
|
42110
|
+
* @param {number} firewallId Firewall ID
|
|
42111
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
42112
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
42113
|
+
* @param {*} [options] Override http request option.
|
|
42114
|
+
* @throws {RequiredError}
|
|
42115
|
+
*/
|
|
42116
|
+
async replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>> {
|
|
42117
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options);
|
|
42118
|
+
const localVarOperationServerBasePath = operationServerMap['VPSFirewallApi.replaceAllFirewallRulesInGroupV1']?.[0]?.url;
|
|
42119
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
42120
|
+
},
|
|
42045
42121
|
/**
|
|
42046
42122
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
42047
42123
|
* @summary Sync firewall
|
|
@@ -42163,6 +42239,18 @@ export const VPSFirewallApiFactory = function (configuration?: Configuration, ba
|
|
|
42163
42239
|
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse> {
|
|
42164
42240
|
return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
|
|
42165
42241
|
},
|
|
42242
|
+
/**
|
|
42243
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
42244
|
+
* @summary Replace all firewall rules in group
|
|
42245
|
+
* @param {number} firewallId Firewall ID
|
|
42246
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
42247
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
42248
|
+
* @param {*} [options] Override http request option.
|
|
42249
|
+
* @throws {RequiredError}
|
|
42250
|
+
*/
|
|
42251
|
+
replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource> {
|
|
42252
|
+
return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(axios, basePath));
|
|
42253
|
+
},
|
|
42166
42254
|
/**
|
|
42167
42255
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
42168
42256
|
* @summary Sync firewall
|
|
@@ -42296,6 +42384,20 @@ export class VPSFirewallApi extends BaseAPI {
|
|
|
42296
42384
|
return VPSFirewallApiFp(this.configuration).getFirewallListV1(page, options).then((request) => request(this.axios, this.basePath));
|
|
42297
42385
|
}
|
|
42298
42386
|
|
|
42387
|
+
/**
|
|
42388
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
42389
|
+
* @summary Replace all firewall rules in group
|
|
42390
|
+
* @param {number} firewallId Firewall ID
|
|
42391
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
42392
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
42393
|
+
* @param {*} [options] Override http request option.
|
|
42394
|
+
* @throws {RequiredError}
|
|
42395
|
+
* @memberof VPSFirewallApi
|
|
42396
|
+
*/
|
|
42397
|
+
public replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig) {
|
|
42398
|
+
return VPSFirewallApiFp(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(this.axios, this.basePath));
|
|
42399
|
+
}
|
|
42400
|
+
|
|
42299
42401
|
/**
|
|
42300
42402
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
42301
42403
|
* @summary Sync firewall
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.46.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.46.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.46.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.46.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.46.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
|
|
@@ -13540,6 +13540,19 @@ export interface VPSV1FirewallListResponse {
|
|
|
13540
13540
|
*/
|
|
13541
13541
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
13542
13542
|
}
|
|
13543
|
+
/**
|
|
13544
|
+
*
|
|
13545
|
+
* @export
|
|
13546
|
+
* @interface VPSV1FirewallRulesReplaceRequest
|
|
13547
|
+
*/
|
|
13548
|
+
export interface VPSV1FirewallRulesReplaceRequest {
|
|
13549
|
+
/**
|
|
13550
|
+
* The complete set of firewall rules that atomically replaces all existing rules in the group
|
|
13551
|
+
* @type {Array<VPSV1FirewallRulesStoreRequest>}
|
|
13552
|
+
* @memberof VPSV1FirewallRulesReplaceRequest
|
|
13553
|
+
*/
|
|
13554
|
+
'rules': Array<VPSV1FirewallRulesStoreRequest>;
|
|
13555
|
+
}
|
|
13543
13556
|
/**
|
|
13544
13557
|
*
|
|
13545
13558
|
* @export
|
|
@@ -28194,6 +28207,16 @@ export declare const VPSFirewallApiAxiosParamCreator: (configuration?: Configura
|
|
|
28194
28207
|
* @throws {RequiredError}
|
|
28195
28208
|
*/
|
|
28196
28209
|
getFirewallListV1: (page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28210
|
+
/**
|
|
28211
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
28212
|
+
* @summary Replace all firewall rules in group
|
|
28213
|
+
* @param {number} firewallId Firewall ID
|
|
28214
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
28215
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
28216
|
+
* @param {*} [options] Override http request option.
|
|
28217
|
+
* @throws {RequiredError}
|
|
28218
|
+
*/
|
|
28219
|
+
replaceAllFirewallRulesInGroupV1: (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28197
28220
|
/**
|
|
28198
28221
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
28199
28222
|
* @summary Sync firewall
|
|
@@ -28287,6 +28310,16 @@ export declare const VPSFirewallApiFp: (configuration?: Configuration) => {
|
|
|
28287
28310
|
* @throws {RequiredError}
|
|
28288
28311
|
*/
|
|
28289
28312
|
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallListResponse>>;
|
|
28313
|
+
/**
|
|
28314
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
28315
|
+
* @summary Replace all firewall rules in group
|
|
28316
|
+
* @param {number} firewallId Firewall ID
|
|
28317
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
28318
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
28319
|
+
* @param {*} [options] Override http request option.
|
|
28320
|
+
* @throws {RequiredError}
|
|
28321
|
+
*/
|
|
28322
|
+
replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>>;
|
|
28290
28323
|
/**
|
|
28291
28324
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
28292
28325
|
* @summary Sync firewall
|
|
@@ -28380,6 +28413,16 @@ export declare const VPSFirewallApiFactory: (configuration?: Configuration, base
|
|
|
28380
28413
|
* @throws {RequiredError}
|
|
28381
28414
|
*/
|
|
28382
28415
|
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse>;
|
|
28416
|
+
/**
|
|
28417
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
28418
|
+
* @summary Replace all firewall rules in group
|
|
28419
|
+
* @param {number} firewallId Firewall ID
|
|
28420
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
28421
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
28422
|
+
* @param {*} [options] Override http request option.
|
|
28423
|
+
* @throws {RequiredError}
|
|
28424
|
+
*/
|
|
28425
|
+
replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource>;
|
|
28383
28426
|
/**
|
|
28384
28427
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
28385
28428
|
* @summary Sync firewall
|
|
@@ -28483,6 +28526,17 @@ export declare class VPSFirewallApi extends BaseAPI {
|
|
|
28483
28526
|
* @memberof VPSFirewallApi
|
|
28484
28527
|
*/
|
|
28485
28528
|
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallListResponse, any, {}, any>>;
|
|
28529
|
+
/**
|
|
28530
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
28531
|
+
* @summary Replace all firewall rules in group
|
|
28532
|
+
* @param {number} firewallId Firewall ID
|
|
28533
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
28534
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
28535
|
+
* @param {*} [options] Override http request option.
|
|
28536
|
+
* @throws {RequiredError}
|
|
28537
|
+
* @memberof VPSFirewallApi
|
|
28538
|
+
*/
|
|
28539
|
+
replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallFirewallResource, any, {}, any>>;
|
|
28486
28540
|
/**
|
|
28487
28541
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
28488
28542
|
* @summary Sync firewall
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.46.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -25434,6 +25434,47 @@ const VPSFirewallApiAxiosParamCreator = function (configuration) {
|
|
|
25434
25434
|
options: localVarRequestOptions,
|
|
25435
25435
|
};
|
|
25436
25436
|
}),
|
|
25437
|
+
/**
|
|
25438
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
25439
|
+
* @summary Replace all firewall rules in group
|
|
25440
|
+
* @param {number} firewallId Firewall ID
|
|
25441
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
25442
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
25443
|
+
* @param {*} [options] Override http request option.
|
|
25444
|
+
* @throws {RequiredError}
|
|
25445
|
+
*/
|
|
25446
|
+
replaceAllFirewallRulesInGroupV1: (firewallId_1, vPSV1FirewallRulesReplaceRequest_1, sync_1, ...args_1) => __awaiter(this, [firewallId_1, vPSV1FirewallRulesReplaceRequest_1, sync_1, ...args_1], void 0, function* (firewallId, vPSV1FirewallRulesReplaceRequest, sync, options = {}) {
|
|
25447
|
+
// verify required parameter 'firewallId' is not null or undefined
|
|
25448
|
+
(0, common_1.assertParamExists)('replaceAllFirewallRulesInGroupV1', 'firewallId', firewallId);
|
|
25449
|
+
// verify required parameter 'vPSV1FirewallRulesReplaceRequest' is not null or undefined
|
|
25450
|
+
(0, common_1.assertParamExists)('replaceAllFirewallRulesInGroupV1', 'vPSV1FirewallRulesReplaceRequest', vPSV1FirewallRulesReplaceRequest);
|
|
25451
|
+
const localVarPath = `/api/vps/v1/firewall/{firewallId}/rules`
|
|
25452
|
+
.replace(`{${"firewallId"}}`, encodeURIComponent(String(firewallId)));
|
|
25453
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25454
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25455
|
+
let baseOptions;
|
|
25456
|
+
if (configuration) {
|
|
25457
|
+
baseOptions = configuration.baseOptions;
|
|
25458
|
+
}
|
|
25459
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
25460
|
+
const localVarHeaderParameter = {};
|
|
25461
|
+
const localVarQueryParameter = {};
|
|
25462
|
+
// authentication apiToken required
|
|
25463
|
+
// http bearer authentication required
|
|
25464
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
25465
|
+
if (sync !== undefined) {
|
|
25466
|
+
localVarQueryParameter['sync'] = sync;
|
|
25467
|
+
}
|
|
25468
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25469
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25471
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25472
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(vPSV1FirewallRulesReplaceRequest, localVarRequestOptions, configuration);
|
|
25473
|
+
return {
|
|
25474
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25475
|
+
options: localVarRequestOptions,
|
|
25476
|
+
};
|
|
25477
|
+
}),
|
|
25437
25478
|
/**
|
|
25438
25479
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
25439
25480
|
* @summary Sync firewall
|
|
@@ -25645,6 +25686,23 @@ const VPSFirewallApiFp = function (configuration) {
|
|
|
25645
25686
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25646
25687
|
});
|
|
25647
25688
|
},
|
|
25689
|
+
/**
|
|
25690
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
25691
|
+
* @summary Replace all firewall rules in group
|
|
25692
|
+
* @param {number} firewallId Firewall ID
|
|
25693
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
25694
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
25695
|
+
* @param {*} [options] Override http request option.
|
|
25696
|
+
* @throws {RequiredError}
|
|
25697
|
+
*/
|
|
25698
|
+
replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
|
|
25699
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25700
|
+
var _a, _b;
|
|
25701
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options);
|
|
25702
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['VPSFirewallApi.replaceAllFirewallRulesInGroupV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25703
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25704
|
+
});
|
|
25705
|
+
},
|
|
25648
25706
|
/**
|
|
25649
25707
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
25650
25708
|
* @summary Sync firewall
|
|
@@ -25772,6 +25830,18 @@ const VPSFirewallApiFactory = function (configuration, basePath, axios) {
|
|
|
25772
25830
|
getFirewallListV1(page, options) {
|
|
25773
25831
|
return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
|
|
25774
25832
|
},
|
|
25833
|
+
/**
|
|
25834
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
25835
|
+
* @summary Replace all firewall rules in group
|
|
25836
|
+
* @param {number} firewallId Firewall ID
|
|
25837
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
25838
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
25839
|
+
* @param {*} [options] Override http request option.
|
|
25840
|
+
* @throws {RequiredError}
|
|
25841
|
+
*/
|
|
25842
|
+
replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
|
|
25843
|
+
return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(axios, basePath));
|
|
25844
|
+
},
|
|
25775
25845
|
/**
|
|
25776
25846
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
25777
25847
|
* @summary Sync firewall
|
|
@@ -25897,6 +25967,19 @@ class VPSFirewallApi extends base_1.BaseAPI {
|
|
|
25897
25967
|
getFirewallListV1(page, options) {
|
|
25898
25968
|
return (0, exports.VPSFirewallApiFp)(this.configuration).getFirewallListV1(page, options).then((request) => request(this.axios, this.basePath));
|
|
25899
25969
|
}
|
|
25970
|
+
/**
|
|
25971
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
25972
|
+
* @summary Replace all firewall rules in group
|
|
25973
|
+
* @param {number} firewallId Firewall ID
|
|
25974
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
25975
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
25976
|
+
* @param {*} [options] Override http request option.
|
|
25977
|
+
* @throws {RequiredError}
|
|
25978
|
+
* @memberof VPSFirewallApi
|
|
25979
|
+
*/
|
|
25980
|
+
replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
|
|
25981
|
+
return (0, exports.VPSFirewallApiFp)(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(this.axios, this.basePath));
|
|
25982
|
+
}
|
|
25900
25983
|
/**
|
|
25901
25984
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
25902
25985
|
* @summary Sync firewall
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.46.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.46.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.46.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.46.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
|
@@ -13540,6 +13540,19 @@ export interface VPSV1FirewallListResponse {
|
|
|
13540
13540
|
*/
|
|
13541
13541
|
'meta': CommonSchemaPaginationMetaSchema;
|
|
13542
13542
|
}
|
|
13543
|
+
/**
|
|
13544
|
+
*
|
|
13545
|
+
* @export
|
|
13546
|
+
* @interface VPSV1FirewallRulesReplaceRequest
|
|
13547
|
+
*/
|
|
13548
|
+
export interface VPSV1FirewallRulesReplaceRequest {
|
|
13549
|
+
/**
|
|
13550
|
+
* The complete set of firewall rules that atomically replaces all existing rules in the group
|
|
13551
|
+
* @type {Array<VPSV1FirewallRulesStoreRequest>}
|
|
13552
|
+
* @memberof VPSV1FirewallRulesReplaceRequest
|
|
13553
|
+
*/
|
|
13554
|
+
'rules': Array<VPSV1FirewallRulesStoreRequest>;
|
|
13555
|
+
}
|
|
13543
13556
|
/**
|
|
13544
13557
|
*
|
|
13545
13558
|
* @export
|
|
@@ -28194,6 +28207,16 @@ export declare const VPSFirewallApiAxiosParamCreator: (configuration?: Configura
|
|
|
28194
28207
|
* @throws {RequiredError}
|
|
28195
28208
|
*/
|
|
28196
28209
|
getFirewallListV1: (page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28210
|
+
/**
|
|
28211
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
28212
|
+
* @summary Replace all firewall rules in group
|
|
28213
|
+
* @param {number} firewallId Firewall ID
|
|
28214
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
28215
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
28216
|
+
* @param {*} [options] Override http request option.
|
|
28217
|
+
* @throws {RequiredError}
|
|
28218
|
+
*/
|
|
28219
|
+
replaceAllFirewallRulesInGroupV1: (firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
28197
28220
|
/**
|
|
28198
28221
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
28199
28222
|
* @summary Sync firewall
|
|
@@ -28287,6 +28310,16 @@ export declare const VPSFirewallApiFp: (configuration?: Configuration) => {
|
|
|
28287
28310
|
* @throws {RequiredError}
|
|
28288
28311
|
*/
|
|
28289
28312
|
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallListResponse>>;
|
|
28313
|
+
/**
|
|
28314
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
28315
|
+
* @summary Replace all firewall rules in group
|
|
28316
|
+
* @param {number} firewallId Firewall ID
|
|
28317
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
28318
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
28319
|
+
* @param {*} [options] Override http request option.
|
|
28320
|
+
* @throws {RequiredError}
|
|
28321
|
+
*/
|
|
28322
|
+
replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallFirewallResource>>;
|
|
28290
28323
|
/**
|
|
28291
28324
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
28292
28325
|
* @summary Sync firewall
|
|
@@ -28380,6 +28413,16 @@ export declare const VPSFirewallApiFactory: (configuration?: Configuration, base
|
|
|
28380
28413
|
* @throws {RequiredError}
|
|
28381
28414
|
*/
|
|
28382
28415
|
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse>;
|
|
28416
|
+
/**
|
|
28417
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
28418
|
+
* @summary Replace all firewall rules in group
|
|
28419
|
+
* @param {number} firewallId Firewall ID
|
|
28420
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
28421
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
28422
|
+
* @param {*} [options] Override http request option.
|
|
28423
|
+
* @throws {RequiredError}
|
|
28424
|
+
*/
|
|
28425
|
+
replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallFirewallResource>;
|
|
28383
28426
|
/**
|
|
28384
28427
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
28385
28428
|
* @summary Sync firewall
|
|
@@ -28483,6 +28526,17 @@ export declare class VPSFirewallApi extends BaseAPI {
|
|
|
28483
28526
|
* @memberof VPSFirewallApi
|
|
28484
28527
|
*/
|
|
28485
28528
|
getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallListResponse, any, {}, any>>;
|
|
28529
|
+
/**
|
|
28530
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
28531
|
+
* @summary Replace all firewall rules in group
|
|
28532
|
+
* @param {number} firewallId Firewall ID
|
|
28533
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
28534
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
28535
|
+
* @param {*} [options] Override http request option.
|
|
28536
|
+
* @throws {RequiredError}
|
|
28537
|
+
* @memberof VPSFirewallApi
|
|
28538
|
+
*/
|
|
28539
|
+
replaceAllFirewallRulesInGroupV1(firewallId: number, vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest, sync?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallFirewallResource, any, {}, any>>;
|
|
28486
28540
|
/**
|
|
28487
28541
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
28488
28542
|
* @summary Sync firewall
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.46.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
|
|
@@ -25153,6 +25153,47 @@ export const VPSFirewallApiAxiosParamCreator = function (configuration) {
|
|
|
25153
25153
|
options: localVarRequestOptions,
|
|
25154
25154
|
};
|
|
25155
25155
|
}),
|
|
25156
|
+
/**
|
|
25157
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
25158
|
+
* @summary Replace all firewall rules in group
|
|
25159
|
+
* @param {number} firewallId Firewall ID
|
|
25160
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
25161
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
25162
|
+
* @param {*} [options] Override http request option.
|
|
25163
|
+
* @throws {RequiredError}
|
|
25164
|
+
*/
|
|
25165
|
+
replaceAllFirewallRulesInGroupV1: (firewallId_1, vPSV1FirewallRulesReplaceRequest_1, sync_1, ...args_1) => __awaiter(this, [firewallId_1, vPSV1FirewallRulesReplaceRequest_1, sync_1, ...args_1], void 0, function* (firewallId, vPSV1FirewallRulesReplaceRequest, sync, options = {}) {
|
|
25166
|
+
// verify required parameter 'firewallId' is not null or undefined
|
|
25167
|
+
assertParamExists('replaceAllFirewallRulesInGroupV1', 'firewallId', firewallId);
|
|
25168
|
+
// verify required parameter 'vPSV1FirewallRulesReplaceRequest' is not null or undefined
|
|
25169
|
+
assertParamExists('replaceAllFirewallRulesInGroupV1', 'vPSV1FirewallRulesReplaceRequest', vPSV1FirewallRulesReplaceRequest);
|
|
25170
|
+
const localVarPath = `/api/vps/v1/firewall/{firewallId}/rules`
|
|
25171
|
+
.replace(`{${"firewallId"}}`, encodeURIComponent(String(firewallId)));
|
|
25172
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25173
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25174
|
+
let baseOptions;
|
|
25175
|
+
if (configuration) {
|
|
25176
|
+
baseOptions = configuration.baseOptions;
|
|
25177
|
+
}
|
|
25178
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
25179
|
+
const localVarHeaderParameter = {};
|
|
25180
|
+
const localVarQueryParameter = {};
|
|
25181
|
+
// authentication apiToken required
|
|
25182
|
+
// http bearer authentication required
|
|
25183
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25184
|
+
if (sync !== undefined) {
|
|
25185
|
+
localVarQueryParameter['sync'] = sync;
|
|
25186
|
+
}
|
|
25187
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25190
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25191
|
+
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1FirewallRulesReplaceRequest, localVarRequestOptions, configuration);
|
|
25192
|
+
return {
|
|
25193
|
+
url: toPathString(localVarUrlObj),
|
|
25194
|
+
options: localVarRequestOptions,
|
|
25195
|
+
};
|
|
25196
|
+
}),
|
|
25156
25197
|
/**
|
|
25157
25198
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
25158
25199
|
* @summary Sync firewall
|
|
@@ -25363,6 +25404,23 @@ export const VPSFirewallApiFp = function (configuration) {
|
|
|
25363
25404
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25364
25405
|
});
|
|
25365
25406
|
},
|
|
25407
|
+
/**
|
|
25408
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
25409
|
+
* @summary Replace all firewall rules in group
|
|
25410
|
+
* @param {number} firewallId Firewall ID
|
|
25411
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
25412
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
25413
|
+
* @param {*} [options] Override http request option.
|
|
25414
|
+
* @throws {RequiredError}
|
|
25415
|
+
*/
|
|
25416
|
+
replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
|
|
25417
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25418
|
+
var _a, _b;
|
|
25419
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options);
|
|
25420
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['VPSFirewallApi.replaceAllFirewallRulesInGroupV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
25421
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25422
|
+
});
|
|
25423
|
+
},
|
|
25366
25424
|
/**
|
|
25367
25425
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
25368
25426
|
* @summary Sync firewall
|
|
@@ -25489,6 +25547,18 @@ export const VPSFirewallApiFactory = function (configuration, basePath, axios) {
|
|
|
25489
25547
|
getFirewallListV1(page, options) {
|
|
25490
25548
|
return localVarFp.getFirewallListV1(page, options).then((request) => request(axios, basePath));
|
|
25491
25549
|
},
|
|
25550
|
+
/**
|
|
25551
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
25552
|
+
* @summary Replace all firewall rules in group
|
|
25553
|
+
* @param {number} firewallId Firewall ID
|
|
25554
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
25555
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
25556
|
+
* @param {*} [options] Override http request option.
|
|
25557
|
+
* @throws {RequiredError}
|
|
25558
|
+
*/
|
|
25559
|
+
replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
|
|
25560
|
+
return localVarFp.replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(axios, basePath));
|
|
25561
|
+
},
|
|
25492
25562
|
/**
|
|
25493
25563
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
25494
25564
|
* @summary Sync firewall
|
|
@@ -25613,6 +25683,19 @@ export class VPSFirewallApi extends BaseAPI {
|
|
|
25613
25683
|
getFirewallListV1(page, options) {
|
|
25614
25684
|
return VPSFirewallApiFp(this.configuration).getFirewallListV1(page, options).then((request) => request(this.axios, this.basePath));
|
|
25615
25685
|
}
|
|
25686
|
+
/**
|
|
25687
|
+
* Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
25688
|
+
* @summary Replace all firewall rules in group
|
|
25689
|
+
* @param {number} firewallId Firewall ID
|
|
25690
|
+
* @param {VPSV1FirewallRulesReplaceRequest} vPSV1FirewallRulesReplaceRequest
|
|
25691
|
+
* @param {boolean} [sync] Synchronize the firewall group to all its virtual machines after replacing the rules
|
|
25692
|
+
* @param {*} [options] Override http request option.
|
|
25693
|
+
* @throws {RequiredError}
|
|
25694
|
+
* @memberof VPSFirewallApi
|
|
25695
|
+
*/
|
|
25696
|
+
replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options) {
|
|
25697
|
+
return VPSFirewallApiFp(this.configuration).replaceAllFirewallRulesInGroupV1(firewallId, vPSV1FirewallRulesReplaceRequest, sync, options).then((request) => request(this.axios, this.basePath));
|
|
25698
|
+
}
|
|
25616
25699
|
/**
|
|
25617
25700
|
* Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
|
|
25618
25701
|
* @summary Sync firewall
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.46.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/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.46.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.46.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
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.46.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.46.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/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.46.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
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.46.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/docs/VPSFirewallApi.md
CHANGED
|
@@ -12,6 +12,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
12
12
|
|[**deleteFirewallV1**](#deletefirewallv1) | **DELETE** /api/vps/v1/firewall/{firewallId} | Delete firewall|
|
|
13
13
|
|[**getFirewallDetailsV1**](#getfirewalldetailsv1) | **GET** /api/vps/v1/firewall/{firewallId} | Get firewall details|
|
|
14
14
|
|[**getFirewallListV1**](#getfirewalllistv1) | **GET** /api/vps/v1/firewall | Get firewall list|
|
|
15
|
+
|[**replaceAllFirewallRulesInGroupV1**](#replaceallfirewallrulesingroupv1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules | Replace all firewall rules in group|
|
|
15
16
|
|[**syncFirewallV1**](#syncfirewallv1) | **POST** /api/vps/v1/firewall/{firewallId}/sync/{virtualMachineId} | Sync firewall|
|
|
16
17
|
|[**updateFirewallRuleV1**](#updatefirewallrulev1) | **PUT** /api/vps/v1/firewall/{firewallId}/rules/{ruleId} | Update firewall rule|
|
|
17
18
|
|
|
@@ -457,6 +458,67 @@ const { status, data } = await apiInstance.getFirewallListV1(
|
|
|
457
458
|
|
|
458
459
|
[[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)
|
|
459
460
|
|
|
461
|
+
# **replaceAllFirewallRulesInGroupV1**
|
|
462
|
+
> VPSV1FirewallFirewallResource replaceAllFirewallRulesInGroupV1(vPSV1FirewallRulesReplaceRequest)
|
|
463
|
+
|
|
464
|
+
Replaces all firewall rules within a specified firewall group with the provided set of rules in a single atomic operation, instead of creating or deleting rules one by one. Any virtual machine using this firewall group will need to be synchronized after replacing rules; pass the \"sync\" query parameter to trigger synchronization immediately.
|
|
465
|
+
|
|
466
|
+
### Example
|
|
467
|
+
|
|
468
|
+
```typescript
|
|
469
|
+
import {
|
|
470
|
+
VPSFirewallApi,
|
|
471
|
+
Configuration,
|
|
472
|
+
VPSV1FirewallRulesReplaceRequest
|
|
473
|
+
} from '@hostinger/sdk';
|
|
474
|
+
|
|
475
|
+
const configuration = new Configuration();
|
|
476
|
+
const apiInstance = new VPSFirewallApi(configuration);
|
|
477
|
+
|
|
478
|
+
let firewallId: number; //Firewall ID (default to undefined)
|
|
479
|
+
let vPSV1FirewallRulesReplaceRequest: VPSV1FirewallRulesReplaceRequest; //
|
|
480
|
+
let sync: boolean; //Synchronize the firewall group to all its virtual machines after replacing the rules (optional) (default to undefined)
|
|
481
|
+
|
|
482
|
+
const { status, data } = await apiInstance.replaceAllFirewallRulesInGroupV1(
|
|
483
|
+
firewallId,
|
|
484
|
+
vPSV1FirewallRulesReplaceRequest,
|
|
485
|
+
sync
|
|
486
|
+
);
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
### Parameters
|
|
490
|
+
|
|
491
|
+
|Name | Type | Description | Notes|
|
|
492
|
+
|------------- | ------------- | ------------- | -------------|
|
|
493
|
+
| **vPSV1FirewallRulesReplaceRequest** | **VPSV1FirewallRulesReplaceRequest**| | |
|
|
494
|
+
| **firewallId** | [**number**] | Firewall ID | defaults to undefined|
|
|
495
|
+
| **sync** | [**boolean**] | Synchronize the firewall group to all its virtual machines after replacing the rules | (optional) defaults to undefined|
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
### Return type
|
|
499
|
+
|
|
500
|
+
**VPSV1FirewallFirewallResource**
|
|
501
|
+
|
|
502
|
+
### Authorization
|
|
503
|
+
|
|
504
|
+
[apiToken](../README.md#apiToken)
|
|
505
|
+
|
|
506
|
+
### HTTP request headers
|
|
507
|
+
|
|
508
|
+
- **Content-Type**: application/json
|
|
509
|
+
- **Accept**: application/json
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
### HTTP response details
|
|
513
|
+
| Status code | Description | Response headers |
|
|
514
|
+
|-------------|-------------|------------------|
|
|
515
|
+
|**200** | Success response | - |
|
|
516
|
+
|**422** | Validation error response | - |
|
|
517
|
+
|**401** | Unauthenticated response | - |
|
|
518
|
+
|**500** | Error response | - |
|
|
519
|
+
|
|
520
|
+
[[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)
|
|
521
|
+
|
|
460
522
|
# **syncFirewallV1**
|
|
461
523
|
> VPSV1ActionActionResource syncFirewallV1()
|
|
462
524
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# VPSV1FirewallRulesReplaceRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**rules** | [**Array<VPSV1FirewallRulesStoreRequest>**](VPSV1FirewallRulesStoreRequest.md) | The complete set of firewall rules that atomically replaces all existing rules in the group | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { VPSV1FirewallRulesReplaceRequest } from '@hostinger/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: VPSV1FirewallRulesReplaceRequest = {
|
|
16
|
+
rules,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.46.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
|