图引擎服务 GES-新建索引:请求示例

时间:2024-06-20 11:17:33

请求示例

创建复合索引,索引名称为ageIndex,索引类型为全局点索引。
POST http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/indices
{
    "indexName":"ageIndex",
    "indexType": "GlobalCompositeVertexIndex",

    "hasLabel": "true",
    "indexProperty": ["age"]
}

SERVER_URL:图的访问地址,取值请参考业务面API使用限制

support.huaweicloud.com/api-ges/ges_03_0454.html