PublishImage
Publishes an image.
Operation description
You must purchase DataWorks Basic Edition or higher to use this operation.
Before calling this operation, create the service-linked role
AliyunServiceRoleForDataWorks.
Pre-publish checks
Call RunImageTest to test the target image. The test requires a general-purpose resource group ID (
ResourceGroupId), which you can obtain by calling ListResourceGroups.Call ListImageTestResults by using the same image ID. After you confirm that the
PublishStageof the test isUNPUBLISHED(the test has passed and the image is pending publication), call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:PublishImage |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The ID of the image. |
Custom_image_xxxx_xxxx |
| ProcessId |
string |
No |
The image publication execution ID, which is used as an idempotency token. |
582d4896-d224-413b-b883-239eeebe0bc5 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| Success |
boolean |
Indicates whether the request is successful. |
true |
| Data |
object |
The API request result. |
{"ProcessId": "582d4896-d224-413b-b883-239eeebe0bc5", "Success": true} |
| ProcessId |
string |
The image publication execution ID. |
582d4896-d224-413b-b883-239eeebe0bc5 |
| Success |
boolean |
Indicates whether the trigger was successful. |
true |
| RequestId |
string |
The ID of the request, which is used to locate logs and troubleshoot issues. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Examples
Success response
JSON format
{
"Success": true,
"Data": {
"ProcessId": "582d4896-d224-413b-b883-239eeebe0bc5",
"Success": 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.