List of containers
GET/containers
The operation allows you to retrieve a collection of all available containers. A container constitutes a collection of pre-written and reusable code components, functions, and modules that enhance software development efficiency.
Request
Query Parameters
Header Parameters
CodeNOW API Key
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
List of containers
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
Array [
]
The unique identifier of the container. Based on the user-defined container name.
The user-friendly name of the container. It allows users to provide a clear and descriptive name that helps in identifying and distinguishing different containers easily. The field accepts free text with alphanumeric and special characters.
The detailed textual description of the container. Allows users to add additional context, notes, or any relevant information about the purpose, usage, or characteristics of the container.
Possible values: [CREATING, READY, FAILED, DELETING]
State of the container
CREATING - Container is being created
READY - Container is ready
FAILED - Container creation failed
DELETING - Container is being deleted
error
object
nullable
Error details, if any, encountered during the container creation process.
scm
object
required
An object containing Source Code Management (SCM) information, including provider, repository/project ID, HTTP clone URL, and SSH clone URL.
The name of the SCM provider associated with the container, facilitating version control and collaborative software development.
CI Provider type (github, codenow, etc)
The unique identifier of the container repository or project within the SCM system.
The SSH address string required for performing a Git clone operation on the repository linked to the container.
The HTTP address string required for performing a Git clone operation on the repository linked to the container.
settings
object
required
Basic settings for the container
Maximum number of builds with accessible logs before they are archived
ciSettings
object
required
CI settings for the container
Associated CI provider:
codenow - uses CodeNow CI
external - uses external CI
List of CI providers that are configurable for the container.
A boolean flag indicating whether pipeline settings are globally configured for the entire repository. If set to false, the pipeline settings are independently customized for individual branches.
The timestamp when the container was created. If the timestamp is unknown, the value will be returned as null.
This field represents the identifier of the user responsible for creating the container.
If the user is unknown, the value will be returned as null.
[
{
"id": "string",
"name": "string",
"description": "string",
"state": "CREATING",
"error": {
"code": "string",
"message": "string"
},
"scm": {
"provider": "string",
"providerType": "string",
"id": "string",
"sshAddress": "string",
"httpAddress": "string"
},
"settings": {
"maxQueueSize": 0
},
"ciSettings": {
"provider": "string",
"availableProviders": [
"string"
],
"globalPipelinesConfiguration": true
},
"createdAt": "2024-07-29T15:51:28.071Z",
"createdBy": "string"
}
]
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.