/  Yamcs HTTP API  /  Buckets  /  List Objects

List ObjectsΒΆ

List objects

URI Template

GET /api/buckets/{instance}/{bucketName}/objects
{instance}

Yamcs instance name. Or _global.

{bucketName}

Bucket name.

Query Parameters

delimiter

Return only objects whose name do not contain the delimiter after the prefix. For the other objects, the response contains (in the prefix response parameter) the name truncated after the delimiter. Duplicates are omitted.

Together with prefix this parameter provides filtering capabilities. These work similar to Google Cloud Storage and Amazon S3.

The delimiter allows the list to work in a directory mode despite the object namespace being flat. For example if the delimiter is set to "/", then listing the bucket containing objects "a/b", "a/c", "d", "e" and "e/f" returns objects "d" and "e" and prefixes "a/" and "e/".

prefix

List only objects whose name start with prefix

Response Type

interface ListObjectsResponse {

  // Object name prefixes for objects that matched the request but were
  // excluded forom ``objects`` because of a delimiter.
  prefixes: string[];

  // The list of objects.
  objects: ObjectInfo[];
}

Related Types

interface ObjectInfo {

  // Object name
  name: string;

  // Creation time
  created: string;  // RFC 3339 timestamp

  // Size in bytes
  size: string;  // String decimal
  metadata: {[key: string]: string};
}