hostinger-api-sdk 0.0.22 → 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/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 0.
|
|
7
|
+
* API Version: 0.20.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/0.0.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/0.0.23" }, (_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: 0.
|
|
4
|
+
* API Version: 0.20.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
|
|
@@ -2198,6 +2198,44 @@ export interface HostingV1DatabasesPhpMyAdminLinkResource {
|
|
|
2198
2198
|
*/
|
|
2199
2199
|
'link': string;
|
|
2200
2200
|
}
|
|
2201
|
+
/**
|
|
2202
|
+
*
|
|
2203
|
+
* @export
|
|
2204
|
+
* @interface HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
2205
|
+
*/
|
|
2206
|
+
export interface HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest {
|
|
2207
|
+
/**
|
|
2208
|
+
* Remote host to allow: an IPv4/IPv6 address, or \"%\" for any host.
|
|
2209
|
+
* @type {string}
|
|
2210
|
+
* @memberof HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
2211
|
+
*/
|
|
2212
|
+
'ip': string;
|
|
2213
|
+
}
|
|
2214
|
+
/**
|
|
2215
|
+
*
|
|
2216
|
+
* @export
|
|
2217
|
+
* @interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
|
|
2218
|
+
*/
|
|
2219
|
+
export interface HostingV1DatabasesRemoteConnectionsRemoteConnectionResource {
|
|
2220
|
+
/**
|
|
2221
|
+
* Full name of the database the rule applies to.
|
|
2222
|
+
* @type {string}
|
|
2223
|
+
* @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
|
|
2224
|
+
*/
|
|
2225
|
+
'database_name': string;
|
|
2226
|
+
/**
|
|
2227
|
+
* Database user the rule applies to.
|
|
2228
|
+
* @type {string}
|
|
2229
|
+
* @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
|
|
2230
|
+
*/
|
|
2231
|
+
'database_user': string;
|
|
2232
|
+
/**
|
|
2233
|
+
* Allowed remote host: an IPv4/IPv6 address, or \"%\" for any host.
|
|
2234
|
+
* @type {string}
|
|
2235
|
+
* @memberof HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
|
|
2236
|
+
*/
|
|
2237
|
+
'ip': string;
|
|
2238
|
+
}
|
|
2201
2239
|
/**
|
|
2202
2240
|
*
|
|
2203
2241
|
* @export
|
|
@@ -6938,6 +6976,16 @@ export declare const HostingDatabasesApiAxiosParamCreator: (configuration?: Conf
|
|
|
6938
6976
|
* @throws {RequiredError}
|
|
6939
6977
|
*/
|
|
6940
6978
|
changeDatabasePasswordV1: (username: string, name: string, hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6979
|
+
/**
|
|
6980
|
+
* 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.
|
|
6981
|
+
* @summary Create account database remote connection
|
|
6982
|
+
* @param {string} username
|
|
6983
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
6984
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
6985
|
+
* @param {*} [options] Override http request option.
|
|
6986
|
+
* @throws {RequiredError}
|
|
6987
|
+
*/
|
|
6988
|
+
createAccountDatabaseRemoteConnectionV1: (username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6941
6989
|
/**
|
|
6942
6990
|
* 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.
|
|
6943
6991
|
* @summary Create account database
|
|
@@ -6947,6 +6995,16 @@ export declare const HostingDatabasesApiAxiosParamCreator: (configuration?: Conf
|
|
|
6947
6995
|
* @throws {RequiredError}
|
|
6948
6996
|
*/
|
|
6949
6997
|
createAccountDatabaseV1: (username: string, hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6998
|
+
/**
|
|
6999
|
+
* 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.
|
|
7000
|
+
* @summary Delete account database remote connection
|
|
7001
|
+
* @param {string} username
|
|
7002
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
7003
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
7004
|
+
* @param {*} [options] Override http request option.
|
|
7005
|
+
* @throws {RequiredError}
|
|
7006
|
+
*/
|
|
7007
|
+
deleteAccountDatabaseRemoteConnectionV1: (username: string, name: string, ip: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6950
7008
|
/**
|
|
6951
7009
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
6952
7010
|
* @summary Delete account database
|
|
@@ -6965,6 +7023,15 @@ export declare const HostingDatabasesApiAxiosParamCreator: (configuration?: Conf
|
|
|
6965
7023
|
* @throws {RequiredError}
|
|
6966
7024
|
*/
|
|
6967
7025
|
getPhpMyAdminLinkV1: (username: string, name: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
7026
|
+
/**
|
|
7027
|
+
* 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.
|
|
7028
|
+
* @summary List account database remote connections
|
|
7029
|
+
* @param {string} username
|
|
7030
|
+
* @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.
|
|
7031
|
+
* @param {*} [options] Override http request option.
|
|
7032
|
+
* @throws {RequiredError}
|
|
7033
|
+
*/
|
|
7034
|
+
listAccountDatabaseRemoteConnectionsV1: (username: string, domain?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
6968
7035
|
/**
|
|
6969
7036
|
* 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.
|
|
6970
7037
|
* @summary List account databases
|
|
@@ -7003,6 +7070,16 @@ export declare const HostingDatabasesApiFp: (configuration?: Configuration) => {
|
|
|
7003
7070
|
* @throws {RequiredError}
|
|
7004
7071
|
*/
|
|
7005
7072
|
changeDatabasePasswordV1(username: string, name: string, hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
7073
|
+
/**
|
|
7074
|
+
* 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.
|
|
7075
|
+
* @summary Create account database remote connection
|
|
7076
|
+
* @param {string} username
|
|
7077
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
7078
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
7079
|
+
* @param {*} [options] Override http request option.
|
|
7080
|
+
* @throws {RequiredError}
|
|
7081
|
+
*/
|
|
7082
|
+
createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
7006
7083
|
/**
|
|
7007
7084
|
* 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.
|
|
7008
7085
|
* @summary Create account database
|
|
@@ -7012,6 +7089,16 @@ export declare const HostingDatabasesApiFp: (configuration?: Configuration) => {
|
|
|
7012
7089
|
* @throws {RequiredError}
|
|
7013
7090
|
*/
|
|
7014
7091
|
createAccountDatabaseV1(username: string, hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
7092
|
+
/**
|
|
7093
|
+
* 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.
|
|
7094
|
+
* @summary Delete account database remote connection
|
|
7095
|
+
* @param {string} username
|
|
7096
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
7097
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
7098
|
+
* @param {*} [options] Override http request option.
|
|
7099
|
+
* @throws {RequiredError}
|
|
7100
|
+
*/
|
|
7101
|
+
deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
7015
7102
|
/**
|
|
7016
7103
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
7017
7104
|
* @summary Delete account database
|
|
@@ -7030,6 +7117,15 @@ export declare const HostingDatabasesApiFp: (configuration?: Configuration) => {
|
|
|
7030
7117
|
* @throws {RequiredError}
|
|
7031
7118
|
*/
|
|
7032
7119
|
getPhpMyAdminLinkV1(username: string, name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1DatabasesPhpMyAdminLinkResource>>;
|
|
7120
|
+
/**
|
|
7121
|
+
* 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.
|
|
7122
|
+
* @summary List account database remote connections
|
|
7123
|
+
* @param {string} username
|
|
7124
|
+
* @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.
|
|
7125
|
+
* @param {*} [options] Override http request option.
|
|
7126
|
+
* @throws {RequiredError}
|
|
7127
|
+
*/
|
|
7128
|
+
listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>>>;
|
|
7033
7129
|
/**
|
|
7034
7130
|
* 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.
|
|
7035
7131
|
* @summary List account databases
|
|
@@ -7068,6 +7164,16 @@ export declare const HostingDatabasesApiFactory: (configuration?: Configuration,
|
|
|
7068
7164
|
* @throws {RequiredError}
|
|
7069
7165
|
*/
|
|
7070
7166
|
changeDatabasePasswordV1(username: string, name: string, hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
7167
|
+
/**
|
|
7168
|
+
* 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.
|
|
7169
|
+
* @summary Create account database remote connection
|
|
7170
|
+
* @param {string} username
|
|
7171
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
7172
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
7173
|
+
* @param {*} [options] Override http request option.
|
|
7174
|
+
* @throws {RequiredError}
|
|
7175
|
+
*/
|
|
7176
|
+
createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
7071
7177
|
/**
|
|
7072
7178
|
* 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.
|
|
7073
7179
|
* @summary Create account database
|
|
@@ -7077,6 +7183,16 @@ export declare const HostingDatabasesApiFactory: (configuration?: Configuration,
|
|
|
7077
7183
|
* @throws {RequiredError}
|
|
7078
7184
|
*/
|
|
7079
7185
|
createAccountDatabaseV1(username: string, hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
7186
|
+
/**
|
|
7187
|
+
* 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.
|
|
7188
|
+
* @summary Delete account database remote connection
|
|
7189
|
+
* @param {string} username
|
|
7190
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
7191
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
7192
|
+
* @param {*} [options] Override http request option.
|
|
7193
|
+
* @throws {RequiredError}
|
|
7194
|
+
*/
|
|
7195
|
+
deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
7080
7196
|
/**
|
|
7081
7197
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
7082
7198
|
* @summary Delete account database
|
|
@@ -7095,6 +7211,15 @@ export declare const HostingDatabasesApiFactory: (configuration?: Configuration,
|
|
|
7095
7211
|
* @throws {RequiredError}
|
|
7096
7212
|
*/
|
|
7097
7213
|
getPhpMyAdminLinkV1(username: string, name: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1DatabasesPhpMyAdminLinkResource>;
|
|
7214
|
+
/**
|
|
7215
|
+
* 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.
|
|
7216
|
+
* @summary List account database remote connections
|
|
7217
|
+
* @param {string} username
|
|
7218
|
+
* @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.
|
|
7219
|
+
* @param {*} [options] Override http request option.
|
|
7220
|
+
* @throws {RequiredError}
|
|
7221
|
+
*/
|
|
7222
|
+
listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource>>;
|
|
7098
7223
|
/**
|
|
7099
7224
|
* 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.
|
|
7100
7225
|
* @summary List account databases
|
|
@@ -7136,6 +7261,17 @@ export declare class HostingDatabasesApi extends BaseAPI {
|
|
|
7136
7261
|
* @memberof HostingDatabasesApi
|
|
7137
7262
|
*/
|
|
7138
7263
|
changeDatabasePasswordV1(username: string, name: string, hostingV1DatabasesChangeDatabasePasswordRequest: HostingV1DatabasesChangeDatabasePasswordRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
7264
|
+
/**
|
|
7265
|
+
* 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.
|
|
7266
|
+
* @summary Create account database remote connection
|
|
7267
|
+
* @param {string} username
|
|
7268
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
7269
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
7270
|
+
* @param {*} [options] Override http request option.
|
|
7271
|
+
* @throws {RequiredError}
|
|
7272
|
+
* @memberof HostingDatabasesApi
|
|
7273
|
+
*/
|
|
7274
|
+
createAccountDatabaseRemoteConnectionV1(username: string, name: string, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest: HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
7139
7275
|
/**
|
|
7140
7276
|
* 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.
|
|
7141
7277
|
* @summary Create account database
|
|
@@ -7146,6 +7282,17 @@ export declare class HostingDatabasesApi extends BaseAPI {
|
|
|
7146
7282
|
* @memberof HostingDatabasesApi
|
|
7147
7283
|
*/
|
|
7148
7284
|
createAccountDatabaseV1(username: string, hostingV1DatabasesCreateDatabaseRequest: HostingV1DatabasesCreateDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
7285
|
+
/**
|
|
7286
|
+
* 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.
|
|
7287
|
+
* @summary Delete account database remote connection
|
|
7288
|
+
* @param {string} username
|
|
7289
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
7290
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
7291
|
+
* @param {*} [options] Override http request option.
|
|
7292
|
+
* @throws {RequiredError}
|
|
7293
|
+
* @memberof HostingDatabasesApi
|
|
7294
|
+
*/
|
|
7295
|
+
deleteAccountDatabaseRemoteConnectionV1(username: string, name: string, ip: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
|
|
7149
7296
|
/**
|
|
7150
7297
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
7151
7298
|
* @summary Delete account database
|
|
@@ -7166,6 +7313,16 @@ export declare class HostingDatabasesApi extends BaseAPI {
|
|
|
7166
7313
|
* @memberof HostingDatabasesApi
|
|
7167
7314
|
*/
|
|
7168
7315
|
getPhpMyAdminLinkV1(username: string, name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1DatabasesPhpMyAdminLinkResource, any, {}>>;
|
|
7316
|
+
/**
|
|
7317
|
+
* 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.
|
|
7318
|
+
* @summary List account database remote connections
|
|
7319
|
+
* @param {string} username
|
|
7320
|
+
* @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.
|
|
7321
|
+
* @param {*} [options] Override http request option.
|
|
7322
|
+
* @throws {RequiredError}
|
|
7323
|
+
* @memberof HostingDatabasesApi
|
|
7324
|
+
*/
|
|
7325
|
+
listAccountDatabaseRemoteConnectionsV1(username: string, domain?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1DatabasesRemoteConnectionsRemoteConnectionResource[], any, {}>>;
|
|
7169
7326
|
/**
|
|
7170
7327
|
* 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.
|
|
7171
7328
|
* @summary List account databases
|
package/dist/esm/api.js
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
|
|
@@ -3879,6 +3879,47 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
3879
3879
|
options: localVarRequestOptions,
|
|
3880
3880
|
};
|
|
3881
3881
|
}),
|
|
3882
|
+
/**
|
|
3883
|
+
* 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.
|
|
3884
|
+
* @summary Create account database remote connection
|
|
3885
|
+
* @param {string} username
|
|
3886
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3887
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
3888
|
+
* @param {*} [options] Override http request option.
|
|
3889
|
+
* @throws {RequiredError}
|
|
3890
|
+
*/
|
|
3891
|
+
createAccountDatabaseRemoteConnectionV1: (username_1, name_1, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest_1, ...args_1) => __awaiter(this, [username_1, name_1, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest_1, ...args_1], void 0, function* (username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options = {}) {
|
|
3892
|
+
// verify required parameter 'username' is not null or undefined
|
|
3893
|
+
assertParamExists('createAccountDatabaseRemoteConnectionV1', 'username', username);
|
|
3894
|
+
// verify required parameter 'name' is not null or undefined
|
|
3895
|
+
assertParamExists('createAccountDatabaseRemoteConnectionV1', 'name', name);
|
|
3896
|
+
// verify required parameter 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest' is not null or undefined
|
|
3897
|
+
assertParamExists('createAccountDatabaseRemoteConnectionV1', 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest', hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest);
|
|
3898
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
|
|
3899
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3900
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3901
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3902
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3903
|
+
let baseOptions;
|
|
3904
|
+
if (configuration) {
|
|
3905
|
+
baseOptions = configuration.baseOptions;
|
|
3906
|
+
}
|
|
3907
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3908
|
+
const localVarHeaderParameter = {};
|
|
3909
|
+
const localVarQueryParameter = {};
|
|
3910
|
+
// authentication apiToken required
|
|
3911
|
+
// http bearer authentication required
|
|
3912
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3913
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3914
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3915
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3916
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3917
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, localVarRequestOptions, configuration);
|
|
3918
|
+
return {
|
|
3919
|
+
url: toPathString(localVarUrlObj),
|
|
3920
|
+
options: localVarRequestOptions,
|
|
3921
|
+
};
|
|
3922
|
+
}),
|
|
3882
3923
|
/**
|
|
3883
3924
|
* 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.
|
|
3884
3925
|
* @summary Create account database
|
|
@@ -3916,6 +3957,48 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
3916
3957
|
options: localVarRequestOptions,
|
|
3917
3958
|
};
|
|
3918
3959
|
}),
|
|
3960
|
+
/**
|
|
3961
|
+
* 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.
|
|
3962
|
+
* @summary Delete account database remote connection
|
|
3963
|
+
* @param {string} username
|
|
3964
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
3965
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
3966
|
+
* @param {*} [options] Override http request option.
|
|
3967
|
+
* @throws {RequiredError}
|
|
3968
|
+
*/
|
|
3969
|
+
deleteAccountDatabaseRemoteConnectionV1: (username_1, name_1, ip_1, ...args_1) => __awaiter(this, [username_1, name_1, ip_1, ...args_1], void 0, function* (username, name, ip, options = {}) {
|
|
3970
|
+
// verify required parameter 'username' is not null or undefined
|
|
3971
|
+
assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'username', username);
|
|
3972
|
+
// verify required parameter 'name' is not null or undefined
|
|
3973
|
+
assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'name', name);
|
|
3974
|
+
// verify required parameter 'ip' is not null or undefined
|
|
3975
|
+
assertParamExists('deleteAccountDatabaseRemoteConnectionV1', 'ip', ip);
|
|
3976
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
|
|
3977
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
3978
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
3979
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3980
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3981
|
+
let baseOptions;
|
|
3982
|
+
if (configuration) {
|
|
3983
|
+
baseOptions = configuration.baseOptions;
|
|
3984
|
+
}
|
|
3985
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3986
|
+
const localVarHeaderParameter = {};
|
|
3987
|
+
const localVarQueryParameter = {};
|
|
3988
|
+
// authentication apiToken required
|
|
3989
|
+
// http bearer authentication required
|
|
3990
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3991
|
+
if (ip !== undefined) {
|
|
3992
|
+
localVarQueryParameter['ip'] = ip;
|
|
3993
|
+
}
|
|
3994
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3995
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3996
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3997
|
+
return {
|
|
3998
|
+
url: toPathString(localVarUrlObj),
|
|
3999
|
+
options: localVarRequestOptions,
|
|
4000
|
+
};
|
|
4001
|
+
}),
|
|
3919
4002
|
/**
|
|
3920
4003
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
3921
4004
|
* @summary Delete account database
|
|
@@ -3988,6 +4071,42 @@ export const HostingDatabasesApiAxiosParamCreator = function (configuration) {
|
|
|
3988
4071
|
options: localVarRequestOptions,
|
|
3989
4072
|
};
|
|
3990
4073
|
}),
|
|
4074
|
+
/**
|
|
4075
|
+
* 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.
|
|
4076
|
+
* @summary List account database remote connections
|
|
4077
|
+
* @param {string} username
|
|
4078
|
+
* @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.
|
|
4079
|
+
* @param {*} [options] Override http request option.
|
|
4080
|
+
* @throws {RequiredError}
|
|
4081
|
+
*/
|
|
4082
|
+
listAccountDatabaseRemoteConnectionsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
4083
|
+
// verify required parameter 'username' is not null or undefined
|
|
4084
|
+
assertParamExists('listAccountDatabaseRemoteConnectionsV1', 'username', username);
|
|
4085
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/databases/remote-connections`
|
|
4086
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
4087
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4088
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4089
|
+
let baseOptions;
|
|
4090
|
+
if (configuration) {
|
|
4091
|
+
baseOptions = configuration.baseOptions;
|
|
4092
|
+
}
|
|
4093
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4094
|
+
const localVarHeaderParameter = {};
|
|
4095
|
+
const localVarQueryParameter = {};
|
|
4096
|
+
// authentication apiToken required
|
|
4097
|
+
// http bearer authentication required
|
|
4098
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4099
|
+
if (domain !== undefined) {
|
|
4100
|
+
localVarQueryParameter['domain'] = domain;
|
|
4101
|
+
}
|
|
4102
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4104
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4105
|
+
return {
|
|
4106
|
+
url: toPathString(localVarUrlObj),
|
|
4107
|
+
options: localVarRequestOptions,
|
|
4108
|
+
};
|
|
4109
|
+
}),
|
|
3991
4110
|
/**
|
|
3992
4111
|
* 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.
|
|
3993
4112
|
* @summary List account databases
|
|
@@ -4102,6 +4221,23 @@ export const HostingDatabasesApiFp = function (configuration) {
|
|
|
4102
4221
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4103
4222
|
});
|
|
4104
4223
|
},
|
|
4224
|
+
/**
|
|
4225
|
+
* 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.
|
|
4226
|
+
* @summary Create account database remote connection
|
|
4227
|
+
* @param {string} username
|
|
4228
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
4229
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
4230
|
+
* @param {*} [options] Override http request option.
|
|
4231
|
+
* @throws {RequiredError}
|
|
4232
|
+
*/
|
|
4233
|
+
createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
|
|
4234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4235
|
+
var _a, _b;
|
|
4236
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options);
|
|
4237
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.createAccountDatabaseRemoteConnectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4238
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4239
|
+
});
|
|
4240
|
+
},
|
|
4105
4241
|
/**
|
|
4106
4242
|
* 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.
|
|
4107
4243
|
* @summary Create account database
|
|
@@ -4118,6 +4254,23 @@ export const HostingDatabasesApiFp = function (configuration) {
|
|
|
4118
4254
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4119
4255
|
});
|
|
4120
4256
|
},
|
|
4257
|
+
/**
|
|
4258
|
+
* 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.
|
|
4259
|
+
* @summary Delete account database remote connection
|
|
4260
|
+
* @param {string} username
|
|
4261
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
4262
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
4263
|
+
* @param {*} [options] Override http request option.
|
|
4264
|
+
* @throws {RequiredError}
|
|
4265
|
+
*/
|
|
4266
|
+
deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options) {
|
|
4267
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4268
|
+
var _a, _b;
|
|
4269
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options);
|
|
4270
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.deleteAccountDatabaseRemoteConnectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4271
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4272
|
+
});
|
|
4273
|
+
},
|
|
4121
4274
|
/**
|
|
4122
4275
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
4123
4276
|
* @summary Delete account database
|
|
@@ -4150,6 +4303,22 @@ export const HostingDatabasesApiFp = function (configuration) {
|
|
|
4150
4303
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4151
4304
|
});
|
|
4152
4305
|
},
|
|
4306
|
+
/**
|
|
4307
|
+
* 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.
|
|
4308
|
+
* @summary List account database remote connections
|
|
4309
|
+
* @param {string} username
|
|
4310
|
+
* @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.
|
|
4311
|
+
* @param {*} [options] Override http request option.
|
|
4312
|
+
* @throws {RequiredError}
|
|
4313
|
+
*/
|
|
4314
|
+
listAccountDatabaseRemoteConnectionsV1(username, domain, options) {
|
|
4315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4316
|
+
var _a, _b;
|
|
4317
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountDatabaseRemoteConnectionsV1(username, domain, options);
|
|
4318
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingDatabasesApi.listAccountDatabaseRemoteConnectionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
4319
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4320
|
+
});
|
|
4321
|
+
},
|
|
4153
4322
|
/**
|
|
4154
4323
|
* 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.
|
|
4155
4324
|
* @summary List account databases
|
|
@@ -4207,6 +4376,18 @@ export const HostingDatabasesApiFactory = function (configuration, basePath, axi
|
|
|
4207
4376
|
changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
|
|
4208
4377
|
return localVarFp.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(axios, basePath));
|
|
4209
4378
|
},
|
|
4379
|
+
/**
|
|
4380
|
+
* 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.
|
|
4381
|
+
* @summary Create account database remote connection
|
|
4382
|
+
* @param {string} username
|
|
4383
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
4384
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
4385
|
+
* @param {*} [options] Override http request option.
|
|
4386
|
+
* @throws {RequiredError}
|
|
4387
|
+
*/
|
|
4388
|
+
createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
|
|
4389
|
+
return localVarFp.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(axios, basePath));
|
|
4390
|
+
},
|
|
4210
4391
|
/**
|
|
4211
4392
|
* 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.
|
|
4212
4393
|
* @summary Create account database
|
|
@@ -4218,6 +4399,18 @@ export const HostingDatabasesApiFactory = function (configuration, basePath, axi
|
|
|
4218
4399
|
createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
|
|
4219
4400
|
return localVarFp.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
4220
4401
|
},
|
|
4402
|
+
/**
|
|
4403
|
+
* 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.
|
|
4404
|
+
* @summary Delete account database remote connection
|
|
4405
|
+
* @param {string} username
|
|
4406
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
4407
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
4408
|
+
* @param {*} [options] Override http request option.
|
|
4409
|
+
* @throws {RequiredError}
|
|
4410
|
+
*/
|
|
4411
|
+
deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options) {
|
|
4412
|
+
return localVarFp.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options).then((request) => request(axios, basePath));
|
|
4413
|
+
},
|
|
4221
4414
|
/**
|
|
4222
4415
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
4223
4416
|
* @summary Delete account database
|
|
@@ -4240,6 +4433,17 @@ export const HostingDatabasesApiFactory = function (configuration, basePath, axi
|
|
|
4240
4433
|
getPhpMyAdminLinkV1(username, name, options) {
|
|
4241
4434
|
return localVarFp.getPhpMyAdminLinkV1(username, name, options).then((request) => request(axios, basePath));
|
|
4242
4435
|
},
|
|
4436
|
+
/**
|
|
4437
|
+
* 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.
|
|
4438
|
+
* @summary List account database remote connections
|
|
4439
|
+
* @param {string} username
|
|
4440
|
+
* @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.
|
|
4441
|
+
* @param {*} [options] Override http request option.
|
|
4442
|
+
* @throws {RequiredError}
|
|
4443
|
+
*/
|
|
4444
|
+
listAccountDatabaseRemoteConnectionsV1(username, domain, options) {
|
|
4445
|
+
return localVarFp.listAccountDatabaseRemoteConnectionsV1(username, domain, options).then((request) => request(axios, basePath));
|
|
4446
|
+
},
|
|
4243
4447
|
/**
|
|
4244
4448
|
* 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.
|
|
4245
4449
|
* @summary List account databases
|
|
@@ -4288,6 +4492,19 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
4288
4492
|
changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
|
|
4289
4493
|
return HostingDatabasesApiFp(this.configuration).changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4290
4494
|
}
|
|
4495
|
+
/**
|
|
4496
|
+
* 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.
|
|
4497
|
+
* @summary Create account database remote connection
|
|
4498
|
+
* @param {string} username
|
|
4499
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
4500
|
+
* @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
|
|
4501
|
+
* @param {*} [options] Override http request option.
|
|
4502
|
+
* @throws {RequiredError}
|
|
4503
|
+
* @memberof HostingDatabasesApi
|
|
4504
|
+
*/
|
|
4505
|
+
createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
|
|
4506
|
+
return HostingDatabasesApiFp(this.configuration).createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4507
|
+
}
|
|
4291
4508
|
/**
|
|
4292
4509
|
* 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.
|
|
4293
4510
|
* @summary Create account database
|
|
@@ -4300,6 +4517,19 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
4300
4517
|
createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
|
|
4301
4518
|
return HostingDatabasesApiFp(this.configuration).createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4302
4519
|
}
|
|
4520
|
+
/**
|
|
4521
|
+
* 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.
|
|
4522
|
+
* @summary Delete account database remote connection
|
|
4523
|
+
* @param {string} username
|
|
4524
|
+
* @param {string} name Full database name as returned by the list databases endpoint.
|
|
4525
|
+
* @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
|
|
4526
|
+
* @param {*} [options] Override http request option.
|
|
4527
|
+
* @throws {RequiredError}
|
|
4528
|
+
* @memberof HostingDatabasesApi
|
|
4529
|
+
*/
|
|
4530
|
+
deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options) {
|
|
4531
|
+
return HostingDatabasesApiFp(this.configuration).deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options).then((request) => request(this.axios, this.basePath));
|
|
4532
|
+
}
|
|
4303
4533
|
/**
|
|
4304
4534
|
* Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
|
|
4305
4535
|
* @summary Delete account database
|
|
@@ -4324,6 +4554,18 @@ export class HostingDatabasesApi extends BaseAPI {
|
|
|
4324
4554
|
getPhpMyAdminLinkV1(username, name, options) {
|
|
4325
4555
|
return HostingDatabasesApiFp(this.configuration).getPhpMyAdminLinkV1(username, name, options).then((request) => request(this.axios, this.basePath));
|
|
4326
4556
|
}
|
|
4557
|
+
/**
|
|
4558
|
+
* 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.
|
|
4559
|
+
* @summary List account database remote connections
|
|
4560
|
+
* @param {string} username
|
|
4561
|
+
* @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.
|
|
4562
|
+
* @param {*} [options] Override http request option.
|
|
4563
|
+
* @throws {RequiredError}
|
|
4564
|
+
* @memberof HostingDatabasesApi
|
|
4565
|
+
*/
|
|
4566
|
+
listAccountDatabaseRemoteConnectionsV1(username, domain, options) {
|
|
4567
|
+
return HostingDatabasesApiFp(this.configuration).listAccountDatabaseRemoteConnectionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
4568
|
+
}
|
|
4327
4569
|
/**
|
|
4328
4570
|
* 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.
|
|
4329
4571
|
* @summary List account databases
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.20.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: 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/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 0.
|
|
4
|
+
* API Version: 0.20.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
|