UpdateImage
Updates an image.
Operation description
You must purchase DataWorks Basic Edition or a higher edition to use this operation.
Before calling this operation, make sure that the service-linked role AliyunServiceRoleForDataWorks has been created.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The image ID. |
Custom_image_xxxx_xxxx |
| Name |
string |
No |
The image name. |
task_image_001 |
| Description |
string |
No |
The image description. |
create by xxxx |
| Accessibility |
string |
No |
The image visibility. Valid values:
Valid values:
|
Public |
| Supported |
object |
No |
The image sub-purpose. |
|
| Module |
string |
No |
The image sub-module. Valid values:
Valid values:
|
Scheduler |
| TaskTypes |
array |
No |
The list of node types supported by the image. |
|
|
string |
No |
The supported node type. Valid values:
Valid values:
|
Shell |
|
| BuildConfig |
object |
No |
The image build configuration. |
|
| BuildType |
string |
No |
The build type. |
PackageInstallation |
| PackageInstallationScripts |
array<object> |
No |
The list of pre-installation scripts. |
|
|
object |
No |
The pre-installation script. |
||
| Type |
string |
No |
The script type. |
Python3 |
| Content |
string |
No |
The script content. If the content consists of package names, separate them with commas (,). |
requests |
| ProviderImageId |
string |
No |
The provider image ID. This parameter is required when referencing a DataWorks official image. |
System_shell_20251201 |
| AcrInstanceId |
string |
No |
The Container Registry (ACR) instance ID. This parameter is required when referencing an ACR image. |
acr_instance_id |
| Namespace |
string |
No |
The image namespace. Set this parameter to DataWorks Default when referencing a DataWorks official image. |
namespace_name |
| RepositoryName |
string |
No |
The image repository name. Set this parameter to DataWorks Default when referencing a DataWorks official image. |
repo_name |
| ImageUri |
string |
No |
The image URI. This parameter is required when referencing an ACR image. |
registry-vpc.cn-beijing.cr.aliyuncs.com/namespace/image:0.1.0 |
| AcrAssociatedVpcId |
string |
No |
The VPC ID associated with the ACR instance. This parameter is required when referencing an ACR image. |
vpc-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
boolean |
The result of the API request. |
true |
| RequestId |
string |
The request ID, which is used to locate logs and troubleshoot issues. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Examples
Success response
JSON format
{
"Success": true,
"Data": true,
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.