Memberikan izin akses pada API di DataService Studio.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TenantId |
integer |
No |
ID penyewa. |
1004 |
| ProjectId |
integer |
Yes |
ID ruang kerja. |
10003 |
| ApiId |
integer |
Yes |
ID API. |
10001 |
| AuthorizedProjectId |
integer |
Yes |
ID ruang kerja yang diberi izin akses pada API. |
10002 |
| EndTime |
integer |
Yes |
Waktu berakhirnya masa berlaku izin akses. Waktu harus berupa stempel waktu UNIX. Satuan: detik. Contoh: 1600531564, yang menunjukkan 2020-09-20 00:06:04 (UTC+8). |
1600531564 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Menunjukkan apakah otorisasi berhasil. |
true |
| RequestId |
string |
ID permintaan. |
0000-ABCD-EF**** |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"RequestId": "0000-ABCD-EF****"
}
Kode kesalahan
|
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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.