All URIs are relative to https://api.qovery.com
| Method | HTTP request | Description |
|---|---|---|
| createProject | POST /organization/{organizationId}/project | Create a project |
| getOrganizationProjectStats | GET /organization/{organizationId}/project/stats | List total number of services and environments for each project of the organization |
| listProject | GET /organization/{organizationId}/project | List projects |
Project createProject(organizationId, opts)
Create a project
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.ProjectsApi();
let organizationId = "organizationId_example"; // String | Organization ID
let opts = {
'projectRequest': new QoveryApi.ProjectRequest() // ProjectRequest |
};
apiInstance.createProject(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 | |
| projectRequest | ProjectRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
ProjectStatsResponseList getOrganizationProjectStats(organizationId)
List total number of services and environments for each project of the organization
Returns a list of project ids, and for each its total numberof services and environments
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.ProjectsApi();
let organizationId = "organizationId_example"; // String | Organization ID
apiInstance.getOrganizationProjectStats(organizationId, (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 |
- Content-Type: Not defined
- Accept: application/json
ProjectResponseList listProject(organizationId)
List projects
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.ProjectsApi();
let organizationId = "organizationId_example"; // String | Organization ID
apiInstance.listProject(organizationId, (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 |
- Content-Type: Not defined
- Accept: application/json