查询索引(1.1.6)
功能介绍
查询在图上创建的所有索引。
URI
|
参数 |
是否必选 |
类型 |
说明 |
|---|---|---|---|
|
project_id |
是 |
String |
项目ID。获取方法请参见获取项目ID。 |
|
graph_name |
是 |
String |
图名称。 |
响应参数
|
参数 |
类型 |
说明 |
|---|---|---|
|
errorMessage |
String |
系统提示信息。
|
|
errorCode |
String |
系统提示信息。
|
|
data |
Object |
要查询的索引数据。 |
|
result |
String |
查询结果,成功时为success。 |
|
indices |
List |
查询结果,索引列表。 |
|
indexType |
String |
查询结果,索引类别。 |
|
indexName |
String |
查询结果,索引名称。 |
|
indexProperty |
List |
查询结果,创建的索引属性列表。 |
|
hasLabel |
String |
查询结果,索引中是否包含label。
说明:
全文索引该参数默认值为false。 |
请求示例
查询在图上创建的所有索引。
GET http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/indices
响应示例
状态码: 200
成功响应示例
Http Status Code: 200
{
"data": {
"result": "success",
"indices": [
{
"indexType": "GlobalCompositeVertexIndex",
"indexName": "ageIndx",
"indexProperty": [
"age"
],
"hasLabel": "true"
}
]
}
}
状态码: 400
失败响应示例
Http Status Code: 400
{
"errorMessage": "Not found. Please check the input parameters.",
"errorCode": "GES.8000"
}
状态码
|
返回值 |
说明 |
|---|---|
|
400 Bad Request |
请求错误。 |
|
401 Unauthorized |
鉴权失败。 |
|
403 Forbidden |
没有操作权限。 |
|
404 Not Found |
找不到资源。 |
|
500 Internal Server Error |
服务内部错误。 |
|
503 Service Unavailable |
服务不可用。 |
错误码
请参见错误码。
