Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of creating an ECS instance or replacing an instance system disk using a shared custom image

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of using shared custom image to create ECS instance or replace instance system disk, which can be used for reference by friends who need it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

ModifyImageSharePermission

Manage image share permissions. You can share your custom image with other Ali Cloud users, who can use the shared custom image to create an ECS instance (RunInstances) or change the instance's system disk (ReplaceSystemDisk).

Description

When calling this interface, you need to be aware of:

You can only share your own custom images with other Aliyun users.

Each custom image can be shared to a maximum of 10 Aliyun accounts at a time. Therefore, a maximum of 10 Aliyun accounts can be passed for parameter AddAccount.n or RemoveAccount.n at a time, and this parameter will be ignored by systems with more than 10 accounts.

Each custom image can be shared to up to 50 Aliyun accounts. You can submit a ticket and apply for sharing with more users.

After creating an ECS instance (RunInstances) with a shared image, once the owner of the custom image removes the image sharing relationship, or deletes the custom image (DeleteImage), the instance will not be able to initialize the ReInitDisk.

Request parameter

Return parameters

All are common return parameters. See common parameters

Example

Request example

Https://ecs.aliyuncs.com/?Action=ModifyImageSharePermission&RegionId=cn-hangzhou&ImageId=m-281234567&AddAccount.1=23412345234&

Return the example

XML format

C8B26B44-0189-443E-9816-D951F59623A9

JSON format

{"RequestId": "C8B26B44-0189-443E-9816-D951F59623A9"}

Error code

The following are the error codes specific to this API. For more error codes, please visit the API error Center.

Thank you for reading this article carefully. I hope the editor will share the method and content of using shared custom images to create ECS instances or replace instance system disks. At the same time, I also hope that you can support us, pay attention to the industry information channels, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report