/  Yamcs HTTP API  /  Buckets  /  Create Bucket

Create BucketΒΆ

Create a bucket

URI Template

POST /api/buckets/{instance}
{instance}

Yamcs instance name. Or _global.

Request Body

interface CreateBucketRequest {

  // 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;
}