Get details of a bulk import job

This call returns the details of a bulk import job.

Note that when you import files from your volume on a cloud storage provider (Amazon Web Services or Google Cloud Storage), you create an alias on CGC which points to the files in your cloud storage bucket. Aliases appear as files on CGC and can be copied, executed, and modified.

Learn more about using the Volumes API for for Amazon S3 and for Google Cloud Storage.

Request

https://cgc-api.sbgenomics.com/v2/bulk/storage/imports/get

Example request

POST v2/bulk/storage/imports/get
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
curl -X POST \
  https://cgc-api.sbgenomics.com/v2/bulk/storage/imports/get \
  -H 'Content-Type: application/json' \
  -H 'X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74' \
  -d '{
    "import_ids": [
        "gOM3zcx63MW711ac0SbNkaUE0SNRK4H0S", "YFyyZ7rpCGtXjKTzjGGRJIIBmWd6Mh19"
    ]
}
'

Header Fields

NameDescription
X-SBG-Auth-Token
required
Your CGC authentication token.
Content-Type
required
application/json

Request body

NameDescription
import_idsThe IDs of the import jobs as returned by the call to start a bulk import job. Separate IDs with a comma.

Response

See a list of CGC-specific response codes that may be contained in the body of the response..

Response body

KeyData typeDescription
idstringID of this import job.
statestringThe state of this import job. Possible values are:

PENDING: the import is queued;
RUNNING: the import is running;
COMPLETED: the import has completed successfully;
FAILED: the import has failed.
sourceobjectImport source, as passed when this job was started by the call to start an import job.
destinationobjectImport destination, as passed when this job was start an import job.
resultobjectFile object that was imported.
errorobjectIn case of error in the import job, standard API error is returned here.

Example response body

{
    "items": [
        {
            "resource": {
                "href": "https://cgc-api.sbgenomics.com/v2/storage/imports/gOM3zcx63MW711ac0SbNkaUE0SNRK4H0S",
                "id": "gOM3zcx63MW711ac0SbNkaUE0SNRK4H0S",
                "state": "PENDING",
                "overwrite": true,
                "source": {
                    "volume": "rfranklin/input",
                    "location": "example_human_Illumina.pe_1.fastq"
                },
                "destination": {
                    "project": "rfranklin/my_project",
                    "name": "example_human_Illumina.pe_1.fastq"
                }
            }
        },
        {
            "resource": {
                "href": "https://cgc-api.sbgenomics.com/v2/storage/imports/YFyyZ7rpCGtXjKTzjGGRJIIBmWd6Mh19",
                "id": "YFyyZ7rpCGtXjKTzjGGRJIIBmWd6Mh19",
                "state": "PENDING",
                "overwrite": true,
                "source": {
                    "volume": "rfranklin/input",
                    "location": "example_human_Illumina.pe_2.fastq"
                },
                "destination": {
                    "project": "rfranklin/my_project",
                    "name": "example_human_Illumina.pe_2.fastq"
                }
            }
        }
    ]
}
Language