Projects
The projects of the organization: the namespace of its SVMs, snapshots, secrets, profiles and schedules
Resource, request and plan limits are listed on Limits.
Download OpenAPI specification · Version 0.1.0
List projects
Returns every project of the organization of the key, oldest first. A new organization lists exactly its default project.
Authorization
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Response Body
Every project of the organization, oldest first; every organization has default, so the list is never empty.
application/json- response
Every project of the organization, oldest first; every organization has default, so the list is never empty.
[index: integer]?One project of the organization.
curl -X GET 'https://api.slashinfra.com/projects'[ { "created_ms": 1767225600000, "id": "proj_6f1c0f0e8a", "name": "staging" }]Create a project
Creates a project within the max_projects of the plan. A project namespaces its SVMs, snapshots, secrets, profiles and schedules: a name repeats across projects, and a reference of one cannot name a resource of another.
Authorization
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Request Body
The name of the new project.
- body
The name of the new project.
name*stringThe project name, ^[a-z][a-z0-9-]{0,31}$: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.
Response Body
One project of the organization.
application/json- response
One project of the organization.
created_ms*integerThe creation time in milliseconds since the Unix epoch.
id*stringThe project id: proj_ and ten symbols of the SVM id alphabet.
name*stringThe name of the project, unique in its organization.
curl -X POST 'https://api.slashinfra.com/projects' \ -H 'Content-Type: application/json' \ -d '{ "name": "staging"}'{ "created_ms": 1767225600000, "id": "proj_6f1c0f0e8a", "name": "staging"}Delete a project
Deletes a project that holds no machines, snapshots, secrets, profiles or schedules, and cannot be undone. The default project cannot be deleted.
Authorization
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Path Parameters
ref*stringThe project id (proj_ and ten id symbols), or its name in the organization of the key.
1 <= lengthResponse Body
The project and its usage history are deleted; no body.
response?stringtext/plainThe project and its usage history are deleted; no body.
curl -X DELETE 'https://api.slashinfra.com/projects/staging'"string"Get a project
Returns one project of the caller's organization, by its id or by its name.
Authorization
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Path Parameters
ref*stringThe project id (proj_ and ten id symbols), or its name in the organization of the key.
1 <= lengthResponse Body
One project of the organization.
application/json- response
One project of the organization.
created_ms*integerThe creation time in milliseconds since the Unix epoch.
id*stringThe project id: proj_ and ten symbols of the SVM id alphabet.
name*stringThe name of the project, unique in its organization.
curl -X GET 'https://api.slashinfra.com/projects/staging'{ "created_ms": 1767225600000, "id": "proj_6f1c0f0e8a", "name": "staging"}Rename a project
Changes the name of a project; its id and resources stay the same. The default project cannot be renamed.
Authorization
apiKeyAuthorizationBearer <token>An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.
Path Parameters
ref*stringThe project id (proj_ and ten id symbols), or its name in the organization of the key.
1 <= lengthRequest Body
The new name of the project.
- body
The new name of the project.
name*stringThe project name, ^[a-z][a-z0-9-]{0,31}$: lowercase letters, digits and hyphens, a letter first, and never shaped like an id.
Response Body
One project of the organization.
application/json- response
One project of the organization.
created_ms*integerThe creation time in milliseconds since the Unix epoch.
id*stringThe project id: proj_ and ten symbols of the SVM id alphabet.
name*stringThe name of the project, unique in its organization.
curl -X PATCH 'https://api.slashinfra.com/projects/staging' \ -H 'Content-Type: application/json' \ -d '{ "name": "staging"}'{ "created_ms": 1767225600000, "id": "proj_6f1c0f0e8a", "name": "staging"}curl -X GET 'https://api.slashinfra.com/projects'curl -X POST 'https://api.slashinfra.com/projects' \
-H 'Content-Type: application/json' \
-d '{
"name": "staging"
}'curl -X DELETE 'https://api.slashinfra.com/projects/staging'curl -X GET 'https://api.slashinfra.com/projects/staging'curl -X PATCH 'https://api.slashinfra.com/projects/staging' \
-H 'Content-Type: application/json' \
-d '{
"name": "staging"
}'[
{
"created_ms": 1767225600000,
"id": "proj_6f1c0f0e8a",
"name": "staging"
}
]{
"created_ms": 1767225600000,
"id": "proj_6f1c0f0e8a",
"name": "staging"
}"string"{
"created_ms": 1767225600000,
"id": "proj_6f1c0f0e8a",
"name": "staging"
}{
"created_ms": 1767225600000,
"id": "proj_6f1c0f0e8a",
"name": "staging"
}