get https://cgc-api.sbgenomics.com/v2
This call lists import jobs initiated by particular user.
Note that when you import a file from your volume on your cloud storage provider (Amazon Web Services or Google Cloud Storage), you are creating an alias on the CGC which points to the file in your cloud storage bucket. Aliases appear as files on the CGC and can be copied, executed, and modified as such. They refer back to the respective file on the given volume.
Learn more about using the Volumes API for Amazon S3 and for Google Cloud Storage.
https://cgc-api.sbgenomics.com/v2/storage/imports
Request
Example request
GET /v2/storage/imports HTTP/1.1
Host: cgc-api.sbgenomics.com
X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74
Content-type: application/json
curl -s -H "X-SBG-Auth-Token: 3210a98c1db9318fa9d9273156740f74" -H "Content-Type: application/json" -X GET "https://cgc-api.sbgenomics.com/v2/storage/imports"
Header Fields
Key | Description of value |
---|---|
X-SBG-Auth-Token required | Your CGC authentication token. |
Content-type required | application/json |
Response
See a list of CGC-specific response codes that may be contained in the body of the response.
Example response body
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports?offset=0&limit=25",
"items": [
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/1KAWc6h1KENLNa702FqdGJhp0PIm9AZ3",
"id": "1KAWc6h1KENLNa702FqdGJhp0PIm9AZ3",
"state": "FAILED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/2zaQuRjMyxbk6lcHXgn6YXes6m5dSp63",
"id": "2zaQuRjMyxbk6lcHXgn6YXes6m5dSp63",
"state": "FAILED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/axs81logHRHVQg9xccU5XONoYk67B6an",
"id": "axs81logHRHVQg9xccU5XONoYk67B6an",
"state": "COMPLETED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/sQrfGIXDJqvU8nO01cA4ThMoOdNImVE9",
"id": "sQrfGIXDJqvU8nO01cA4ThMoOdNImVE9",
"state": "FAILED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/C09eaHGFkKebUzqpMqPiScGc3hV4woMj",
"id": "C09eaHGFkKebUzqpMqPiScGc3hV4woMj",
"state": "FAILED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/CDt5fcTwdtIgFV4zPFcoWEmpBBd2A6h3",
"id": "CDt5fcTwdtIgFV4zPFcoWEmpBBd2A6h3",
"state": "COMPLETED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/DXBc8t5AKZNPv0torLAb53geu4rRxfKG",
"id": "DXBc8t5AKZNPv0torLAb53geu4rRxfKG",
"state": "COMPLETED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/Gay66itybdXPwmOSXpFOepLbI5rpiZ1i",
"id": "Gay66itybdXPwmOSXpFOepLbI5rpiZ1i",
"state": "FAILED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/GjOjGReNvfxo9DzhfwpltQoeYqqjVCNq",
"id": "GjOjGReNvfxo9DzhfwpltQoeYqqjVCNq",
"state": "COMPLETED"
},
{
"href": "https://cgc-api.sbgenomics.com.sbgenomics.com/v2/storage/imports/IpUmhyzZB3gqgfBV5VuVFvpERvwi14te",
"id": "IpUmhyzZB3gqgfBV5VuVFvpERvwi14te",
"state": "COMPLETED"
},
}
<snip>
],
"links": []
}
For brevity, we have omitted part some of the returned jobs.