/  Yamcs HTTP API  /  File Transfer  /  Create Transfer

Create TransferΒΆ

Create a transfer

URI Template

POST /api/filetransfer/{instance}/{serviceName}/transfers


service name

Request Body

interface CreateTransferRequest {

  // **Required** One of ``UPLOAD`` or ``DOWNLOAD``.
  direction: TransferDirection;

  // **Required** The bucket containing the local Yamcs object.
  bucket: string;

  // **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
  // this object must exist and is what Yamcs will transfer to the remote
  // entity. For DOWNLOAD transfers, it refers to the object that
  // Yamcs will write to when downloading from a remote entity.
  objectName: string;

  // **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
  remotePath: string;
  downloadOptions: DownloadOptions;

  // Configuration options specific to ``UPLOAD`` transfers.
  uploadOptions: UploadOptions;

  //used to derive the source entity id
  source: string;

  //used to derive the destination entity id
  destination: string;

Response Type

//message sent as reponse to the info and also when starting a new transfer
interface TransferInfo {

  //unique identifier assigned by the file transfer service
  id: string;  // String decimal

  //when the transfer has started. Note that this will not be set for QUEUED transfers.
  startTime: string;  // RFC 3339
  state: TransferState;
  bucket: string;
  objectName: string;
  remotePath: string;
  direction: TransferDirection;
  totalSize: string;  // String decimal
  sizeTransferred: string;  // String decimal

  //reliable = true -> class 2 transfer
  //reliable = false -> class 1 transfer
  reliable: boolean;

  //in case the transcation is failed, this provides more information
  failureReason: string;

  // valid for CFDP: transaction id;
  // for the incoming transfers it is assigned by the remote peer so therefore might not be unique
  transactionId: TransactionId;

  // when the transfer has been created.
  creationTime: string;  // RFC 3339

Related Types

interface DownloadOptions {

interface UploadOptions {

  // Set to ``True`` if an already existing destination should be overwritten.
  // Default: ``True``.
  overwrite: boolean;

  // Set to ``True`` if the destination path should be created if it does not exist.
  // Default: ``True``.
  createPath: boolean;

  // Set to ``True`` if reliable (class 2) CFDP transfer should be used,
  // otherwise unreliable (class 1). Default: ``False``.
  reliable: boolean;

  // Introduced in Issue 5 of the CFDP standard for non reliable (class 1) transfers
  // Requests the receiver to send a Finished PDU at the end of the transfer
  closureRequested: boolean;

interface TransactionId {
  sequenceNumber: number;
  initiatorEntity: string;  // String decimal

enum TransferDirection {

enum TransferState {