Querying the Metadata List (1.0.2)
Function
This API is used to query the metadata list.
URI
- URI format
GET /v1.0/{project_id}/graphs/metadatas?offset={offset}&limit={limit}
- Parameter description
Table 1 URI parameter description Parameter
Mandatory
Type
Description
project_id
Yes
String
Project ID, which is used for resource isolation. For details, see Obtaining a Project ID.
offset
No
Integer
Start position of the request. The default value is 0.
limit
No
Integer
Maximum number of resources displayed on a single page. The default value is 10.
Request
- Request example
GET https://Endpoint/v1.0/{project_id}/graphs/metadatas?offset=10&limit=100
Response
- Parameter description
Table 2 Parameter description Parameter
Mandatory
Type
Description
errorMessage
No
String
System prompt. If execution succeeds, this parameter may be left blank. If execution fails, this parameter is used to display the error message.
errorCode
No
String
System prompt. If execution succeeds, this parameter may be left blank. If execution fails, this parameter is used to display the error code.
metadataCount
No
Integer
Number of returned metadata files. This parameter is left blank when the request fails.
metadataList
No
GesSchema set
List of all metadata files under the current project ID. This parameter is left blank when the request fails.
Table 3 GesSchema data structure Parameter
Mandatory
Type
Description
id
Yes
String
Metadata ID
name
Yes
String
Metadata name
description
Yes
String
Metadata description
status
Yes
String
Whether the metadata is available
metadataPath
Yes
String
OBS path for storing metadata
createTimestamp
Yes
String
Metadata creation timestamp
lastUpdateTimestamp
Yes
String
Last timestamp when the metadata is upgraded
- Response example (successful request)
HttpStatusCode: 200{ "schemaCount ": 1, "schemaList": [ { "id": "ff7dddc4-6402-43d7-9aed-c5ec677b47fa", "name": "schema_demo", "description": "", "status": "200", "metadataPath": "ges-graphs/demo_movie/schema.xml", "startTime": "2018-07-23T02:59:41", "lastUpdateTime": "2018-07-23T02:59:41" } ] } - Response example (failed request)
Http Status: 500 { "errorCode": "GES.7006", "errorMessage": "The underlying graph engine has internal error." }
Return Value
- Normal
- Abnormal
Table 4 Return code for failed requests Return Value
Description
400 Bad Request
Request error.
401 Unauthorized
Authentication failed.
403 Forbidden
No operation permission.
404 Not Found
The requested resource was not found.
500 Internal Server Error
Internal service error.
503 Service Unavailable
Service unavailable.
Last Article: Constraints
Next Article: Querying Metadata (1.0.2)
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.