Call this operation to obtain a token and a WebSocket URL for logging on to a container.
Try it now
Test
RAM authorization
Request syntax
GET /api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/token HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
Region ID. |
cn-shanghai |
| ServiceName |
string |
Yes |
Service name. |
deepseekv3_3 |
| InstanceName |
string |
Yes |
Service instance name. |
deepseekv3-3-7b56869574-44nq9 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkerName |
string |
No |
Name of the service worker. Call the ListServiceContainers operation to get the worker name. |
worker0 |
| ActionType |
string |
No |
Type of URL to return. Valid values:
Valid values:
|
WorkBench |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema. |
||
| RequestId |
string |
Request ID. |
40325405-579C-4D82**** |
| Token |
string |
This parameter is not used. |
*** |
| Url |
string |
This parameter is not used. |
*** |
| WorkbenchUrl |
string |
URL for logging on to the container using Workbench. |
https://ecs-workbench-disposable.aliyun.com/account/disposable/login/sst/180535184*******/uc2vx***** |
| StreamlogUrl |
string |
This parameter is not used. |
*** |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Token": "***",
"Url": "***",
"WorkbenchUrl": "https://ecs-workbench-disposable.aliyun.com/account/disposable/login/sst/180535184*******/uc2vx*****",
"StreamlogUrl": "***"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.