Refreshes the token for a Livy Gateway.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:RefreshLivyComputeToken |
update |
*All Resource
|
None |
None |
Request syntax
POST /api/interactive/v1/workspace/{workspaceBizId}/livycompute/{livyComputeId}/token/{tokenId} HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
|
workspaceBizId |
string |
No |
The workspace ID. |
w-8adde60aa809701f |
|
livyComputeId |
string |
No |
The ID of the Livy Gateway. |
lc-i8xogcdfa4fk3yn1 |
|
tokenId |
string |
No |
The token ID. |
lctk-xxxxxxxx |
| body |
object |
No |
The request body. |
|
|
name |
string |
No |
The name. |
test |
|
token |
string |
No |
|
fe86812667f04v343 |
| autoExpireConfiguration |
object |
No |
The information about token expiration. |
|
|
enable |
boolean |
No |
Specifies whether the token automatically expires.
|
false |
|
expireDays |
integer |
No |
The expiration period in days. |
7 |
|
regionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema |
||
|
requestId |
string |
The request ID. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
|
code |
string |
The status code. A value of 1000000 indicates that the request was successful. For other values, the request failed. For more information, see the message parameter. |
1000000 |
|
message |
string |
The error message. |
ok |
Examples
Success response
JSON format
{
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"code": "1000000",
"message": "ok"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.