Membuat token untuk Livy Gateway.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:CreateLivyComputeToken |
create |
*All Resource
|
None | None |
Sintaks permintaan
PUT /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 |
| body |
object |
No |
Badan permintaan. |
|
| name |
string |
No |
The token name. |
mytoken |
| token |
string |
No |
The token content. The length must be 16 or more characters. |
gs3fy75w4o7hqe5s |
| autoExpireConfiguration |
object |
No |
The token expiration information struct. |
|
| enable |
boolean |
No |
Specifies whether the token automatically expires.
|
false |
| expireDays |
integer |
No |
The expiration period in days. |
7 |
| 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 error details. |
1000000 |
| message |
string |
The error details. |
ok |
| data |
object |
The returned data. |
|
| tokenId |
string |
The token ID. |
lctk-xxxxxxxx |
Contoh
Respons sukses
JSONformat
{
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"code": "1000000",
"message": "ok",
"data": {
"tokenId": "lctk-xxxxxxxx"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.