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 Platform which points to the file in your cloud storage bucket. Aliases appear as files on the Plartform 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://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/imports
Request
Example request
GET /v2/storage/imports HTTP/1.1
Host: api.sb.biodatacatalyst.nhlbi.nih.gov
X-SBG-Auth-Token: 3259c50e1ac5426ea8f1273259740f74
Content-type: application/json
curl -s -H "X-SBG-Auth-Token: 7942f56901534434a054dafc3813bc96" -H "Content-Type: application/json" -X GET "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/imports"
Header Fields
Key | Description of value |
---|---|
X-SBG-Auth-Token required | Your authentication token. |
Content-type required | application/json |
Response
See a list of response codes that may be contained in the body of the response.
Example response body
{
"href": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/imports?offset=0&limit=25",
"items": [
{
"href": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/imports/yrand0mqLcnVaDEFYyM75zZ7M6rvTeZm",
"id": "yrand0mqLcnVaDEFYyM75zZ7M6rvTeZm",
"state": "FAILED"
},
{
"href": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/imports/trand0mgPWZbeXxtADETWtFkrE87JBSd",
"id": "trand0mgPWZbeXxtADETWtFkrE87JBSd",
"state": "FAILED"
},
{
"href": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/imports/prand0mBrcK8tVRZJeQXs87mh6sH43tM",
"id": "prand0mBrcK8tVRZJeQXs87mh6sH43tM",
"state": "COMPLETED"
},
{
"href": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/imports/crand0mKvetGpxIjo088DnMXEg0t6srX",
"id": "crand0mKvetGpxIjo088DnMXEg0t6srX",
"state": "FAILED"
},
{
"href": "https://api.sb.biodatacatalyst.nhlbi.nih.gov/v2/storage/imports/arand0mgUhk2SpByRg5SPZqTLOEYqG8o",
"id": "arand0mgUhk2SpByRg5SPZqTLOEYqG8o",
"state": "FAILED"
},
}
],
"links": []
}