All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| autoDeployJobEnvironments | POST /organization/{organizationId}/job/deploy | Auto deploy jobs |
| cloneJob | POST /job/{jobId}/clone | Clone job |
| createJob | POST /environment/{environmentId}/job | Create a job |
| getDefaultJobAdvancedSettings | GET /defaultJobAdvancedSettings | List default job advanced settings |
| getEnvironmentJobStatus | GET /environment/{environmentId}/job/status | List all environment job statuses |
| listJobs | GET /environment/{environmentId}/job | List jobs |
Status autoDeployJobEnvironments(organizationId, opts)
Auto deploy jobs
Triggers a new job deploy in each environment matching the following conditions - environment should have the auto-deploy enabled - the job should have the same image name and a different tag
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.JobsApi();
let organizationId = "organizationId_example"; // String | Organization ID
let opts = {
'organizationJobAutoDeployRequest': new QoveryApi.OrganizationJobAutoDeployRequest() // OrganizationJobAutoDeployRequest |
};
apiInstance.autoDeployJobEnvironments(organizationId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | String | Organization ID | |
| organizationJobAutoDeployRequest | OrganizationJobAutoDeployRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
JobResponse cloneJob(jobId, opts)
Clone job
This will create a new job with the same configuration on the targeted environment Id.
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.JobsApi();
let jobId = "jobId_example"; // String | Job ID
let opts = {
'cloneServiceRequest': new QoveryApi.CloneServiceRequest() // CloneServiceRequest |
};
apiInstance.cloneJob(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 | |
| cloneServiceRequest | CloneServiceRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
JobResponse createJob(environmentId, opts)
Create a 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.JobsApi();
let environmentId = "environmentId_example"; // String | Environment ID
let opts = {
'jobRequest': new QoveryApi.JobRequest() // JobRequest |
};
apiInstance.createJob(environmentId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| environmentId | String | Environment ID | |
| jobRequest | JobRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
JobAdvancedSettings getDefaultJobAdvancedSettings()
List default job advanced settings
Default values for each setting is available in our documentation
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.JobsApi();
apiInstance.getDefaultJobAdvancedSettings((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ReferenceObjectStatusResponseList getEnvironmentJobStatus(environmentId)
List all environment job statuses
Returns a list of jobs with only their id and status.
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.JobsApi();
let environmentId = "environmentId_example"; // String | Environment ID
apiInstance.getEnvironmentJobStatus(environmentId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| environmentId | String | Environment ID |
ReferenceObjectStatusResponseList
- Content-Type: Not defined
- Accept: application/json
JobResponseList listJobs(environmentId, opts)
List jobs
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.JobsApi();
let environmentId = "environmentId_example"; // String | Environment ID
let opts = {
'toUpdate': false // Boolean | return (or not) results that must be updated
};
apiInstance.listJobs(environmentId, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| environmentId | String | Environment ID | |
| toUpdate | Boolean | return (or not) results that must be updated | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json