Queries the APIs that you are authorized to access.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | ListDataServiceAuthorizedApis | The operation that you want to perform. Set the value to ListDataServiceAuthorizedApis. |
ProjectId | Long | Yes | 10000 | The workspace ID. |
PageNumber | Integer | Yes | PageNumber | The page number. Pages start from page 1. Default value: 1. |
PageSize | Integer | Yes | 10 | The number of entries per page. Valid values: 1 to 100. Default value: 10. |
TenantId | Long | No | 10001 | The tenant ID. This parameter is deprecated. |
ApiNameKeyword | String | No | My API name | The keyword in API names. The keyword is used to search for the APIs whose names contain the keyword. |
Response parameters
Parameter | Type | Example | Description |
HttpStatusCode | Integer | 200 | The HTTP status code. |
RequestId | String | 0000-ABCD-EFG**** | The request ID. |
ErrorMessage | String | The specified parameters are invalid. | The error message. |
Success | Boolean | true | Indicates whether the request was successful. |
ErrorCode | String | 1031203110005 | The error code. |
Data | Object | The information about the APIs that you are authorized to access. | |
PageNumber | Integer | 1 | The page number. The value of this parameter is the same as that of the PageNumber parameter in the request. |
PageSize | Integer | 10 | The number of entries per page. Valid values: 1 to 100. Default value: 10. |
TotalCount | Integer | 100 | The total number of entries returned. |
ApiAuthorizedList | Array of ApiAuthorized | The APIs that you are authorized to access. | |
ApiId | Long | 10002 | The API ID. |
ApiStatus | Integer | 0 | The status of the API. Valid values: 0 and 1. The value 0 indicates that the API is not published. The value 1 indicates that the API is published. |
GrantOperatorId | String | 23456 | The ID of the Alibaba Cloud account used by the user who granted the access permissions of the API. |
ProjectId | Long | 10000 | The workspace ID. |
CreatorId | String | 12345 | The ID of the Alibaba Cloud account used by the API owner. |
GrantEndTime | String | 2020-06-24T00:21:01+0800 | The expiration time for the granted access permissions of the API. |
ModifiedTime | String | 2020-06-23T00:21:01+0800 | The time when the API was last modified. |
GroupId | String | abcde123456789 | The group ID. |
GrantCreatedTime | String | 2020-06-23T00:21:01+0800 | The time when the access permissions of the API were granted. |
CreatedTime | String | 2020-06-23T00:21:01+0800 | The time when the API was created. |
ApiName | String | My API name | The name of the API. |
TenantId | Long | 10001 | The tenant ID. |
ApiPath | String | /test/1 | The path of the API. |
Examples
Sample requests
POST /?Action=ListDataServiceAuthorizedApis&Common request parameters HTTP/1.1
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListDataServiceAuthorizedApisResponse>
<Data>
<ApiAuthorizedList/>
</Data>
</ListDataServiceAuthorizedApisResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Data" : {
"ApiAuthorizedList" : [ { } ]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
429 | Throttling.Api | The request for this resource has exceeded your available limit. | The number of requests for the resource has exceeded the upper limit. |
429 | Throttling.System | The DataWorks system is busy. Try again later. | The DataWorks system is busy. Try again later. |
429 | Throttling.User | Your request is too frequent. Try again later. | Excessive requests have been submitted within a short period of time. Try again later. |
500 | InternalError.System | An internal system error occurred. Try again later. | An internal error occurred. Try again later. |
500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | An internal error occurred. Try again later. |
For a list of error codes, see Service error codes.