Download OpenAPI specification:Download
Devopness API - Painless essential DevOps to everyone
This page contains the documentation on how to use devopness through API calls.
Note: This documentation is not complete, so for missing parts or inaccurate API description please reach out to the
devopnessAPI team on our GitHub open source repository.
devopness's API exposes all devopness features via a standardized programmatic interface. Through devopness API a registered Devopness user can perform every operation you can do on https://www.devopness.com web interfaces and mobile apps.
To start using the devopness API you will need an API Token. Go to the API Tokens section to learn about the different types of tokens and how to generate them.
The devopness API is based on HTTPS requests and JSON responses, organized around REST. Our API has predictable resource-oriented URLs, accepts requests with JSON-encoded bodies with arguments, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.
All dates in the API use UTC and are strings in the ISO 8601 "combined date and time representation" format:
2015-05-12T15:50:38.000000Z
The devopness API uses standard HTTP status codes to indicate the success or failure of an API call. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted). Codes in the 5xx range indicate an error on the API servers and are very rare.
The body of the error response is a JSON in the following format:
{
"message": "The given request data was invalid"
"errors": { // Optional errors object, returned only when there are detailed error message to be shared
"field_1": [
"Optional error message related to field_1"
],
"field_2": [
"Optional error message related to field_2"
],
}
}
A route is a URI which can be mapped to different HTTP methods. The mapping of an individual HTTP method to a route is known as an endpoint. devopness API exposes, as much as possible, well standardized endpoints with resources and segments leading the path to access the desired resource data.
Each resource mentioned in an endpoint segment has its name written in the plural form, as we are always referencing a collection of objects, that might or might not be filtered by a single ID or extra query string parameters.
Basically there are two types of endpoints used in devopness API:
Pattern:
/collection/{resource_id}/[{action}]
Examples:
| HTTP Method | Example | Purpose |
|---|---|---|
| POST | /projects | Create new item |
| GET | /social-accounts | List all items |
| GET | /social-accounts/{account}/status | Perform a custom action (status) for a single item |
| GET | /cron-jobs/{id} | Get a single item by id |
| PUT | /applications/{id} | Modify an item |
| DELETE | /daemons/{id} | Remove an item permanently |
Nested resources are used when there is a clear hierarchy between the parent resource and the subresource, or for convenience, to make it easy and predictable to filter subresources belonging to a parent resource.
In devopness API design we strive to avoid nesting resources more than 1 level deep + one action related to the child resource or to the relationship between parent and child.
Pattern:
/parent-collection/{parent_id}/{child-collection}/{child_id}/[{action}]
Examples:
| HTTP Method | Example | Purpose |
|---|---|---|
| GET | /projects/{id}/servers | List all items belonging/linked to the parent resource |
| POST | /projects/{id}/servers | Create a new subresource item and link it to the parent object |
| POST | /parent/{id}/child/{id}/link | Create a relationship between parent and child object when both items already existed but were not linked. |
| DELETE | /parent/{id}/child/{id}/unlink | Remove the relationship between parent and child resources, without deleting any item |
When a request is successful, a response body will typically be sent back in the form of a JSON object. Exception to this rule is when a DELETE request is processed, which will result in a successful HTTP 204 status and an empty response body.
Response codes indicate success or failure of request processing.
Status codes from the 2xx range indicate that request has been accepted.
If the returned code is from the 4xx or 5xx range then it reveals either problem with the request or inability to process data.
See below for a list of HTTP Status codes used by devopness API:
| Status Code | Description |
|---|---|
| 200 | Ok - The request was successful |
| 201 | Created - The request was successful and a new resource has been created as a result |
| 202 | Accepted - The request has been received but not yet completely processed |
| 204 | No content - The request was successful. There is no content to return, but the headers may be useful |
| 400 | Bad Request - The server could not understand the request due to invalid syntax |
| 401 | Unauthenticated - It is usally caused by using wrong or expired credentials |
| 402 | Payment Required - Usage limit has been reached on the project's subscription. Ask project owner to upgrade subscription plan |
| 403 | Forbidden/Unauthorized - The used credentials do not allow access to the resource |
| 404 | Not Found - The server cannot find the requested resource |
| 405 | Method not allowed - The request method has been disabled and cannot be used |
| 409 | Conflict - The current request conflicts with the current state of the server |
| 415 | Unsupported Media Type - The request's Content-Type or Accept headers are not set to a valid format |
| 422 | Unprocessable Entity - The request was unable to be processed due to validation errors |
| 429 | Too many requests - Requests rate limit reached by the client application in a period of time |
| 500 | Internal Server Error. Please contact the devopness team |
Requests that return multiple items are paginated by default. Specific pages can be requested setting the page parameter.
When page parameter is not present, the first page will be returned.
By default 20 items are returned per page. A custom page size up to 100 can be set with the per_page parameter.
Note: some endpoints ignore the per_page parameter, returning all results at once. e.g.: /static/* endpoints.
Example:
| HTTP Method | Path |
|---|---|
| GET | /projects/{id}/servers?page=5&per_page=15 |
In the example above, we retrieve items of page 5 setting the size of 15 items per page.
The Link header
in paged responses carry links to pages for navigation purpose. Devopness API adopts the RFC 8288 as the reference for our implementation of Link header contents.
Links to the first, next, previous and last pages are included such that API clients don't have to hardcode or construct any links.
The page links that may be present in the Link response header are listed below:
| Optional? | Example content | Description |
|---|---|---|
| No | <https://api.devopness.com/projects?page=1>; rel="first" |
First page |
| No | <https://api.devopness.com/projects?page=6>; rel="last" |
Last page |
| Yes | <https://api.devopness.com/projects?page=3>; rel="prev" |
Previous page |
| Yes | <https://api.devopness.com/projects?page=5>; rel="next" |
Next page |
Optional links are not present if the currently requested page has no relative links to point to:
previous link in the response indicates the beginning of the collectionnext link in the response indicates the end of the collectionAPI Tokens are the authentication method used by the devopness API.
Every request must include a valid token in the Authorization header:
Authorization: Bearer <your_api_token>
There are two types of tokens available:
API Token (project scoped): restricted to resources of a specific project, with permissions defined by the role assigned to the token. See Projects - API Tokens
Personal Access Token (PAT): inherits the permissions of the user who created it. See Users - Personal Access Tokens
More information about API Tokens can be found in the API Tokens - Devopness Docs
API Tokens (project scoped) provide restricted access to resources within a specific project. Permissions are defined by the role assigned to the token, making them ideal for automation's, scripts, or integrations that should not access resources outside the project.
Include the token in all project-related requests using the Authorization header:
Authorization: Bearer <your_api_token>
For instructions on creating and managing project tokens, refer to the API Token (project) - Devopness Docs
| project_id required | integer >= 1 Example: 123 The ID of the project. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": "e70e75cb-7922-47d2-a071-54b7d7ede4be",
- "name": "My Token",
- "type": "personal_access_token",
- "status": "active",
- "role": {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "last_used_at": "2023-01-01T00:00:00Z",
- "expires_at": "2023-12-31T23:59:59Z",
- "revoked_at": null,
- "updated_at": "2023-01-01T00:00:00Z",
- "created_at": "2023-01-01T00:00:00Z"
}
]| project_id required | integer >= 1 Example: 123 The ID of the project. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string Name of the token. Must be at least 3 characters. Must not be greater than 255 characters. |
| role_id required | integer The ID of the role that the token is associated with. |
| expires_at required | string The date and time when the token expires. Must be a valid date. Must be a date after |
{- "name": "MyApp Deploy Automation",
- "role_id": 1,
- "expires_at": "2023-01-01T00:00:00Z"
}{- "id": "e70e75cb-7922-47d2-a071-54b7d7ede4be",
- "name": "My Token",
- "type": "personal_access_token",
- "token": null,
- "status": "active",
- "role": {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "last_used_at": "2023-01-01T00:00:00Z",
- "expires_at": "2023-12-31T23:59:59Z",
- "revoked_at": null,
- "updated_at": "2023-01-01T00:00:00Z",
- "created_at": "2023-01-01T00:00:00Z"
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| token_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the token. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": "e70e75cb-7922-47d2-a071-54b7d7ede4be",
- "name": "My Token",
- "type": "personal_access_token",
- "token": null,
- "status": "active",
- "role": {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "last_used_at": "2023-01-01T00:00:00Z",
- "expires_at": "2023-12-31T23:59:59Z",
- "revoked_at": null,
- "updated_at": "2023-01-01T00:00:00Z",
- "created_at": "2023-01-01T00:00:00Z"
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| token_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the token. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| token_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the token. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | string The unique identifier of the token. |
| expires_at required | string The date and time when the token expires. Must be a valid date. Must be a date after |
{- "id": "c28f88fe-322e-477c-bfe9-982072805a01",
- "expires_at": "2023-01-01T00:00:00Z"
}{- "id": "e70e75cb-7922-47d2-a071-54b7d7ede4be",
- "name": "My Token",
- "type": "personal_access_token",
- "token": null,
- "status": "active",
- "role": {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "last_used_at": "2023-01-01T00:00:00Z",
- "expires_at": "2023-12-31T23:59:59Z",
- "revoked_at": null,
- "updated_at": "2023-01-01T00:00:00Z",
- "created_at": "2023-01-01T00:00:00Z"
}Personal Access Tokens (PATs) inherit all permissions of the user who created them. They allow performing any action that the user is authorized to do across all projects accessible by the account.
Include the PAT in all API requests using the Authorization header:
Authorization: Bearer <your_api_token>
For instructions on creating and managing PATs, refer to the Personal Access Tokens - Devopness Docs
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": "e70e75cb-7922-47d2-a071-54b7d7ede4be",
- "name": "My Token",
- "type": "personal_access_token",
- "status": "active",
- "user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "last_used_at": "2023-01-01T00:00:00Z",
- "expires_at": "2023-12-31T23:59:59Z",
- "revoked_at": null,
- "updated_at": "2023-01-01T00:00:00Z",
- "created_at": "2023-01-01T00:00:00Z"
}
]| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string Name of the token. Must be at least 3 characters. Must not be greater than 255 characters. |
| expires_at required | string The date and time when the token expires. Must be a valid date. Must be a date after |
{- "name": "MyApp Deploy Automation",
- "expires_at": "2023-01-01T00:00:00Z"
}{- "id": "e70e75cb-7922-47d2-a071-54b7d7ede4be",
- "name": "My Token",
- "type": "personal_access_token",
- "token": null,
- "status": "active",
- "user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "last_used_at": "2023-01-01T00:00:00Z",
- "expires_at": "2023-12-31T23:59:59Z",
- "revoked_at": null,
- "updated_at": "2023-01-01T00:00:00Z",
- "created_at": "2023-01-01T00:00:00Z"
}| personal_access_token_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the personal access token. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": "e70e75cb-7922-47d2-a071-54b7d7ede4be",
- "name": "My Token",
- "type": "personal_access_token",
- "token": null,
- "status": "active",
- "user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "last_used_at": "2023-01-01T00:00:00Z",
- "expires_at": "2023-12-31T23:59:59Z",
- "revoked_at": null,
- "updated_at": "2023-01-01T00:00:00Z",
- "created_at": "2023-01-01T00:00:00Z"
}| personal_access_token_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the personal access token. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| personal_access_token_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the personal access token. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | string The unique identifier of the token. |
| expires_at required | string The date and time when the token expires. Must be a valid date. Must be a date after |
{- "id": "c28f88fe-322e-477c-bfe9-982072805a01",
- "expires_at": "2023-01-01T00:00:00Z"
}{- "id": "e70e75cb-7922-47d2-a071-54b7d7ede4be",
- "name": "My Token",
- "type": "personal_access_token",
- "token": null,
- "status": "active",
- "user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "last_used_at": "2023-01-01T00:00:00Z",
- "expires_at": "2023-12-31T23:59:59Z",
- "revoked_at": null,
- "updated_at": "2023-01-01T00:00:00Z",
- "created_at": "2023-01-01T00:00:00Z"
}Client API applications might need to retrieve possible accepted values to fulfill their forms and allow end users to pick values from a list of valid data.
All static data that need to be used through devopness API client applications is provided through the /static/* endpoints.
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "variable_targets": [
- {
- "name": "resource-config-file",
- "name_human_readable": "MySQL Configuration (my.cnf)",
- "hint": "Some text here describing this field for end users"
}
], - "language_runtimes": [
- {
- "name": "nodejs",
- "name_human_readable": "Node.js",
- "engine_versions": [
- {
- "version": "13.8"
}
], - "frameworks": [
- {
- "name": "nodejs",
- "name_human_readable": "Node.js",
- "defaults": {
- "default_branch": "main",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "root_directory": "/ or /src or /lib/src or /code or /app",
- "deployments_keep": 4,
- "commands": {
- "build": [
- "npm build",
- "yarn build",
- "custom",
- "none"
], - "dependencies": [
- "npm install",
- "npm install --production",
- "npm ci",
- "yarn install",
- "custom",
- "none"
]
}, - "install_dependencies_command": "npm install",
- "build_command": "npm run build"
}
}
]
}
], - "script_runners": [
- {
- "value": "composer",
- "human_readable": "Composer",
- "hint": "Some text here describing this field for end users"
}
]
}| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "name": "Devopness Pro",
- "hint": "For professional developers, startups and small teams",
- "plans": [
- {
- "id": 1,
- "provider_plan_id": "pro_av12s",
- "price": 20,
- "credit_limit": 200,
- "billing_period": "1 monthly"
}
]
}
]| cloud_provider_service_code required | string Example: aws-ec2 The cloud provider service code. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "code": "aws-ec2",
- "name": "Amazon Elastic Compute Cloud",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "regions": [
- {
- "code": "us-east-1",
- "name": "US East (N. Virginia) us-east-1",
- "hint": "Some text here describing this field for end users",
- "zones": [
- "us-east-1a",
- "us-east-1b",
- "us-east-1c"
]
}
], - "resource_types": [
- {
- "provider_resource_type": "vpc",
- "devopness_resource_type": "network",
- "scope": "region",
- "input_settings": [
- {
- "name": "access_key_id",
- "name_human_readable": "Access Key",
- "default_value": "default_access_key",
- "sensitive": false,
- "validation": {
- "required": true,
- "type": "string",
- "min": 10,
- "max": 30,
- "allowed_values": [
- "string"
]
}
}
], - "os": [
- {
- "code": "ubuntu",
- "name": "Ubuntu",
- "hint": "Some text here describing this field for end users",
- "supported_versions": [
- {
- "name": "22.04 LTS (Jammy Jellyfish)",
- "code_name": "Jammy Jellyfish",
- "version": "22.04",
- "os_version_code": "ubuntu_24_04",
- "os_version_code_human_readable": "Ubuntu 22.04 LTS (Jammy Jellyfish)",
- "released_at": "2020-04-23",
- "end_standard_support_at": "2025-04-01",
- "end_of_life_at": "2030-04-01"
}
]
}
], - "can_keep_disk_after_delete_server": true,
- "operation_custom_settings": {
- "operation": "remove",
- "operation_human_readable": "Delete",
- "triggers_action": true
}
}
]
}| cloud_provider_service_code required | string Example: aws-ec2 The cloud provider service code. |
| region_code required | string Example: us-east-1 The region of the cloud provider to get related instances. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "name": "m5.large",
- "type": "m5",
- "family": "Memory Optimized",
- "architecture": "x86_64",
- "default_disk_size": 25,
- "price_hourly": 0.096,
- "price_monthly": 70.28,
- "price_currency": "USD",
- "vcpus": 2,
- "memory": 8192
}
]| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "provider_types": [
- {
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}
], - "supported_providers": [
- {
- "code": "aws",
- "name": "Amazon Web Services",
- "hint": "Some text here describing this field for end users",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}
]
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "frequencies": [
- {
- "value": "0 0 1 * *",
- "human_readable": "Every minute",
- "hint": "Some text here describing this field for end users"
}
]
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "types": [
- {
- "value": "development",
- "human_readable": "Development",
- "hint": "Some text here describing this field for end users"
}
]
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "directions": [
- {
- "value": "inbound",
- "human_readable": "Inbound",
- "hint": "Some text here describing this field for end users"
}
], - "protocols": [
- {
- "value": "any",
- "human_readable": "Any",
- "defaults": {
- "port": 3306
}
}
]
}| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "resource_type": "application",
- "human_readable": "Application",
- "permissions": [
- {
- "name": "create",
- "human_readable": "Add",
- "hint": "Some text here describing this field for end users",
- "required_permissions": [
- "application:read"
]
}
]
}
]| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "resource_type": "application",
- "resource_type_human_readable": "Application",
- "resource_type_human_readable_plural": "Applications",
- "supported_operations": [
- {
- "operation": "deploy",
- "operation_human_readable": "Deploy",
- "pipeline_settings": {
- "max_pipelines_per_resource": 1,
- "is_user_managed": true,
- "stages": [
- {
- "value": "remove-old-releases",
- "human_readable": "Remove old releases",
- "hint": "Some text here describing this field for end users"
}
], - "variables": [
- {
- "name": "source_type",
- "human_readable": "Source type",
- "hint": "Some text here describing this field for end users",
- "type": "string",
- "required": true
}
]
}
}
], - "can_be_child_of": [
- {
- "resource_type": "application",
- "resource_type_human_readable": "Application",
- "resource_type_human_readable_plural": "Applications",
- "can_be_linked": true
}
], - "can_be_parent_of": [
- {
- "resource_type": "application",
- "resource_type_human_readable": "Application",
- "resource_type_human_readable_plural": "Applications",
- "can_be_linked": true
}
]
}
]| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "variable_targets": [
- {
- "name": "resource-config-file",
- "name_human_readable": "MySQL Configuration (my.cnf)",
- "hint": "Some text here describing this field for end users"
}
]
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "types": [
- {
- "value": "mysql",
- "human_readable": "MySQL",
- "hint": "Some text here describing this field for end users",
- "supported_versions": [
- {
- "version": "8.0",
- "variable_targets": [
- {
- "name": "resource-config-file",
- "name_human_readable": "MySQL Configuration (my.cnf)",
- "hint": "Some text here describing this field for end users"
}
]
}
]
}
]
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "billing": {
- "subscription_plans": [
- {
- "provider_plan_id": "PAID",
- "human_readable": "Standard",
- "allow_subscriptions": true
}
]
}, - "languages": [
- "PT-BR"
], - "timezones": [
- "America/Sao_Paulo"
]
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "variable_targets": [
- {
- "name": "resource-config-file",
- "name_human_readable": "MySQL Configuration (my.cnf)",
- "hint": "Some text here describing this field for end users"
}
], - "virtual_host_types": [
- {
- "name": "name-based",
- "name_human_readable": "Domain name (name-based virtual host)",
- "hint": "Some text here describing this field for end users"
}
]
}| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| target_resource_id required | integer >= 1 Example: 123 The resource ID of the action target. |
| target_resource_type required | string Example: server The resource type of the action target on which this action will be executed to perform operations on the action resource. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| action_id required | integer >= 1 Example: 123 The ID of the action. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 567819876,
- "pipeline_id": 567819876,
- "retry_of": 764123,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "parent": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "resource_name": "Example resource",
- "resource_type": "application",
- "resource_type_human_readable": "Application",
}, - "children": [
- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "resource_name": "Example resource",
- "resource_type": "application",
- "resource_type_human_readable": "Application",
}
], - "triggered_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "hook_requests": {
- "incoming": {
- "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",
- "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "action_id": 1985239,
- "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",
- "ip_address": "172.17.0.4",
- "response_status_code": 200,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "outgoing": {
- "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",
- "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "action_id": 1985239,
- "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",
- "ip_address": "172.17.0.4",
- "response_status_code": 200,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| action_id required | integer >= 1 Example: 123 The ID of the action. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 567819876,
- "pipeline_id": 567819876,
- "retry_of": 764123,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "parent": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "resource_name": "Example resource",
- "resource_type": "application",
- "resource_type_human_readable": "Application",
}, - "children": [
- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "resource_name": "Example resource",
- "resource_type": "application",
- "resource_type_human_readable": "Application",
}
], - "triggered_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "hook_requests": {
- "incoming": {
- "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",
- "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "action_id": 1985239,
- "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",
- "ip_address": "172.17.0.4",
- "response_status_code": 200,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "outgoing": {
- "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",
- "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "action_id": 1985239,
- "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",
- "ip_address": "172.17.0.4",
- "response_status_code": 200,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| resource_id required | integer >= 1 Example: 123 The resource ID. |
| resource_type required | string Example: application The resource type to get related actions. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| action_id required | integer >= 1 Example: 123 The ID of the action. |
| action_step_order required | integer >= 1 Example: 2 The action step order. |
| action_target_id required | integer >= 1 Example: 123 The ID of the action target. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "target": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "step": {
- "order": 3,
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "output": "string"
}, - "updated_at": "2019-09-25T13:52:04.000000Z"
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| resource_type required | string Example: application The resource type to get related actions. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]A cronjob or scheduled task is a scheduled command to be set on one or more project servers to ensure a given routine will be executed on time.
| project_id required | integer >= 1 Example: 123 The ID of the project. |
| resource_type required | string Example: application The resource type to get related actions. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| application_id required | integer >= 1 Example: 123 The ID of the application. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| application_id required | integer >= 1 Example: 123 The ID of the application. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "virtual_hosts": [
- {
- "id": 1,
- "type": "name-based",
- "type_human_readable": "Domain name (name-based virtual host)",
- "name": "my-site.example.com",
- "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "root_directory": "public",
- "ssl_certificate": {
- "id": 8423749,
- "name": "my-subdomain.example.com",
- "type": "single-domain",
- "issuer": "custom",
- "validation_level": "DV",
- "active": true,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "expires_at": "2020-04-16T15:50:48.000000Z",
- "last_renewed_at": "2020-04-16T15:50:48.000000Z",
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
], - "daemons": [
- {
- "id": 85324,
- "name": "we-all-have-daemons-inside",
- "command": "node app.js",
- "run_as_user": "root-of-all-evil",
- "working_directory": "relative-path/within/application/folder",
- "process_count": 6,
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| application_id required | integer >= 1 Example: 123 The ID of the application. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Application. |
| name required | string The application's unique name. Must not be greater than 60 characters. |
| build_command | string The optional command that should be executed once during deployment to build the source code and get the application in a ready state. |
| engine_version required | string The language runtime engine version to be used to execute this application on the deployed servers. Must be at least 1 character. Must not be greater than 10 characters. |
| framework required | string The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment. Must not be greater than 30 characters. |
| programming_language required | string The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js, but should be served statically (a SPA application, for instance) then this field value should be |
| repository | string The full name of a repository ( |
| credential_id | integer Numeric ID of the credential to source provider where the repository is hosted. This field is required when |
| root_directory | string The relative directory where package manager's manifest files ( |
| default_branch required | string The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed. Must not be greater than 200 characters. |
| deployments_keep | integer The number of deployment history, logs and artifacts to keep stored in both devopness servers and user's servers. OR The number of deployment artifacts to be retained in the user's servers, making it easier and faster to rollback to previous versions. Must be at least 1. Must not be greater than 10. |
| install_dependencies_command | string Indicates command that Devopness must execute to install application dependencies. |
{- "id": 1,
- "name": "my-awesome-app",
- "build_command": "`npm run build`, `yarn build`, `docker build -t my_image_name .`, `python build.py`",
- "engine_version": "3.12",
- "framework": "fastapi",
- "programming_language": "python",
- "repository": "devopness/devopness",
- "credential_id": 9732156,
- "root_directory": "/src",
- "default_branch": "main",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install"
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| application_id required | integer >= 1 Example: 123 The ID of the application. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| environment | string The environment type of the deployment. |
| type required | string (DeploymentType) Enum: "deploy" "redeploy" "rollback" The type of the deployment |
| source_type | string The 'source type' from which the application source code will be retrieved and deployed. It can be one of |
| source_ref | string A git reference pointing to a commit in a source provider repository from which the application source code will be retrieved and deployed. It can be a branch name, tag name or a specific commit hash. This field is required when |
| pipeline_id | integer The pipeline's ID to use for deployment. |
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "environment": "staging",
- "type": "deploy",
- "source_type": "commit",
- "source_ref": "7ff09b0f2ed07625222f689d1afc29aa322b03a2",
- "pipeline_id": 59387,
- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
Array of objects (ResourceToBeLinkedList) The resources to be linked with this resource | |
| name required | string The application's unique name. Must not be greater than 60 characters. |
| build_command | string The optional command that should be executed once during deployment to build the source code and get the application in a ready state. |
| engine_version required | string The language runtime engine version to be used to execute this application on the deployed servers. Must be at least 1 character. Must not be greater than 10 characters. |
| framework required | string The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment. Must not be greater than 30 characters. |
| programming_language required | string The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js, but should be served statically (a SPA application, for instance) then this field value should be |
| repository required | string The full name of a repository ( |
| credential_id required | integer Numeric ID of the credential to source provider where the repository is hosted. |
| root_directory | string The relative directory where package manager's manifest files ( |
| default_branch required | string The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed. Must not be greater than 200 characters. |
| deployments_keep | integer The number of deployment history, logs and artifacts to keep stored in both devopness servers and user's servers. OR The number of deployment artifacts to be retained in the user's servers, making it easier and faster to rollback to previous versions. Must be at least 1. Must not be greater than 10. |
| install_dependencies_command | string Indicates command that Devopness must execute to install application dependencies. |
Array of objects (EnvironmentLinkList) |
{- "linked_resources": [
- {
- "resource_type": "server",
- "resource_id": 1
}
], - "name": "my-awesome-app",
- "build_command": "`npm run build`, `yarn build`, `docker build -t my_image_name .`, `python build.py`",
- "engine_version": "3.12",
- "framework": "none",
- "programming_language": "python",
- "repository": "devopness/devopness",
- "credential_id": 9732156,
- "root_directory": "/src",
- "default_branch": "main",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "environments": [
- {
- "id": 867,
- "name": "my project - staging",
- "servers": [
- 54789
]
}
]
}{- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "virtual_hosts": [
- {
- "id": 1,
- "type": "name-based",
- "type_human_readable": "Domain name (name-based virtual host)",
- "name": "my-site.example.com",
- "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "root_directory": "public",
- "ssl_certificate": {
- "id": 8423749,
- "name": "my-subdomain.example.com",
- "type": "single-domain",
- "issuer": "custom",
- "validation_level": "DV",
- "active": true,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "expires_at": "2020-04-16T15:50:48.000000Z",
- "last_renewed_at": "2020-04-16T15:50:48.000000Z",
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
], - "daemons": [
- {
- "id": 85324,
- "name": "we-all-have-daemons-inside",
- "command": "node app.js",
- "run_as_user": "root-of-all-evil",
- "working_directory": "relative-path/within/application/folder",
- "process_count": 6,
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| application_id required | integer >= 1 Example: 123 The ID of the application. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "name": "my-app deploy",
- "type": "in",
- "action_type": "deploy",
- "is_auto_generated": false,
- "requires_secret": true,
- "verify_ssl": true,
- "active": true,
- "project_id": 34985723,
- "environment_id": 579085,
- "pipeline_id": 289542,
- "resource_type": "application",
- "resource_id": 9056412,
- "settings": {
- "variables": [
- {
- "name": "environment_id",
- "path": "data.environment.id",
- "type": "integer",
- "required": false,
- "default_value": null
}
]
}, - "trigger_when": {
- "events": [
- "action.status_changed",
- "action.queued",
- "action.started",
- "action.completed",
- "action.failed"
], - "conditions": [
- {
- "name": "Only trigger incoming hook on PRs of a given pull request author",
- "type": "request_body",
- "path": "sender.login",
- "accepted_values": [
- "some-one"
]
}
]
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
]Throughout the devopness documentation the term SSL Certificate refers to a public key certificate adhering to X.509 standard. While TLS is the protocol more used nowadays for web encryption, for historical reasons web encryption is often referred to simply as SSL. A SSL Certificate managed by devopness might be used as an HTTPS/SSL/TLS and other internet protocols to establish encrypted connections between client apps (e.g. browsers) and the web application servers managed through devopness, but it's not limited to be used for authenticating server's identity.
| application_id required | integer >= 1 Example: 123 The ID of the application. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 93023,
- "key": "APP_URL",
- "type": "file",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "target_human_readable": "Resource Configuration File",
- "resource_id": 3426,
- "resource_type": "application",
- "hidden": false,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
]| application_id required | integer >= 1 Example: 123 The ID of the application. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| key required | string The unique key used to identify the variable on the target.
When variable is of type |
| value required | string The value to be assigned to this variable when deployed to its target.
When variable is of type |
| description | string A text describing the variable, provided by the end user. |
| target required | string (VariableTarget) Enum: "my-cnf" "newrelic-infra-yml" "nginx-http-server" "nginx-http" "nginx-main" "os-env-var" "php-cli_php-ini" "php-fpm_php-fpm-conf" "php-fpm_php-ini" "php-fpm_pool-d-www-conf" "redis-conf" "resource-config-file" "supervisord-conf" "sysctl-conf" The target defining how the variable key/value pair will be deployed |
| type required | string (VariableType) Enum: "file" "variable" The type of the key/value pair |
| hidden required | boolean Indicates if the variable value should be visible or not in the deployment logs. |
{- "key": "APP_URL",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "type": "file",
- "hidden": false
}{- "id": 93023,
- "key": "APP_URL",
- "type": "file",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "target_human_readable": "Resource Configuration File",
- "resource_id": 3426,
- "resource_type": "application",
- "hidden": false,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| credential_id required | integer >= 1 Example: 54389 The ID of the credential. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| credential_id required | integer >= 1 Example: 123 The ID of the credential. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Credential. |
| name required | string The name of the credential. Must not be greater than 60 characters. |
object (CredentialInputSettings) |
{- "id": 1,
- "name": "My cool credential",
- "settings": {
- "credential": {
- "access_key_id": "3dlxAUgbuTJY0AitQMAFHd6JadVRw3rGml",
- "secret_access_key": "my-secret"
}
}
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| credential_id required | integer >= 1 Example: 123 The ID of the credential. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| provider_code | string Example: provider_code=aws Filter credentials by provider code. |
| provider_type | string Example: provider_type=cloud_provider Filter credentials by provider type. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The name of the credential. Must not be greater than 60 characters. |
| provider_code required | string (ProviderCode) Enum: "aws" "azure" "bitbucket" "digitalocean" "gcp" "github" "gitlab" "hetzner" The code of the service provider |
| provider_type required | string (ProviderType) Enum: "cloud_provider" "source_provider" Type of provider. |
| active required | boolean If this credential is active or not. |
required | object (CredentialInputSettings) |
{- "name": "My cool credential",
- "provider_code": "aws",
- "provider_type": "cloud_provider",
- "active": false,
- "settings": {
- "credential": {
- "access_key_id": "3dlxAUgbuTJY0AitQMAFHd6JadVRw3rGml",
- "secret_access_key": "my-secret"
}
}
}{- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| provider_code required | string Example: aws The code of the provider. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "provider": {
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "environment_id": 123,
- "settings": {
- "input_settings": [
- {
- "name": "access_key_id",
- "name_human_readable": "Access Key",
- "validation": {
- "required": true,
- "type": "string",
- "min": 10,
- "max": 20,
- "allowed_values": [
- ""
]
}, - "default_value": null,
- "sensitive": false
}
], - "cloud_services": [
- {
- "code": "aws-ec2",
- "name": "Amazon Elastic Compute Cloud",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "regions": [
- {
- "code": "us-east-1",
- "name": "US East (N. Virginia) us-east-1",
- "hint": "Some text here describing this field for end users",
- "zones": [
- "us-east-1a",
- "us-east-1b",
- "us-east-1c"
]
}
], - "resource_types": [
- {
- "provider_resource_type": "vpc",
- "devopness_resource_type": "network",
- "scope": "region",
- "input_settings": [
- {
- "name": "access_key_id",
- "name_human_readable": "Access Key",
- "default_value": "default_access_key",
- "sensitive": false,
- "validation": {
- "required": true,
- "type": "string",
- "min": 10,
- "max": 30,
- "allowed_values": [
- null
]
}
}
], - "os": [
- {
- "code": "ubuntu",
- "name": "Ubuntu",
- "hint": "Some text here describing this field for end users",
- "supported_versions": [
- {
- "name": null,
- "code_name": null,
- "version": null,
- "os_version_code": null,
- "os_version_code_human_readable": null,
- "released_at": null,
- "end_standard_support_at": null,
- "end_of_life_at": null
}
]
}
], - "can_keep_disk_after_delete_server": true,
- "operation_custom_settings": {
- "operation": "remove",
- "operation_human_readable": "Delete",
- "triggers_action": true
}
}
]
}
]
}
}| credential_id required | integer >= 1 Example: 123 The ID of the credential. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "name": "myrepo",
- "user_name": "myusername",
- "full_name": "myusername/myrepo",
}
]| credential_id required | integer >= 1 Example: 123 The ID of the credential. |
| repository_name required | string Example: repo_name The repository name |
| repository_owner required | string Example: repo_owner The owner of the repository |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "name": "myrepo",
- "user_name": "myusername",
- "full_name": "myusername/myrepo",
- "branches": [
- {
- "name": "feature/some-branch",
- "repo_full_name": "devopness/devopness-site",
- "commit": {
- "hash": "4a03b9d21edeef8434c45818594a5d72027c14e7",
- "message": "Good developers always add messages to their commits",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "provider": "bitbucket",
- "repository": "devopness/devopness-site",
- "author_email": "myusername@email.com",
- "author_name": "myusername"
}
}
], - "tags": [
- {
- "name": "v1.0.0",
- "commit": {
- "hash": "4a03b9d21edeef8434c45818594a5d72027c14e7",
}
}
]
}A cronjob is a scheduled command to be set on one or more project servers to ensure a given routine will be executed on time. Cronjobs are useful for creating periodic and recurring tasks, like running backups or sending emails. Cronjobs can also schedule individual tasks for a specific time, such as if you want to schedule a job for a low activity period.
| cron_job_id required | integer >= 1 Example: 123 The ID of the cron job. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| cron_job_id required | integer >= 1 Example: 123 The ID of the cron job. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 85324,
- "name": "My cool cron job",
- "command": "echo 'devopness rocks!' | tee -a /tmp/task-output.log",
- "run_as_user": "root",
- "pattern": "0 0 * * *",
- "pattern_human_readable": "Every minute",
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| cron_job_id required | integer >= 1 Example: 123 The ID of the cron job. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Cron Job. |
| pattern required | string A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions. |
| name required | string The name of the cron job. Must not be greater than 60 characters. |
| command required | string The command line to be executed when running the cron job. Must be at least 5 characters. Must not be greater than 255 characters. |
| run_as_user required | string The name of the system user on behalf of which the cron job will be executed. Must not be greater than 60 characters. |
| application_id | integer Numeric ID of the application to which the cron job belongs to. |
{- "id": 1,
- "pattern": "0 0 * * *",
- "name": "My cool cron job",
- "command": "echo 'devopness rocks!' | tee -a /tmp/task-output.log",
- "run_as_user": "root",
- "application_id": 3745834
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 85324,
- "name": "My cool cron job",
- "command": "echo 'devopness rocks!' | tee -a /tmp/task-output.log",
- "run_as_user": "root",
- "pattern": "0 0 * * *",
- "pattern_human_readable": "Every minute",
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
Array of objects (ResourceToBeLinkedList) The resources to be linked with this resource | |
| name required | string The name of the cron job. Must not be greater than 60 characters. |
| command required | string The command line to be executed when running the cron job. Must be at least 5 characters. Must not be greater than 255 characters. |
| pattern required | string A cron expression consisting of Minute, Hour, Day of Month, Month and Day of Week subexpressions. |
| run_as_user required | string The name of the system user on behalf of which the cron job will be executed. Must not be greater than 60 characters. |
| application_id | integer Numeric ID of the application to which the cron job belongs to. |
{- "linked_resources": [
- {
- "resource_type": "server",
- "resource_id": 1
}
], - "name": "My cool cron job",
- "command": "echo 'devopness rocks!' | tee -a /tmp/task-output.log",
- "pattern": "0 0 * * *",
- "run_as_user": "root",
- "application_id": 7123941090
}{- "id": 85324,
- "name": "My cool cron job",
- "command": "echo 'devopness rocks!' | tee -a /tmp/task-output.log",
- "run_as_user": "root",
- "pattern": "0 0 * * *",
- "pattern_human_readable": "Every minute",
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}The terms process, background process and daemon may be used interchangeably in the devopness API documentation to denote the same thing: i.e., a computer process that runs behind the scenes without user intervention, detached from TTY (teletype/terminal type) and having no associated console or controlling terminal, therefore prevented from receiving SIGHUP on shell termination.
| daemon_id required | integer >= 1 Example: 123 The ID of the daemon. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| daemon_id required | integer >= 1 Example: 123 The ID of the daemon. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 85324,
- "name": "we-all-have-daemons-inside",
- "command": "node app.js",
- "run_as_user": "root-of-all-evil",
- "working_directory": "relative-path/within/application/folder",
- "process_count": 6,
- "is_auto_generated": false,
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| daemon_id required | integer >= 1 Example: 123 The ID of the daemon. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Daemon. |
| command required | string The command line to be executed to start the daemon. Must not be greater than 255 characters. |
| process_count required | integer The number of daemon process instances of the program to run simultaneously. Must be at least 1. Must not be greater than 99. |
| working_directory required | string or null The working directory where the Daemon command will be executed. If the Daemon is linked to an application, the path must be a relative path to the application root directory. If the Daemon is not linked to an application, the value must be an absolute path. Must start with one of |
| run_as_user required | string The name of the Unix user on behalf of which the daemon will run. Must not be greater than 60 characters. |
| name required | string The name entered by the user (or auto-generated by |
| application_id | integer or null The ID of the application to be linked to the daemon. The value of |
{- "id": 1,
- "command": "/usr/bin/example --parameter=%(ENV_VAR_TO_GET_PARAM_VALUE_FROM)s",
- "process_count": 3,
- "working_directory": "relative-path/within/application/folder",
- "run_as_user": "root-of-all-evil",
- "name": "we-all-have-daemons-inside",
- "application_id": 8594323
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| daemon_id required | integer >= 1 Example: 123 The ID of the daemon. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| daemon_id required | integer >= 1 Example: 123 The ID of the daemon. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| daemon_id required | integer >= 1 Example: 123 The ID of the daemon. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| daemon_id required | integer >= 1 Example: 123 The ID of the daemon. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 85324,
- "name": "we-all-have-daemons-inside",
- "command": "node app.js",
- "run_as_user": "root-of-all-evil",
- "working_directory": "relative-path/within/application/folder",
- "process_count": 6,
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
Array of objects (ResourceToBeLinkedList) The resources to be linked with this resource | |
| command required | string The command line to be executed to start the daemon. Must not be greater than 255 characters. |
| process_count required | integer The number of daemon process instances of the program to run simultaneously. Must be at least 1. Must not be greater than 99. |
| working_directory required | string or null The working directory where the Daemon command will be executed. If the Daemon is linked to an application, the path must be a relative path to the application root directory. If the Daemon is not linked to an application, the value must be an absolute path. Must start with one of |
| run_as_user required | string The name of the Unix user on behalf of which the daemon will run. Must not be greater than 60 characters. |
| name required | string The name entered by the user (or auto-generated by |
| application_id | integer or null The ID of the application to be linked to the daemon. The value of |
{- "linked_resources": [
- {
- "resource_type": "server",
- "resource_id": 1
}
], - "command": "/usr/bin/example --parameter=%(ENV_VAR_TO_GET_PARAM_VALUE_FROM)s",
- "process_count": 3,
- "working_directory": "relative-path/within/application/folder",
- "run_as_user": "root-of-all-evil",
- "name": "we-all-have-daemons-inside",
- "application_id": 1
}{- "id": 85324,
- "name": "we-all-have-daemons-inside",
- "command": "node app.js",
- "run_as_user": "root-of-all-evil",
- "working_directory": "relative-path/within/application/folder",
- "process_count": 6,
- "is_auto_generated": false,
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 16523,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "is_archived": false,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "teams": [
- {
- "id": 137,
- "name": "Some Development Team",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
], - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "current_user_permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Environment. |
| type required | string (EnvironmentType) Enum: "development" "production" "staging" Environment's type |
| name required | string The environment's name. Must not be greater than 60 characters. |
| description | string The environment's description. Must not be greater than 255 characters. |
{- "id": 1,
- "type": "staging",
- "name": "My staging",
- "description": "My staging environment"
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}
]| project_id required | integer >= 1 Example: 123 The ID of the project. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| type required | string (EnvironmentType) Enum: "development" "production" "staging" Environment's type |
| name required | string The environment's name. Must not be greater than 60 characters. |
| description | string The environment's description. Must not be greater than 255 characters. |
{- "type": "staging",
- "name": "My staging",
- "description": "My staging environment"
}{- "id": 16523,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "is_archived": false,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "teams": [
- {
- "id": 137,
- "name": "Some Development Team",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
], - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "current_user_permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}
]A hook is a simple way to integrate your Devopness workflow with external processes to trigger Devopness actions by sending a POST request to a public URL. By using hooks you can make Devopness react to events that happen in other applications and make sure your environment resources reflect changes applied in other services. An outgoing hook is a webhook that trigger a request when an action of a resource has your state updated.
| hook_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the hook. |
| Accept required | string application/json |
| Content-Type required | string application/json |
{- "message": "Hook successfully triggered",
- "errors": null
}| hook_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the hook. |
| hook_type required | string (HookTypeParam) Enum: "incoming" "outgoing" Example: incoming The type of the hook. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| hook_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the hook. |
| hook_type required | string (HookTypeParam) Enum: "incoming" "outgoing" Example: incoming The type of the hook. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "name": "my-app deploy",
- "type": "in",
- "action_type": "deploy",
- "is_auto_generated": false,
- "requires_secret": true,
- "verify_ssl": true,
- "active": true,
- "project_id": 34985723,
- "environment_id": 579085,
- "pipeline_id": 289542,
- "resource_type": "application",
- "resource_id": 9056412,
- "settings": {
- "variables": [
- {
- "name": "environment_id",
- "path": "data.environment.id",
- "type": "integer",
- "required": false,
- "default_value": null
}
]
}, - "trigger_when": {
- "events": [
- "action.status_changed",
- "action.queued",
- "action.started",
- "action.completed",
- "action.failed"
], - "conditions": [
- {
- "name": "Only trigger incoming hook on PRs of a given pull request author",
- "type": "request_body",
- "path": "sender.login",
- "accepted_values": [
- "some-one"
]
}
]
}, - "secret": "*****",
- "secret_algorithm": "sha256",
- "secret_header_name": "X-Custom-Header",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| hook_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the hook. |
| hook_type required | string (HookTypeParam) Enum: "incoming" "outgoing" Example: incoming The type of the hook. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | string The unique ID of the given Hook. Must be a valid UUID. |
| name required | string The name of the outgoing hook. Must not be greater than 60 characters. |
| active | boolean Determines if the hook is currently active. |
| requires_secret | boolean Tells if requests to this hook must only be accepted when a HTTP header is sent with a message authentication code (HMAC) generated based on the secret provided by Devopness and shared by user with external sources. |
| secret_algorithm | string The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation. This field is required when |
| secret_header_name | string The name of the HTTP request header from which the request digital signature should be extracted. This field is required when |
object (HookTriggerWhen) | |
HookIncomingSettings (object) or HookOutgoingSettings (object) |
{- "id": 1,
- "name": "lets-go-fishing",
- "active": false,
- "requires_secret": false,
- "secret_algorithm": "sha256",
- "secret_header_name": "X-Custom-Header",
- "trigger_when": {
- "events": [
- "action.status_changed",
- "action.queued",
- "action.started",
- "action.completed",
- "action.failed"
], - "conditions": [
- {
- "name": "Only trigger incoming hook on PRs of a given pull request author",
- "type": "request_body",
- "path": "sender.login",
- "accepted_values": [
- "some-one"
]
}
]
}, - "settings": {
- "variables": [
- {
- "name": "environment_id",
- "path": "data.environment.id",
- "type": "integer",
- "required": false,
- "default_value": null
}
]
}
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| hook_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the hook. |
| hook_type required | string (HookTypeParam) Enum: "incoming" "outgoing" Example: incoming The type of the hook. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",
- "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "action_id": 1985239,
- "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",
- "ip_address": "172.17.0.4",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
]| hook_request_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the hook request. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",
- "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "action_id": 1985239,
- "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",
- "ip_address": "172.17.0.4",
- "request_headers": {
- "Content-Type": "application/json",
- "Accept": "application/json"
}, - "request_body": {
- "message": "Hello World"
}, - "response_status_code": 200,
- "response_headers": {
- "Content-Type": "application/json",
- "Accept": "application/json"
}, - "response_body": {
- "success": true
}, - "hook": {
- "id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "name": "my-app deploy",
- "type": "in",
- "action_type": "deploy",
- "is_auto_generated": false,
- "requires_secret": true,
- "verify_ssl": true,
- "active": true,
- "project_id": 34985723,
- "environment_id": 579085,
- "pipeline_id": 289542,
- "resource_type": "application",
- "resource_id": 9056412,
- "settings": {
- "variables": [
- {
- "name": "environment_id",
- "path": "data.environment.id",
- "type": "integer",
- "required": false,
- "default_value": null
}
]
}, - "trigger_when": {
- "events": [
- "action.status_changed",
- "action.queued",
- "action.started",
- "action.completed",
- "action.failed"
], - "conditions": [
- {
- "name": "Only trigger incoming hook on PRs of a given pull request author",
- "type": "request_body",
- "path": "sender.login",
- "accepted_values": [
- "some-one"
]
}
]
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| include_default_network | boolean If true, include a 'default' network in the list. |
| provider_name | string Example: provider_name=aws Filter by network's cloud provider. |
| region | string Example: region=us-east-1 Filter by network's region. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 6721,
- "project_id": 123,
- "environment_id": 456,
- "created_by": 789,
- "is_auto_generated": false,
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "name": "my-network",
- "provision_input": {
- "cloud_service_code": "aws-ec2",
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "cidr_block": "10.0.0.0/24"
}
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The network's name. Must not be one of |
required | object (NetworkProvisionInput) Network provision input parameters |
| credential_id required | integer The ID of the cloud credential. |
{- "name": "my-network",
- "provision_input": {
- "cloud_service_code": "aws-ec2",
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "cidr_block": "10.0.0.0/24"
}
}, - "credential_id": 123
}{- "id": 6721,
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services",
- "name": "my-network",
- "provision_input": {
- "cloud_service_code": "aws-ec2",
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "cidr_block": "10.0.0.0/24"
}
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| network_id required | integer >= 1 Example: 123 The ID of the network. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| network_id required | integer >= 1 Example: 123 The ID of the network. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 6721,
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services",
- "name": "my-network",
- "provision_input": {
- "cloud_service_code": "aws-ec2",
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "cidr_block": "10.0.0.0/24"
}
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| network_id required | integer >= 1 Example: 123 The ID of the network. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Network. |
| credential_id required | integer The ID of the cloud credential. |
{- "id": 1,
- "credential_id": 123
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| network_id required | integer >= 1 Example: 123 The ID of the network. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 6548224,
- "name": "Opening MySQL port so desktop apps can access it remotely",
- "direction": "inbound",
- "protocol": "any",
- "port": 3306,
- "cidr_block": "10.0.0.0/24",
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
Array of objects (ResourceToBeLinkedList) The resources to be linked with this resource | |
| name required | string The rule's name/description/reminder. Must be at least 3 characters. Must not be greater than 60 characters. |
| direction required | string (NetworkRuleDirection) Enum: "inbound" "outbound" The direction of network traffic a network rule is applied. |
| protocol required | string (NetworkRuleProtocol) Enum: "any" "icmp" "tcp" "udp" The network protocol to which this rule is applied. |
| cidr_block required | string IP address range this rule applies for, defined using CIDR notation. |
| port required | integer Network port to be considered by this rule. Must be at least 1. Must not be greater than 65535. |
{- "linked_resources": [
- {
- "resource_type": "server",
- "resource_id": 1
}
], - "name": "Open MySQL port for remote access",
- "direction": "inbound",
- "protocol": "any",
- "cidr_block": "10.0.0.0/24",
- "port": 3306
}{- "id": 6548224,
- "name": "Opening MySQL port so desktop apps can access it remotely",
- "direction": "inbound",
- "protocol": "any",
- "port": 3306,
- "cidr_block": "10.0.0.0/24",
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| network_rule_id required | integer >= 1 Example: 123 The ID of the network rule. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| network_rule_id required | integer >= 1 Example: 123 The ID of the network rule. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 6548224,
- "name": "Opening MySQL port so desktop apps can access it remotely",
- "direction": "inbound",
- "protocol": "any",
- "port": 3306,
- "cidr_block": "10.0.0.0/24",
- "is_auto_generated": false,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| network_rule_id required | integer >= 1 Example: 123 The ID of the network rule. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Network Rule. |
| name required | string The rule's name/description/reminder. Must be at least 3 characters. Must not be greater than 60 characters. |
| direction required | string (NetworkRuleDirection) Enum: "inbound" "outbound" The direction of network traffic a network rule is applied. |
| protocol | string (NetworkRuleProtocol) Enum: "any" "icmp" "tcp" "udp" The network protocol to which this rule is applied. |
| cidr_block required | string IP address range this rule applies for, defined using CIDR notation. |
{- "id": 1,
- "name": "Open MySQL port for remote access",
- "direction": "inbound",
- "protocol": "any",
- "cidr_block": "10.0.0.0/24"
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 16523,
- "name": "My Organization",
- "url_slug": "MyOrganization",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The Name of the organization. Must not be greater than 255 characters. |
| url_slug required | string The URL Slug of the organization. Must not be greater than 255 characters. |
{- "name": "My Org",
- "url_slug": "MyOrg"
}{- "id": 16523,
- "name": "My Organization",
- "url_slug": "MyOrganization",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| organization_id required | string Example: johndoe The numeric ID or URL Slug of an organization. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 16523,
- "name": "My Organization",
- "url_slug": "MyOrganization",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| organization_id required | string Example: johndoe The numeric ID or URL Slug of an organization. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | string The unique ID of the given Organization. |
| name required | string The Name of the organization. Must not be greater than 255 characters. |
| url_slug required | string The URL Slug of the organization. Must not be greater than 255 characters. |
{- "id": 1,
- "name": "My Org",
- "url_slug": "MyOrg"
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 342390,
- "name": "My pied piper-line",
- "environment_id": 4532342,
- "project_id": 97063242,
- "resource_type": "application",
- "resource_type_human_readable": "Application",
- "resource_id": 5324234,
- "operation": "deploy",
- "operation_human_readable": "Deploy",
- "max_parallel_actions": 1,
- "trigger_when": {
- "conditions": [
- {
- "name": "Check pullrequest author",
- "type": "request_body",
- "path": "pullrequest.author.nickname",
- "accepted_values": [
- "myuser123",
- "bu_nick456"
]
}
]
}, - "steps": [
- {
- "id": 45678,
- "name": "Extra step before build app",
- "description": "This is an extra step before build application.",
- "type": "default-step",
- "run_as_user": "devopness",
- "command": "echo 'Deploy with devopness is a breeze!' | tee -a /tmp/build-started.log",
- "runner": "pip",
- "script_id": 3452033,
- "pipeline_id": 7869450,
- "trigger_order": 1001,
- "is_auto_generated": false,
- "is_default_step": false,
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
], - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Pipeline. |
| name required | string The pipeline's name. Must be at least 3 characters. Must not be greater than 80 characters. |
| max_parallel_actions | integer Maximum number of actions that can run in parallel for this pipeline. |
object or null (PipelineTriggerWhen) |
{- "id": 1,
- "name": "My pipeline",
- "max_parallel_actions": 1,
- "trigger_when": {
- "conditions": [
- {
- "name": "Check pullrequest author",
- "type": "request_body",
- "path": "pullrequest.author.nickname",
- "accepted_values": [
- "myuser123",
- "bu_nick456"
]
}
]
}
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| resource_id required | integer >= 1 Example: 123 The resource ID. |
| resource_type required | string Example: application The resource type to get pipelines from. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 342390,
- "name": "My pied piper-line",
- "environment_id": 4532342,
- "project_id": 97063242,
- "resource_type": "application",
- "resource_type_human_readable": "Application",
- "resource_id": 5324234,
- "operation": "deploy",
- "operation_human_readable": "Deploy",
- "max_parallel_actions": 1,
- "trigger_when": {
- "conditions": [
- {
- "name": "Check pullrequest author",
- "type": "request_body",
- "path": "pullrequest.author.nickname",
- "accepted_values": [
- "myuser123",
- "bu_nick456"
]
}
]
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
]| resource_id required | integer >= 1 Example: 123 The resource ID. |
| resource_type required | string Example: application The resource type to add a pipeline to. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The pipeline's name. Must be at least 3 characters. Must not be greater than 80 characters. |
| operation required | string The resource operation associated to the pipeline. Must not be greater than 20 characters. |
| max_parallel_actions | integer Maximum number of actions that can run in parallel for this pipeline. |
object or null (PipelineTriggerWhen) |
{- "name": "My pipeline",
- "operation": "deploy",
- "max_parallel_actions": 1,
- "trigger_when": {
- "conditions": [
- {
- "name": "Check pullrequest author",
- "type": "request_body",
- "path": "pullrequest.author.nickname",
- "accepted_values": [
- "myuser123",
- "bu_nick456"
]
}
]
}
}{- "id": 342390,
- "name": "My pied piper-line",
- "environment_id": 4532342,
- "project_id": 97063242,
- "resource_type": "application",
- "resource_type_human_readable": "Application",
- "resource_id": 5324234,
- "operation": "deploy",
- "operation_human_readable": "Deploy",
- "max_parallel_actions": 1,
- "trigger_when": {
- "conditions": [
- {
- "name": "Check pullrequest author",
- "type": "request_body",
- "path": "pullrequest.author.nickname",
- "accepted_values": [
- "myuser123",
- "bu_nick456"
]
}
]
}, - "steps": [
- {
- "id": 45678,
- "name": "Extra step before build app",
- "description": "This is an extra step before build application.",
- "type": "default-step",
- "run_as_user": "devopness",
- "command": "echo 'Deploy with devopness is a breeze!' | tee -a /tmp/build-started.log",
- "runner": "pip",
- "script_id": 3452033,
- "pipeline_id": 7869450,
- "trigger_order": 1001,
- "is_auto_generated": false,
- "is_default_step": false,
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
], - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline that will be executed by the created action |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
| source_type | string (SourceType) Enum: "branch" "commit" "tag" The 'source type' from which the application source code will be retrieved and deployed. It can be one of |
| source_ref | string A git reference pointing to a commit in a source provider repository from which the application source code will be retrieved and deployed. It can be a branch name, tag name or a specific commit hash. Must not be greater than 200 characters. |
{- "servers": [
- 0
], - "source_type": "branch",
- "source_ref": "main"
}{- "id": 567819876,
- "pipeline_id": 567819876,
- "retry_of": 764123,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "parent": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "resource_name": "Example resource",
- "resource_type": "application",
- "resource_type_human_readable": "Application",
}, - "children": [
- {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "resource_name": "Example resource",
- "resource_type": "application",
- "resource_type_human_readable": "Application",
}
], - "triggered_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "hook_requests": {
- "incoming": {
- "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",
- "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "action_id": 1985239,
- "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",
- "ip_address": "172.17.0.4",
- "response_status_code": 200,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "outgoing": {
- "id": "6fa16226-9dc4-4367-88aa-e689ad2bc580",
- "hook_id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "action_id": 1985239,
- "retry_of": "002afd04-e3af-4dad-bf46-b2b25978482a",
- "ip_address": "172.17.0.4",
- "response_status_code": 200,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "name": "my-app deploy",
- "type": "in",
- "action_type": "deploy",
- "is_auto_generated": false,
- "requires_secret": true,
- "verify_ssl": true,
- "active": true,
- "project_id": 34985723,
- "environment_id": 579085,
- "pipeline_id": 289542,
- "resource_type": "application",
- "resource_id": 9056412,
- "settings": {
- "variables": [
- {
- "name": "environment_id",
- "path": "data.environment.id",
- "type": "integer",
- "required": false,
- "default_value": null
}
]
}, - "trigger_when": {
- "events": [
- "action.status_changed",
- "action.queued",
- "action.started",
- "action.completed",
- "action.failed"
], - "conditions": [
- {
- "name": "Only trigger incoming hook on PRs of a given pull request author",
- "type": "request_body",
- "path": "sender.login",
- "accepted_values": [
- "some-one"
]
}
]
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}
]| hook_type required | string (HookTypeParam) Enum: "incoming" "outgoing" Example: incoming The type of the hook. |
| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline that will be executed by the created action |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The name of the outgoing hook. Must not be greater than 60 characters. |
| active | boolean Determines if the hook is currently active. |
| requires_secret | boolean Tells if requests to this hook must only be accepted when a HTTP header is sent with a message authentication code (HMAC) generated based on the secret provided by Devopness and shared by user with external sources. This field is required when |
| secret_algorithm | string The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation. This field is required when |
| secret_header_name | string The name of the HTTP request header from which the request digital signature should be extracted. This field is required when |
object (HookTriggerWhen) | |
HookIncomingSettings (object) or HookOutgoingSettings (object) |
{- "name": "lets-go-fishing",
- "active": false,
- "requires_secret": false,
- "secret_algorithm": "sha256",
- "secret_header_name": "X-Custom-Header",
- "trigger_when": {
- "events": [
- "action.status_changed",
- "action.queued",
- "action.started",
- "action.completed",
- "action.failed"
], - "conditions": [
- {
- "name": "Only trigger incoming hook on PRs of a given pull request author",
- "type": "request_body",
- "path": "sender.login",
- "accepted_values": [
- "some-one"
]
}
]
}, - "settings": {
- "variables": [
- {
- "name": "environment_id",
- "path": "data.environment.id",
- "type": "integer",
- "required": false,
- "default_value": null
}
]
}
}{- "id": "f1a61a4e-4d08-11eb-9481-0242ac130004",
- "name": "my-app deploy",
- "type": "in",
- "action_type": "deploy",
- "is_auto_generated": false,
- "requires_secret": true,
- "verify_ssl": true,
- "active": true,
- "project_id": 34985723,
- "environment_id": 579085,
- "pipeline_id": 289542,
- "resource_type": "application",
- "resource_id": 9056412,
- "settings": {
- "variables": [
- {
- "name": "environment_id",
- "path": "data.environment.id",
- "type": "integer",
- "required": false,
- "default_value": null
}
]
}, - "trigger_when": {
- "events": [
- "action.status_changed",
- "action.queued",
- "action.started",
- "action.completed",
- "action.failed"
], - "conditions": [
- {
- "name": "Only trigger incoming hook on PRs of a given pull request author",
- "type": "request_body",
- "path": "sender.login",
- "accepted_values": [
- "some-one"
]
}
]
}, - "secret": "*****",
- "secret_algorithm": "sha256",
- "secret_header_name": "X-Custom-Header",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name | string Name/short description of the script. Must be at least 4 characters. Must not be greater than 60 characters. |
| description | string A short text describing the command. Can be helpful for other team members to understand why a pipeline step is needed. Must not be greater than 255 characters. |
| type | string The pipeline step's type. Must not be greater than 20 characters. |
| command required | string A command line or multiline bash script. Must be at least 10 characters. Must not be greater than 300 characters. |
| runner required | string (PipelineStepRunnerName) Enum: "composer" "custom" "npm" "pip" "yarn" Name of the script runner that will run the script |
| run_as_user | string The name of the Unix user on behalf of which the script will be executed. Must not be greater than 60 characters. |
{- "name": "Extra step before build app",
- "description": "This is an extra step before build application.",
- "type": "default-step",
- "command": "echo 'Deploy with devopness is a breeze!' | tee -a /tmp/build-started.log",
- "runner": "pip",
- "run_as_user": "devopness"
}{- "id": 45678,
- "name": "Extra step before build app",
- "description": "This is an extra step before build application.",
- "type": "default-step",
- "run_as_user": "devopness",
- "command": "echo 'Deploy with devopness is a breeze!' | tee -a /tmp/build-started.log",
- "runner": "pip",
- "script_id": 3452033,
- "pipeline_id": 7869450,
- "trigger_order": 1001,
- "is_auto_generated": false,
- "is_default_step": false,
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| step_id required | integer >= 1 Example: 123 The ID of the step. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Pipeline Step. |
| name | string Name/short description of the script. Must be at least 4 characters. Must not be greater than 60 characters. |
| description | string A short text describing the command. Can be helpful for other team members to understand why a pipeline step is needed. Must not be greater than 255 characters. |
| type | string The pipeline step's type. Must not be greater than 20 characters. |
| command required | string A command line or multiline bash script. Must be at least 10 characters. Must not be greater than 300 characters. |
| runner required | string (PipelineStepRunnerName) Enum: "composer" "custom" "npm" "pip" "yarn" Name of the script runner that will run the script |
| run_as_user | string The name of the Unix user on behalf of which the script will be executed. Must not be greater than 60 characters. |
| trigger_after | integer Repositions the pipeline step after the step with the given |
{- "id": 1,
- "name": "Extra step before build app",
- "description": "This is an extra step before build application.",
- "type": "default-step",
- "command": "echo 'Deploy with devopness is a breeze!' | tee -a /tmp/build-started.log",
- "runner": "pip",
- "run_as_user": "devopness",
- "trigger_after": 2000
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| step_id required | integer >= 1 Example: 123 The ID of the step. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| pipeline_id required | integer >= 1 Example: 123 The ID of the pipeline. |
| step_id required | integer >= 1 Example: 123 The ID of the step. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| owner | string Example: owner=johndoe Filter by project's owner ID or URL Slug. If not provided, projects accessible by currently authenticated user are returned. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
]| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The name of the project. Must not be greater than 60 characters. |
| logo_image | string A base64 string representation of the logo image. |
| logo_url | string A URL path to the project's logo image. Must be a valid URL. |
{- "name": "my project",
- "logo_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACA.../AgwAgJqsE2/7ccAAAAAASUVORK5CYII=",
}{- "id": 45678,
- "user_id": 984123,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 45678,
- "user_id": 984123,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Project. |
| name required | string The name of the project. Must not be greater than 60 characters. |
| logo_image | string A base64 string representation of the logo image. |
| logo_url | string A URL path to the project's logo image. Must be a valid URL. |
{- "id": 1,
- "name": "my project",
- "logo_image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACA.../AgwAgJqsE2/7ccAAAAAASUVORK5CYII=",
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| resource_id required | integer >= 1 Example: 123 The resource ID. |
| resource_type required | string Example: application The resource type to get related events. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 652674,
- "event_type": "testtype",
- "resource_type": "service",
- "resource_id": 652674,
- "message": "Test message",
- "triggered_by": 2,
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}
]| resource_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The resource ID. |
| resource_type required | string Example: application The resource type to create events for. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "resource_type": "payment_provider",
- "resource_id": "paddle",
- "resource_data": {
- "id": 654982,
- "user_id": 23489,
- "plan_name": "Devopness - 300 actions per month plan",
- "status": "active",
- "quantity": 10,
- "price_unit": 20.5,
- "price_total": 200.5,
- "price_currency": "USD",
- "cancelled_at": "2019-09-25T15:50:48.000000Z",
- "ends_at": "2019-09-25T15:50:48.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "current_balance": {
- "credits": {
- "limit": 200,
- "used": 50,
- "remaining": 150
}, - "unit": "action-step",
- "billing_period_started_at": "2023-04-11T00:00:00.000000Z",
- "billing_period_ends_at": "2023-05-11T00:00:00.000000Z",
- "created_at": "2023-04-11T00:22:48.000000Z",
- "updated_at": "2023-04-12T00:22:48.000000Z"
}, - "balances": [
- {
- "credits": {
- "limit": 200,
- "used": 50,
- "remaining": 150
}, - "unit": "action-step",
- "billing_period_started_at": "2023-04-11T00:00:00.000000Z",
- "billing_period_ends_at": "2023-05-11T00:00:00.000000Z",
- "created_at": "2023-04-11T00:22:48.000000Z",
- "updated_at": "2023-04-12T00:22:48.000000Z"
}
]
}
}| resource_id required | integer >= 1 Example: 123 The resource ID. |
| resource_type required | string Example: application The resource type to get linked resources. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "link_type": "parent",
- "resource_type_human_readable": "Server",
- "resource_type": "server",
- "resource_id": 123,
- "can_be_unlinked": true,
- "linked_resource_data": {
- "id": 1839123,
- "name": "my-server",
- "summary_fields": [
- {
- "field_name": "ip_address",
- "field_name_human_readable": "IP address",
- "value": "200.123.45.67"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "children": [
- {
- "link_type": "child",
- "resource_id": 123,
- "resource_type": "application",
- "resource_type_human_readable": "Application",
- "can_be_unlinked": true,
- "linked_resource_data": {
- "id": 1839123,
- "name": "my-server",
- "summary_fields": [
- {
- "field_name": "ip_address",
- "field_name_human_readable": "IP address",
- "value": "200.123.45.67"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}
]
}
]| child_id required | integer >= 1 Example: 123 The child resource ID. |
| child_type required | string Example: daemon The resource type of the child resource. |
| resource_id required | integer >= 1 Example: 123 The parent resource ID. |
| resource_type required | string Example: application The resource type of the parent resource. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| child_id required | integer >= 1 Example: 123 The child resource ID. |
| child_type required | string Example: cronjob The resource type of the child resource. |
| resource_id required | integer >= 1 Example: 123 The parent resource ID. |
| resource_type required | string Example: application The resource type of the parent resource. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| link_type required | string Example: parent The link type ( |
| resource_id required | integer >= 1 Example: 123 The resource ID. |
| resource_type required | string Example: application The resource type to get linked resources. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "link_type": "parent",
- "resource_type_human_readable": "Server",
- "resource_type": "server",
- "resource_id": 123,
- "can_be_unlinked": true,
- "linked_resource_data": {
- "id": 1839123,
- "name": "my-server",
- "summary_fields": [
- {
- "field_name": "ip_address",
- "field_name_human_readable": "IP address",
- "value": "200.123.45.67"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "children": [
- {
- "link_type": "child",
- "resource_id": 123,
- "resource_type": "application",
- "resource_type_human_readable": "Application",
- "can_be_unlinked": true,
- "linked_resource_data": {
- "id": 1839123,
- "name": "my-server",
- "summary_fields": [
- {
- "field_name": "ip_address",
- "field_name_human_readable": "IP address",
- "value": "200.123.45.67"
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}
]
}
]| role_id required | integer >= 1 Example: 123 The ID of the role. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "parent": {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| role_id required | integer >= 1 Example: 123 The ID of the role. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Role. |
| name required | string The role's name. Must be at least 2 characters. Must not be greater than 60 characters. |
| description | string Description of this role. Must not be greater than 255 characters. |
| permissions required | Array of strings (RolePermissions) The list of permissions granted for this role |
{- "id": 1,
- "name": "admin",
- "description": "Has total access to resources",
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| project_id required | integer >= 1 Example: 123 The ID of the project. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The role's name. Must be at least 2 characters. Must not be greater than 60 characters. |
| description | string Description of this role. Must not be greater than 255 characters. |
| permissions required | Array of strings (RolePermissions) The list of permissions granted for this role |
{- "name": "admin",
- "description": "Has total access to resources",
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
]
}{- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "parent": {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
Array of objects (ResourceToBeLinkedList) The resources to be linked with this resource | |
| hostname required | string The hostname to be set on Linux servers. Accepts numbers (0-9), dash (-) and lower case non accented characters. Must not be greater than 60 characters. |
| ip_address | string Public ipv4 address for server access. This field is required when |
| ssh_port | integer The network port to which the SSH daemon is listening to SSH connections on the server. This field is required when |
| max_parallel_actions | integer Maximum number of actions that can run in parallel on this server. |
Array of objects (BlueprintServiceList) The service names and their respective versions for a blueprint. | |
required | object (ServerProvisionInput) Configuration used to launch cloud instance |
| credential_id | string The ID of the cloud credential. This field is required unless |
{- "linked_resources": [
- {
- "resource_type": "server",
- "resource_id": 1
}
], - "hostname": "web-srv-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "max_parallel_actions": 1,
- "blueprint": [
- {
- "auto_start": false,
- "initial_state": "stopped",
- "type": "mysql",
- "version": "8.0"
}
], - "provision_input": {
- "subnet_id": 7414831,
- "cloud_service_code": "aws-ec2",
- "settings": {
- "instance_type": "a1.medium",
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "storage_size": 32,
- "os_version_code": "ubuntu_24_04"
}
}, - "credential_id": 123
}{- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services",
- "cloud_service_code": "aws-ec2",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "os": {
- "name": "22.04 LTS (Jammy Jellyfish)",
- "code_name": "Jammy Jellyfish",
- "version": "22.04",
- "os_version_code": "ubuntu_24_04",
- "os_version_code_human_readable": "Ubuntu 22.04 LTS (Jammy Jellyfish)",
- "released_at": "2020-04-23",
- "end_standard_support_at": "2025-04-01",
- "end_of_life_at": "2030-04-01"
}, - "os_version_code": "ubuntu_24_04",
- "active": true,
- "status": "running",
- "max_parallel_actions": 1,
- "blueprint": {
- "id": 23,
- "name": "bp-from-server:web-srv-1",
- "type": "server",
- "spec": {
- "services": [
- {
- "auto_start": false,
- "initial_state": "stopped",
- "type": "mysql",
- "version": "8.0"
}
]
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "provision_input": {
- "subnet_id": 7414831,
- "cloud_service_code": "aws-ec2",
- "settings": {
- "instance_type": "a1.medium",
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "storage_size": 32,
- "os_version_code": "ubuntu_24_04"
}
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}If the server has been provisioned by Devopness, the server's instance will be removed from the cloud provider too.
| server_id required | integer >= 1 Example: 123 The ID of the server. |
| destroy_server_disks | boolean Example: destroy_server_disks=true Indicates whether disks associated with a cloud server should be deleted after the server is destroyed |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services",
- "cloud_service_code": "aws-ec2",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "os": {
- "name": "22.04 LTS (Jammy Jellyfish)",
- "code_name": "Jammy Jellyfish",
- "version": "22.04",
- "os_version_code": "ubuntu_24_04",
- "os_version_code_human_readable": "Ubuntu 22.04 LTS (Jammy Jellyfish)",
- "released_at": "2020-04-23",
- "end_standard_support_at": "2025-04-01",
- "end_of_life_at": "2030-04-01"
}, - "os_version_code": "ubuntu_24_04",
- "active": true,
- "status": "running",
- "max_parallel_actions": 1,
- "blueprint": {
- "id": 23,
- "name": "bp-from-server:web-srv-1",
- "type": "server",
- "spec": {
- "services": [
- {
- "auto_start": false,
- "initial_state": "stopped",
- "type": "mysql",
- "version": "8.0"
}
]
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "provision_input": {
- "subnet_id": 7414831,
- "cloud_service_code": "aws-ec2",
- "settings": {
- "instance_type": "a1.medium",
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "storage_size": 32,
- "os_version_code": "ubuntu_24_04"
}
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Server. |
| ip_address | string Public ipv4 address for server access. |
| ssh_port | integer The network port to which the SSH daemon is listening to SSH connections on the server. Must be between 22 and 65535. |
| max_parallel_actions | integer Maximum number of actions that can run in parallel on this server. |
| credential_id | string The ID of the cloud credential. |
{- "id": 1,
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "max_parallel_actions": 1,
- "credential_id": 123
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "connect_command": "echo '# devopness:' | ..."
}| activation_token required | string Example: B54AWSVf3iIB3QWFs7eF3c6jiXS03ZJLqicyzCNpWMjpV5lR09Gj11naMwCu The server activation token. |
| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| server_id required | integer >= 1 Example: 123 The ID of the server. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 48682,
- "name": "MySQL",
- "type": "mysql",
- "type_human_readable": "MySQL",
- "version": "8.0",
- "is_auto_generated": false,
- "auto_start": false,
- "initial_state": "stopped",
- "description": "MySQL Community Server",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
Array of objects (ResourceToBeLinkedList) The resources to be linked with this resource | |
| auto_start | boolean Tells if the service should start automatically on operating system boot. |
| initial_state | string (ServiceInitialState) Default: "started" Enum: "started" "stopped" The expected initial state of the service after installed |
| type required | string (ServiceType) Enum: "docker" "mysql" "newrelic-infra" "nginx" "php" "postgresql" "redis" "supervisor" "ufw" Types of OS Services supported by Devopness |
| version required | string The service version to be installed. Must be at least 1 character. Must not be greater than 30 characters. |
{- "linked_resources": [
- {
- "resource_type": "server",
- "resource_id": 1
}
], - "auto_start": false,
- "initial_state": "stopped",
- "type": "mysql",
- "version": "8.0"
}{- "id": 48682,
- "name": "MySQL",
- "type": "mysql",
- "type_human_readable": "MySQL",
- "version": "8.0",
- "is_auto_generated": false,
- "auto_start": false,
- "initial_state": "stopped",
- "description": "MySQL Community Server",
- "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 48682,
- "name": "MySQL",
- "type": "mysql",
- "type_human_readable": "MySQL",
- "version": "8.0",
- "is_auto_generated": false,
- "auto_start": false,
- "initial_state": "stopped",
- "description": "MySQL Community Server",
- "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Service. |
{- "id": 1
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| service_id required | integer >= 1 Example: 123 The ID of the service. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 93023,
- "key": "APP_URL",
- "type": "file",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "target_human_readable": "Resource Configuration File",
- "resource_id": 3426,
- "resource_type": "application",
- "hidden": false,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
]| service_id required | integer >= 1 Example: 123 The ID of the service. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| key required | string The unique key used to identify the variable on the target. Must not be greater than 100 characters. |
| value required | string The value to be assigned to this variable when deployed to its target.
When variable is of type |
| description | string A text describing the variable, provided by the end user. |
| target required | string (VariableTarget) Enum: "my-cnf" "newrelic-infra-yml" "nginx-http-server" "nginx-http" "nginx-main" "os-env-var" "php-cli_php-ini" "php-fpm_php-fpm-conf" "php-fpm_php-ini" "php-fpm_pool-d-www-conf" "redis-conf" "resource-config-file" "supervisord-conf" "sysctl-conf" The target defining how the variable key/value pair will be deployed |
| type required | string (VariableType) Enum: "file" "variable" The type of the key/value pair |
| hidden required | boolean Indicates if the variable value should be visible or not in the deployment logs. |
{- "key": "APP_URL",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "type": "file",
- "hidden": false
}{- "id": 93023,
- "key": "APP_URL",
- "type": "file",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "target_human_readable": "Resource Configuration File",
- "resource_id": 3426,
- "resource_type": "application",
- "hidden": false,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}A social account is a third party login/authorization service connected to the current user's account. e.g.: Facebook, Google, GitHub
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 85324,
- "user_id": 6589,
- "provider": "github",
- "provider_human_readable": "GitHub",
- "provider_user_nickname": "Joe Smith",
- "is_vcs": true,
- "token_expires_at": "2020-09-25T15:50:48.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| provider required | string (SourceProviderName) Enum: "bitbucket" "github" "gitlab" The name of the source code provider |
| callback_code required | string The temporary code forwarded by the OAuth provider as a parameter to our callback URL. Must be at least 8 characters. |
{- "provider": "bitbucket",
- "callback_code": "a606964974b5fb082971"
}{- "id": 85324,
- "user_id": 6589,
- "provider": "github",
- "provider_human_readable": "GitHub",
- "provider_user_nickname": "Joe Smith",
- "is_vcs": true,
- "token_expires_at": "2020-09-25T15:50:48.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| social_account_provider required | string Example: gitlab The social account provider name. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 85324,
- "user_id": 6589,
- "provider": "github",
- "provider_human_readable": "GitHub",
- "provider_user_nickname": "Joe Smith",
- "is_vcs": true,
- "token_expires_at": "2020-09-25T15:50:48.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}| social_account_provider required | string Example: gitlab The social account provider name. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "provider": "gitlab",
- "connected": false,
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 644,
- "created_by": 35201,
- "project_id": 16675,
- "environment_id": 76441,
- "name": "my-ssh-key",
- "fingerprint": "74:2a:d5:75:8a:9b:64:4c:21:18:54:3f:c5:0a:59:f0",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
Array of objects (ResourceToBeLinkedList) The resources to be linked with this resource | |
| name required | string The ssh key's name. Must not be greater than 60 characters. |
| public_key required | string The public key of the ssh key. |
{- "linked_resources": [
- {
- "resource_type": "server",
- "resource_id": 1
}
], - "name": "my-ssh-key",
- "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCAJGoD1B2m718Q6us8k7UbkjwDJQkusFZ1Yg+s13yuEfd+pfEnni1YfWxz67HPCGUYMtdUTnb7Fkc9xgPgj5Fkl6vhQv1mFbL/addJcV9bIYd4e29LMEsojiAyh99JDTtSXMkljlWYuf4ywALswCna2w+70WHSdoDD3p82THDdoB7p9hPXRzRLZVAzw7Y7is/8Sho4V1byXPxxRfTd5HSGqLqi0zdoef8iXZ2wg4uBJStbszu75oSijM9zHgQtUxE0CgQ1iaPHOg8Idxmg8BQoaYD2OmzwxjwW4wmKUZ5F/qOMknrwZ6iUqjqYFJaLZrj6ZMEZ2ydTuS3uNAQO7Zfb"
}{- "id": 643,
- "created_by": 35131,
- "project_id": 16642,
- "environment_id": 76441,
- "name": "my-ssh-key",
- "fingerprint": "74:2a:d5:75:8a:9b:64:4c:21:18:54:3f:c5:0a:59:f0",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| ssh_key_id required | integer >= 1 Example: 123 The ID of the ssh key. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| ssh_key_id required | integer >= 1 Example: 123 The ID of the ssh key. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 643,
- "created_by": 35131,
- "project_id": 16642,
- "environment_id": 76441,
- "name": "my-ssh-key",
- "fingerprint": "74:2a:d5:75:8a:9b:64:4c:21:18:54:3f:c5:0a:59:f0",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "servers": [
- {
- "id": 9654123,
- "created_by": 1,
- "name": "web-srv-1",
- "hostname": "web-srv-1",
- "provider_name": "self-hosted",
- "provider_name_human_readable": "VPS/Self Hosted",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "ip_address": "200.123.45.67",
- "ssh_port": 22,
- "active": true,
- "status": "running",
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| ssh_key_id required | integer >= 1 Example: 123 The ID of the ssh key. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given SSH Key. |
| name required | string The ssh key's name. Must not be greater than 60 characters. |
{- "id": 1,
- "name": "my-ssh-key"
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}Throughout the devopness documentation the term SSL Certificate refers to a public key certificate adhering to X.509 standard. While TLS is the protocol more used nowadays for web encryption, for historical reasons web encryption is often referred to simply as SSL. A SSL Certificate managed by devopness might be used as an HTTPS/SSL/TLS and other internet protocols to establish encrypted connections between client apps (e.g. browsers) and the web application servers managed through devopness, but it's not limited to be used for authenticating server's identity.
| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 8423749,
- "name": "my-subdomain.example.com",
- "type": "single-domain",
- "issuer": "custom",
- "validation_level": "DV",
- "active": true,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "expires_at": "2020-04-16T15:50:48.000000Z",
- "last_renewed_at": "2020-04-16T15:50:48.000000Z",
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| virtual_host_id required | integer The ID of the virtual host to which this SSL certificate will be issued. |
| issuer required | string (SslCertificateIssuer) Enum: "custom" "lets-encrypt" The entity or certification authority (CA) who issued the certificate |
| type | string (SslCertificateType) Enum: "single-domain" "multi-domain" "wildcard" The certificate type, indicating its scope |
| validation_level | string (SslCertificateValidationLevel) Enum: "DV" "OV" "EV" The level of validation applied when issuing the certificate. This can be one out of the three validation levels conforming to public key certificates standards: |
| custom_private_key | string The private key provided by the Certification Authority, when the certificate has not been automatically issued through |
| custom_certificate | string The contents of the certificate provided by the Certification Authority, when the certificate has not been automatically issued through |
{- "virtual_host_id": 123,
- "issuer": "custom",
- "type": "single-domain",
- "validation_level": "DV",
- "custom_private_key": "-----BEGIN RSA PRIVATE KEY-----\n Proc-Type: 4,ENCRYPTED\n DEK-Info: DES-EDE3-CBC,4E262401F693044C\n\n jyoAdQaTKnfNDNfqAZR7hZsNNXoMXmspJp0h0eb7Gc2FyaX1iS70VeUWVlGkPfG/\n lp7cPvvUO36pTaU0kLOWdG8FGHRIblO8v4f9E2/eD7VgNLJ4W8tP0rff3d18M32B\n jfG/Mg90Gsew3XXlLo5eVO+3xbuGhKcZ1p6RVa5vdEOr1Pk/huyvH6HLsXCEOSS+\n 6NF/nVRqP8VAlSFF58QQIz7hQsfyOr8EVzdW4RNlygaUgWDCGa/CCwR6NgGcRyRj\n M3R1R36KUWubxmPHj21EB1XO4H4LF15eE0ZjBXfRUllWdaWONU26HOlld4Y8HhMf\n tVCt7LeavMuh0tVRmKCrj3fbxRCgc1mRM58EEhYbbFkj0jZzWmbVUB6xegwGCyLH\n LSb/HuC9WI7xKsNXIkm9O0Gso+EZ75Feex8DGVX407kiAQtJ/Kdh8Lo8Hv0bDby9\n IuSpfJszDn5eB9K3k112SOz1LPfQJB8m/o94MmnaFACX5Usc0yy5CmN/3iCEnnVj\n i2po86njYaqiN2NeAXY07bkp+U2paVfs+crpXkboegy/IO0qWizU3x2GgOxB/6Sg\n BzqqDNb8yiVjctcr7puIjJfMCe4QR4gAeaMphlK1Y8EeABdTGLsFF7Rxf/2Bn6WS\n Kd7EW8bF5UqnSM18h9GSbMoZMSBpZF6YGA45lzgKEPlhJqNhBhUgtOz17RocnwnC\n 7Sl7XFIJZWG9kgVY1bLzD/0hKN3TzTdAzSlFW2dybKdz+te5LSPuI7GjwSi14PPN\n r/YoTMcpn4EYxiUq/IVaKQkDc5ZE1qKe9etiLQPIp/L7hN3zFgd6UPqAB6vRweJa\n tS5g1bl24Il/a5yt9i7TgbxyrpY3ZmU5g0WKoz1/WFvO4s49RC9Jgih1ShO5u+CG\n aV4A80+TMbROuWx35P7y3ZjmUH/y9XU8gKdRo6BgZrBfK0QgIq/JzN7Zca6Z3oss\n nW8B2g9KTK9JqIKSfhq5Udfyfmtipe6EidpDwHXTMWDNey42CAMH/IOj5Pq5rUwb\n LW4VOnk4RIVwyGtms3qHRUuki6VBSpy75ROkfHe5v/3RaNqd+2VrzvsGyk3R7ek6\n dQbe8J5AUK2/hUYI7UOP6hkQ/jvET+R2DVkqHQoGgGH5XO+7efc60oZuz7qh8khH\n m2gMmP+6LsSUYAEG743FQFu1BOrFdQPrF7/3Zmx64fPpqp1lVWpqHY0EoDZYfzYw\n TD2WxeMRFNY4+l1HiKxZOaO+4Q82vOW7fMs8YSH6uDTmTy78R28gTenv/r4kiFQg\n bey+ghK5msxMFV6Dy9vIrD20D4qknBjl/8Qt73hUaRrRSFaakp0Tq2myg6fzpbQ8\n 3d/Yx3tZeRnjufh/PrAp+9wdNT5sotuNflXjSiPQ7VDGuSLu4InTu2j/bgcHfqDf\n 0vRd5GQRcWcVDUwXY5xR7hOoot/Ej/F045rtg2pIG0ALdpfOY0NB5HDVaKY9lvWQ\n DNL5iY1cxjSK1fjN5qpy1JV7ZHGHoCogBac9SOtBkf+tJPEKu2eF/kIQOCp0iqSg\n 3ke/l7xYSrusjiEwzIjN+XTsdlcQzMk8OJb7/+Y+SZGqMmlTIemip+L/ybeXETEL\n -----END RSA PRIVATE KEY-----",
- "custom_certificate": "-----BEGIN RSA PRIVATE KEY-----\n MIIEpAIBAAKCAQEA1DFNCpE0TTSuZNPRYivpH92uFyptmNL0bY8KpnVTzUR/G3vr\n e5Iua0OuCB9sW0JB1MCoYndHjeSt6NtJ0zDcbT/i+c0LyWqhx4YfsyUhPtYUBOy4\n tnDsG9dzFe+PWomxVPERFwVk5a7CflHlbtqadxdhHTBGU34XUk3lGs+YjQarj5OV\n vbk5sAIkrXYF2hDFn0I2NY7I47sB2CvHqMlXfrawSWMSA0XZhO6g0Fp9AzEw23xf\n U/oxbTyShyOiwq6fBv/lviqacJTrF4b078qCKUhAW0bDhhk6Oz9NOQlAGV90ISVY\n Y5vKn0Jpgmi6G+Btsk0+Y626RTAi6bDw6B0QJwIDAQABAoIBAQCS+XsVgLIrb/wD\n lrwHNccJ7XByV08GdcgcQuHrnoTnPzSTguf+9af1YDGhKrLRGzmh9bgsS9ZiMC1N\n hubBw6xKd9/tittJLfTU0NAQM/2tGndPWfAvXlQMjNUIMqCm44zS+w8NVQ0oEj5h\n ZLR4bi5jouv/Xbq4hjP9LDsusPBHbT4HqkM/7jlydV/0L38b+Gpo1bsweVjhSv7w\n nAfmmiDiV7TmoldJNl/dG69bmSgJzza5ywKSBQQkdGpGYsYK1Y8On8mBgS36wvAN\n p1rtxV+/Bdg74e5oWuLygHJeR1DnvE0uswcA9ln2KTsLAcw1JESWflWdAGeFTgbp\n jdU40X5BAoGBAPVRzVx2sSuFQ4Y7QhVvH36/A5HYO1u9JTal8RNebjz+UXMtNFzX\n 6qsUih5JD60EloZUIgtOhyXw+NdRdyKTUdkuwszldDBvLKIVHmZb9tx46l5C39xf\n 1O6vIO6mY0l/OlPsg0MNXv73PJllYycXylfFsX1jqCZulCdncEzrYprXAoGBAN1u\n SKNPe3/pfaZA8HAqvrX6g0N0OwWvQ9muQl8BlVzRzdsdsrfEHCMJ8qJcp5WhpYwg\n RnyB1jhsjLx9rzpTL9OXwHDII8oo1WqbNW0EGLBYaktXZ9lGUIDBAmdgrxqZTba9\n t5r7aUCSYgA6dI2S/SNRxquEbRfq1cwpbQ2RBVsxAoGAFSr81Gitevrhy7hbSGwx\n RIeI8FG/NXhJuMBy39/7FSpArvaMmSJMbny0Ok7FmoFV17t0wJMDGGQFpNazt/kM\n S/g7+OAnuXIuYMH/wIdY8sdAOef9Vw+x2PKlndIfqRzgVJOI9AU4WDnPMdFMz/e+\n jvpRCWfK/531DL1hNFHvTTsCgYA+T2xtWE5+fiv3fsqqJb0o5GfPsYNyZBGJzfmr\n Vny7c+ajxEWoZK0uRvxaKAyYlLZLKkHrg3XOxu0LlaqblREeT9O9aPR5TOhRaX+t\n P7va0+aFcQEuKRU6RhXxFUnxCDbQN67VE+5YV1jwi4KE3FoTeE2ZslgopNKo8vdX\n G/oP4QKBgQClfgjKf0Vj7wsq1wYJiVQ7it8jZtgB5nv1DQsWoK8OoydzaM0HTWR4\n DCdSRb+LB6CfwFiBcZGvGFNNewDZc1X/lKXZ+uuFffCKcwP7f7PYgm3lXIa20KUK\n ktcbPcfeN0sof3+Mb+NDzLTwL+8bU+8S8AYu5M3JFxBCyzWrldvRrA==\n -----END RSA PRIVATE KEY-----"
}{- "id": 8423749,
- "name": "my-subdomain.example.com",
- "type": "single-domain",
- "issuer": "custom",
- "validation_level": "DV",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "expires_at": "2020-04-16T15:50:48.000000Z",
- "last_renewed_at": "2020-04-16T15:50:48.000000Z",
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}| ssl_certificate_id required | integer >= 1 Example: 123 The ID of the ssl certificate. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| ssl_certificate_id required | integer >= 1 Example: 123 The ID of the ssl certificate. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 8423749,
- "name": "my-subdomain.example.com",
- "type": "single-domain",
- "issuer": "custom",
- "validation_level": "DV",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "expires_at": "2020-04-16T15:50:48.000000Z",
- "last_renewed_at": "2020-04-16T15:50:48.000000Z",
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}| subnet_id required | integer >= 1 Example: 123 The ID of the subnet. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| subnet_id required | integer >= 1 Example: 123 The ID of the subnet. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 7641,
- "name": "my-subnet",
- "type": "public",
- "is_auto_generated": false,
- "provision_input": {
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "zone": "us-east-1a",
- "cidr_block": "10.2.0.0/24"
}
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "network": {
- "id": 6721,
- "project_id": 123,
- "environment_id": 456,
- "created_by": 789,
- "is_auto_generated": false,
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "name": "my-network",
- "provision_input": {
- "cloud_service_code": "aws-ec2",
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "cidr_block": "10.0.0.0/24"
}
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| network_id required | integer >= 1 Example: 123 The ID of the network. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| region | string Example: region=us-east-1 Filter by subnet's region. |
| zone | string Example: zone=us-east-1a Filter by subnet's zone. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 7641,
- "project_id": 123,
- "environment_id": 456,
- "created_by": 789,
- "network_id": 6721,
- "name": "my-subnet",
- "type": "public",
- "is_auto_generated": false,
- "provision_input": {
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "zone": "us-east-1a",
- "cidr_block": "10.2.0.0/24"
}
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
]| network_id required | integer >= 1 Example: 123 The ID of the network. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The subnet's name. Must be between 1 and 63 characters. |
| type required | string (SubnetType) Value: "public" The subnet's type: |
required | object (SubnetProvisionInput) Subnet provision input parameters |
| credential_id required | integer The ID of the cloud credential. |
{- "name": "my-subnet",
- "type": "public",
- "provision_input": {
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "zone": "us-east-1a",
- "cidr_block": "10.2.0.0/24"
}
}, - "credential_id": 123
}{- "id": 7641,
- "name": "my-subnet",
- "type": "public",
- "is_auto_generated": false,
- "provision_input": {
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "zone": "us-east-1a",
- "cidr_block": "10.2.0.0/24"
}
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "network": {
- "id": 6721,
- "project_id": 123,
- "environment_id": 456,
- "created_by": 789,
- "is_auto_generated": false,
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services",
- "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "name": "my-network",
- "provision_input": {
- "cloud_service_code": "aws-ec2",
- "settings": {
- "region": "us-east-1",
- "region_human_readable": "US East (N. Virginia) us-east-1",
- "cidr_block": "10.0.0.0/24"
}
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}| project_id required | integer >= 1 Example: 123 The ID of the project. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 137,
- "name": "Some Development Team",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| project_id required | integer >= 1 Example: 123 The ID of the project. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| name required | string The name of the team. Must not be greater than 255 characters. |
| photo_url | string The URL to team's image. Must be a valid URL. |
{- "name": "Development Team",
}{- "id": 137,
- "name": "One Development Team",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "users": [
- {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| team_id required | integer >= 1 Example: 123 The ID of the team. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| team_id required | integer >= 1 Example: 123 The ID of the team. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 137,
- "name": "One Development Team",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "users": [
- {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| team_id required | integer >= 1 Example: 123 The ID of the team. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Team. |
| name required | string The name of the team. Must not be greater than 255 characters. |
| photo_url | string The URL to team's image. Must be a valid URL. |
{- "id": 1,
- "name": "Development Team",
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| team_id required | integer >= 1 Example: 123 The ID of the team. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "environment": {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}, - "role": {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| team_id required | integer >= 1 Example: 123 The ID of the team. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": "e57996b5-3cf3-4cae-a925-e2e2ada52732",
- "type": "private",
- "email": "invited.user@email.com",
- "status": "accepted",
- "status_human_readable": "Pending invitation",
- "public_accept_url": null,
- "accepted_from_ip": "172.17.0.24",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "team": {
- "id": 137,
- "name": "Some Development Team",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "accepted_at": "2019-09-26T13:22:37.000000Z",
- "expires_at": "2019-09-27T13:22:37.000000Z",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| team_id required | integer >= 1 Example: 123 The ID of the team. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| type required | string (TeamInvitationType) Enum: "private" "public" The possible types of Team Invitation. |
string The user email to send the invitation. Must be a valid email address. This field is required when |
{- "type": "private",
- "email": "invited.user@email.com"
}{- "id": "e57996b5-3cf3-4cae-a925-e2e2ada52732",
- "type": "private",
- "email": "invited.user@email.com",
- "status": "accepted",
- "status_human_readable": "Pending invitation",
- "public_accept_url": null,
- "accepted_from_ip": "172.17.0.24",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "team": {
- "id": 137,
- "name": "Some Development Team",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "accepted_at": "2019-09-26T13:22:37.000000Z",
- "expires_at": "2019-09-27T13:22:37.000000Z",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| team_invitation_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the team invitation. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| team_invitation_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the team invitation. |
| token | string Example: token=some-random-token The token to authorize the acceptance of public invitations. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| team_invitation_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the team invitation. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| team_id required | integer >= 1 Example: 123 The ID of the team. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| team_id required | integer >= 1 Example: 123 The ID of the team. |
| user_id required | integer >= 1 Example: 123 The ID of the user. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
| team_id required | integer >= 1 Example: 123 The ID of the team. |
| user_id required | integer >= 1 Example: 123 The ID of the user. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "team": {
- "id": 137,
- "name": "Some Development Team",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| team_id required | integer >= 1 Example: 123 The ID of the team. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| role_id required | integer The role's ID to use for this team on environment. |
{- "role_id": 430
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| team_id required | integer >= 1 Example: 123 The ID of the team. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 626,
- "name": "Team Rocket",
- "role": {
- "id": 45678,
- "name": "admin",
- "description": "Has total access to resources",
- "project_id": 984123,
- "is_predefined": false,
- "permissions": [
- "application:read",
- "application:create",
- "server:read"
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| Accept required | string application/json |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| Accept required | string application/json |
| Content-Type required | string application/json |
A JSON object containing the resource data
| email required | string The user email to resend the verification link to. Must be a valid email address. |
{- "email": "my-email@devopness.com"
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| Accept required | string application/json |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "active_subscription": {
- "id": 654982,
- "user_id": 23489,
- "plan_name": "Devopness - 300 actions per month plan",
- "status": "active",
- "quantity": 10,
- "price_unit": 20.5,
- "price_total": 200.5,
- "price_currency": "USD",
- "cancelled_at": "2019-09-25T15:50:48.000000Z",
- "ends_at": "2019-09-25T15:50:48.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "current_balance": {
- "credits": {
- "limit": 200,
- "used": 50,
- "remaining": 150
}, - "unit": "action-step",
- "billing_period_started_at": "2023-04-11T00:00:00.000000Z",
- "billing_period_ends_at": "2023-05-11T00:00:00.000000Z",
- "created_at": "2023-04-11T00:22:48.000000Z",
- "updated_at": "2023-04-12T00:22:48.000000Z"
}, - "balances": [
- {
- "credits": {
- "limit": 200,
- "used": 50,
- "remaining": 150
}, - "unit": "action-step",
- "billing_period_started_at": "2023-04-11T00:00:00.000000Z",
- "billing_period_ends_at": "2023-05-11T00:00:00.000000Z",
- "created_at": "2023-04-11T00:22:48.000000Z",
- "updated_at": "2023-04-12T00:22:48.000000Z"
}
]
}
}| Accept required | string application/json |
| Content-Type required | string application/json |
{- "token_type": "Bearer",
- "expires_in": 3600,
- "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImYwYjQxZjk1MTdiYWExOTg4Zjk...",
- "refresh_token": "def50200a757a1c4dbc4859a4c47195632f4df60ebb521ac5a28a0b7553101f08f8b9..."
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 45678,
- "name": "Some One",
- "email": "someone@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "social_accounts": [
- {
- "id": 85324,
- "user_id": 6589,
- "provider": "github",
- "provider_human_readable": "GitHub",
- "provider_user_nickname": "Joe Smith",
- "is_vcs": true,
- "token_expires_at": "2020-09-25T15:50:48.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| Accept required | string application/json |
| Content-Type required | string application/json |
A JSON object containing the resource data
| refresh_token required | string A token to be used after the original access token has expired, to issue a new token without requiring a new request to the /users/login endpoint. |
{- "refresh_token": "def50200a757a1c4dbc4859a4c47195632f4df60ebb521ac5a28a0b7553101f08f8b9..."
}{- "token_type": "Bearer",
- "expires_in": 3600,
- "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImYwYjQxZjk1MTdiYWExOTg4Zjk...",
- "refresh_token": "def50200a757a1c4dbc4859a4c47195632f4df60ebb521ac5a28a0b7553101f08f8b9..."
}| user_id required | string Example: johndoe The numeric ID or URL Slug of a user. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 45678,
- "name": "Some One",
- "email": "someone@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "social_accounts": [
- {
- "id": 85324,
- "user_id": 6589,
- "provider": "github",
- "provider_human_readable": "GitHub",
- "provider_user_nickname": "Joe Smith",
- "is_vcs": true,
- "token_expires_at": "2020-09-25T15:50:48.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| user_id required | string Example: 2ab973e1-9528-4d67-aff0-209d74975830 The ID of the user. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| user_id required | string Example: johndoe The numeric ID or URL Slug of a user. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "projects": {
- "owner_of": 4,
- "member_of": 6
}, - "environments": {
- "owner_of": 4,
- "member_of": 6
}, - "teams": {
- "owner_of": 4,
- "member_of": 6
}, - "triggered_actions": {
- "summary": {
- "count": 5,
- "queued": 1,
- "pending": 1,
- "in_progress": 1,
- "completed": 1,
- "failed": 1
}, - "operations": [
- {
- "resource_type": "server",
- "action_type": "configure",
- "resource_type_human_readable": "Server",
- "action_type_human_readable": "Add",
- "summary": {
- "count": 5,
- "queued": 1,
- "pending": 1,
- "in_progress": 1,
- "completed": 1,
- "failed": 1
}
}
]
}
}| user_id required | string Example: johndoe The numeric ID or URL Slug of a user. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| subscription_id | integer Example: subscription_id=432 ID of a user subscription to calculate the amount of credits used from that subscription on each user environment. If provided, and being a valid subscription belonging to current user, the 'used_credits' field will be added to the response. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 2,
- "type": "staging",
- "type_human_readable": "Staging",
- "name": "My staging",
- "description": "My staging environment",
- "used_credits": 50,
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z",
- "archived_at": "2019-09-26T10:45:42.000000Z",
- "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
}
]| Accept required | string application/json |
| Content-Type required | string application/json |
A JSON object containing the resource data
| token required | string The unique token generated by the API and sent to the user's e-mail address when the send-reset-link operation has been triggered. |
| email required | string The email of the user to reset the password. |
| password required | string The new password to define to user account. |
| password_confirmation required | string The new password again. |
{- "token": "55e16e05980a5ed3b48d8ace4282b6b3b9c92f4f2cf3d50f1c67e38a53e43b7d",
- "email": "my-email@devopness.com",
- "password": "my-password",
- "password_confirmation": "my-password"
}{- "message": "Your password has been reset"
}| Accept required | string application/json |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| user_id required | string Example: johndoe The numeric ID or URL Slug of a user. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| subscription_id | integer Example: subscription_id=9876 ID of a user subscription to calculate the amount of credits used from that subscription on each user project. If provided, and being a valid subscription belonging to current user, the 'used_credits' field will be added to the response. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
]| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": "e57996b5-3cf3-4cae-a925-e2e2ada52732",
- "type": "private",
- "email": "invited.user@email.com",
- "status": "accepted",
- "status_human_readable": "Pending invitation",
- "public_accept_url": null,
- "accepted_from_ip": "172.17.0.24",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "team": {
- "id": 137,
- "name": "Some Development Team",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}, - "project": {
- "id": 45678,
- "user_id": 45678,
- "name": "my project",
- "resource_summary": [
- {
- "resource_type": "environment",
- "resource_type_plural": "environments",
- "resource_type_human_readable": "Environment",
- "resource_type_human_readable_plural": "Environments",
- "summary": {
- "count": 1
}
}
], - "os_users": [
- {
- "name": "devopness"
}
], - "owner": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "owner_type": "user",
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "used_credits": 123,
- "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}, - "accepted_at": "2019-09-26T13:22:37.000000Z",
- "expires_at": "2019-09-27T13:22:37.000000Z",
- "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| resource_id required | integer >= 1 Example: 123 The resource ID. |
| resource_type required | string Example: server The resource type to get variables from. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| include_virtual_variables | boolean If true, include all |
| variable_target | string Example: variable_target=resource-config-file Filter by variable's target. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 93023,
- "key": "APP_URL",
- "type": "file",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "target_human_readable": "Resource Configuration File",
- "resource_id": 3426,
- "resource_type": "application",
- "hidden": false,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}
]| resource_id required | integer >= 1 Example: 123 The resource ID. |
| resource_type required | string Example: server The resource type to get variables from. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| key required | string The unique key used to identify the variable on the target. Must not be greater than 100 characters. |
| value required | string The value to be assigned to this variable when deployed to its target.
When variable is of type |
| description | string A text describing the variable, provided by the end user. Must not be greater than 255 characters. |
| target required | string (VariableTarget) Enum: "my-cnf" "newrelic-infra-yml" "nginx-http-server" "nginx-http" "nginx-main" "os-env-var" "php-cli_php-ini" "php-fpm_php-fpm-conf" "php-fpm_php-ini" "php-fpm_pool-d-www-conf" "redis-conf" "resource-config-file" "supervisord-conf" "sysctl-conf" The target defining how the variable key/value pair will be deployed |
| type required | string (VariableType) Enum: "file" "variable" The type of the key/value pair |
| hidden required | boolean Indicates if the variable value should be visible or not in the deployment logs. |
{- "key": "APP_URL",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "type": "file",
- "hidden": false
}{- "id": 93023,
- "key": "APP_URL",
- "type": "file",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "target_human_readable": "Resource Configuration File",
- "resource_id": 3426,
- "resource_type": "application",
- "hidden": false,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| variable_id required | integer >= 1 Example: 123 The ID of the variable. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| variable_id required | integer >= 1 Example: 123 The ID of the variable. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 93023,
- "key": "APP_URL",
- "type": "file",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "target_human_readable": "Resource Configuration File",
- "resource_id": 3426,
- "resource_type": "application",
- "hidden": false,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2022-09-26T15:30:31.000000Z",
- "updated_at": "2022-09-26T15:30:58.000000Z"
}| variable_id required | integer >= 1 Example: 123 The ID of the variable. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Variable. |
| key required | string The unique key used to identify the variable on the target.
When variable is of type |
| value required | string The value to be assigned to this variable when deployed to its target.
When variable is of type |
| description | string A text describing the variable, provided by the end user. Must not be greater than 255 characters. |
| target required | string (VariableTarget) Enum: "my-cnf" "newrelic-infra-yml" "nginx-http-server" "nginx-http" "nginx-main" "os-env-var" "php-cli_php-ini" "php-fpm_php-fpm-conf" "php-fpm_php-ini" "php-fpm_pool-d-www-conf" "redis-conf" "resource-config-file" "supervisord-conf" "sysctl-conf" The target defining how the variable key/value pair will be deployed |
| type required | string (VariableType) Enum: "file" "variable" The type of the key/value pair |
| hidden required | boolean Indicates if the variable value should be visible or not in the deployment logs. |
{- "id": 1,
- "key": "APP_URL",
- "description": "Sample variable description",
- "target": "resource-config-file",
- "type": "file",
- "hidden": false
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| page | integer >= 1 Example: page=1 Number of the page to be retrieved |
| per_page | integer [ 1 .. 100 ] Example: per_page=25 Number of items returned per page |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
[- {
- "id": 1,
- "type": "name-based",
- "type_human_readable": "Domain name (name-based virtual host)",
- "name": "my-site.example.com",
- "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "root_directory": "public",
- "ssl_certificate": {
- "id": 8423749,
- "name": "my-subdomain.example.com",
- "type": "single-domain",
- "issuer": "custom",
- "validation_level": "DV",
- "active": true,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "expires_at": "2020-04-16T15:50:48.000000Z",
- "last_renewed_at": "2020-04-16T15:50:48.000000Z",
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}
]| environment_id required | integer >= 1 Example: 123 The ID of the environment. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
Array of objects (ResourceToBeLinkedList) The resources to be linked with this resource | |
| type required | string The type of virtual host to be created. |
| name required | string The name of the virtual host, unique within the environment. For |
| root_directory | string The document root location, within the application directory, that contains the public files to be served when a user visits the domain name associated with this virtual host. Must not be greater than 255 characters. |
| application_listen_address | string or null The network name or IP address on which the application linked to this virtual host is configured to listen for incoming requests. A valid address has |
| application_id | integer or null The ID of the application to be associated with the virtual host. The value of |
{- "linked_resources": [
- {
- "resource_type": "server",
- "resource_id": 1
}
], - "type": "name-based",
- "name": "my-site.example.com",
- "root_directory": "public",
- "application_id": 1
}{- "id": 1,
- "type": "name-based",
- "type_human_readable": "Domain name (name-based virtual host)",
- "name": "my-site.example.com",
- "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "root_directory": "public",
- "ssl_certificate": {
- "id": 8423749,
- "name": "my-subdomain.example.com",
- "type": "single-domain",
- "issuer": "custom",
- "validation_level": "DV",
- "active": true,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "expires_at": "2020-04-16T15:50:48.000000Z",
- "last_renewed_at": "2020-04-16T15:50:48.000000Z",
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| virtual_host_id required | integer >= 1 Example: 123 The ID of the virtual host. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| virtual_host_id required | integer >= 1 Example: 123 The ID of the virtual host. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
{- "id": 1,
- "type": "name-based",
- "type_human_readable": "Domain name (name-based virtual host)",
- "name": "my-site.example.com",
- "application": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "root_directory": "public",
- "ssl_certificate": {
- "id": 8423749,
- "name": "my-subdomain.example.com",
- "type": "single-domain",
- "issuer": "custom",
- "validation_level": "DV",
- "active": true,
- "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "expires_at": "2020-04-16T15:50:48.000000Z",
- "last_renewed_at": "2020-04-16T15:50:48.000000Z",
- "created_at": "2020-04-16T15:50:48.000000Z",
- "updated_at": "2020-04-16T15:50:48.000000Z"
}, - "last_action": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "resource": {
- "id": 1839123,
- "type": "application",
- "type_human_readable": "Application",
- "data": {
- "id": 4654019,
- "project_id": 4654019,
- "environment_id": 4654121,
- "created_by": 1,
- "name": "my-awesome-app",
- "repository": "devopness/devopness",
- "repository_name": "devopness",
- "repository_owner": "devopness",
- "default_branch": "main",
- "programming_language": "python",
- "programming_language_human_readable": "Python",
- "engine_version": "19.03.2",
- "framework": "fastapi",
- "framework_human_readable": "FastAPI",
- "root_directory": "/src",
- "deployments_keep": 4,
- "install_dependencies_command": "npm install",
- "build_command": "npm run build",
- "last_deployments": {
- "latest": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "live": {
- "id": 567819876,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Action created successfully but has not yet been queued for execution.",
- "type": "deploy",
- "type_human_readable": "Deploy",
- "action_data": {
- "release_name": "2022-07-05-13-25-38",
- "commit": {
- "repository": "devopness/example",
- "author_name": "Author Name",
- "author_email": "email@example.com",
- "committed_at": "2019-09-25T15:50:48.000000Z",
- "hash": "d433e4622fde4b59a48586ed94082e2d76e855c1",
- "message": "fix: some bug",
}, - "deployment": {
- "type": "deploy",
- "source_type": "branch",
- "source_ref": "develop",
- "repository": "devopness/example",
- "provider_name": "github",
- "pipeline_id": 23439
}
}, - "triggered_from": {
- "trigger_type": "manual",
- "name": "User Name",
- "email": "user@example.com",
- "ip_address": "172.17.0.9",
- "user_id": 794613284672,
- "hook_id": "28623d9b-0f34-48d7-b5ab-9ed281dc5a6c",
- "hook_request_id": "0369a338-10f0-48d0-aa2d-80d1ce14e91e"
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": null,
- "action_id": null,
- "action_target_id": null,
- "name": null,
- "description": null,
- "order": null,
- "status": null,
- "status_human_readable": null,
- "status_reason_code": null,
- "status_reason_human_readable": null,
- "started_at": null,
- "completed_at": null,
- "created_at": null,
- "updated_at": null
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}, - "credential": {
- "id": 85324,
- "name": "My cool credential",
- "provider": {
- "active": true,
- "code": "aws",
- "code_human_readable": "Amazon Web Services",
- "type": "cloud_provider",
- "type_human_readable": "Cloud Provider"
}, - "provider_type": "cloud_provider",
- "provider_type_human_readable": "Cloud Provider",
- "active": true,
- "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T15:50:48.000000Z"
}, - "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
}, - "summary": {
- "targets": {
- "count": 4,
- "pending": 2,
- "in_progress": 1,
- "completed": 1,
- "failed": 0
}
}, - "targets": [
- {
- "id": 1234,
- "resource_type": "server",
- "resource_type_human_readable": "Server",
- "resource_id": 4567890,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Target created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "total_steps": 5,
- "current_step": {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "steps": [
- {
- "id": 18931,
- "action_id": 98412,
- "action_target_id": 65712,
- "name": "Setting up cron job",
- "description": "Setting up cron job for daily execution at 00:00",
- "order": 3,
- "status": "in-progress",
- "status_human_readable": "Pending",
- "status_reason_code": "PENDING",
- "status_reason_human_readable": "Pending: Step created successfully but has not yet been queued for execution. It will be added to an execution queue once their dependencies are resolved.",
- "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "resource_data": {
- "id": 4425,
- "name": "my-credential",
- "provider_type": "cloud_provider",
- "provider_code": "aws",
- "provider_name": "aws",
- "provider_name_human_readable": "Amazon Web Services"
}, - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}
], - "started_at": "2019-09-25T15:50:48.000000Z",
- "completed_at": "2019-09-25T13:52:04.000000Z",
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_by_user": {
- "id": 1,
- "name": "string",
- "email": "user@example.com",
- "url_slug": "someone",
- "language": "en",
- "active": true,
- "created_at": "2019-09-25T15:50:48.000000Z",
- "updated_at": "2019-09-25T13:52:04.000000Z"
}, - "created_at": "2019-09-25T13:22:37.000000Z",
- "updated_at": "2019-09-25T13:22:37.000000Z"
}| virtual_host_id required | integer >= 1 Example: 123 The ID of the virtual host. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| id required | integer The unique ID of the given Virtual Host. |
| name required | string The name of the virtual host, unique within the environment. For |
| root_directory | string The document root location, within the application directory, that contains the public files to be served when a user visits the domain name associated with this virtual host. Must not be greater than 255 characters. |
| application_listen_address | string or null The network name or IP address on which the application linked to this virtual host is configured to listen for incoming requests. A valid address has |
| application_id | integer or null The ID of the application to be associated with the virtual host. The value of |
{- "id": 1,
- "name": "my-app.example.com",
- "root_directory": "public",
- "application_id": 1
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}| virtual_host_id required | integer >= 1 Example: 123 The ID of the virtual host. |
| Accept required | string application/json |
| Authorization required | string Bearer {{access_token}} |
| Content-Type required | string application/json |
A JSON object containing the resource data
| servers | Array of integers (ResourceIdList) List of valid resource IDs |
{- "servers": [
- 0
]
}{- "message": "The given data was invalid.",
- "errors": {
- "field_1": "The field 'field_1' is required",
- "field_2": "The field 'field_2' is not of the expected type"
}
}