In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about exporting custom images to OSS Buckets in the same region as the custom image. Xiao Bian thinks it is quite practical, so share it for everyone to make a reference. Let's follow the editor and have a look.
ExportImage
Export your custom image to an OSS Bucket in the same region as the custom image.
described
Export of custom images created using market mirrored system disk snapshots is not supported.
Support exporting custom images that include snapshot information of data disks in the image. The number of data disks cannot exceed 4, and the maximum capacity of a single data disk cannot exceed 500 GB.
You need to submit a ticket to contact Alibaba Cloud to enable the export mirror function for you.
Cloud Virtual Machine ECS official service account needs to be authorized to write to OSS through RAM:
Create a role: AliyunECSImageExportDefaultRole (any other role name is invalid), and set the following role policies for the role:
{ "Statement": [ { "Action": "sts:AssumeRole", "Effect": "Allow", "Principal": { "Service": [ "ecs.aliyuncs.com" ] } } ], "Version": "1" }
Add the default system permission policy under the role AliyunECSImageExportDefaultRole: AliyunECSImageExportRolePolicy, which is the default policy for ECS to provide export images in Cloud Virtual Machine. Users can also create custom policies, and permissions need to include:
{ "Version": "1", "Statement": [ { "Action": [ "oss:GetObject", "oss:PutObject", "oss:DeleteObject", "oss:GetBucketLocation", "oss:AbortMultipartUpload", "oss:ListMultipartUploads", "oss:ListParts" ], "Resource": "*", "Effect": "Allow" } ] }
request parameters
return parameter
example
request example
https://ecs.aliyuncs.com/? Action=ExportImage&RegionId=cn-hangzhou&ImageId=m-231234567&OssBucket=testexportImage&
example of returned result is as
XML format
C8B26B44-0189-443E-9816-D951F59623A9 tsk-231234567 cn-hangzhou
JSON format
{ "RequestId": "C8B26B44-0189-443E-9816-D951F59623A9", "RegionId": "cn-hangzhou", "ExportTaskId": "tsk-231234567"}
error code
The following error codes are specific to this interface. For more error codes, visit the API Error Center.
Thank you for reading! About how to export a custom image to the OSS Bucket in the same region as the custom image, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it so that more people can see it!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.