Obtains a temporary access credential for a data lake table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dlf:GetTableToken |
get |
*All Resource
|
None | None |
Request syntax
GET /dlf/v1/{catalogId}/databases/{database}/tables/{table}/token HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| catalogId |
string |
Yes |
The catalog ID. |
clg-paimon-xxx |
| database |
string |
Yes |
The database name. |
database_name |
| table |
string |
Yes |
The table name. |
table_name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| isInternal |
boolean |
No |
Specifies whether the access is from a VPC. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of response. |
||
| token |
object |
The temporary access credential for the catalog hosting the table. |
|
|
string |
The temporary access credential for the catalog hosting the table. |
{ "fs.oss.accessKeyId": "xxx", "fs.oss.accessKeySecret": "xxx", "fs.oss.securityToken": "xxx", "fs.oss.endpoint": "xxx" } |
|
| expiresAtMillis |
integer |
The expiration time of the temporary access credential. |
1749160909000 |
Examples
Success response
JSON format
{
"token": {
"key": "{\n \"fs.oss.accessKeyId\": \"xxx\",\n \"fs.oss.accessKeySecret\": \"xxx\",\n \"fs.oss.securityToken\": \"xxx\",\n \"fs.oss.endpoint\": \"xxx\"\n }"
},
"expiresAtMillis": 1749160909000
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.