You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*HostingDatabasesApi* | [**get_php_my_admin_link_v1**](docs/HostingDatabasesApi.md#get_php_my_admin_link_v1) | **GET** /api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link | Get phpMyAdmin link
*HostingDatacentersApi* | [**list_available_datacenters_v1**](docs/HostingDatacentersApi.md#list_available_datacenters_v1) | **GET** /api/hosting/v1/datacenters | List available datacenters
[**get_php_my_admin_link_v1**](HostingDatabasesApi.md#get_php_my_admin_link_v1) | **GET** /api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link | Get phpMyAdmin link
13
+
[**list_account_database_remote_connections_v1**](HostingDatabasesApi.md#list_account_database_remote_connections_v1) | **GET** /api/hosting/v1/accounts/{username}/databases/remote-connections | List account database remote connections
11
14
[**list_account_databases_v1**](HostingDatabasesApi.md#list_account_databases_v1) | **GET** /api/hosting/v1/accounts/{username}/databases | List account databases
@@ -91,6 +94,85 @@ Name | Type | Description | Notes
91
94
92
95
[[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)
Allows a remote host to connect to the specified database.
103
+
104
+
Provide an IPv4/IPv6 address, or "%" to allow any host. The database name must be
105
+
the full name returned by the list databases endpoint.
106
+
107
+
### Example
108
+
109
+
* Bearer Authentication (apiToken):
110
+
111
+
```python
112
+
import hostinger_api
113
+
from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
114
+
from hostinger_api.models.hosting_v1_databases_remote_connections_create_remote_connection_request import HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
115
+
from hostinger_api.rest import ApiException
116
+
from pprint import pprint
117
+
118
+
119
+
# Configure Bearer authorization: apiToken
120
+
configuration = hostinger_api.Configuration(
121
+
access_token= os.environ["BEARER_TOKEN"]
122
+
)
123
+
124
+
# Enter a context with an instance of the API client
125
+
with hostinger_api.ApiClient(configuration) as api_client:
[[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)
@@ -167,6 +249,84 @@ Name | Type | Description | Notes
167
249
168
250
[[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)
[[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)
@@ -316,6 +476,81 @@ Name | Type | Description | Notes
316
476
317
477
[[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)
Returns the remote-access rules for the specified account: the remote hosts
485
+
(IPv4/IPv6 addresses, or "%" for any host) allowed to connect to the account databases.
486
+
487
+
Use the domain filter to only return rules for databases assigned to a specific domain.
488
+
489
+
### Example
490
+
491
+
* Bearer Authentication (apiToken):
492
+
493
+
```python
494
+
import hostinger_api
495
+
from hostinger_api.models.hosting_v1_databases_remote_connections_remote_connection_resource import HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
496
+
from hostinger_api.rest import ApiException
497
+
from pprint import pprint
498
+
499
+
500
+
# Configure Bearer authorization: apiToken
501
+
configuration = hostinger_api.Configuration(
502
+
access_token= os.environ["BEARER_TOKEN"]
503
+
)
504
+
505
+
# Enter a context with an instance of the API client
506
+
with hostinger_api.ApiClient(configuration) as api_client:
domain ='example.com'# str | Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included. (optional)
**domain** | **str**| Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included. | [optional]
[[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)
**ip** | **str** | Remote host to allow: an IPv4/IPv6 address, or \"%\" for any host. |
9
+
10
+
## Example
11
+
12
+
```python
13
+
from hostinger_api.models.hosting_v1_databases_remote_connections_create_remote_connection_request import HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
14
+
15
+
#TODO update the JSON string below
16
+
json ="{}"
17
+
# create an instance of HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest from a JSON string
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
**database_name** | **str** | Full name of the database the rule applies to. | [optional]
9
+
**database_user** | **str** | Database user the rule applies to. | [optional]
10
+
**ip** | **str** | Allowed remote host: an IPv4/IPv6 address, or \"%\" for any host. | [optional]
11
+
12
+
## Example
13
+
14
+
```python
15
+
from hostinger_api.models.hosting_v1_databases_remote_connections_remote_connection_resource import HostingV1DatabasesRemoteConnectionsRemoteConnectionResource
16
+
17
+
#TODO update the JSON string below
18
+
json ="{}"
19
+
# create an instance of HostingV1DatabasesRemoteConnectionsRemoteConnectionResource from a JSON string
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
0 commit comments