GetRuntime
Retrieves the details of a runtime.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pailangstudio:GetRuntime |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/langstudio/runtimes/{RuntimeId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RuntimeId |
string |
No |
The runtime ID. |
rtime-apje******beaz |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
No |
The workspace ID. For more information about how to obtain a workspace ID, see ListWorkspaces. |
478*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response results. |
||
| RequestId |
string |
The request ID. |
963BD7F9-0C02-5594-9550-BCC6DD43E3C0 |
| WorkspaceId |
string |
The workspace ID. |
478*** |
| RuntimeId |
string |
The runtime ID. |
rtime-apje******beaz |
| RuntimeName |
string |
The name of the runtime. |
dev01 |
| RuntimeType |
string |
The type of the runtime. |
DSW |
| RuntimeStatus |
string |
The status of the runtime. Valid values:
|
Running |
| GmtCreateTime |
string |
The creation time in ISO 8601 format in UTC. |
2025-09-24T07:33:53Z |
| GmtModifiedTime |
string |
The last modification time in ISO 8601 format in UTC. |
2025-09-24T08:24:36Z |
| Creator |
string |
The ID of the creator. |
2680******4103 |
| Accessibility |
string |
The visibility of the workspace. |
PRIVATE |
| EcsSpec |
object |
The ECS resource configuration. |
|
| InstanceType |
string |
The instance type. |
ecs.c6.large |
| GPUType |
string |
The GPU type. |
V100 |
| CPU |
integer |
The number of CPUs. |
4 |
| GPU |
integer |
The number of GPUs. |
0 |
| Memory |
integer |
The memory size in GB. |
8 |
| SharedMemory |
integer |
The shared memory size in GB. |
8 |
| Driver |
string |
The GPU driver version. |
535.161.08 |
| ResourceId |
string |
The resource quota ID. |
quota18******zv9 |
| UserVpc |
object |
The user VPC configuration. |
|
| VpcId |
string |
The VPC ID. |
vpc-wz90****5v23 |
| VSwitchId |
string |
The vSwitch ID. |
vsw-wz9r****ng10 |
| SecurityGroupId |
string |
The security group ID. |
sg-wz9i****1129 |
| DefaultRoute |
string |
The default route. |
eth0 |
| ExtendedCIDRs |
array |
The extended CIDR blocks. |
|
|
string |
The extended CIDR blocks. |
172.16.1.0/24 |
|
| Envs |
array<object> |
The environment variables. |
|
|
object |
|||
| Key |
string |
The environment key. |
testKey1 |
| Value |
string |
The environment value. |
testValue1 |
| Labels |
array<object> |
The labels. |
|
|
object |
|||
| Key |
string |
The label key. |
testKey1 |
| Value |
string |
The label value. |
testValue1 |
| DataSources |
array<object> |
The mounted data sources. |
|
|
object |
|||
| DatasetId |
string |
The dataset ID. You must specify either this parameter or Uri. |
d-umns******zij4szhc |
| Uri |
string |
The OSS path of the data source. You must specify either this parameter or DatasetId. |
oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/langstudio/source/ |
| MountPath |
string |
The mount path. |
/mnt/data |
| RunTimeout |
integer |
The timeout period for a single test run executed on the runtime, in seconds. |
180 |
| CredentialConfig |
object |
The credential configuration. |
|
| EnableCredentialInject |
boolean |
Specifies whether credential injection is enabled. |
true |
| AliyunEnvRoleKey |
string |
The environment variable role key. |
0 |
| CredentialConfigItems |
array<object> |
The list of credential configurations. |
|
|
array<object> |
|||
| Key |
string |
The key that identifies the configuration. |
0 |
| Type |
string |
The configuration type. Valid values:
|
Role |
| Roles |
array<object> |
The list of configured roles. |
|
|
object |
|||
| AssumeRoleFor |
string |
The principal to which the assumed role belongs. |
1095******785714 |
| RoleType |
string |
The type of the assumed role. Valid values:
|
service |
| RoleArn |
string |
The role ARN. |
acs:ram::1095******785714:role/testrole |
| WorkDir |
string |
The OSS path of the working directory. |
oss://mybucket.oss-cn-hangzhou-internal.aliyuncs.com/workdir/ |
| Version |
string |
The runtime image version. |
2.0.0 |
| RuntimeLog |
string |
The runtime logs. |
oss://path/to/log/file |
| AutoUpdateImage |
boolean |
Specifies whether to automatically update the image. When a new image version is available, the system automatically updates the runtime image during off-peak hours. |
Examples
Success response
JSON format
{
"RequestId": "963BD7F9-0C02-5594-9550-BCC6DD43E3C0",
"WorkspaceId": "478***",
"RuntimeId": "rtime-apje******beaz",
"RuntimeName": "dev01",
"RuntimeType": "DSW",
"RuntimeStatus": "Running",
"GmtCreateTime": "2025-09-24T07:33:53Z",
"GmtModifiedTime": "2025-09-24T08:24:36Z",
"Creator": "2680******4103",
"Accessibility": "PRIVATE",
"EcsSpec": {
"InstanceType": "ecs.c6.large",
"GPUType": "V100",
"CPU": 4,
"GPU": 0,
"Memory": 8,
"SharedMemory": 8,
"Driver": "535.161.08"
},
"ResourceId": "quota18******zv9",
"UserVpc": {
"VpcId": "vpc-wz90****5v23",
"VSwitchId": "vsw-wz9r****ng10",
"SecurityGroupId": "sg-wz9i****1129",
"DefaultRoute": "eth0",
"ExtendedCIDRs": [
"172.16.1.0/24"
]
},
"Envs": [
{
"Key": "testKey1",
"Value": "testValue1"
}
],
"Labels": [
{
"Key": "testKey1",
"Value": "testValue1"
}
],
"DataSources": [
{
"DatasetId": "d-umns******zij4szhc",
"Uri": "oss://test-bucket.oss-cn-hangzhou-internal.aliyuncs.com/langstudio/source/",
"MountPath": "/mnt/data"
}
],
"RunTimeout": 180,
"CredentialConfig": {
"EnableCredentialInject": true,
"AliyunEnvRoleKey": "0",
"CredentialConfigItems": [
{
"Key": "0",
"Type": "Role",
"Roles": [
{
"AssumeRoleFor": "1095******785714",
"RoleType": "service",
"RoleArn": "acs:ram::1095******785714:role/testrole"
}
]
}
]
},
"WorkDir": "oss://mybucket.oss-cn-hangzhou-internal.aliyuncs.com/workdir/",
"Version": "2.0.0",
"RuntimeLog": "oss://path/to/log/file",
"AutoUpdateImage": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.