Object Storage
API reference for Object Storage on CUDO Compute.
Reference
POST
Allow the use of S3 compatible storage in a project
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
dataCenterId
- Type
- string
- Description
Request
POST
/v1/projects/{projectId}/object-storage/activate/{dataCenterId}curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/activate/{dataCenterId}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{}
GET
List buckets
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
pageNumber
- Type
- integer
- Description
- Name
pageSize
- Type
- integer
- Description
Request
GET
/v1/projects/{projectId}/object-storage/bucketscurl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/buckets' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"buckets": [
{
"projectId": "string",
"dataCenterId": "string",
"id": "string",
"endpoint": "string",
"objectCount": "string",
"sizeBytes": "string",
"billableBytes": "string",
"storageGibPriceHr": {
"value": "string"
}
}
],
"totalCount": "integer",
"pageNumber": "integer",
"pageSize": "integer"
}
GET
Get details for a bucket
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
dataCenterId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
Request
GET
/v1/projects/{projectId}/object-storage/buckets/{dataCenterId}/{id}curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/buckets/{dataCenterId}/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"projectId": "string",
"dataCenterId": "string",
"id": "string",
"endpoint": "string",
"objectCount": "string",
"sizeBytes": "string",
"billableBytes": "string",
"storageGibPriceHr": {
"value": "string"
}
}
GET
Generate temporary key for storage bucket access
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
dataCenterId
- Type
- string
- Description
Request
GET
/v1/projects/{projectId}/object-storage/session-key/{dataCenterId}curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/session-key/{dataCenterId}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"sessionName": "string",
"accessKey": "string",
"secretKey": "string",
"sessionToken": "string",
"endpoint": "string"
}
GET
List storage users
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
pageNumber
- Type
- integer
- Description
- Name
pageSize
- Type
- integer
- Description
Request
GET
/v1/projects/{projectId}/object-storage/userscurl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/users' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"users": [
{
"projectId": "string",
"dataCenterId": "string",
"id": "string",
"keys": [
{
"accessKey": "string",
"secretKey": "string"
}
],
"createBy": "string",
"createTime": "string"
}
],
"totalCount": "integer",
"pageNumber": "integer",
"pageSize": "integer"
}
POST
Create user that stores keys for storage buckets
Body attributes
- Name
id
- Type
- string
- Description
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
dataCenterId
- Type
- string
- Description
Request
POST
/v1/projects/{projectId}/object-storage/users/{dataCenterId}curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/users/{dataCenterId}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"id": "string"
}'
Response
{
"projectId": "string",
"dataCenterId": "string",
"id": "string",
"keys": [
{
"accessKey": "string",
"secretKey": "string"
}
],
"createBy": "string",
"createTime": "string"
}
DELETE
Delete object storage user
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
dataCenterId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
Request
DELETE
/v1/projects/{projectId}/object-storage/users/{dataCenterId}/{id}curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/users/{dataCenterId}/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{}
POST
Generate access key for storage buckets
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
dataCenterId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
Request
POST
/v1/projects/{projectId}/object-storage/users/{dataCenterId}/{id}curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/users/{dataCenterId}/{id}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"accessKey": "string",
"secretKey": "string"
}
DELETE
Delete object storage user key
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
dataCenterId
- Type
- string
- Description
- Name
id
- Type
- string
- Description
- Name
accessKey
- Type
- string
- Description
Request
DELETE
/v1/projects/{projectId}/object-storage/users/{dataCenterId}/{id}/keys/{accessKey}curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/users/{dataCenterId}/{id}/keys/{accessKey}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{}
GET
Get details about an object storage user
Path attributes
- Name
projectId
- Type
- string
- Description
- Name
dataCenterId
- Type
- string
- Description
- Name
userId
- Type
- string
- Description
Request
GET
/v1/projects/{projectId}/object-storage/users/{dataCenterId}/{userId}curl 'https://rest.compute.cudo.org/v1/projects/{projectId}/object-storage/users/{dataCenterId}/{userId}' \
-H 'Authorization: bearer <YOUR-API-KEY>'\
-H 'Accept: application/json'
Response
{
"projectId": "string",
"dataCenterId": "string",
"id": "string",
"keys": [
{
"accessKey": "string",
"secretKey": "string"
}
],
"createBy": "string",
"createTime": "string"
}