Mendaftar token Livy Gateway.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:ListLivyComputeToken |
list |
*All Resource
|
None | None |
Sintaks permintaan
GET /api/interactive/v1/workspace/{workspaceBizId}/livycompute/{livyComputeId}/token HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceBizId |
string |
No |
ID ruang kerja. |
w-8adde60aa809701f |
| livyComputeId |
string |
No |
ID Livy Gateway. |
lc-zm4dzdiubu73w2yx |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| regionId |
string |
No |
ID wilayah. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| requestId |
string |
The request ID. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
| code |
string |
The response code. A value of 1000000 indicates that the request was successful. Other values indicate that the request failed. See the message parameter for failure details. |
1000000 |
| message |
string |
The error message. |
ok |
| data |
object |
The returned data. |
|
| tokens |
array<object> |
The list of tokens. |
|
|
object |
The token information. |
||
| tokenId |
string |
The token ID. |
lctk-xxxxxxxxxxx |
| name |
string |
The token name. |
test |
| token |
string |
The token content. |
5d37843fb6f1e8 |
| createdby |
string |
The user who created the token. |
alice |
| createTime |
integer |
The time when the token was created. |
1749456094000 |
| expireTime |
integer |
The time when the token expires. |
1749456994000 |
| lastUsedTime |
integer |
The time when the token was last used. |
1749456098000 |
Contoh
Respons sukses
JSONformat
{
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"code": "1000000",
"message": "ok",
"data": {
"tokens": [
{
"tokenId": "lctk-xxxxxxxxxxx",
"name": "test",
"token": "5d37843fb6f1e8",
"createdby": "alice",
"createTime": 1749456094000,
"expireTime": 1749456994000,
"lastUsedTime": 1749456098000
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.