UpdateImage
Updates an image.
Operation description
DataWorks Basic Edition or higher is required.
Ensure that the service-linked role AliyunServiceRoleForDataWorks is created before you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateImage |
update |
*All Resource
|
None | None |
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 task types supported by the image. |
|
|
string |
No |
The supported task type. Valid values:
Valid values:
|
Shell |
|
| BuildConfig |
object |
No |
The image build configuration. |
|
| BuildType |
string |
No |
The build type. Valid values:
|
PackageInstallation |
| PackageInstallationScripts |
array<object> |
No |
The list of pre-installation scripts. |
|
|
object |
No |
The pre-installation script. |
||
| Type |
string |
No |
The script type. Valid values:
|
Python3 |
| Content |
string |
No |
The script content. If the content specifies package names, separate them with commas. |
requests |
| ProviderImageId |
string |
No |
The ID of the image provided by the provider. This parameter is required when you reference an official DataWorks image. |
System_shell_20251201 |
| AcrInstanceId |
string |
No |
The ID of the Container Registry (ACR) instance. This parameter is required when you reference an ACR image. |
acr_instance_id |
| Namespace |
string |
No |
The image namespace. If you reference an official DataWorks image, set this parameter to DataWorks Default. |
namespace_name |
| RepositoryName |
string |
No |
The image repository name. If you reference an official DataWorks image, set this parameter to DataWorks Default. |
repo_name |
| ImageUri |
string |
No |
The image URI. This parameter is required when you reference an ACR image. |
registry-vpc.cn-beijing.cr.aliyuncs.com/namespace/image:0.1.0 |
| AcrAssociatedVpcId |
string |
No |
The ID of the VPC associated with the ACR instance. This parameter is required when you reference an ACR image. |
vpc-xxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| Success |
boolean |
Indicates whether the request is successful. |
true |
| Data |
boolean |
The API request result. |
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.