ListServerIdeInstances
Queries personal development environment instances by paging. When you call this operation, use the DataWorks endpoint that corresponds to the region of the target workspace.
Operation description
Queries personal development environment (ServerIDE) instances by paging. You can filter the instances by workspace, resource group, keyword, owner, and instance subtype.
Instance visibility
When querying by ProjectId, workspace administrators can perform a conditional query of instances in the workspace. Other invokers can only query their own instances. Before querying instances of other members in the workspace, confirm that the invoking account has administrator permissions for the workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListServerIdeInstances |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
No |
The DataWorks workspace ID. |
10000 |
| ResourceGroupId |
string |
No |
The identifier of the DataWorks resource group. You can specify the numeric ID of the resource group or the full identifier in the Serverless_res_group_{tenantId}_{resgId} format. |
Serverless_res_group_123456789012345_9876543210**** |
| Keyword |
string |
No |
The keyword used to match the instance ID or instance name. |
notebook_dev |
| RelatedUserId |
string |
No |
The account ID of the user who owns the instance, used for filtering. |
20933221576142**** |
| SubType |
string |
No |
The instance subtype. Valid values:
|
PERSONAL_DEV |
| PageNumber |
integer |
No |
The page number. Pages start from 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page. |
10 |
| MaxResults |
integer |
No |
The maximum number of entries to return for a single request. |
20 |
| NextToken |
string |
No |
The pagination token used to continue the query. You do not need to specify this parameter for the first call. |
CAESG**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| PagingInfo |
object |
The pagination information. |
|
| PageNumber |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| TotalCount |
integer |
The total number of entries that meet the conditions. |
3 |
| Instances |
array<object> |
The list of personal development environment instances. |
|
|
array<object> |
The information about a personal development environment instance. |
||
| InstanceId |
string |
The ID of the personal development environment instance. |
699573 |
| InstanceName |
string |
The name of the personal development environment instance. |
notebook_dev |
| Status |
string |
The instance status. Valid values: Creating, Starting, Running, Stopping, Stopped, Updating, Deleting, DELETED, Failed, Arrearage, Saving, SaveFailed, and Saved. |
Running |
| ResourceGroupId |
integer |
The internal numeric ID of the resource group. |
9876543210 |
| ResourceGroupName |
string |
The name of the resource group. |
serverless_group |
| Cu |
integer |
The number of compute units (CUs) used by the instance. |
10 |
| ProjectId |
integer |
The DataWorks workspace ID. |
10000 |
| ProjectName |
string |
The name of the DataWorks workspace. |
example_project |
| ImageId |
string |
The ID of the image used by the instance. |
System_serveride_notebook_20240822 |
| ImageName |
string |
The name of the image. |
serveride_notebook |
| ImageUrl |
string |
The URL of the image. |
registry.cn-hangzhou.aliyuncs.com/example/serveride:latest |
| OwnerId |
string |
The account ID of the user who owns the instance. |
20933221576142**** |
| FailReason |
string |
The reason why the instance entered the failed state. |
ImagePullBackOff |
| CreateTime |
integer |
The time when the instance was created. The value is a UNIX timestamp in milliseconds. |
1756000000000 |
| UpdateTime |
integer |
The time when the instance was last updated. The value is a UNIX timestamp in milliseconds. |
1756003600000 |
| UserVpc |
object |
The virtual private cloud (VPC) configuration used by the instance. |
|
| SecurityGroupId |
string |
The security group ID. |
sg-bp1**** |
| VSwitchId |
string |
The vSwitch ID. |
vsw-bp1**** |
| VpcId |
string |
The VPC ID. |
vpc-bp1**** |
| ForwardInfos |
array<object> |
The list of port forwarding configurations. |
|
|
object |
The port forwarding configuration. |
||
| AccessType |
array |
The list of access types. |
|
|
string |
The access type. Valid values:
|
intranet |
|
| ContainerName |
string |
The name of the destination container. |
dsw-notebook |
| EipAllocationId |
string |
The instance ID of the elastic IP address (EIP). |
eip-bp1**** |
| Enable |
boolean |
Specifies whether to enable the port forwarding configuration. |
|
| ExternalPort |
string |
The mapped public port. |
1024 |
| ForwardPort |
string |
The destination port in the instance container. |
22 |
| Name |
string |
The name of the port forwarding configuration. |
ssh |
| NatGatewayId |
string |
The NAT gateway ID. |
ngw-bp1**** |
| SSHPublicKey |
string |
The public key used for SSH access. |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ**** |
| Datasets |
array<object> |
The list of datasets mounted to the instance. |
|
|
object |
The dataset mount configuration. |
||
| Identifier |
string |
The dataset identifier. |
d-vsqjvs****rp5l206u |
| Version |
integer |
The dataset version number. |
1 |
| MountPath |
string |
The mount path of the dataset in the instance. |
/mnt/data |
| ReadOnly |
boolean |
Specifies whether to mount the dataset in read-only mode. |
|
| ExtOptions |
string |
The custom mount attributes of the dataset. The content is passed as mount options. |
{"fs.oss.download.thread.concurrency":"10"} |
| Uri |
string |
The URI of the storage service directory used for direct mounting. |
oss://example-bucket/data/ |
| CredentialConfig |
object |
The credential injection configuration of the instance. After this feature is enabled, you can use the default Resource Access Management (RAM) role chain or specify a custom RAM role. |
|
| Enable |
boolean |
Specifies whether to enable credential injection. |
|
| AliyunEnvRoleKey |
string |
The key of the environment variable role. |
0 |
| Configs |
array<object> |
The list of credential configurations. |
|
|
array<object> |
A single credential configuration. |
||
| Key |
string |
The identifier key of the credential configuration. |
0 |
| Type |
string |
The credential configuration type. Valid values:
|
RoleChain |
| Roles |
array<object> |
The list of roles in the credential configuration. |
|
|
array<object> |
The role assumption configuration. |
||
| AssumeRoleFor |
string |
The Alibaba Cloud account ID of the principal to which the assumed role belongs. |
123456789012**** |
| Policy |
string |
The policy used to further restrict the permissions of the role. |
{} |
| RoleArn |
string |
The Alibaba Cloud Resource Name (ARN) of the RAM role. |
acs:ram::123456789012****:role/DataWorksRole |
| RoleType |
string |
The role assumption type. Valid values:
|
service |
| UserInfo |
object |
The information about the proxied user. |
|
| AccessKeyId |
string |
The temporary AccessKey ID used for credential injection. |
STS.N*********7 |
| Id |
string |
The account ID of the proxied user. |
20933221576142**** |
| SecurityToken |
string |
The temporary security token used for credential injection. |
DFE32G******* |
| Type |
string |
The user type. Valid values:
|
sub |
| MaxResults |
integer |
The maximum number of entries returned in the current response. |
20 |
| NextToken |
string |
The pagination token for the next page. An empty value indicates that no more results are available. |
CAESG**** |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"PagingInfo": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 3,
"Instances": [
{
"InstanceId": "699573",
"InstanceName": "notebook_dev",
"Status": "Running",
"ResourceGroupId": 9876543210,
"ResourceGroupName": "serverless_group",
"Cu": 10,
"ProjectId": 10000,
"ProjectName": "example_project",
"ImageId": "System_serveride_notebook_20240822",
"ImageName": "serveride_notebook",
"ImageUrl": "registry.cn-hangzhou.aliyuncs.com/example/serveride:latest",
"OwnerId": "20933221576142****",
"FailReason": "ImagePullBackOff",
"CreateTime": 1756000000000,
"UpdateTime": 1756003600000,
"UserVpc": {
"SecurityGroupId": "sg-bp1****",
"VSwitchId": "vsw-bp1****",
"VpcId": "vpc-bp1****",
"ForwardInfos": [
{
"AccessType": [
"intranet"
],
"ContainerName": "dsw-notebook",
"EipAllocationId": "eip-bp1****",
"Enable": false,
"ExternalPort": "1024",
"ForwardPort": "22",
"Name": "ssh",
"NatGatewayId": "ngw-bp1****",
"SSHPublicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ****"
}
]
},
"Datasets": [
{
"Identifier": "d-vsqjvs****rp5l206u",
"Version": 1,
"MountPath": "/mnt/data",
"ReadOnly": false,
"ExtOptions": "{\"fs.oss.download.thread.concurrency\":\"10\"}",
"Uri": "oss://example-bucket/data/"
}
],
"CredentialConfig": {
"Enable": false,
"AliyunEnvRoleKey": "0",
"Configs": [
{
"Key": "0",
"Type": "RoleChain",
"Roles": [
{
"AssumeRoleFor": "123456789012****",
"Policy": "{}",
"RoleArn": "acs:ram::123456789012****:role/DataWorksRole",
"RoleType": "service",
"UserInfo": {
"AccessKeyId": "STS.N*********7",
"Id": "20933221576142****",
"SecurityToken": "DFE32G*******",
"Type": "sub"
}
}
]
}
]
}
}
]
},
"MaxResults": 20,
"NextToken": "CAESG****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.