SDK reference
Repositories, databases and buckets
GET/
Lists repositories, databases and buckets, optionally of one type.
Parameters and answerscurl 'https://api.cactive.com.au/v1/orgs/{orgId}/resources' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Creates a repository, database or bucket in a location. With projectId, a database or bucket is linked to that Serverless App Service. Databases take an optional key schema (default pk/sk strings; sortKey: null for a partition key only).
curl -X POST 'https://api.cactive.com.au/v1/orgs/{orgId}/resources' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"type": "repository",
"name": "Example"
}'PATCH/
Links a database or bucket to a Serverless App Service, or unlinks it with projectId: null. Takes effect on the Serverless App Service's next deployment.
curl -X PATCH 'https://api.cactive.com.au/v1/orgs/{orgId}/resources/{type}/{resourceId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"projectId": "<projectId>"
}'DELETE/
Deletes a resource and the AWS resource behind it. Databases must have deletion protection off; buckets must be empty. On failure the resource keeps its status.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/orgs/{orgId}/resources/{type}/{resourceId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"