All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| createApplicationSecret | POST /application/{applicationId}/secret | Add a secret to the application |
| createApplicationSecretAlias | POST /application/{applicationId}/secret/{secretId}/alias | Create a secret alias at the application level |
| createApplicationSecretOverride | POST /application/{applicationId}/secret/{secretId}/override | Create a secret override at the application level |
| deleteApplicationSecret | DELETE /application/{applicationId}/secret/{secretId} | Delete a secret from an application |
| editApplicationSecret | PUT /application/{applicationId}/secret/{secretId} | Edit a secret belonging to the application |
| listApplicationSecrets | GET /application/{applicationId}/secret | List application secrets |
Secret createApplicationSecret(applicationId, opts)
Add a secret to the application
- Add a secret to the application.
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.ApplicationSecretApi();
let applicationId = "applicationId_example"; // String | Application ID
let opts = {
'secretRequest': new QoveryApi.SecretRequest() // SecretRequest |
};
apiInstance.createApplicationSecret(applicationId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| applicationId | String | Application ID | |
| secretRequest | SecretRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Secret createApplicationSecretAlias(applicationId, secretId, opts)
Create a secret alias at the application level
- Allows you to add an alias at application level on an existing secret having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new secret at application level with the same value as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the aliased_secret will be exposed in the "aliased_secret" field of the newly created secret - You can't create an alias on an alias
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.ApplicationSecretApi();
let applicationId = "applicationId_example"; // String | Application ID
let secretId = "secretId_example"; // String | Secret ID
let opts = {
'key': new QoveryApi.Key() // Key |
};
apiInstance.createApplicationSecretAlias(applicationId, secretId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| applicationId | String | Application ID | |
| secretId | String | Secret ID | |
| key | Key | [optional] |
- Content-Type: application/json
- Accept: application/json
Secret createApplicationSecretOverride(applicationId, secretId, opts)
Create a secret override at the application level
- Allows you to override at application level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at application level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the "overridden_secret" field of the newly created secret
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.ApplicationSecretApi();
let applicationId = "applicationId_example"; // String | Application ID
let secretId = "secretId_example"; // String | Secret ID
let opts = {
'value': new QoveryApi.Value() // Value |
};
apiInstance.createApplicationSecretOverride(applicationId, secretId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| applicationId | String | Application ID | |
| secretId | String | Secret ID | |
| value | Value | [optional] |
- Content-Type: application/json
- Accept: application/json
deleteApplicationSecret(applicationId, secretId)
Delete a secret from an application
- To delete a secret you must have the project user permission - You can't delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
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.ApplicationSecretApi();
let applicationId = "applicationId_example"; // String | Application ID
let secretId = "secretId_example"; // String | Secret ID
apiInstance.deleteApplicationSecret(applicationId, secretId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| applicationId | String | Application ID | |
| secretId | String | Secret ID |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Secret editApplicationSecret(applicationId, secretId, secretEditRequest)
Edit a secret belonging to the application
- You can't edit a BUILT_IN secret - For an override, you can't edit the key - For an alias, you can't edit the value - An override can only have a scope lower to the secret it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > APPLICATION)
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.ApplicationSecretApi();
let applicationId = "applicationId_example"; // String | Application ID
let secretId = "secretId_example"; // String | Secret ID
let secretEditRequest = new QoveryApi.SecretEditRequest(); // SecretEditRequest |
apiInstance.editApplicationSecret(applicationId, secretId, secretEditRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| applicationId | String | Application ID | |
| secretId | String | Secret ID | |
| secretEditRequest | SecretEditRequest |
- Content-Type: application/json
- Accept: application/json
SecretResponseList listApplicationSecrets(applicationId)
List application secrets
Secrets are like environment variables, but they are secured and can't be revealed.
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.ApplicationSecretApi();
let applicationId = "applicationId_example"; // String | Application ID
apiInstance.listApplicationSecrets(applicationId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| applicationId | String | Application ID |
- Content-Type: Not defined
- Accept: application/json