Yamcs HTTP API
- Activities
- Alarms
- Audit
- Buckets
- Clearance
- Commands
- COP-1
- Database
- Events
- File Transfer
- IAM
- Indexes
- Instances
- Links
- MDB Override
- MDB
- Packets
- Parameter Archive
- Parameter Lists
- Parameter Values
- Processing
- Queues
- Replication
- RocksDB
- Server
- Services
- Sessions
- Stream Archive
- Table
- Time Correlation
- Time
- Timeline
Related
Yamcs Release Notes
Yamcs Server Manual
Source Code Documentation
Download this Document
Subscribe Remote File ListΒΆ
Subscribe to remote file list updates
WebSocket
This method requires to upgrade an HTTP connection to WebSocket. See details on how Yamcs uses WebSocket.
Use the message type remote-file-list
.
Input Type
interface SubscribeTransfersRequest {
// Yamcs instance name
instance: string;
// File transfer service name
serviceName: string;
// If true, send info on all currently ongoing transfers,
// as well as any future updates (recommended).
//
// For legacy reasons, the default is ``false``, which will
// send also finished transfers upon subscription. This behaviour
// is due for removal in a future release (if you want to receive
// past transfers, do a GET request).
ongoingOnly: boolean;
}
Output Type
interface ListFilesResponse {
files: RemoteFile[];
destination: string;
remotePath: string;
listTime: string; // RFC 3339 timestamp
state: string;
// Progress message, in case the file listing is still underway
progressMessage: string;
}
Related Types
interface RemoteFile {
// File identifier
//
// Typically, a remote file path, or a filename
// in case of a flat file table.
name: string;
// Optional display name. Can be used when the ``name``
// field contains information that should be hidden from the user.
displayName: string;
// True if the path represents a directory
isDirectory: boolean;
// File size
size: string; // String decimal
// Modification time
modified: string; // RFC 3339 timestamp
// Implementation-specific fields
extra: {[key: string]: any};
}