他のユーザーに権限付与された API のリストを取得します。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ProjectId |
integer |
必須 |
ワークスペース ID。 |
10000 |
| PageNumber |
integer |
任意 |
ページ番号。ページは 1 から始まります。デフォルト値: 1。 |
1 |
| PageSize |
integer |
任意 |
1 ページあたりのエントリ数。デフォルト値: 10。最大値: 50。 |
10 |
| TenantId |
integer |
任意 |
[非推奨] テナント ID。 |
10001 |
| ApiNameKeyword |
string |
任意 |
API 名のキーワード。このパラメーターは、名前に指定されたキーワードを含む API をフィルター処理するために使用されます。 |
MyAPIName |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答構造。 |
||
| HttpStatusCode |
integer |
HTTP 状態コード。 |
200 |
| RequestId |
string |
リクエスト ID。リクエストの一意な識別子です。 |
0000-ABCD-EFG**** |
| ErrorMessage |
string |
エラーメッセージ。 |
Normal |
| Success |
boolean |
呼び出しが成功したかどうかを示します。 |
true |
| ErrorCode |
string |
エラーコード。 |
0 |
| Data |
object |
他のユーザーに権限付与された API のリスト。 |
|
| PageNumber |
integer |
ページ番号。リクエスト内の PageNumber 値と同じです。 |
1 |
| PageSize |
integer |
1 ページあたりのエントリ数。デフォルト値: 10。最大値: 100。 |
10 |
| TotalCount |
integer |
レコードの総数。 |
100 |
| ApiAuthorizationList |
array<object> |
応答構造。 |
|
|
array<object> |
応答構造。 |
||
| ApiStatus |
integer |
API のステータスです。有効な値は 0 および 1 です。値 0 は API が未公開であることを示し、値 1 は API が公開済みであることを示します。 |
0 |
| ApiId |
integer |
API ID です。 |
10002 |
| ModifiedTime |
string |
API が最後に変更された時刻です。 |
2020-06-23T00:21:01+0800 |
| GroupId |
string |
グループ ID です。 |
ab123 |
| ProjectId |
integer |
ワークスペース ID です。 |
10000 |
| CreatorId |
string |
API オーナーが使用する Alibaba Cloud アカウントの ID です。 |
12345 |
| CreatedTime |
string |
API が作成された時刻です。 |
2020-06-23T00:21:01+0800 |
| ApiName |
string |
API の名称です。 |
My API name |
| TenantId |
integer |
テナント ID です。 |
10001 |
| ApiPath |
string |
API のパスです。 |
/test/1 |
| AuthorizationRecords |
array<object> |
権限付与レコードです。 |
|
|
object |
|||
| EndTime |
string |
権限付与の有効期間の終了時刻です。 |
2020-06-24T00:21:01+0800 |
| CreatorId |
string |
API オーナーが使用する Alibaba Cloud アカウントの ID です。 |
12345 |
| CreatedTime |
string |
API に対するアクセス権限が他のユーザーに付与された時刻です。 |
2020-06-23T00:21:01+0800 |
| ProjectId |
integer |
API のアクセス権限が付与されたワークスペースの ID です。 |
10004 |
例
成功レスポンス
JSONJSON
{
"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
}
]
}
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. | |
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。