Membagikan gambar kustom dengan akun Alibaba Cloud lainnya di wilayah yang sama untuk dengan cepat menerapkan konfigurasi lingkungan yang sama bagi beberapa server aplikasi sederhana dalam satu pengatur waktu. Hal ini meningkatkan efisiensi penerapan.
Deskripsi operasi
-
Before you share a custom image, make sure that all sensitive data and files are removed from the image.
-
The IDs of the Alibaba Cloud accounts with which you want to share the image is obtained. Move the pointer over the profile in the upper-right corner of the Simple Application Server console. In the card that appears, if Main Account is displayed, the showed account ID is the Alibaba Cloud account ID.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:AddCustomImageShareAccount |
none |
*CustomImage
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah server aplikasi sederhana. Anda dapat memanggil operasi ListRegions untuk mengkueri daftar wilayah terbaru. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token hanya dapat berisi karakter ASCII dan tidak boleh melebihi 64 karakter. Untuk informasi selengkapnya, lihat Cara memastikan idempotensi. |
123e4567-e89b-12d3-a456-426655440000 |
| ImageId |
string |
Yes |
ID gambar kustom. |
m-saacssasc**** |
| Account |
array |
Yes |
ID akun Alibaba Cloud yang ingin Anda bagikan gambar kustomnya. |
|
|
integer |
No |
The ID of the Alibaba Cloud account with which you want to share the custom image. Catatan
You can share a custom image with a maximum of 10 Alibaba Cloud accounts at a time. |
125111425233**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The schema of response. |
||
| RequestId |
string |
The request ID. |
30637AD6-D977-4833-A54C-CC89483E**** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "30637AD6-D977-4833-A54C-CC89483E****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.