云服务器内容精选

  • 示例 成功响应示例 { "is_success": true, "services": [{ "service_id": "84746641-9af3-4fa6-b6ed-850e1f63416c", "service_name": "res-model-vpc2", "description": "test cusom image", "infer_type": "real-time", "status": "stopped", "is_shared": false, "invocation_times": "0", "failed_times": "0", "publish_time": 1547866687137, "update_time": 1547866687137}]} 失败响应示例 { "is_success": false, "error_code": "res.2301", "error_msg": "Failed to resolve the token from the request." }
  • 响应消息 响应参数请参见表2。 表2 响应参数说明 参数名称 是否必选 参数类型 说明 is_success 是 Boolean 是否成功。 services 是 List 返回服务列表信息,请参见表3。 表3 services参数说明 参数名称 是否必选 参数类型 说明 service_id 是 String 服务ID。 service_name 是 String 服务名称。 description 否 String 服务描述信息。 infer_type 是 String 服务类型,real-time表示实时服务。 status 是 String 服务状态,deploying、running、stopped、concerning。 is_shared 是 Boolean 是否是共享服务。 invocation_times 是 String 服务总调用次数。 failed_times 是 String 服务失败调用次数。 publish_time 是 Long 服务发布时间。 update_time 是 Long 服务更新时间。