Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Latest commit

 

History

History
116 lines (80 loc) · 3.5 KB

File metadata and controls

116 lines (80 loc) · 3.5 KB

QoveryApi.DatabaseApplicationApi

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

listDatabaseApplication

ApplicationResponseList listDatabaseApplication(databaseId)

List applications using the database

Example

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);
  }
});

Parameters

Name Type Description Notes
databaseId String Database ID

Return type

ApplicationResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

removeApplicationFromDatabase

removeApplicationFromDatabase(databaseId, targetApplicationId)

Remove an application from this database

Example

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.');
  }
});

Parameters

Name Type Description Notes
databaseId String Database ID
targetApplicationId String Target application ID

Return type

null (empty response body)

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined