Lists Livy Gateway tokens.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
emr-serverless-spark:ListLivyComputeToken | list | *All Resource
| None | None |
Request syntax
GET /api/interactive/v1/workspace/{workspaceBizId}/livycompute/{livyComputeId}/token HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
workspaceBizId | string | No | The workspace ID. | w-8adde60aa809701f |
livyComputeId | string | No | The ID of the Livy Gateway. | lc-zm4dzdiubu73w2yx |
regionId | string | No | The region ID. | cn-hangzhou |
Response elements
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 |
Examples
Success response
JSON format
{
"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
}
]
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.