Mengambil detail satu atau beberapa cache gambar.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eci:DescribeImageCaches |
get |
ImageCache
ImageCache
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| RegionId |
string |
Yes |
ID wilayah. |
cn-hangzhou |
| ImageCacheId |
string |
No |
ID cache gambar. |
imc-bp195erqe9o2pb09**** |
| ImageCacheName |
string |
No |
Nama cache gambar. |
testcache |
| SnapshotId |
string |
No |
ID snapshot yang sesuai dengan cache gambar. |
s-2zec5oj8e1yhxijt**** |
| Image |
string |
No |
Gambar kontainer. |
nginx |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat cache gambar berada. |
rg-2df3isufhi38**** |
| Tag |
array<object> |
No |
Tag yang dilampirkan pada cache gambar. |
|
|
object |
No |
Tag yang dilampirkan pada cache gambar. Anda dapat menentukan hingga 20 tag. |
||
| Key |
string |
No |
Kunci tag. |
imc |
| Value |
string |
No |
Nilai tag. |
test |
| MatchImage |
array |
No |
Gambar kontainer yang digunakan untuk menanyakan cache gambar yang sesuai. Anda dapat menentukan hingga 100 gambar. |
registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl |
|
string |
No |
Gambar kontainer yang digunakan untuk menanyakan cache gambar yang sesuai. Anda dapat menentukan hingga 100 gambar. |
registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl |
|
| Limit |
integer |
No |
Jumlah maksimum entri yang dikembalikan. |
20 |
| NextToken |
string |
No |
Token yang digunakan untuk kueri berikutnya. Anda dapat memperoleh token dari parameter `NextToken` dalam tanggapan panggilan API sebelumnya. |
AAAAAdDWBF2**** |
| ImageFullMatch |
boolean |
No |
Menentukan apakah akan melakukan pencocokan eksak untuk gambar kontainer. |
true |
| ImageMatchCountRequest |
integer |
No |
Jumlah cache gambar yang secara eksak cocok dengan gambar kontainer. |
3 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
39FC2E43-3DD7-4CEF-9EF4-E4AD6E635301 |
| ImageCaches |
array<object> |
Daftar cache gambar. |
|
|
array<object> |
Daftar cache gambar. |
||
| Images |
array |
Daftar gambar dalam cache gambar. |
|
|
string |
Daftar gambar dalam cache gambar. |
registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl |
|
| CreationTime |
string |
Waktu saat cache gambar dibuat. |
2021-02-09T02:24:07Z |
| Status |
string |
Status cache gambar. Nilai yang valid:
Cache gambar hanya dapat digunakan saat berada dalam status Ready. |
Ready |
| Progress |
string |
Progres pembuatan snapshot untuk cache gambar. Catatan
Jika fitur cache gambar instan diaktifkan, snapshot lokal temporary dibuat sebelum snapshot standar dibuat. Parameter ini menunjukkan progres pembuatan snapshot standar. |
100% |
| ExpireDateTime |
string |
Waktu kedaluwarsa. |
2019-11-10T09:00:48Z |
| LastMatchedTime |
string |
Waktu terakhir cache gambar dicocokkan. |
2021-08-18T03:48:10Z |
| ContainerGroupId |
string |
ID kelompok kontainer. |
eci-bp18oq3m15prd9jb**** |
| Tags |
array<object> |
Daftar tag cache gambar. |
|
|
object |
Daftar tag cache gambar. |
||
| Key |
string |
Kunci tag. |
imc |
| Value |
string |
Nilai tag. |
test |
| Events |
array<object> |
Event yang dihasilkan saat gambar ditarik untuk cache gambar. |
|
|
object |
Event yang dihasilkan saat gambar ditarik untuk cache gambar. |
||
| Type |
string |
Tipe event. |
Normal |
| LastTimestamp |
string |
Waktu saat event berakhir. |
2021-02-09T02:24:48Z |
| Message |
string |
Pesan event. |
Successfully check image cache resource. |
| Name |
string |
Nama event. |
imagetest.1661f31f851a**** |
| Count |
integer |
Jumlah event. |
1 |
| FirstTimestamp |
string |
Waktu saat event dimulai. |
2021-02-09T02:24:48Z |
| Reason |
string |
Alasan event. |
Started |
| ImageCacheId |
string |
ID cache gambar. |
imc-bp195erqe9o2pb09**** |
| RegionId |
string |
ID wilayah. |
cn-beijing |
| SnapshotId |
string |
ID snapshot yang sesuai dengan cache gambar. |
s-2zec5oj8e1yhxijt**** |
| FlashSnapshotId |
string |
ID snapshot lokal. Jika fitur cache gambar instan diaktifkan, snapshot lokal temporary dibuat. |
s-bp12w3v37sit96t6**** |
| ResourceGroupId |
string |
ID kelompok sumber daya. |
rg-2df3isufhi38**** |
| ImageCacheSize |
integer |
Ukuran cache gambar. Satuan: GiB. |
20 |
| ImageCacheName |
string |
Nama cache gambar. |
imagetest |
| EliminationStrategy |
string |
Kebijakan untuk menyimpan cache gambar. Jika Anda tidak mengisi parameter ini, cache gambar akan selalu disimpan. Anda dapat mengatur parameter ini ke LRU. Nilai ini menunjukkan bahwa cache gambar dapat dihapus secara otomatis. Saat jumlah cache gambar mencapai batas kuota, sistem secara otomatis menghapus cache gambar yang paling jarang digunakan yang memiliki `EliminationStrategy` bernilai `LRU`. |
LRU |
| NextToken |
string |
Token paginasi yang dikembalikan. |
AAAAAdDWBF2**** |
| TotalCount |
integer |
Total jumlah entri yang dikembalikan. |
15 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "39FC2E43-3DD7-4CEF-9EF4-E4AD6E635301",
"ImageCaches": [
{
"Images": [
"registry-vpc.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.15.10-perl"
],
"CreationTime": "2021-02-09T02:24:07Z",
"Status": "Ready",
"Progress": "100%",
"ExpireDateTime": "2019-11-10T09:00:48Z",
"LastMatchedTime": "2021-08-18T03:48:10Z",
"ContainerGroupId": "eci-bp18oq3m15prd9jb****",
"Tags": [
{
"Key": "imc",
"Value": "test"
}
],
"Events": [
{
"Type": "Normal",
"LastTimestamp": "2021-02-09T02:24:48Z",
"Message": "Successfully check image cache resource.",
"Name": "imagetest.1661f31f851a****",
"Count": 1,
"FirstTimestamp": "2021-02-09T02:24:48Z",
"Reason": "Started"
}
],
"ImageCacheId": "imc-bp195erqe9o2pb09****",
"RegionId": "cn-beijing",
"SnapshotId": "s-2zec5oj8e1yhxijt****",
"FlashSnapshotId": "s-bp12w3v37sit96t6****",
"ResourceGroupId": "rg-2df3isufhi38****",
"ImageCacheSize": 20,
"ImageCacheName": "imagetest",
"EliminationStrategy": "LRU"
}
],
"NextToken": "AAAAAdDWBF2****",
"TotalCount": 15
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Account.Arrearage | Your account has an outstanding payment. | Your account has an outstanding payment. |
| 400 | DryRunOperation | Request validation has been passed with DryRun flag set. | Request validation has been passed with DryRun flag set. |
| 400 | ServiceNotEnabled | %s | The service on which this request depends has not been activated. Please activate and try again. |
| 403 | Forbidden.SubUser | The specified action is not available for you. | |
| 403 | Forbidden.UserBussinessStatus | This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again. | |
| 403 | Forbidden.UserNotRealNameAuthentication | This operation is not allowed, because you have not passed the real-name verification. | |
| 403 | NoPermission | The RAM role does not belong to ECS. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.