Retrieves a list of APIs on which other users are granted access permissions.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The ID of the workspace. |
10000 |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 10. |
10 |
| TenantId |
integer |
No |
The tenant ID. This parameter is deprecated. |
10001 |
| ApiNameKeyword |
string |
No |
The keyword in the name of the API. The keyword can be used to search for the API whose name contains the keyword. |
My API name |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
0000-ABCD-EFG**** |
| ErrorMessage |
string |
The error message. |
Normal |
| Success |
boolean |
Indicates whether the request was successful. |
Boolean |
| ErrorCode |
string |
The error code. |
0 |
| Data |
object |
The APIs on which other users are granted the access permissions. |
|
| PageNumber |
integer |
The page number. The value of this parameter is the same as that of the PageNumber parameter in the request. |
1 |
| PageSize |
integer |
The number of entries per page. Valid values: 1 to 100. Default value: 10. |
10 |
| TotalCount |
integer |
The total number of entries returned. |
100 |
| ApiAuthorizationList |
array<object> |
The APIs on which other users are granted the access permissions. |
|
|
array<object> |
|||
| ApiStatus |
integer |
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. |
0 |
| ApiId |
integer |
The API ID. |
10002 |
| ModifiedTime |
string |
The time when the API was last modified. |
2020-06-23T00:21:01+0800 |
| GroupId |
string |
The group ID. |
ab123 |
| ProjectId |
integer |
The workspace ID. |
10000 |
| CreatorId |
string |
The ID of the Alibaba Cloud account used by the API owner. |
12345 |
| CreatedTime |
string |
The time when the API was created. |
2020-06-23T00:21:01+0800 |
| ApiName |
string |
The name of the API. |
My API name |
| TenantId |
integer |
The tenant ID. |
10001 |
| ApiPath |
string |
The path of the API. |
/test/1 |
| AuthorizationRecords |
array<object> |
The authorization records. |
|
|
object |
|||
| EndTime |
string |
The end time of the validity period of the authorization. |
2020-06-24T00:21:01+0800 |
| CreatorId |
string |
The ID of the Alibaba Cloud account used by the API owner. |
12345 |
| CreatedTime |
string |
The time when the access permissions on the API were granted to other users. |
2020-06-23T00:21:01+0800 |
| ProjectId |
integer |
The ID of the workspace to which the access permissions on the API are granted. |
10004 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "0000-ABCD-EFG****",
"ErrorMessage": "Normal",
"Success": true,
"ErrorCode": "0",
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 100,
"ApiAuthorizationList": [
{
"ApiStatus": 0,
"ApiId": 10002,
"ModifiedTime": "2020-06-23T00:21:01+0800",
"GroupId": "ab123",
"ProjectId": 10000,
"CreatorId": "12345",
"CreatedTime": "2020-06-23T00:21:01+0800",
"ApiName": "My API name",
"TenantId": 10001,
"ApiPath": "/test/1",
"AuthorizationRecords": [
{
"EndTime": "2020-06-24T00:21:01+0800",
"CreatorId": "12345",
"CreatedTime": "2020-06-23T00:21:01+0800",
"ProjectId": 10004
}
]
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | No permission, please authorize |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.