Mendapatkan detail gambar berdasarkan ID-nya.
Deskripsi operasi
-
Diperlukan langganan DataWorks Basic Edition atau edisi yang lebih tinggi.
-
Pastikan Anda telah membuat peran terkait layanan AliyunServiceRoleForDataWorks sebelum memanggil operasi ini.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
ID gambar. |
Custom_image_xxxx_xxxx |
| ImageVersion |
string |
No |
Versi gambar. Jika Anda tidak menentukan parameter ini, versi terbaru akan dikembalikan. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| Image |
object |
Detail gambar. |
|
| Id |
string |
ID gambar. |
Custom_image_xxxx_xxxx |
| Name |
string |
Nama gambar. |
dataworks_image |
| Version |
string |
Versi gambar. |
1 |
| Description |
string |
Deskripsi gambar. |
Test image created by xxx |
| Creator |
string |
ID pembuat. |
123 |
| Modifier |
string |
ID pengubah. |
123 |
| CreatedTime |
integer |
Waktu pembuatan, direpresentasikan sebagai timestamp 64-bit. |
1727055811000 |
| LastModifiedTime |
integer |
Waktu modifikasi terakhir, direpresentasikan sebagai timestamp 64-bit. |
1727055811000 |
| Official |
boolean |
Menunjukkan apakah gambar adalah gambar resmi. |
true |
| Accessibility |
string |
Visibilitas gambar:
|
Public |
| Status |
string |
Status gambar:
|
Available |
| PublishStage |
string |
Tahap publikasi:
|
Published |
| Supported |
object |
Modul dan jenis tugas yang didukung. |
|
| Module |
string |
Scheduler |
|
| TaskTypes |
array |
||
|
string |
Shell |
||
| IsDefault |
boolean |
Menunjukkan apakah gambar adalah gambar default. |
false |
| EnableSyncMaxCompute |
boolean |
Menunjukkan apakah sinkronisasi ke MaxCompute diaktifkan. |
false |
| ProviderType |
string |
Jenis penyedia gambar:
|
ACR |
| ProviderImageId |
string |
ID gambar yang ditetapkan oleh penyedia. |
acr_image_id |
| ImageUri |
string |
URI gambar. |
registry.cn-hangzhou.aliyuncs.com/xxx/xxx:tag |
| Namespace |
string |
Namespace. |
namespace |
| Size |
string |
Ukuran gambar. |
1GB |
| AcrInstanceId |
string |
ID instance ACR. |
cri-xxx |
| ImageTag |
string |
Tag gambar. |
v1.0.0 |
| RepositoryName |
string |
Nama repositori. |
repo_name |
| ImageVpcUri |
string |
URI VPC gambar. |
registry-vpc.cn-hangzhou.aliyuncs.com/xxx/xxx:tag |
| AcrEndpoint |
string |
Endpoint ACR |
registry.cn-hangzhou.aliyuncs.com |
| AcrAssociatedVpcId |
string |
ID VPC yang terkait dengan instance ACR. |
vpc-xxx |
| BuildConfig |
object |
Konfigurasi pembangunan gambar. |
|
| BuildType |
string |
PackageInstallation |
|
| PackageInstallationScripts |
array<object> |
||
|
object |
|||
| Type |
string |
Python3 |
|
| Content |
string |
requests |
|
| RequestId |
string |
ID permintaan, yang digunakan untuk menemukan log dan memecahkan masalah. |
6A6CBE87-9F91-1323-B680-E7A7065XXXXX |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"Image": {
"Id": "Custom_image_xxxx_xxxx",
"Name": "dataworks_image",
"Version": "1",
"Description": "Test image created by xxx",
"Creator": "123",
"Modifier": "123",
"CreatedTime": 1727055811000,
"LastModifiedTime": 1727055811000,
"Official": true,
"Accessibility": "Public",
"Status": "Available",
"PublishStage": "Published",
"Supported": {
"Module": "Scheduler",
"TaskTypes": [
"Shell"
]
},
"IsDefault": false,
"EnableSyncMaxCompute": false,
"ProviderType": "ACR",
"ProviderImageId": "acr_image_id",
"ImageUri": "registry.cn-hangzhou.aliyuncs.com/xxx/xxx:tag",
"Namespace": "namespace",
"Size": "1GB",
"AcrInstanceId": "cri-xxx",
"ImageTag": "v1.0.0",
"RepositoryName": "repo_name",
"ImageVpcUri": "registry-vpc.cn-hangzhou.aliyuncs.com/xxx/xxx:tag",
"AcrEndpoint": "registry.cn-hangzhou.aliyuncs.com",
"AcrAssociatedVpcId": "vpc-xxx",
"BuildConfig": {
"BuildType": "PackageInstallation",
"PackageInstallationScripts": [
{
"Type": "Python3",
"Content": "requests"
}
]
}
},
"RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.