This page explains how to manage projects.

List projects

Use this operation to get a complete description of all projects in an organization:

LAMBDADB_ADMIN_API_KEY="ADMIN_API_KEY"

curl -i -X GET "https://{baseUrl}/projects" \
  -H "content-type: application/json" \
  -H "x-api-key: $LAMBDADB_ADMIN_API_KEY"

The response will look like this:

{
  "projects": [
    {
      "id": "<string>",
      "projectName": "<string>",
      "apiKey": "<string>",
      "rateLimit": 123,
      "status": "CREATING"
    }
  ]
}

Describe a project

Use the describe endpoint to get a complete description of a specific project:

LAMBDADB_ADMIN_API_KEY="ADMIN_API_KEY"

curl -i -X GET "https://{baseUrl}/projects/{projectName}" \
  -H "content-type: application/json" \
  -H "x-api-key: $LAMBDADB_ADMIN_API_KEY"

The response will look like this:

{
  "id": "<string>",
  "projectName": "<string>",
  "apiKey": "<string>",
  "rateLimit": 123,
  "status": "ACTIVE"
}

Configure a project

Use the update endpoint to change the rate limit for a project:

LAMBDADB_ADMIN_API_KEY="ADMIN_API_KEY"

curl -i -X PATCH "https://{baseUrl}/projects/{projectName}" \
  -H "content-type: application/json" \
  -H "x-api-key: $LAMBDADB_ADMIN_API_KEY" \
  -d '{
    "rateLimit": 20.0
  }'

The response will look like this:

{
  "id": "<string>",
  "projectName": "<string>",
  "apiKey": "<string>",
  "rateLimit": 20.0,
  "status": "ACTIVE"
}

Delete a project

Use this operation to delete a project and all of its associated resources:

LAMBDADB_ADMIN_API_KEY="ADMIN_API_KEY"

curl -i -X DELETE "https://{baseUrl}/projects/{projectName}" \
  -H "content-type: application/json" \
  -H "x-api-key: $LAMBDADB_ADMIN_API_KEY"

Deleting a project causes deleting all the collections in the project.