调用ListDataServiceApis获取数据服务API开发中的信息列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListDataServiceApis |
系统规定参数。取值:ListDataServiceApis。 |
RegionId | String | 是 | cn-shanghai |
地域ID。 |
PageNumber | Integer | 是 | 1 |
页码,从1开始,默认值为1。 |
PageSize | Integer | 是 | 10 |
每页显示的条数,默认为10条,最大100条。 |
ProjectId | Long | 是 | 10000 |
工作空间的ID。 |
TenantId | Long | 是 | 10001 |
租户ID。 |
ApiNameKeyword | String | 否 | 我的API名称 |
API名称的关键词,过滤得到API名称包含该关键词的API。 |
ApiPathKeyword | String | 否 | /test/ |
API路径的关键词,过滤得到API路径包含该关键词的API。 |
CreatorId | String | 否 | 12345 |
API创建者的阿里云ID,过滤得到该用户创建的API。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
HttpStatusCode | Integer | 200 |
HTTP状态码。 |
RequestId | String | 0000-ABCD-EFG**** |
请求ID,一次请求的唯一标识。 |
ErrorMessage | String | The connection does not exist. |
错误信息。 |
Success | Boolean | true |
调用是否成功。 |
ErrorCode | String | Invalid.Tenant.ConnectionNotExists |
错误码。 |
Data | Object |
返回开发中API的信息。 |
|
PageNumber | Integer | 1 |
页码,和请求中的PageNumber一致。 |
PageSize | Integer | 10 |
每页显示的条数,默认为10条,最大100条。 |
TotalCount | Integer | 100 |
总记录数。 |
Apis | Array of Api |
API开发态信息列表。 |
|
Timeout | Integer | 10000 |
超时时间,单位为毫秒(ms)。 |
Status | Integer | 0 |
API的状态,可选枚举值包括0(未发布)和1(已发布)。 |
ApiId | Long | 10002 |
API的ID。 |
ApiMode | Integer | 0 |
API的类型,可选枚举值包括0(向导API)、1(脚本API)和2(注册API)。 |
ProjectId | Long | 10000 |
工作空间的ID。 |
ResponseContentType | Integer | 0 |
API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。 |
CreatorId | String | 1234567 |
创建人的阿里云ID。 |
VisibleRange | Integer | 0 |
可见范围,可选枚举值包括0(工作空间)和1(私有)。 |
ModifiedTime | String | 2020-06-23T00:21:01+0800 |
最新修改时间。 |
OperatorId | String | 2345678 |
最新编辑人的阿里云ID。 |
GroupId | String | abcde123456789 |
分组ID。 |
Description | String | 测试API描述 |
API的描述信息。 |
FolderId | Long | 0 |
文件夹ID。 |
RequestMethod | Integer | 0 |
API的请求方式,可选枚举值包括0(GET)、1(POST)、2(PUT)和3(DELTE)。向导和脚本API支持GET和POST。注册API支持GET、POST、PUT和DELETE。 |
CreatedTime | String | 2020-06-23T00:21:01+0800 |
创建时间。 |
ApiName | String | 我的API名称 |
API的名称。 |
TenantId | Long | 10000 |
租户ID。 |
ApiPath | String | /test/1 |
API的路径。 |
Protocols | Array of Integer | 0 |
API的协议,多值列表,可选枚举值包括0(HTTP)和1(HTTPS)。 |
RegistrationDetails | Object |
注册API的详情,只有注册API返回。 |
|
ServiceHost | String | http://example.aliyundoc.com |
后端服务地址。 |
ServiceContentType | Integer | 0 |
API的返回数据类型,可选枚举值包括0(JSON)和1(XML)。向导和脚本API支持JSON,注册API支持JSON和XML。 |
ServicePath | String | /index |
后端服务路径。 |
SuccessfulResultSample | String | {"success": true} |
正常返回示例。 |
FailedResultSample | String | {"success": false} |
错误返回示例。 |
ServiceRequestBodyDescription | String | {"abc":1} |
后端请求body内容的描述信息。 |
RegistrationErrorCodes | Array of RegistrationErrorCode |
注册API的错误码列表。 |
|
ErrorMessage | String | fail to call |
错误信息。 |
ErrorCode | String | 1001 |
错误码。 |
ErrorSolution | String | retry |
错误解决方案。 |
RegistrationRequestParameters | Array of RegistrationRequestParameter |
注册API的请求参数列表。 |
|
ColumnName | String | column1 |
绑定的表字段名称,仅向导模式支持。 |
ParameterName | String | name1 |
参数的名称。 |
ParameterPosition | Integer | 0 |
参数的位置,可选枚举值包括0(Path)、1(Query)、2(Head)和3(Body)。向导和脚本API仅支持Query。注册API中的GET、DELETE方法支持Query、Head,PUT、POST |