All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| listDatabaseApplication | GET /database/{databaseId}/application | List applications using the database |
| removeApplicationFromDatabase | DELETE /database/{databaseId}/application/{targetApplicationId} | Remove an application from this database |
ApplicationResponseList listDatabaseApplication(databaseId)
List applications using the database
import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new QoveryApi.DatabaseApplicationApi();
let databaseId = "databaseId_example"; // String | Database ID
apiInstance.listDatabaseApplication(databaseId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| databaseId | String | Database ID |
- Content-Type: Not defined
- Accept: application/json
removeApplicationFromDatabase(databaseId, targetApplicationId)
Remove an application from this database
import QoveryApi from 'qovery_api';
let defaultClient = QoveryApi.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new QoveryApi.DatabaseApplicationApi();
let databaseId = "databaseId_example"; // String | Database ID
let targetApplicationId = "targetApplicationId_example"; // String | Target application ID
apiInstance.removeApplicationFromDatabase(databaseId, targetApplicationId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| databaseId | String | Database ID | |
| targetApplicationId | String | Target application ID |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined