UpdateServerIdeInstance
Updates the configuration of a specified personal development environment instance.
Operation description
Updates the configuration of a specified personal development environment (ServerIDE) instance. You can modify the compute unit (CU), image, instance name, virtual private cloud (VPC), dataset, and credential configurations. If the CU and image parameters are not provided, the existing configurations of the instance are retained.
Try it now
Test
RAM authorization
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 |
| ProjectId |
integer |
No |
The ID of the DataWorks workspace. |
10000 |
| Cu |
integer |
No |
The number of CUs used by the instance. |
10 |
| ImageId |
string |
No |
The ID of the image. You can call the ListServerIdeImages operation to obtain the ID. |
System_serveride_notebook_20240822 |
| ImageUrl |
string |
No |
The URL of the image. This parameter is required when you use a non-DataWorks official image. |
registry.cn-hangzhou.aliyuncs.com/example/serveride:latest |
| InstanceName |
string |
No |
The name of the personal development environment instance. |
notebook_dev |
| UserVpc |
object |
No |
The VPC configuration used by the instance. |
|
| SecurityGroupId |
string |
No |
The ID of the security group. |
sg-bp1**** |
| VSwitchId |
string |
No |
The ID of the vSwitch. |
vsw-bp1**** |
| VpcId |
string |
No |
The ID of the VPC. |
vpc-bp1**** |
| ForwardInfos |
array<object> |
No |
The list of port forwarding configurations. |
|
|
object |
No |
The port forwarding configuration. |
||
| AccessType |
array |
No |
The list of access types. |
|
|
string |
No |
The access type. Valid values: intranet for the internal network and internet for the Internet. |
intranet |
|
| ContainerName |
string |
No |
The name of the destination container. |
dsw-notebook |
| Enable |
boolean |
No |
Specifies whether to enable the port forwarding configuration. |
true |
| ForwardPort |
string |
No |
The destination port in the instance container. |
22 |
| Name |
string |
No |
The name of the port forwarding configuration. |
ssh |
| NatGatewayId |
string |
No |
The ID of the NAT gateway. |
ngw-bp1**** |
| SSHPublicKey |
string |
No |
The public key used for SSH access. |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQ**** |
| EipAllocationId |
string |
No |
The instance ID of the elastic IP address (EIP). |
eip-bp1**** |
| ExternalPort |
string |
No |
The mapped public port. |
1024 |
| Datasets |
array<object> |
No |
The list of datasets mounted to the instance. |
|
|
object |
No |
The dataset mount configuration. |
||
| Identifier |
string |
No |
The identifier of the dataset. |
d-vsqjvs****rp5l206u |
| Version |
integer |
No |
The version number of the dataset. |
1 |
| MountPath |
string |
No |
The mount path of the dataset in the instance. |
/mnt/data |
| ReadOnly |
boolean |
No |
Specifies whether to mount the dataset in read-only mode. |
|
| ExtOptions |
string |
No |
The custom mount attributes of the dataset. The content is passed as mount options. |
{"fs.oss.download.thread.concurrency":"10"} |
| Uri |
string |
No |
The URI of the storage service directory used for direct mounting. |
oss://example-bucket/data/ |
| CredentialConfig |
object |
No |
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 |
No |
Specifies whether to enable credential injection. |
|
| AliyunEnvRoleKey |
string |
No |
The key of the environment variable role. |
0 |
| Configs |
array<object> |
No |
The list of credential configurations. |
|
|
array<object> |
No |
A single credential configuration. |
||
| Key |
string |
No |
The identifier key of the credential configuration. |
0 |
| Type |
string |
No |
The type of the credential configuration. Valid values: Role for single role assumption and RoleChain for role chain assumption. |
RoleChain |
| Roles |
array<object> |
No |
The list of roles in the credential configuration. |
|
|
array<object> |
No |
The role assumption configuration. |
||
| AssumeRoleFor |
string |
No |
The Alibaba Cloud account ID of the principal to which the assumed role belongs. |
123456789012**** |
| Policy |
string |
No |
The policy used to further restrict the permissions of the role. |
{} |
| RoleArn |
string |
No |
The Alibaba Cloud Resource Name (ARN) of the RAM role. |
acs:ram::123456789012****:role/DataWorksRole |
| RoleType |
string |
No |
The role assumption type. Valid values: service for service assumption and user for user assumption. |
service |
| UserInfo |
object |
No |
The information about the proxied user. |
|
| Id |
string |
No |
The account ID of the proxied user. |
20933221576142**** |
| Type |
string |
No |
The user type. Valid values: customer for the Alibaba Cloud account, sub for the RAM user, and AssumedRoleUser for the RAM role. |
sub |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
E7D55162-4489-1619-AAF5-3F97D5FCA948 |
| InstanceId |
string |
The ID of the personal development environment instance. |
699573 |
Examples
Success response
JSON format
{
"RequestId": "E7D55162-4489-1619-AAF5-3F97D5FCA948",
"InstanceId": "699573"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.