IBM Aspera JavaScript Library
    Preparing search index...

    Interface TransferSpec

    interface TransferSpec {
        authentication?: "token" | "password";
        cipher?:
            | "none"
            | "aes128"
            | "aes192"
            | "aes256"
            | "aes128cfb"
            | "aes192cfb"
            | "aes256cfb"
            | "aes128gcm"
            | "aes192gcm"
            | "aes256gcm";
        content_protection?: "decrypt"
        | "encrypt";
        content_protection_passphrase?: string;
        content_protection_password?: string;
        cookie?: string;
        create_dir?: boolean;
        delete_before_transfer?: boolean;
        delete_source?: boolean;
        destination_root?: string;
        destination_root_id?: string;
        direction?: "send" | "receive";
        exclude_newer_than?: string;
        exclude_older_than?: string;
        fasp_port?: number;
        fasp_proxy?: string;
        http_fallback?: boolean;
        http_fallback_port?: number;
        https_fallback_port?: number;
        lock_min_rate?: boolean;
        lock_min_rate_kbps?: boolean;
        lock_rate_policy?: boolean;
        lock_target_rate?: boolean;
        lock_target_rate_kbps?: boolean;
        move_after_transfer?: string;
        multi_session?: number;
        multi_session_threshold?: number;
        overwrite?: OverwritePolicy;
        overwrite_policy?: OverwritePolicy;
        paths?: Path[];
        precalculate_job_size?: boolean;
        preserve_access_time?: boolean;
        preserve_creation_time?: boolean;
        preserve_modification_time?: boolean;
        preserve_times?: boolean;
        rate_policy?: "fixed" | "high" | "low" | "fair";
        remote_access_key?: string;
        remote_host?: string;
        remote_password?: string;
        remote_user?: string;
        remove_after_transfer?: boolean;
        remove_empty_directories?: boolean;
        remove_empty_source_dir?: boolean;
        resume?: ResumePolicy;
        resume_policy?: ResumePolicy;
        retry_duration?: number;
        save_before_overwrite?: boolean;
        "save-before-overwrite"?: boolean;
        skip_duplicate_check?: boolean;
        skip_special_files?: boolean;
        source_root?: string;
        source_root_id?: string;
        src_base64?: string;
        ssh_port?: number;
        ssh_private_key?: string;
        ssh_private_key_passphrase?: string;
        symlink_policy?: "follow" | "copy" | "copy+force" | "skip";
        tags?: any;
        tags64?: string;
        target_rate_cap_kbps?: number;
        target_rate_kbps?: number;
        title?: string;
        token?: string;
        use_ascp4?: boolean;
    }
    Index

    Properties

    authentication?: "token" | "password"

    The type of authentication to use.

    Either set the token or remote_password fields instead.

    cipher?:
        | "none"
        | "aes128"
        | "aes192"
        | "aes256"
        | "aes128cfb"
        | "aes192cfb"
        | "aes256cfb"
        | "aes128gcm"
        | "aes192gcm"
        | "aes256gcm"

    The algorithm used to encrypt data sent during a transfer.

    "aes-128"
    
    content_protection?: "decrypt" | "encrypt"

    Enable content protection (encryption-at-rest). For uploads, set to encrypt to transfer files and store them on the server with the extension “.aspera-env”. To download and decrypt encrypted files, set to decrypt. content_protection_password must be specified if this option is set.

    content_protection_passphrase?: string

    Use content_protection_password instead.

    content_protection_password?: string

    Password to encrypt or decrypt files when using content_protection.

    cookie?: string

    Data to associate with the transfer. The cookie is reported to both client and server-side applications monitoring transfers. It is often used by applications to identify associated transfers.

    create_dir?: boolean

    Creates the destination directory if it does not already exist. When enabling this option, the destination path is assumed to be a directory path.

    false
    
    delete_before_transfer?: boolean

    Before transfer, delete files that exist at the destination but not at the source. The source and destination arguments must be directories that have matching names. Objects on the destination that have the same name but different type or size as objects on the source are not deleted.

    delete_source?: boolean

    Delete the source directory after the assets are transferred

    destination_root?: string

    The transfer destination file path. If destinations are specified in paths, this value is prepended to each destination. Note that the download destination paths are relative to the user's Aspera SDK download directory setting.

    destination_root_id?: string

    Root ID at the destination

    direction?: "send" | "receive"

    Directon of transfer, whether send (upload) or receive (download)

    exclude_newer_than?: string

    Exclude files (but not directories) that are newer than a specific time from the transfer, based on when the file was last modified. Express in ISO 8601 format (for exanple, 2006-01-02T15:04:05Z) or as number of seconds elapsed since 00:00:00 UTC on 1 January 1970.

    exclude_older_than?: string

    Exclude files (but not directories) that are older than a specific time from the transfer, based on when the file was last modified. Express in ISO 8601 format (for exanple, 2006-01-02T15:04:05Z) or as number of seconds elapsed since 00:00:00 UTC on 1 January 1970.

    fasp_port?: number

    The UDP port for the transfer. The default value is satisfactory for most situations. However, it can be changed to satisfy firewall requirements.

    33001
    
    fasp_proxy?: string

    Proxy for communications between the remote server and the (local) client

    http_fallback?: boolean

    Attempts to perform an HTTP transfer if a fasp™ transfer cannot be performed.

    false
    
    http_fallback_port?: number

    Port used for HTTP fallback server

    https_fallback_port?: number

    Port used for HTTPS fallback server

    lock_min_rate?: boolean

    Use lock_min_rate_kbps instead.

    lock_min_rate_kbps?: boolean

    If true, lock the minimum transfer rate to the value set for min_rate_kbps. If false, users can adjust the transfer rate up to the value set for target_rate_cap_kbps.

    false
    
    lock_rate_policy?: boolean

    If true, lock the rate policy to the default value

    false
    
    lock_target_rate?: boolean

    Use lock_target_rate_kbps instead.

    lock_target_rate_kbps?: boolean

    If true, lock the target transfer rate to the default value set for target_rate_kbps. If false, users can adjust the transfer rate up to the value set for target_rate_cap_kbps.

    false
    
    move_after_transfer?: string

    Moves source files to directory after they are transferred correctly

    multi_session?: number

    Split files across multiple ascp sessions to enable faster transfers.

    multi_session_threshold?: number

    Split files across multiple ascp sessions if their size is greater than or equal to the specified value.

    0 (no files are split)
    
    overwrite?: OverwritePolicy

    Overwrite destination files with the source files of the same name.

    • none - Never overwrite the file. However, if the parent folder is not empty, its access, modify, and change times may still be updated.
    • always - Always overwrite the file. The destination file will be overwritten even if it is identical to the source.
    • diff - Overwrite the file if it is different from the source, depending on the resume_policy property.
    • older - Overwrite the file if its timestamp is older than the source timestamp.
    • diff+older - Overwrite the file if it is older and different than the source, depending on the resume_policy property.

    If the overwrite_policy is diff or diff+older, difference is determined by resume_policy. If resume_policy is empty or none is specified, the source and destination files are always considered different and the destination file is always overwritten. If resume_policy is attributes, the source and destination files are compared based on file attributes (currently file size). If sparse_checksum, the source and destination files are compared based on sparse checksum. If full_checksum, the source and destination files are compared based on full checksum.

    diff
    
    overwrite_policy?: OverwritePolicy

    Use overwrite instead.

    paths?: Path[]

    A list of the file and directory paths to transfer. Use destination_root to specify the destination directory. It is recommended to always specify both the source and destination properties for each path.

    precalculate_job_size?: boolean

    Calculate total size before transfer

    preserve_access_time?: boolean

    Preserve the time the file was last accessed (read or write access) on the source.

    preserve_creation_time?: boolean

    Preserve timestamp for when a file is created

    preserve_modification_time?: boolean

    Preserve the time the object was last modified (write access) on the source.

    preserve_times?: boolean

    Preserve file timestamps

    rate_policy?: "fixed" | "high" | "low" | "fair"

    The congestion control behavior to use when sharing bandwidth.

    • fixed - Transfer at the target rate regardless of actual network capacity. Do not share bandwidth. Not recommended.
    • high - When sharing bandwidth, transfer at twice the rate of a transfer using "fair" policy.
    • fair - Share bandwidth equally with other traffic.
    • low - Use only unutilized bandwidth.
    fair
    
    remote_access_key?: string

    Access key for the remote server

    remote_host?: string

    The fully qualified domain name or IP address of the transfer server.

    remote_password?: string

    Password for the remote user

    remote_user?: string

    Remote user’s username

    remove_after_transfer?: boolean

    Remove files at the source of the transfer after the transfer completes successfully

    remove_empty_directories?: boolean

    Remove empty subdirectories at the source of the transfer

    remove_empty_source_dir?: boolean

    Remove empty source subdirectories and remove the source directory itself, if empty

    resume?: ResumePolicy

    Use resume_policy instead.

    resume_policy?: ResumePolicy

    If a transfer is interrupted or fails to finish, this policy directs the transfer to resume without retransferring the files.

    • none – always re-transfer the entire file.
    • attributes – compare file attributes and resume if they match, and re-transfer if they do not.
    • sparse_checksum – compare file attributes and the sparse file checksums; resume if they match, and re-transfer if they do not.
    • full_checksum – compare file attributes and the full file checksums; resume if they match, and re-transfer if they do not.
    2
    
    retry_duration?: number

    Total time committed to retrying the transfer

    save_before_overwrite?: boolean

    Rename the file instead of overwriting it. resume_policy must be set to none for this to take effect.

    "save-before-overwrite"?: boolean

    Use save_before_overwrite instead.

    skip_duplicate_check?: boolean

    Don’t check for duplicate files at the destination.

    skip_special_files?: boolean

    All assets other than files, directories and symbolic links are considered special. A transfer will fail if the user attempts to transfer special assets. If true, ascp skips special assets and proceeds with the transfer of all other assets.

    source_root?: string

    A path to prepend to the source paths specified in paths. If this is not specified, then paths should contain absolute paths.

    source_root_id?: string
    src_base64?: string

    The folder name below which the directory structure is preserved (base64 encoded)

    ssh_port?: number

    TCP port that initiates the transfer session

    33001
    
    ssh_private_key?: string

    Private key for SSH

    ssh_private_key_passphrase?: string

    Private key passphrase for SSH

    symlink_policy?: "follow" | "copy" | "copy+force" | "skip"

    The method for processing symbolic links.

    tags?: any

    Tags to include in the transfer

    tags64?: string

    Tags to include in the transfer (base64 encoded)

    target_rate_cap_kbps?: number

    Maximum target rate for incoming transfers, in kilobits per second.

    target_rate_kbps?: number

    Ideal transfer rate, in kilobits per second. There is no default value.

    title?: string

    Title of the transfer

    token?: string

    Used for token-based authorization, which involves the server-side application generating a token that gives the client rights to transfer a predetermined set of files.

    use_ascp4?: boolean

    Use ascp4 as the transfer engine.