Docs / Yamcs HTTP API / Indexes / Download PP Index

Download PP Index

Download the index of stored processed parameter groups for the given instance:

GET /api/archive/:instance/indexes/pp

This operation will possibly download a very large file.

Parameters

Name Type Description
start string The time at which to start retrieving index records.
stop string The time at which to stop retrieving index records.

Example

You get back a sequence of consecutive self-standing JSON objects. Note that this JSON output can be useful for testing, but you probably want to use the Protobuf media type for decreased network traffic.

Status: 200 OK
{
  "id" : {
    "name" : "simulation"
  },
  "first" : 1448616349067,
  "last" : 1448616467049,
  "num" : 2
}{
  "id" : {
    "name" : "simulation"
  },
  "first" : 1448617368018,
  "last" : 1448617368018,
  "num" : 1
}{
  "id" : {
    "name" : "simulation"
  },
  "first" : 1448617667330,
  "last" : 1448617667330,
  "num" : 1
}

Alternative Media Types

Protobuf

Use HTTP header:

Accept: application/protobuf

The response is a stream of individual Protobuf messages delimited with a VarInt. Every message is of type:

yamcs.proto 
message ArchiveRecord {
  required NamedObjectId id = 1;
  required int64 first = 2;
  required int64 last = 3;
  required int32 num = 4;
  optional string info = 5;
}