GetServerIdeInstance
Queries the details of a specified personal development environment instance.
Operation description
Queries the basic information, running status, image, network, datasets, and credential configurations of a specified personal development environment (ServerIDE) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetServerIdeInstance |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the personal development environment instance. You can call the ListServerIdeInstances operation to obtain the ID. |
699573 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| Instance |
object |
The details of the 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 ID of the DataWorks workspace. |
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 to which the instance belongs. |
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 ID of the security group. |
sg-bp1**** |
| VSwitchId |
string |
The ID of the vSwitch. |
vsw-bp1**** |
| VpcId |
string |
The ID of the VPC. |
vpc-bp1**** |
| ForwardInfos |
array<object> |
The port forwarding configurations. |
|
|
object |
The port forwarding configuration. |
||
| AccessType |
array |
The access types. |
|
|
string |
The access type. Valid values: intranet and internet. The value intranet indicates the internal network, and internet indicates the Internet. |
intranet |
|
| ContainerName |
string |
The name of the destination container. |
dsw-notebook |
| EipAllocationId |
string |
The 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 ID of the NAT gateway. |
ngw-bp1**** |
| SSHPublicKey |
string |
The public key used for SSH access. |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ**** |
| Datasets |
array<object> |
The datasets mounted to the instance. |
|
|
object |
The dataset mount configuration. |
||
| Identifier |
string |
The identifier of the dataset. |
d-vsqjvs****rp5l206u |
| Version |
integer |
The version number of the dataset. |
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 properties 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 credential configurations. |
|
|
array<object> |
A credential configuration. |
||
| Key |
string |
The identifier key of the credential configuration. |
0 |
| Type |
string |
The type of the credential configuration. Valid values: Role and RoleChain. The value Role indicates single role assumption, and RoleChain indicates role chain assumption. |
RoleChain |
| Roles |
array<object> |
The roles in the credential configuration. |
|
|
array<object> |
The role assumption configuration. |
||
| AssumeRoleFor |
string |
The ID of the Alibaba Cloud account of the principal for which the role is assumed. |
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 and user. The value service indicates that the role is assumed by a service, and user indicates that the role is assumed by a user. |
service |
| UserInfo |
object |
The information about the proxied user. |
|
| AccessKeyId |
string |
The temporary access key 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: customer, sub, and AssumedRoleUser. The value customer indicates an Alibaba Cloud account, sub indicates a RAM user, and AssumedRoleUser indicates a RAM role. |
sub |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"Instance": {
"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"
}
}
]
}
]
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.