hostinger-api-sdk 0.0.21 → 0.0.23
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 +296 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +158 -1
- package/dist/api.js +243 -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 +158 -1
- package/dist/esm/api.js +243 -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/HostingDatabasesApi.md +179 -0
- package/docs/HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest.md +20 -0
- package/docs/HostingV1DatabasesRemoteConnectionsRemoteConnectionResource.md +24 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## hostinger-api-sdk@0.0.
|
|
1
|
+
## hostinger-api-sdk@0.0.23
|
|
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-api-sdk@0.0.
|
|
8
|
+
npm install hostinger-api-sdk@0.0.23 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.20.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
|
|
@@ -2261,6 +2261,44 @@ export interface HostingV1DatabasesPhpMyAdminLinkResource {
|
|
|
2261
2261
|
*/
|
|
2262
2262
|
'link': string;
|
|
2263
2263
|
}
|
|
2264
|
+
/**
|
|
2265
|
+
*
|
|
2266
|
+
* @export
|
|
2267
|
+
* @interface HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
2268
|
+
*/
|
|
2269
|
+
export interface HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest {
|
|
2270
|
+
/**
|
|
2271
|
+
* Remote host to allow: an IPv4/IPv6 address, or \"%\" for any host.
|
|
2272
|
+
* @type {string}
|
|
2273
|
+
* @memberof HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
2274
|
+
*/
|
|
2275
|
+
'ip': string;
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
*
|
|
2279
|
+
* @export
|
|
2280
|
+
* @interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
|
|
2281
|
+
*/
|
|
2282
|
+
export interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource {
|
|
2283
|
+
/**
|
|
2284
|
+
* Full name of the database the rule applies to.
|
|
2285
|
+
* @type {string}
|
|
2286
|
+
* @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
|
|
2287
|
+
*/
|
|
2288
|
+
'database_name': string;
|
|
2289
|
+
/**
|
|
2290
|
+
* Database user the rule applies to.
|
|
2291
|
+
* @type {string}
|
|
2292
|
+
* @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
|
|
2293
|
+
*/
|
|
2294
|
+
'database_user': string;
|
|
2295
|
+
/**
|
|
2296
|
+
* Allowed remote host: an IPv4/IPv6 address, or \"%\" for any host.
|
|
2297
|
+
* @type {string}
|
|
2298
|
+
* @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
|
|
2299
|
+
*/
|
|
2300
|
+
'ip': string;
|
|
2301
|
+
}
|
|
2264
2302
|
/**
|
|
2265
2303
|
*
|
|
2266
2304
|
* @export
|
|
@@ -9001,6 +9039,54 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
|
|
|
9001
9039
|
options: localVarRequestOptions,
|
|
9002
9040
|
};
|
|
9003
9041
|
},
|
|
9042
|
+
/**
|
|
9043
|
+
* Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
|
|
9044
|
+
* @summary Create account database remote connection
|
|
9045
|
+
* @param {string} username
|
|
9046
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
9047
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
9048
|
+
* @param {*} [options] Override http request option.
|
|
9049
|
+
* @throws {RequiredError}
|
|
9050
|
+
*/
|
|
9051
|
+
createAccountDatabaseRemoteConnectionV1: async (username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9052
|
+
// verify required parameter 'username' is not null or undefined
|
|
9053
|
+
assertParamExists('createAccountDatabaseRemoteConnectionV1', 'username', username)
|
|
9054
|
+
// verify required parameter 'name' is not null or undefined
|
|
9055
|
+
assertParamExists('createAccountDatabaseRemoteConnectionV1', 'name', name)
|
|
9056
|
+
// verify required parameter 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest' is not null or undefined
|
|
9057
|
+
assertParamExists('createAccountDatabaseRemoteConnectionV1', 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest', hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest)
|
|
9058
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
|
|
9059
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
9060
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
9061
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9062
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9063
|
+
let baseOptions;
|
|
9064
|
+
if (configuration) {
|
|
9065
|
+
baseOptions = configuration.baseOptions;
|
|
9066
|
+
}
|
|
9067
|
+
|
|
9068
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
9069
|
+
const localVarHeaderParameter = {} as any;
|
|
9070
|
+
const localVarQueryParameter = {} as any;
|
|
9071
|
+
|
|
9072
|
+
// authentication apiToken required
|
|
9073
|
+
// http bearer authentication required
|
|
9074
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9075
|
+
|
|
9076
|
+
|
|
9077
|
+
|
|
9078
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9079
|
+
|
|
9080
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9081
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9082
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9083
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, localVarRequestOptions, configuration)
|
|
9084
|
+
|
|
9085
|
+
return {
|
|
9086
|
+
url: toPathString(localVarUrlObj),
|
|
9087
|
+
options: localVarRequestOptions,
|
|
9088
|
+
};
|
|
9089
|
+
},
|
|
9004
9090
|
/**
|
|
9005
9091
|
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
9006
9092
|
* @summary Create account database
|
|
@@ -9045,6 +9131,55 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
|
|
|
9045
9131
|
options: localVarRequestOptions,
|
|
9046
9132
|
};
|
|
9047
9133
|
},
|
|
9134
|
+
/**
|
|
9135
|
+
* Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
|
|
9136
|
+
* @summary Delete account database remote connection
|
|
9137
|
+
* @param {string} username
|
|
9138
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
9139
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
9140
|
+
* @param {*} [options] Override http request option.
|
|
9141
|
+
* @throws {RequiredError}
|
|
9142
|
+
*/
|
|
9143
|
+
deleteAccountDatabaseRemoteConnectionV1: async (username: string, name: string, ip: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9144
|
+
// verify required parameter 'username' is not null or undefined
|
|
9145
|
+
assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'username', username)
|
|
9146
|
+
// verify required parameter 'name' is not null or undefined
|
|
9147
|
+
assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'name', name)
|
|
9148
|
+
// verify required parameter 'ip' is not null or undefined
|
|
9149
|
+
assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'ip', ip)
|
|
9150
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
|
|
9151
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
9152
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
9153
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9154
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9155
|
+
let baseOptions;
|
|
9156
|
+
if (configuration) {
|
|
9157
|
+
baseOptions = configuration.baseOptions;
|
|
9158
|
+
}
|
|
9159
|
+
|
|
9160
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
9161
|
+
const localVarHeaderParameter = {} as any;
|
|
9162
|
+
const localVarQueryParameter = {} as any;
|
|
9163
|
+
|
|
9164
|
+
// authentication apiToken required
|
|
9165
|
+
// http bearer authentication required
|
|
9166
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9167
|
+
|
|
9168
|
+
if (ip !== undefined) {
|
|
9169
|
+
localVarQueryParameter['ip'] = ip;
|
|
9170
|
+
}
|
|
9171
|
+
|
|
9172
|
+
|
|
9173
|
+
|
|
9174
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9175
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9176
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9177
|
+
|
|
9178
|
+
return {
|
|
9179
|
+
url: toPathString(localVarUrlObj),
|
|
9180
|
+
options: localVarRequestOptions,
|
|
9181
|
+
};
|
|
9182
|
+
},
|
|
9048
9183
|
/**
|
|
9049
9184
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
9050
9185
|
* @summary Delete account database
|
|
@@ -9120,6 +9255,49 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration?: Co
|
|
|
9120
9255
|
|
|
9121
9256
|
|
|
9122
9257
|
|
|
9258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9260
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
9261
|
+
|
|
9262
|
+
return {
|
|
9263
|
+
url: toPathString(localVarUrlObj),
|
|
9264
|
+
options: localVarRequestOptions,
|
|
9265
|
+
};
|
|
9266
|
+
},
|
|
9267
|
+
/**
|
|
9268
|
+
* Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
|
|
9269
|
+
* @summary List account database remote connections
|
|
9270
|
+
* @param {string} username
|
|
9271
|
+
* @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
|
|
9272
|
+
* @param {*} [options] Override http request option.
|
|
9273
|
+
* @throws {RequiredError}
|
|
9274
|
+
*/
|
|
9275
|
+
listAccountDatabaseRemoteConnectionsV1: async (username: string, domain?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9276
|
+
// verify required parameter 'username' is not null or undefined
|
|
9277
|
+
assertParamExists('listAccountDatabaseRemoteConnectionsV1', 'username', username)
|
|
9278
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/remote-connections`
|
|
9279
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
9280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9282
|
+
let baseOptions;
|
|
9283
|
+
if (configuration) {
|
|
9284
|
+
baseOptions = configuration.baseOptions;
|
|
9285
|
+
}
|
|
9286
|
+
|
|
9287
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
9288
|
+
const localVarHeaderParameter = {} as any;
|
|
9289
|
+
const localVarQueryParameter = {} as any;
|
|
9290
|
+
|
|
9291
|
+
// authentication apiToken required
|
|
9292
|
+
// http bearer authentication required
|
|
9293
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
9294
|
+
|
|
9295
|
+
if (domain !== undefined) {
|
|
9296
|
+
localVarQueryParameter['domain'] = domain;
|
|
9297
|
+
}
|
|
9298
|
+
|
|
9299
|
+
|
|
9300
|
+
|
|
9123
9301
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9124
9302
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9125
9303
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -9258,6 +9436,20 @@ export const HostingDatabasesApiFp = function(configuration?: Configuration) {
|
|
|
9258
9436
|
const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.changeDatabasePasswordV1']?.[0]?.url;
|
|
9259
9437
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9260
9438
|
},
|
|
9439
|
+
/**
|
|
9440
|
+
* Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
|
|
9441
|
+
* @summary Create account database remote connection
|
|
9442
|
+
* @param {string} username
|
|
9443
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
9444
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
9445
|
+
* @param {*} [options] Override http request option.
|
|
9446
|
+
* @throws {RequiredError}
|
|
9447
|
+
*/
|
|
9448
|
+
async createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
9449
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options);
|
|
9450
|
+
const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.createAccountDatabaseRemoteConnectionV1']?.[0]?.url;
|
|
9451
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9452
|
+
},
|
|
9261
9453
|
/**
|
|
9262
9454
|
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
9263
9455
|
* @summary Create account database
|
|
@@ -9271,6 +9463,20 @@ export const HostingDatabasesApiFp = function(configuration?: Configuration) {
|
|
|
9271
9463
|
const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.createAccountDatabaseV1']?.[0]?.url;
|
|
9272
9464
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9273
9465
|
},
|
|
9466
|
+
/**
|
|
9467
|
+
* Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
|
|
9468
|
+
* @summary Delete account database remote connection
|
|
9469
|
+
* @param {string} username
|
|
9470
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
9471
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
9472
|
+
* @param {*} [options] Override http request option.
|
|
9473
|
+
* @throws {RequiredError}
|
|
9474
|
+
*/
|
|
9475
|
+
async deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
9476
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options);
|
|
9477
|
+
const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.deleteAccountDatabaseRemoteConnectionV1']?.[0]?.url;
|
|
9478
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9479
|
+
},
|
|
9274
9480
|
/**
|
|
9275
9481
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
9276
9482
|
* @summary Delete account database
|
|
@@ -9297,6 +9503,19 @@ export const HostingDatabasesApiFp = function(configuration?: Configuration) {
|
|
|
9297
9503
|
const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.getPhpMyAdminLinkV1']?.[0]?.url;
|
|
9298
9504
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9299
9505
|
},
|
|
9506
|
+
/**
|
|
9507
|
+
* Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
|
|
9508
|
+
* @summary List account database remote connections
|
|
9509
|
+
* @param {string} username
|
|
9510
|
+
* @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
|
|
9511
|
+
* @param {*} [options] Override http request option.
|
|
9512
|
+
* @throws {RequiredError}
|
|
9513
|
+
*/
|
|
9514
|
+
async listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>>> {
|
|
9515
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAccountDatabaseRemoteConnectionsV1(username, domain, options);
|
|
9516
|
+
const localVarOperationServerBasePath = operationServerMap['HostingDatabasesApi.listAccountDatabaseRemoteConnectionsV1']?.[0]?.url;
|
|
9517
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9518
|
+
},
|
|
9300
9519
|
/**
|
|
9301
9520
|
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
9302
9521
|
* @summary List account databases
|
|
@@ -9349,6 +9568,18 @@ export const HostingDatabasesApiFactory = function (configuration?: Configuratio
|
|
|
9349
9568
|
changeDatabasePasswordV1(username: string, name: string, hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
9350
9569
|
return localVarFp.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(axios, basePath));
|
|
9351
9570
|
},
|
|
9571
|
+
/**
|
|
9572
|
+
* Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
|
|
9573
|
+
* @summary Create account database remote connection
|
|
9574
|
+
* @param {string} username
|
|
9575
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
9576
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
9577
|
+
* @param {*} [options] Override http request option.
|
|
9578
|
+
* @throws {RequiredError}
|
|
9579
|
+
*/
|
|
9580
|
+
createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
9581
|
+
return localVarFp.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(axios, basePath));
|
|
9582
|
+
},
|
|
9352
9583
|
/**
|
|
9353
9584
|
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
9354
9585
|
* @summary Create account database
|
|
@@ -9360,6 +9591,18 @@ export const HostingDatabasesApiFactory = function (configuration?: Configuratio
|
|
|
9360
9591
|
createAccountDatabaseV1(username: string, hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
9361
9592
|
return localVarFp.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
9362
9593
|
},
|
|
9594
|
+
/**
|
|
9595
|
+
* Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
|
|
9596
|
+
* @summary Delete account database remote connection
|
|
9597
|
+
* @param {string} username
|
|
9598
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
9599
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
9600
|
+
* @param {*} [options] Override http request option.
|
|
9601
|
+
* @throws {RequiredError}
|
|
9602
|
+
*/
|
|
9603
|
+
deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
9604
|
+
return localVarFp.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options).then((request) => request(axios, basePath));
|
|
9605
|
+
},
|
|
9363
9606
|
/**
|
|
9364
9607
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
9365
9608
|
* @summary Delete account database
|
|
@@ -9382,6 +9625,17 @@ export const HostingDatabasesApiFactory = function (configuration?: Configuratio
|
|
|
9382
9625
|
getPhpMyAdminLinkV1(username: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1DatabasesPhpMyAdminLinkResource> {
|
|
9383
9626
|
return localVarFp.getPhpMyAdminLinkV1(username, name, options).then((request) => request(axios, basePath));
|
|
9384
9627
|
},
|
|
9628
|
+
/**
|
|
9629
|
+
* Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
|
|
9630
|
+
* @summary List account database remote connections
|
|
9631
|
+
* @param {string} username
|
|
9632
|
+
* @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
|
|
9633
|
+
* @param {*} [options] Override http request option.
|
|
9634
|
+
* @throws {RequiredError}
|
|
9635
|
+
*/
|
|
9636
|
+
listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>> {
|
|
9637
|
+
return localVarFp.listAccountDatabaseRemoteConnectionsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
9638
|
+
},
|
|
9385
9639
|
/**
|
|
9386
9640
|
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
9387
9641
|
* @summary List account databases
|
|
@@ -9432,6 +9686,20 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
9432
9686
|
return HostingDatabasesApiFp(this.configuration).changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9433
9687
|
}
|
|
9434
9688
|
|
|
9689
|
+
/**
|
|
9690
|
+
* Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
|
|
9691
|
+
* @summary Create account database remote connection
|
|
9692
|
+
* @param {string} username
|
|
9693
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
9694
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
9695
|
+
* @param {*} [options] Override http request option.
|
|
9696
|
+
* @throws {RequiredError}
|
|
9697
|
+
* @memberof HostingDatabasesApi
|
|
9698
|
+
*/
|
|
9699
|
+
public createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig) {
|
|
9700
|
+
return HostingDatabasesApiFp(this.configuration).createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9701
|
+
}
|
|
9702
|
+
|
|
9435
9703
|
/**
|
|
9436
9704
|
* Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
|
|
9437
9705
|
* @summary Create account database
|
|
@@ -9445,6 +9713,20 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
9445
9713
|
return HostingDatabasesApiFp(this.configuration).createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9446
9714
|
}
|
|
9447
9715
|
|
|
9716
|
+
/**
|
|
9717
|
+
* Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
|
|
9718
|
+
* @summary Delete account database remote connection
|
|
9719
|
+
* @param {string} username
|
|
9720
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
9721
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
9722
|
+
* @param {*} [options] Override http request option.
|
|
9723
|
+
* @throws {RequiredError}
|
|
9724
|
+
* @memberof HostingDatabasesApi
|
|
9725
|
+
*/
|
|
9726
|
+
public deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig) {
|
|
9727
|
+
return HostingDatabasesApiFp(this.configuration).deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options).then((request) => request(this.axios, this.basePath));
|
|
9728
|
+
}
|
|
9729
|
+
|
|
9448
9730
|
/**
|
|
9449
9731
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
9450
9732
|
* @summary Delete account database
|
|
@@ -9471,6 +9753,19 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
9471
9753
|
return HostingDatabasesApiFp(this.configuration).getPhpMyAdminLinkV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
9472
9754
|
}
|
|
9473
9755
|
|
|
9756
|
+
/**
|
|
9757
|
+
* Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
|
|
9758
|
+
* @summary List account database remote connections
|
|
9759
|
+
* @param {string} username
|
|
9760
|
+
* @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
|
|
9761
|
+
* @param {*} [options] Override http request option.
|
|
9762
|
+
* @throws {RequiredError}
|
|
9763
|
+
* @memberof HostingDatabasesApi
|
|
9764
|
+
*/
|
|
9765
|
+
public listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig) {
|
|
9766
|
+
return HostingDatabasesApiFp(this.configuration).listAccountDatabaseRemoteConnectionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
9767
|
+
}
|
|
9768
|
+
|
|
9474
9769
|
/**
|
|
9475
9770
|
* Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
|
|
9476
9771
|
* @summary List account databases
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 0.
|
|
6
|
+
* API Version: 0.20.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: 0.
|
|
6
|
+
* API Version: 0.20.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: 0.
|
|
6
|
+
* API Version: 0.20.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/0.0.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/0.0.23",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|