GetRuntime

Updated at:

Retrieves the details of a runtime.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • Creating: The runtime is being created.

  • SaveFailed: Image saving failed.

  • Stopped: The runtime is stopped.

  • Failed: The runtime failed.

  • ResourceAllocating: Resources are being allocated.

  • Stopping: The runtime is being stopped.

  • Updating: The runtime is being updated.

  • Saving: The image is being saved.

  • Queuing: The runtime is queued.

  • Recovering: The instance is being recovered.

  • Starting: The runtime is being started.

  • Running: The runtime is running.

  • Saved: The image is saved.

  • Deleting: The runtime is being deleted.

  • EnvPreparing: The environment is being prepared.

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: role assumption

  • RoleChain: role chain assumption

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: assumed by a service

  • user: assumed by a regular user account

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.