Obtém uma lista de APIs para as quais outros usuários receberam permissões de acesso.
Experimente agora
Testar
Autorização RAM
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ProjectId |
integer |
Sim |
O ID do workspace. |
10000 |
| PageNumber |
integer |
Não |
O número da página. As páginas começam na página 1. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página. Valores válidos: 1 a 100. Valor padrão: 10. |
10 |
| TenantId |
integer |
Não |
O ID do tenant. Este parâmetro está descontinuado. |
10001 |
| ApiNameKeyword |
string |
Não |
A palavra-chave no nome da API. A palavra-chave pode ser usada para pesquisar a API cujo nome contém a palavra-chave. |
My API name |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| HttpStatusCode |
integer |
O código de status HTTP. |
200 |
| RequestId |
string |
O ID da solicitação. |
0000-ABCD-EFG**** |
| ErrorMessage |
string |
A mensagem de erro. |
Normal |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. |
Boolean |
| ErrorCode |
string |
O código de erro. |
0 |
| Data |
object |
As APIs para as quais outros usuários receberam permissões de acesso. |
|
| PageNumber |
integer |
O número da página. O valor deste parâmetro é o mesmo do parâmetro PageNumber na solicitação. |
1 |
| PageSize |
integer |
O número de entradas por página. Valores válidos: 1 a 100. Valor padrão: 10. |
10 |
| TotalCount |
integer |
O número total de entradas retornadas. |
100 |
| ApiAuthorizationList |
array<object> |
As APIs para as quais outros usuários receberam permissões de acesso. |
|
|
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 |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
]
}
]
}
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.