object-storage-2

Create bucket

Creates a new service bucket by the given {service_uuid}.

post/1.3/object-storage-2/{service-uuid}/buckets

Request

  • Base URL: https://api.upcloud.com
  • URL: https://api.upcloud.com/1.3/object-storage-2/{service-uuid}/buckets
  • Auth: HTTP bearer

Path parameters

service-uuidstring uuid required

The unique identifier for the service.

Example:01234567-89ab-cdef-0123-456789abcdef

Service UUID

Request body

namestring required

Must be unique within the service, and should contain only alphanumeric, .,- and _.

Example request

{
  "name": "my-bucket-1"
}

Response

Created

namestring
total_objectsinteger
total_size_bytesinteger
deletedboolean

Example response

{
  "name": "my-bucket-1",
  "total_objects": 1000,
  "total_size_bytes": 1073741824,
  "deleted": false
}

Changes

No recorded changes to this operation across all 1 revision of this API.