ListInstances

Updated at:

Queries a list of DSW instances.

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

paidsw:ListInstances

get

*All Resource

*

None None

Request syntax

GET /api/v2/instances HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

WorkspaceId

string

No

Filters instances by workspace ID. For more information about how to obtain the workspace ID, see ListWorkspaces. Default value: empty. If this parameter is left empty, the default workspace of the current RAM user is used. For more information about how to view the default workspace, see GetDefaultWorkspace. To query instances across all workspaces in the region without filtering by a specific workspace, set this parameter to ALL.

40823

InstanceName

string

No

The instance name. If you specify this parameter, the system searches for instances whose names match the input value. The search is case-insensitive and supports fuzzy match. Default value: empty.

training_data

ResourceId

string

No

Filters instances by resource quota ID. For more information about how to obtain the resource quota ID, see ListQuotas. Default value: empty. If this parameter is left empty, only instances in pay-as-you-go resource groups are returned. Set this parameter to ALL to return all instances.

ALL

Status

string

No

Filters instances by instance status. Default value: empty. If this parameter is left empty, instances in all instance statuses are queried.

Valid values:

  • Creating :

    Creating.

  • SaveFailed :

    Image saving failed.

  • Stopped :

    Stopped.

  • Failed :

    Failed.

  • ResourceAllocating :

    Allocating resources.

  • Stopping :

    Stopping.

  • Updating :

    Updating.

  • Saving :

    Saving image.

  • Queuing :

    Queuing.

  • Recovering :

    Recovering.

  • Starting :

    Starting.

  • Running :

    Running.

  • Saved :

    Image saved.

  • Deleting :

    Deleting.

  • EnvPreparing :

    Preparing environment.

Running

PaymentType

string

No

Filters instances by billing method. Default value: empty. If this parameter is left empty, instances of all billing methods are queried.

Valid values:

  • PayAsYouGo :

    Pay-as-you-go.

  • Subscription :

    Subscription.

PayAsYouGo

Accessibility

string

No

Filters instances by workspace visibility. Default value: empty. If this parameter is left empty, instances with all visibility settings are queried. Valid values:

  • PRIVATE: Visible only to the creator and workspace administrators. This is the default value.

  • PUBLIC: Visible to all users in the workspace.

PRIVATE

AcceleratorType

string

No

Filters instances by accelerator type. Default value: empty. If this parameter is left empty, instances of all accelerator types are queried. Valid values:

  • CPU: No computing acceleration. Only CPUs are used for computing.

  • GPU: GPUs are used for computing acceleration.

Valid values:

  • CPU :

    CPU

  • GPU :

    GPU

CPU

PageNumber

integer

No

The page number for paging in the paged query of instances. Paging starts from 1. Default value: 1.

1

PageSize

integer

No

The number of instances to return on each page for paging in a paged query. Default value: 10.

10

SortBy

string

No

The field by which to sort the instances.

Valid values:

  • Status :

    Instance status.

  • AcceleratorType :

    Instance resource type [GPU, CPU]

  • Accessibility :

    Visibility.

  • InstanceId :

    Instance ID.

  • Memory :

    Memory size.

  • Priority :

    Priority.

  • CPU :

    Number of CPU cores.

  • GPU :

    Number of GPUs.

  • GmtModifiedTime :

    Update time.

  • OversoldInfo :

    Off-peak resource status.

  • InstanceName :

    Instance name.

  • ResourceId :

    Resource quota ID.

  • UserId :

    User ID.

  • OversoldType :

    Off-peak resource type.

  • GmtCreateTime :

    Creation time.

GmtCreateTime

Order

string

No

The sort order. Valid values: DESC and ASC. Default value: DESC.

Valid values:

  • ASC :

    Ascending order.

  • DESC :

    Descending order.

DESC

InstanceId

string

No

Filters instances by instance ID. For more information about how to obtain the instance ID, see ListInstances. You can specify multiple IDs separated by commas (,) to filter multiple instances.

dsw-730xxxxxxxxxx

Labels

object

No

Filters instances by label. You can specify up to 4 labels. Multiple labels are combined by using the AND operator.

{ "key1": "value1", "key2": "value2", "key3": "value3" }

CreateUserId

string

No

Filters instances by the user ID of the creator.

12345*****67890

GpuType

string

No

Filters instances by GPU model.

NVIDIA A10

MinCpu

string

No

The minimum number of CPUs. Unit: 0.001 CPU. 1000 indicates 1 CPU. If you specify this parameter, instances with more CPUs than the specified value are returned.

2000

MaxCpu

string

No

The maximum number of CPUs. Unit: 0.001 CPU. 1000 indicates 1 CPU. If you specify this parameter, instances with fewer CPUs than the specified value are returned.

30000

MinGpu

string

No

The minimum number of GPUs. Unit: 0.001 GPU. 1000 indicates 1 GPU. If you specify this parameter, instances with more GPUs than the specified value are returned.

100

MaxGpu

string

No

The maximum number of GPUs. Unit: 0.001 GPU. 1000 indicates 1 GPU. If you specify this parameter, instances with fewer GPUs than the specified value are returned.

8000

MinMemory

string

No

The minimum memory size. Unit: GB. If you specify this parameter, instances with more memory than the specified value are returned.

4

MaxMemory

string

No

The maximum memory size. Unit: GB. If you specify this parameter, instances with less memory than the specified value are returned.

48

MinGpuMemory

string

No

The minimum GPU memory size per GPU. Unit: GB. If you specify this parameter, instances with more GPU memory than the specified value are returned.

8

MaxGpuMemory

string

No

The maximum GPU memory size per GPU. Unit: GB. If you specify this parameter, instances with less GPU memory than the specified value are returned.

16

ImageName

string

No

The image name. If you specify this parameter, instances are filtered by the specified image name.

modelscope:1.9.4-pytorch2.0.1tensorflow2.13.0-cpu-py38-ubuntu20.04

Tag

array<object>

No

The list of tags. If you specify this parameter, instances are filtered by tags. You can specify up to 4 tags. Multiple tags are combined by using the AND operator.

object

No

The tag information.

Key

string

No

The tag key.

tag1

Value

string

No

The tag value.

value1

OversoldInfo

string

No

The actual off-peak resource type used by the instance. If you specify this parameter, instances are filtered by the actual off-peak resource type. Valid values:

  • ForbiddenQuotaOverSold: Uses guaranteed resources.

  • ForceQuotaOverSold: Uses off-peak resources.

  • PendingQuotaOverSold: Pending allocation.

ForceQuotaOverSold

OversoldType

string

No

The off-peak resource type specified by the user. If you specify this parameter, instances are filtered by the off-peak resource type. Valid values:

  • ForceQuotaOverSold: Uses only off-peak resources.

  • AcceptQuotaOverSold: Accepts off-peak resources.

  • ForbiddenQuotaOverSold: Uses guaranteed resources.

AcceptQuotaOverSold

CreateTimeAfter

string

No

Filters instances whose creation time is later than or equal to the specified time.

2024-01-12T14:36:01Z

CreateTimeBefore

string

No

Filters instances whose creation time is earlier than or equal to the specified time.

2024-01-12T15:36:01Z

Response elements

Element

Type

Description

Example

object

The instance list.

Code

string

The status code. Valid values:

  • InternalError: Internal error. All errors other than parameter validation errors are currently classified as internal errors.

  • ValidationError: Parameter validation error.

null

HttpStatusCode

integer

The HTTP status code. Valid values:

  • 400

  • 404

400

Instances

array<object>

The list of instances requested in the current page.

array<object>

The instance object.

AcceleratorType

string

The compute type of the instance. Valid values:

  • CPU

  • GPU

CPU

Accessibility

string

Specifies whether the instance is visible to other users in the workspace. Valid values:

  • PRIVATE: Visible only to yourself and administrators in the workspace. This is the default value.

  • PUBLIC: Visible to all users in the workspace.

PRIVATE

AccumulatedRunningTimeInMs

integer

The accumulated running time in milliseconds.

3600000

Affinity

object

The affinity configuration.

CPU

object

The CPU affinity configuration. This parameter is supported only for general-purpose subscription instances.

Enable

boolean

Specifies whether to enable CPU affinity. Valid values:

  • true: Enabled.

  • false: Disabled.

true

CloudDisks

array<object>

The list of cloud disks for the instance.

[]

object

Capacity

string

The capacity of the cloud disk.

30Gi

MountPath

string

The mount path of the cloud disk in the container.

/mmt/workspace

Path

string

The path of the mounted directory in the cloud disk.

/workspace

SubType

string

The usage type of the cloud disk. For example, rootfs indicates that the cloud disk is mounted as rootfs.

rootfs

CredentialConfig CredentialConfig

The credential injection configuration.

Datasets

array<object>

The collection of datasets.

object

The dataset object.

AccessPointId

string

The access point ID of BMCPFS (CPFS for AI). This parameter is used for fine-grained access control based on access points. It must be specified together with RoleArn and takes effect only on Lingjun resources.

ap-bp15victorick1132*****

ActualMountAccess

string

The actual read and write permissions. Valid values:

  • RW: Read and write.

  • RO: Read-only.

RO

BoundCacheServiceId

string

The ID of the cache service currently bound to the dataset. This parameter is returned only as a response parameter and only when the instance is in the running state. The value passed in the request is ignored.

cache-abc123

DatasetId

string

The dataset ID.

d-vsqjvsjp4orp5l206u

DatasetVersion

string

The dataset version.

v1

Dynamic

boolean

Specifies whether to enable dynamic mounting. Default value: false.

false

EnableCache

boolean

Specifies whether to enable local cache acceleration for the dataset. If this parameter is not specified or set to false, local cache acceleration is disabled. If this parameter is set to true, local cache acceleration is enabled. This parameter takes effect only when the resources to which the instance belongs are connected to a cache service. Valid values:

  • true: Enabled.

  • false: Disabled.

true

MountAccess

string

The read and write permissions. Valid values:

  • RW: Read and write.

  • RO: Read-only.

Valid values:

  • RW :

    Read and write.

  • RO :

    Read-only.

RW

MountPath

string

The mount path in the container.

/mnt/data

OptionType

string

The type of the mount option.

FastReadWrite

Options

string

The mount properties of the dataset.

{ "fs.oss.download.thread.concurrency": "10", "fs.oss.upload.thread.concurrency": "10", "fs.jindo.args": "-oattr_timeout=3 -oentry_timeout=0 -onegative_timeout=0 -oauto_cache -ono_symlink" }

RoleArn

string

The ARN of the RAM role used for mounting the dataset. For OSS datasets, this parameter is used for fine-grained access control. For BMCPFS (CPFS for AI) datasets, this parameter is required when AccessPointId is specified for mounting.

acs:ram::1234567890123456:role/aliyunossmountrole

Uri

string

The URI of the specified dataset.

oss://bucket-name.oss-cn-shanghai-internal.aliyuncs.com/data/path/

Driver

string

The NVIDIA driver configuration.

535.54.03

DynamicMount DynamicMount

The dynamic mounting configuration.

EcsSpec

string

The ECS instance type of the instance.

ecs.c6.large

EnvironmentVariables

object

The environment variables.

{"userName":"Chris"}

string

The user-defined environment variables. After the DSW instance is started, the specified environment variables are injected into the container.

MAAS

GmtCreateTime

string

The time when the instance was created.

2021-01-12T14:36:01Z

GmtModifiedTime

string

The time when the instance was last modified.

2021-01-12T14:36:01Z

IdleInstanceCuller

object

The idle shutdown rules for the instance.

{"InstanceId":"dsw-05cefd0be2e5a278","CpuPercentThreshold":20,"GpuPercentThreshold":10,"MaxIdleTimeInMinutes":120,"IdleTimeInMinutes":30}

CpuPercentThreshold

integer

The CPU utilization threshold, in percentage. Valid values: 1 to 100. If the CPU utilization is lower than this value, the instance is considered idle.

20

GpuPercentThreshold

integer

The GPU utilization threshold, in percentage. Valid values: 1 to 100. This parameter takes effect only for GPU-accelerated instances. If both the CPU and GPU utilizations are lower than their respective thresholds, the instance is considered idle.

10

IdleTimeInMinutes

integer

The current idle duration of the instance, in minutes.

30

InstanceId

string

The instance ID.

dsw-730xxxxxxxxxx

MaxIdleTimeInMinutes

integer

The maximum idle time threshold, in minutes. If the idle duration exceeds this value, the DSW instance is automatically stopped.

60

ImageAuth

string

The value of the username and password for a private user image after Base64 encoding. The password is masked.

aGFyYm9yYWlAeGltYWxheWE6KioqKioq

ImageId

string

The image ID.

image-05cefd0be2exxxx

ImageName

string

The image name.

py36_cpu_tf1.12_ubuntu

ImageUrl

string

The image URL.

registry.cn-shanghai.aliyuncs.com/pai_product/tensorflow:py36_cpu_tf1.12_ubuntu

InstanceId

string

The instance ID.

dsw-730xxxxxxxxxx

InstanceName

string

The instance name.

training_data

InstanceShutdownTimer

object

The scheduled shutdown task.

DueTime

string

The scheduled shutdown time.

2021-01-12T14:36:01Z

GmtCreateTime

string

The creation time.

2021-01-12T14:36:01Z

GmtModifiedTime

string

The modification time.

2021-01-12T14:36:01Z

InstanceId

string

The instance ID.

dsw-730xxxxxxxxxx

RemainingTimeInMs

integer

The remaining time until shutdown, in milliseconds.

3600000

InstanceSnapshotList

array<object>

The instance snapshot list.

[]

object

The instance snapshot.

GmtCreateTime

string

The snapshot creation time.

2021-01-12T14:36:01Z

GmtModifiedTime

string

The snapshot modification time.

2021-01-12T14:36:01Z

ImageId

string

The image ID.

image-05cefd0be2exxxx

ImageName

string

The image name.

py36_cpu_tf1.12_ubuntu

ImageUrl

string

The image URL.

registry.cn-shanghai.aliyuncs.com/pai_product/tensorflow:py36_cpu_tf1.12_ubuntu

ReasonCode

string

The instance snapshot error code.

Internal Error

ReasonMessage

string

The instance snapshot error message.

ImagePullBackOff

RepositoryUrl

string

The image repository URL.

https://cr.console.aliyun.com/repository/cn-hangzhou/zouxu/kf/images

Status

string

The instance snapshot status.

Pushing

InstanceUrl

string

The instance URL.

https://dsw-cn-shanghai.data.aliyun.com/notebook.htm?instance=39772#/

JupyterlabUrl

string

The JupyterLab URL.

https://dsw-gateway-cn-shanghai.aliyun.com/dsw-39772/lab/

Labels

array<object>

The custom user labels.

[{"Key":"stsTokenOwner","Value":"123xxxxxxxx"}]

object

The user-defined label.

Key

string

The key of the user-defined label.

stsTokenOwner

Value

string

The value of the user-defined label.

123xxxxxxxx

LatestSnapshot

object

The latest saved user image.

GmtCreateTime

string

The snapshot creation time.

2021-01-12T14:36:01Z

GmtModifiedTime

string

The snapshot modification time.

2021-01-12T14:36:01Z

ImageId

string

The image ID.

image-05cefd0be2exxxx

ImageName

string

The image name.

py36_cpu_tf1.12_ubuntu

ImageUrl

string

The image URL.

registry.cn-shanghai.aliyuncs.com/pai_product/tensorflow:py36_cpu_tf1.12_ubuntu

ReasonCode

string

The instance snapshot error code.

Internal Error

ReasonMessage

string

The instance snapshot error message.

ImagePullBackOff

RepositoryUrl

string

The image repository URL.

https://cr.console.aliyun.com/repository/cn-hangzhou/zouxu/kf/images

Status

string

The instance snapshot status.

Pushing

OversoldInfo

string

The information about the idle resources actually used by the instance.

ForceQuotaOverSold

OversoldType

string

The type of idle resources used by the instance.

ForceQuotaOverSold

PaymentType

string

The billing method. Valid values:

  • PayAsYouGo: pay-as-you-go.

  • Subscription: subscription.

PayAsYouGo

Priority

integer

The priority. Instances with a higher priority are allocated resources first.

1

ReasonCode

string

The instance error code.

Internal Error

ReasonMessage

string

The instance error reason.

ImagePullBackOff

RequestedResource

object

The resource configuration.

{"CPU":"4","Memory":"8Gi","SharedMemory":"4Gi","GPU":"1","GPUType":"Tesla-V100-16G"}

CPU

string

The number of CPU cores.

32

GPU

string

The number of GPUs.

4

GPUType

string

The GPU type.

NVIDIA A10

Memory

string

The memory size.

32

SharedMemory

string

The shared memory size.

32

ResourceId

string

The resource ID. Required for subscription resources.

dsw-123456789

ResourceName

string

The resource specifications.

  • For pay-as-you-go billing, the resource specifications are the purchased ECS instance types.

  • For subscription billing, the resource specifications are the requested number of CPU cores and memory size.

resource_group

ServiceConfig ServiceConfig

The configuration information for instance services, such as IDE and Jupyter.

Status

string

The instance status. You can specify multiple statuses separated by commas to select multiple values.

Running

Tags

array<object>

The list of tags.

object

The tag information.

TagKey

string

The tag key.

tag1

TagValue

string

The tag value.

value1

TenantId

string

The tenant ID.

1234567890123456

TerminalUrl

string

The terminal URL.

https://dsw-gateway-cn-shanghai.aliyun.com/dsw-39772/tty/

UserId

string

The user ID.

1612285282502324

UserMetricsEndpoints

array

The list of custom metric collection endpoints.

UserMetricsEndpoint

UserName

string

The username.

TestUser

UserVpc

object

The user VPC configuration.

BandwidthLimit BandwidthLimit

DefaultRoute

string

Default Route

eth0 | eth1

ExtendedCIDRs

array

The list of extended network CIDR blocks.

["192.168.0.1/24", "192.168.1.1/24"]

string

The extended network CIDR block.

192.168.0.1/24

ForwardInfos

array

The port forwarding information.

ForwardInfoResponse

The port forwarding information.

Ip

string

The IP address of the user VPC.

192.168.1.10

SecurityGroupId

string

The security group ID.

sg-xxxxxx

VSwitchId

string

The vSwitch ID.

vsw-xxxxx

VpcId

string

The VPC ID.

vpc-xxxxx

WebIDEUrl

string

The Web IDE URL.

https://dsw-gateway-cn-shanghai.aliyun.com/dsw-39772/ide/

WorkspaceId

string

The workspace ID.

40823

WorkspaceName

string

The workspace name.

training_data

WorkspaceSource

string

The storage destination for the workspace. If not specified, NAS, cloud disk, or local disk is used in sequence.

d-123456789

Message

string

The result message.

"XXX"

MigrationOptions

object

The instance migration options.

{"EnableProcessesPreservation":true}

RequestId

string

The request ID.

E7D55162-4489-1619-AAF5-3F97D5FCA948

Success

boolean

Indicates whether the request is successful. Valid values:

  • true

  • false

true

TotalCount

integer

The total number of instances.

35

Examples

Success response

JSON format

{
  "Code": "null",
  "HttpStatusCode": 400,
  "Instances": [
    {
      "AcceleratorType": "CPU",
      "Accessibility": "PRIVATE",
      "AccumulatedRunningTimeInMs": 3600000,
      "Affinity": {
        "CPU": {
          "Enable": true
        }
      },
      "CloudDisks": [
        {
          "Capacity": "30Gi",
          "MountPath": "/mmt/workspace",
          "Path": "/workspace",
          "SubType": "rootfs"
        }
      ],
      "CredentialConfig": {
        "AliyunEnvRoleKey": "0",
        "Configs": [
          {
            "Key": "0",
            "Roles": [
              {
                "AssumeRoleFor": "123******",
                "Policy": "{}",
                "RoleArn": "acs:ram::123******:role/****",
                "RoleType": "service",
                "UserInfo": {
                  "AccessKeyId": "LT********",
                  "Id": "456******",
                  "SecurityToken": "********",
                  "Type": "S"
                }
              }
            ],
            "Type": "Role"
          }
        ],
        "Enable": true
      },
      "Datasets": [
        {
          "AccessPointId": "ap-bp15victorick1132*****",
          "ActualMountAccess": "RO",
          "BoundCacheServiceId": "cache-abc123",
          "DatasetId": "d-vsqjvsjp4orp5l206u",
          "DatasetVersion": "v1",
          "Dynamic": false,
          "EnableCache": true,
          "MountAccess": "RW",
          "MountPath": "/mnt/data",
          "OptionType": "FastReadWrite",
          "Options": "{\n  \"fs.oss.download.thread.concurrency\": \"10\",\n  \"fs.oss.upload.thread.concurrency\": \"10\",\n  \"fs.jindo.args\": \"-oattr_timeout=3 -oentry_timeout=0 -onegative_timeout=0 -oauto_cache -ono_symlink\"\n}",
          "RoleArn": "acs:ram::1234567890123456:role/aliyunossmountrole",
          "Uri": "oss://bucket-name.oss-cn-shanghai-internal.aliyuncs.com/data/path/"
        }
      ],
      "Driver": "535.54.03",
      "DynamicMount": {
        "Enable": true,
        "MountPoints": [
          {
            "Options": "{}",
            "RootPath": "/mnt/dynamic/"
          }
        ]
      },
      "EcsSpec": "ecs.c6.large",
      "EnvironmentVariables": {
        "key": "MAAS"
      },
      "GmtCreateTime": "2021-01-12T14:36:01Z",
      "GmtModifiedTime": "2021-01-12T14:36:01Z",
      "IdleInstanceCuller": {
        "CpuPercentThreshold": 20,
        "GpuPercentThreshold": 10,
        "IdleTimeInMinutes": 30,
        "InstanceId": "dsw-730xxxxxxxxxx",
        "MaxIdleTimeInMinutes": 60
      },
      "ImageAuth": "aGFyYm9yYWlAeGltYWxheWE6KioqKioq",
      "ImageId": "image-05cefd0be2exxxx",
      "ImageName": "py36_cpu_tf1.12_ubuntu",
      "ImageUrl": "registry.cn-shanghai.aliyuncs.com/pai_product/tensorflow:py36_cpu_tf1.12_ubuntu",
      "InstanceId": "dsw-730xxxxxxxxxx",
      "InstanceName": "training_data",
      "InstanceShutdownTimer": {
        "DueTime": "2021-01-12T14:36:01Z",
        "GmtCreateTime": "2021-01-12T14:36:01Z",
        "GmtModifiedTime": "2021-01-12T14:36:01Z",
        "InstanceId": "dsw-730xxxxxxxxxx",
        "RemainingTimeInMs": 3600000
      },
      "InstanceSnapshotList": [
        {
          "GmtCreateTime": "2021-01-12T14:36:01Z",
          "GmtModifiedTime": "2021-01-12T14:36:01Z",
          "ImageId": "image-05cefd0be2exxxx",
          "ImageName": "py36_cpu_tf1.12_ubuntu",
          "ImageUrl": "registry.cn-shanghai.aliyuncs.com/pai_product/tensorflow:py36_cpu_tf1.12_ubuntu",
          "ReasonCode": "Internal Error",
          "ReasonMessage": "ImagePullBackOff",
          "RepositoryUrl": "https://cr.console.aliyun.com/repository/cn-hangzhou/zouxu/kf/images",
          "Status": "Pushing"
        }
      ],
      "InstanceUrl": "https://dsw-cn-shanghai.data.aliyun.com/notebook.htm?instance=39772#/",
      "JupyterlabUrl": "https://dsw-gateway-cn-shanghai.aliyun.com/dsw-39772/lab/",
      "Labels": [
        {
          "Key": "stsTokenOwner",
          "Value": "123xxxxxxxx"
        }
      ],
      "LatestSnapshot": {
        "GmtCreateTime": "2021-01-12T14:36:01Z",
        "GmtModifiedTime": "2021-01-12T14:36:01Z",
        "ImageId": "image-05cefd0be2exxxx",
        "ImageName": "py36_cpu_tf1.12_ubuntu",
        "ImageUrl": "registry.cn-shanghai.aliyuncs.com/pai_product/tensorflow:py36_cpu_tf1.12_ubuntu",
        "ReasonCode": "Internal Error",
        "ReasonMessage": "ImagePullBackOff",
        "RepositoryUrl": "https://cr.console.aliyun.com/repository/cn-hangzhou/zouxu/kf/images",
        "Status": "Pushing"
      },
      "OversoldInfo": "ForceQuotaOverSold",
      "OversoldType": "ForceQuotaOverSold",
      "PaymentType": "PayAsYouGo",
      "Priority": 1,
      "ReasonCode": "Internal Error",
      "ReasonMessage": "ImagePullBackOff",
      "RequestedResource": {
        "CPU": "32",
        "GPU": "4",
        "GPUType": "NVIDIA A10",
        "Memory": "32",
        "SharedMemory": "32"
      },
      "ResourceId": "dsw-123456789",
      "ResourceName": "resource_group",
      "ServiceConfig": {
        "CodeServerAuth": "password",
        "CodeServerPassword": "ExamplePassword123",
        "JupyterServerAuth": "password",
        "JupyterServerPassword": "ExamplePassword123"
      },
      "Status": "Running",
      "Tags": [
        {
          "TagKey": "tag1",
          "TagValue": "value1"
        }
      ],
      "TenantId": "1234567890123456",
      "TerminalUrl": "https://dsw-gateway-cn-shanghai.aliyun.com/dsw-39772/tty/",
      "UserId": "1612285282502324",
      "UserMetricsEndpoints": [
        {
          "Path": "/metrics",
          "Port": 9091
        }
      ],
      "UserName": "TestUser",
      "UserVpc": {
        "BandwidthLimit": {
          "EgressRate": "10Mbps",
          "EgressWhitelists": [
            "10.0.0.0/8"
          ],
          "IngressRate": "10Mbps",
          "IngressWhitelists": [
            "10.0.0.0/8"
          ]
        },
        "DefaultRoute": "eth0 | eth1",
        "ExtendedCIDRs": [
          "192.168.0.1/24"
        ],
        "ForwardInfos": [
          {
            "AccessType": [
              "intranet"
            ],
            "ConnectInfo": {
              "Internet": {
                "Endpoint": "47.111.119.114",
                "Port": "22"
              },
              "Intranet": {
                "Endpoint": "dsw-notebook-22-urz3u6cnu0uts7ej9r.dsw-5cc6083084818f60.dsw.pai.alibaba.com",
                "Port": "22"
              },
              "Message": "DNAT and privateZone are both ready.",
              "Phase": "Ready"
            },
            "ContainerName": "dsw-notebook",
            "EipAllocationId": "eip-25877c70gddh****",
            "Enable": true,
            "ExternalPort": "1024",
            "ForwardPort": "22",
            "Name": "ssh",
            "NatGatewayId": "ngw-bp1uewa15k4iy5770****",
            "NlbGatewayId": "nlb-a1b2c3d4e5f6g7h8i9",
            "SSHPublicKey": "ssh-rsa AAAAB3****************************\n"
          }
        ],
        "Ip": "192.168.1.10",
        "SecurityGroupId": "sg-xxxxxx",
        "VSwitchId": "vsw-xxxxx",
        "VpcId": "vpc-xxxxx"
      },
      "WebIDEUrl": "https://dsw-gateway-cn-shanghai.aliyun.com/dsw-39772/ide/",
      "WorkspaceId": "40823",
      "WorkspaceName": "training_data",
      "WorkspaceSource": "d-123456789"
    }
  ],
  "Message": "\"XXX\"",
  "MigrationOptions": {
    "EnableProcessesPreservation": true
  },
  "RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
  "Success": true,
  "TotalCount": 35
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.