批量边查
功能介绍
根据批量边的起点、终点以及索引,查询这些边的详细信息,返回边的标签和属性等。
URI
| 
         参数  | 
       
         是否必选  | 
       
         类型  | 
       
         说明  | 
      
|---|---|---|---|
| 
         project_id  | 
       
         是  | 
       
         String  | 
       
         项目ID。获取方法请参见获取项目ID。  | 
      
| 
         graph_name  | 
       
         是  | 
       
         String  | 
       
         图名称。  | 
      
请求参数
| 
        参数  | 
      
        是否必选  | 
      
        类型  | 
      
        说明  | 
     
|---|---|---|---|
| 
        edges  | 
      
        是  | 
      
        List  | 
      
        待查询的边数组。  | 
     
| 
        参数  | 
      
        是否必选  | 
      
        类型  | 
      
        说明  | 
     
|---|---|---|---|
| 
        source  | 
      
        是  | 
      
        String  | 
      
        边的source节点。  | 
     
| 
        target  | 
      
        是  | 
      
        String  | 
      
        边的target节点。  | 
     
| 
        label  | 
      
        否  | 
      
        String  | 
      
        边的label。  | 
     
| 
        sortKey  | 
      
        否  | 
      
        String  | 
      
        重复边的sortKey,支持Integer/String/varString类型,查询时给出sortKey必须给出label,类型与创建图时的sortKey类型需一致,赋值为null时除外。  | 
     
响应参数
| 
        参数  | 
      
        类型  | 
      
        说明  | 
     
|---|---|---|
| 
        errorMessage  | 
      
        String  | 
      
        系统提示信息。 
  | 
     
| 
        errorCode  | 
      
        String  | 
      
        系统提示信息。 
  | 
     
| 
        data  | 
      
        String  | 
      
        查询成功时包含data字段,data字段中包含edges查询结果。  | 
     
| 
        result  | 
      
        String  | 
      
        查询成功时值为success,失败时值为failed。  | 
     
请求示例
POST http://{SERVER_URL}/ges/v1.0/{project_id}/graphs/{graph_name}/edges/action?action_id=batch-query  
{
    "edges": [
           {
               "source": "Vivian",
               "target": "Lethal Weapon",
               "label": "rate"
           },
           {
               "source": "Vivian",
               "target": "Raising Arizona"
           }
       ]
}
   
  响应示例
状态码: 200
{
    "data": {
        "edges": [
            {
                "source": "Vivian",
                "target": "Raising Arizona",
                "label": "rate",
                "sortKeyType":"abc",
                "properties": {
                    "Score": [
                        4
                    ],
                    "Datetime": [
                        "2000-12-27 23:51:42"
                    ]
                }
            },
            {
                "source": "Vivian",
                "target": "Lethal Weapon",
                "label": "rate",
                "sortKeyType":"bbb",
                "properties": {
                    "Score": [
                        5
                    ],
                    "Datetime": [
                        "2000-12-27 23:44:41"
                    ]
                }
            }
        ]
    },
    "result": "success"
}
  状态码: 400
Http Status Code: 400
{
    "errorMessage": "parameter [source] does not exist",
    "errorCode": "GES.8000",
    "result": "failed"
}
 状态码
| 
        返回值  | 
      
        说明  | 
     
|---|---|
| 
        400 Bad Request  | 
      
        请求错误。  | 
     
| 
        401 Unauthorized  | 
      
        鉴权失败。  | 
     
| 
        403 Forbidden  | 
      
        没有操作权限。  | 
     
| 
        404 Not Found  | 
      
        找不到资源。  | 
     
| 
        500 Internal Server Error  | 
      
        服务内部错误。  | 
     
| 
        503 Service Unavailable  | 
      
        服务不可用。  | 
     
错误码
请参见错误码。
    
      