All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| createJobEnvironmentVariable | POST /job/{jobId}/environmentVariable | Add an environment variable to the job |
| createJobEnvironmentVariableAlias | POST /job/{jobId}/environmentVariable/{environmentVariableId}/alias | Create an environment variable alias at the job level |
| createJobEnvironmentVariableOverride | POST /job/{jobId}/environmentVariable/{environmentVariableId}/override | Create an environment variable override at the job level |
| deleteJobEnvironmentVariable | DELETE /job/{jobId}/environmentVariable/{environmentVariableId} | Delete an environment variable from a job |
| editJobEnvironmentVariable | PUT /job/{jobId}/environmentVariable/{environmentVariableId} | Edit an environment variable belonging to the job |
| importJobEnvironmentVariable | POST /job/{jobId}/environmentVariable/import | Import variables |
| listJobEnvironmentVariable | GET /job/{jobId}/environmentVariable | List environment variables |
EnvironmentVariable createJobEnvironmentVariable(jobId, opts)
Add an environment variable to the job
- Add an environment variable to the job.
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.JobEnvironmentVariableApi();
let jobId = "jobId_example"; // String | Job ID
let opts = {
'environmentVariableRequest': new QoveryApi.EnvironmentVariableRequest() // EnvironmentVariableRequest |
};
apiInstance.createJobEnvironmentVariable(jobId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| jobId | String | Job ID | |
| environmentVariableRequest | EnvironmentVariableRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
EnvironmentVariable createJobEnvironmentVariableAlias(jobId, environmentVariableId, opts)
Create an environment variable alias at the job level
- Allows you to add an alias at job level on an existing environment variable 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 environment variable at job level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the "aliased_variable" field of the newly created variable - 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.JobEnvironmentVariableApi();
let jobId = "jobId_example"; // String | Job ID
let environmentVariableId = "environmentVariableId_example"; // String | Environment Variable ID
let opts = {
'key': new QoveryApi.Key() // Key |
};
apiInstance.createJobEnvironmentVariableAlias(jobId, environmentVariableId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| jobId | String | Job ID | |
| environmentVariableId | String | Environment Variable ID | |
| key | Key | [optional] |
- Content-Type: application/json
- Accept: application/json
EnvironmentVariable createJobEnvironmentVariableOverride(jobId, environmentVariableId, opts)
Create an environment variable override at the job level
- Allows you to override at job level an environment variable that has a higher scope. - You only have to specify a value in the request body - The system will create a new environment variable at job level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the "overridden_variable" field of the newly created variable
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.JobEnvironmentVariableApi();
let jobId = "jobId_example"; // String | Job ID
let environmentVariableId = "environmentVariableId_example"; // String | Environment Variable ID
let opts = {
'value': new QoveryApi.Value() // Value |
};
apiInstance.createJobEnvironmentVariableOverride(jobId, environmentVariableId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| jobId | String | Job ID | |
| environmentVariableId | String | Environment Variable ID | |
| value | Value | [optional] |
- Content-Type: application/json
- Accept: application/json
deleteJobEnvironmentVariable(jobId, environmentVariableId)
Delete an environment variable from a job
- To delete an environment variable from an job you must have the project user permission - You can't delete a BUILT_IN variable - If you delete a variable 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.JobEnvironmentVariableApi();
let jobId = "jobId_example"; // String | Job ID
let environmentVariableId = "environmentVariableId_example"; // String | Environment Variable ID
apiInstance.deleteJobEnvironmentVariable(jobId, environmentVariableId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| jobId | String | Job ID | |
| environmentVariableId | String | Environment Variable ID |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
EnvironmentVariable editJobEnvironmentVariable(jobId, environmentVariableId, environmentVariableEditRequest)
Edit an environment variable belonging to the job
- You can't edit a BUILT_IN variable - 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 variable it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
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.JobEnvironmentVariableApi();
let jobId = "jobId_example"; // String | Job ID
let environmentVariableId = "environmentVariableId_example"; // String | Environment Variable ID
let environmentVariableEditRequest = new QoveryApi.EnvironmentVariableEditRequest(); // EnvironmentVariableEditRequest |
apiInstance.editJobEnvironmentVariable(jobId, environmentVariableId, environmentVariableEditRequest, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| jobId | String | Job ID | |
| environmentVariableId | String | Environment Variable ID | |
| environmentVariableEditRequest | EnvironmentVariableEditRequest |
- Content-Type: application/json
- Accept: application/json
VariableImport importJobEnvironmentVariable(jobId, opts)
Import variables
Import environment variables in a defined scope, with a defined visibility.
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.JobEnvironmentVariableApi();
let jobId = "jobId_example"; // String | Job ID
let opts = {
'variableImportRequest': new QoveryApi.VariableImportRequest() // VariableImportRequest |
};
apiInstance.importJobEnvironmentVariable(jobId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| jobId | String | Job ID | |
| variableImportRequest | VariableImportRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
EnvironmentVariableResponseList listJobEnvironmentVariable(jobId)
List environment variables
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.JobEnvironmentVariableApi();
let jobId = "jobId_example"; // String | Job ID
apiInstance.listJobEnvironmentVariable(jobId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| jobId | String | Job ID |
EnvironmentVariableResponseList
- Content-Type: Not defined
- Accept: application/json