All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| deleteEnvironment | DELETE /environment/{environmentId} | Delete an environment |
| editEnvironment | PUT /environment/{environmentId} | Edit an environment |
| getEnvironment | GET /environment/{environmentId} | Get environment by ID |
| getEnvironmentStatus | GET /environment/{environmentId}/status | Get environment status |
| getEnvironmentStatuses | GET /environment/{environmentId}/statuses | Get environment statuses with services status |
| getEnvironmentStatusesWithStages | GET /environment/{environmentId}/statusesWithStages | Get environment statuses with stages |
deleteEnvironment(environmentId)
Delete an environment
To delete an environment you must have the admin permission
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.EnvironmentMainCallsApi();
let environmentId = "environmentId_example"; // String | Environment ID
apiInstance.deleteEnvironment(environmentId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| environmentId | String | Environment ID |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Environment editEnvironment(environmentId, opts)
Edit an environment
To edit an environment you must have the admin permission
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.EnvironmentMainCallsApi();
let environmentId = "environmentId_example"; // String | Environment ID
let opts = {
'environmentEditRequest': new QoveryApi.EnvironmentEditRequest() // EnvironmentEditRequest |
};
apiInstance.editEnvironment(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 | |
| environmentEditRequest | EnvironmentEditRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Environment getEnvironment(environmentId)
Get environment by 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.EnvironmentMainCallsApi();
let environmentId = "environmentId_example"; // String | Environment ID
apiInstance.getEnvironment(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 |
- Content-Type: Not defined
- Accept: application/json
EnvironmentStatus getEnvironmentStatus(environmentId)
Get environment 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.EnvironmentMainCallsApi();
let environmentId = "environmentId_example"; // String | Environment ID
apiInstance.getEnvironmentStatus(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 |
- Content-Type: Not defined
- Accept: application/json
EnvironmentStatuses getEnvironmentStatuses(environmentId)
Get environment statuses with services 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.EnvironmentMainCallsApi();
let environmentId = "environmentId_example"; // String | Environment ID
apiInstance.getEnvironmentStatuses(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 |
- Content-Type: Not defined
- Accept: application/json
EnvironmentStatusesWithStages getEnvironmentStatusesWithStages(environmentId)
Get environment statuses with stages
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.EnvironmentMainCallsApi();
let environmentId = "environmentId_example"; // String | Environment ID
apiInstance.getEnvironmentStatusesWithStages(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 |
- Content-Type: Not defined
- Accept: application/json