Data Release

Transfer files from an external Globus collection to a data release component.

Transfer files from an external Globus collection to a data release component.

This endpoint takes a JSON payload consisting of a dictionary with a source_collection_id string and afiles_to_transfer list containing the list of file paths in the source collection to transfer.

For Globus Connect Personal collections, the file path must include the full local operating system path to the file, e.g. "/Users/jdoe/Documents/globus-connect-personal/example.xml".

Paths referring to a directory will be ignored by the transfer task.

A file path cannot contain any of the following characters: < > : " / \ | ? *. On Microsoft Windows, file paths must be formatted like /C/Users/username/filename.csv.

.. code-block::

{
    "source_collection_id": "<Globus collection ID>,
    "files_to_transfer": [
        "/Users/jdoe/Documents/globus-connect-personal/example.xml"
    ]
}

The response data includes a task_id for the submitted transfer. Poll the transfer's status with GET /data-release/files/task/{task_id}.

:param id: The ID of the data release component. :param data: The JSON payload containing the source_collection_id and the files_to_transfer.

post/datacatalog/api/component/{id}/files/globus-transfer-in

Request

  • Base URL
    https://data.usgs.gov (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Authorization code: https://auth.globus.org/v2/oauth2/authorize?scope=openid
    Token URL: https://data.usgs.gov/datacatalog/api/auth/login

Path parameters

idstring required

Request body

source_collection_idstring required
files_to_transferstring[] required

The list of file paths in the source collection to transfer. For Globus Connect Personal collections, the file path must include the full local operating system path to the file, e.g. "/Users/jdoe/Documents/globus-connect-personal/example.xml".

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.