Obtaining Data Assets
Function
This API is used to obtain data assets.
URI
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For how to obtain the project ID, see Obtaining a Project ID. |
graph_name |
Yes |
String |
Graph name |
Request Parameters
None
Response Parameters
Parameter |
Type |
Description |
---|---|---|
generating |
Bool |
Whether data assets are being generated |
progress |
String |
Progress of generating data assets |
last_generate_time |
String |
Last time when data assets were generated |
data_assets |
Object |
Number of vertices and edges under different labels. For details, see Table 3. |
errorCode |
String |
System prompt
|
errorMessage |
String |
System prompt
|
Example Request
Obtain data assets.
GET http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/schema/data-assets
Example Response
Status code: 200
There are several scenarios for example response for successful requests, including:
- A data asset has never been generated.
Http Status Code: 200 { "result": "success" }
- A data asset has never been generated and is being generated.
Http Status Code: 200 { "progress": "10.05%", "generating": true }
- A data asset has been generated and a latest one is being generated.
Http Status Code: 200 { "last_generate_time": "2022-1-3 12:34:12", "data_assets": { "vertex": { "label1": 3, "label2": 14 }, "edge": { "label3":123, "label4":435 } }, "progress":"10.05%", "generating": true }
Status code: 400
Example response for a failed request
Http Status Code: 400 { "errorMessage": "Parameter error!", "errorCode": "GES.8005" }
Status Codes
Return Value |
Description |
---|---|
400 Bad Request |
Request error. |
401 Unauthorized |
Authorization failed. |
403 Forbidden |
No operation permissions. |
404 Not Found |
No resources found. |
500 Internal Server Error |
Internal server error. |
503 Service Unavailable |
Service unavailable. |
Error Codes
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot