最近更新时间:2024-02-26 15:54:17
获取API版本列表
GET | POST
公共参数列表 详情
名称 | 类型 | 必填 | 长度限制(字符) | 参数格式 | 描述 |
---|---|---|---|---|---|
Action | String | 是 | 确定值 | [a-zA-Z]+ | 操作接口名,系统规定参数,取值: GetListVersion |
Version | String | 是 | 确定值 | 固定为:2019-05-01 | |
ApiId | Integer | 是 | Api Id | ||
Page | Integer | 否 | 页码 | ||
Size | Integer | 否 | 每页数量 |
通过指定 Accept:application/json,返回的数据格式为json
请求示例
curl -X GET|POST \
'http://apigw.api.ksyun.com/?Action=GetListVersion&Version=2019-05-01&ApiId=252&Page=1&Size=10' \
-H 'authorization: xxx, SignedHeaders=accept;content-type;host;x-amz-date, Signature=xxx' \
-H 'accept: application/json' \
-H 'content-type: application/x-www-form-urlencoded' \
-H 'host: apigw.api.ksyun.com' \
-H 'x-amz-date: 20170720T022802Z'
响应成功返回示例
{
"Res": {
"total": 2,
"list": {
"id": 815,
"version_code": "20200819183222-0.24145200",
"version_desc": "Online2",
"api_id": 252,
"is_valid": 1,
"publish_env": 3,
"api_base_info": "{\"api_name\":\"Ksyun\",\"api_desc\":\"Ksyun Desc\",\"api_group_uuid\":\"e799f912300ce953d11ccdd107305e2f\",\"type\":1,\"front_auth_type\":1,\"backend_auth_type\":1,\"front_req_type\":3,\"backend_service_type\":1}",
"api_req_info": "{\"domain\":\"e799f912300ce953d11ccdd107305e2f.cn-beijing-6.kscloudapi.com\",\"req_protocol\":3,\"req_uri\":\"\\/info1\",\"path_match_mode\":1,\"req_method\":\"GET\",\"is_cors\":0,\"req_params\":[],\"is_not_w_form\":0,\"content\":\"\",\"model_uuid\":null}",
"api_backend_info": "{\"req_protocol\":\"http\",\"service_type\":1,\"const_params\":[],\"sys_params\":[],\"backend_params\":[],\"req_address\":\"test1.com\",\"address_type\":1,\"req_path\":\"\\/getUserInfo\",\"req_method\":\"GET\",\"backend_auth_type\":1,\"connect_timeout\":\"1000\",\"read_timeout\":\"3000\"}",
"api_resp_info": "{\"success\":\"{\\n}\",\"failed\":\"{\\n}\",\"error_code\":[]}",
"deleted": 0,
"create_time": 1597833142,
"update_time": 1597833142,
"deleted_time": 0,
"backend_service_type": 1,
"vpc_channel_id": 0,
"is_offline": 0,
"is_now_version": 0
}
},
"RequestId": "97bb4654-26b7-48ee-8f7f-386a7434d33e"
}
访问API错误码查看更多错误码
纯净模式