graviti
ProductOpen DatasetsApps MarketSolutionsResourcesCompany
1.4K
0
0
MNIST
General
Discussion
Code
Activities
Dataset non-members cannot use this dataset via developer tools. You can access and use the data after forking the dataset.
Fork

UploadData

Upload Data to a Dataset

  1. Get an upload certification
  2. Upload data to oss directly

Get an Upload Certification

Request Path

GET /v1/datasets/{id}/policies

Request Parameters

Path

NameNecessary or NotDescription
idTrueDataset ID

Query

NameNecessary or NotDescription
segmentNameFalseDataset partition
categoryTruecontentSet or frame
expiredFalseToken expiration time: in seconds (note: cannot be negative, default: 60s)

Request Example

1curl --location --request GET '{service}/v1/datasets/154e35ba-e895-4f09-969e-f8c9445efd2c/policies?expired=60' \
2--header 'x-token: {your_accesskey}'\
3--header 'Content-Type: application/json' 

Return Result

1# Response status
2HttpStatus 200
3# Response result
4{
5	"result": {
6		"OSSAccessKeyId": "LTAI4FjgXD3yFJUat4KADigE",
7		"Signature": "QbkCDeZtX37gb2zoemel3VCxz3k=",
8		"callback": "eyJjYWxsYmFja0JvZHkiOiJ7XCJvYmplY3RcIjoke29iamVjdH0sXCJldGFnXCI6JHtldGFnfSxcInNpemVcIjoke3NpemV9LFwieDppZFwiOiR7eDppZH0sXCJ4OmNhdGVnb3J5XCI6JHt4OmNhdGVnb3J5fSxcIng6aW5jaWRlbnRhbFwiOiR7eDppbmNpZGVudGFsfX0iLCJjYWxsYmFja0JvZHlUeXBlIjoiYXBwbGljYXRpb24vanNvbiIsImNhbGxiYWNrVXJsIjoiaHR0cHM6Ly9nYXMuZmF0LmdyYXZpdGkuY24vZ2F0ZXdheXYyL2NvbnRlbnQtc3RvcmUvcHV0Q2FsbGJhY2sifQ==",
9		"policy": "eyJjb25kaXRpb25zIjpbWyJzdGFydHMtd2l0aCIsIiRrZXkiLCI4ZjgzNWVlOWNmZWIwZDRlZjBkMmQyODJmOTdlNzM1OS9jOTQ4YTY0NC03NTJjLTRkOTItOTI3Yi1mNjkwYzYyZGM5Y2YvIl1dLCJleHBpcmF0aW9uIjoiMjAyMC0xMS0xM1QwMzozNjo1OVoifQ==",
10		"success_action_status": "200",
11		"x:category": "contentSet",
12		"x:id": "c948a644-752c-4d92-927b-f690c62dc9cf",
13		"x:incidental": ""
14	},
15	"extra": {
16		"host": "https://content-store-fat-version.oss-cn-qingdao.aliyuncs.com",
17		"objectPrefix": "8f835ee9cfeb0d4ef0d2d282f97e7359/c948a644-752c-4d92-927b-f690c62dc9cf/"
18	},
19	"expireAt": 1605238559
20}