CreateServerIdeInstance
Creates a personal development environment instance.
Operation description
Creates a ServerIDE instance. You can specify the DataWorks workspace, resource group, image, and instance specifications. The operation returns the ID of the created instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. |
10000 |
| ResourceGroupId |
string |
Yes |
The identifier of the DataWorks resource group. You can use the numeric ID of the resource group or the full identifier in the Serverless_res_group_{tenantId}_{resgId} format. |
Serverless_res_group_123456789012345_9876543210**** |
| Cu |
integer |
No |
The number of compute units (CUs) used by the instance. |
10 |
| Owner |
string |
No |
The ID of the Alibaba Cloud account to which the instance belongs. If you do not specify this parameter, the current caller is used by default. |
20933221576142**** |
| ImageId |
string |
No |
The ID of the image. You can call the ListServerIdeImages operation to obtain the image ID. |
System_serveride_notebook_20240822 |
| ImageUrl |
string |
No |
The URL of the image. This parameter is required when you use a non-official DataWorks image. |
registry.cn-hangzhou.aliyuncs.com/example/serveride:latest |
| InstanceName |
string |
Yes |
The name of the personal development environment instance. |
notebook_dev |
| UserVpc |
object |
No |
The virtual private cloud (VPC) configuration of 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 port forwarding configurations. |
|
|
object |
No |
The port forwarding configuration. |
||
| AccessType |
array |
No |
The access types. |
|
|
string |
No |
The access type. Valid values: intranet (private network) and internet (public network). |
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 ID of the elastic IP address (EIP). |
eip-bp1**** |
| ExternalPort |
string |
No |
The mapped public port. |
1024 |
| Datasets |
array<object> |
No |
The 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. |
false |
| ExtOptions |
string |
No |
The custom mount properties 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 you enable this feature, 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. |
True |
| AliyunEnvRoleKey |
string |
No |
The key of the environment variable role. |
0 |
| Configs |
array<object> |
No |
The credential configurations. |
|
|
array<object> |
No |
The credential configuration. |
||
| Key |
string |
No |
The key that identifies the credential configuration. |
0 |
| Type |
string |
No |
The type of the credential configuration. Valid values: Role (single role assumption) and RoleChain (role chain assumption). |
RoleChain |
| Roles |
array<object> |
No |
The roles in the credential configuration. |
|
|
array<object> |
No |
The role assumption configuration. |
||
| AssumeRoleFor |
string |
No |
The ID of the Alibaba Cloud account of the principal on whose behalf the role is assumed. |
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 (assumed by a service) and user (assumed by a user). |
service |
| UserInfo |
object |
No |
The information about the proxied user. |
|
| Id |
string |
No |
The ID of the proxied user account. |
20933221576142**** |
| Type |
string |
No |
The user type. Valid values: customer (Alibaba Cloud account), sub (RAM user), and AssumedRoleUser (RAM role). |
sub |
| UserCommand |
object |
No |
The user command configuration that is executed when the instance starts. |
|
| OnStart |
object |
No |
The command configuration that is executed after the instance starts. |
|
| Content |
string |
No |
The content of the command that is executed after the instance starts. The content can be up to 1,024 characters in length. |
echo "serveride ready" |
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.