/  Yamcs HTTP API  /  Buckets  /  Create Bucket

Create BucketΒΆ

Create a bucket

URI Template

POST /api/storage/buckets

Request Body

interface CreateBucketRequest {

  // Yamcs instance name. Or _global.
  instance: string;

  // Bucket name
  name: string;
}

Response Type

interface BucketInfo {

  // Bucket name
  name: string;

  // Total size in bytes of all objects in the bucket (metadata is not counted)
  size: string;  // String decimal

  // Number of objects in the bucket
  numObjects: number;

  // Maximum allowed total size of all objects
  maxSize: string;  // String decimal

  // Maximum allowed number of objects
  maxObjects: number;

  // Creation time of this bucket
  created: string;  // RFC 3339 timestamp

  // Bucket root directory. This field is only set when the
  // bucket is mapped to the file system. Therefore it is not
  // set for buckets that store objects in RocksDB.
  directory: string;
}