In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
How to query a disk how all snapshots of a disk form a relational chain? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!
DescribeSnapshotLinks
Query disk snapshot chain. Snapshot chain is a relational chain composed of all snapshots of a disk, and one disk corresponds to a snapshot chain, so snapshot chain ID is disk ID.
Description
When calling this interface, you need to be aware of:
Request parameters such as RegionId, DiskIds, and InstanceId act as filter functions, and there are logic and relationships among the parameters.
If you do not specify any parameters, the filter does not work. When DiskIds and SnapshotLinkIds are both empty arrays, that is, [], the filter is also considered valid, but the return result is empty.
Request parameter
Return parameters
Example
Request example
Https://ecs.aliyuncs.com/?Action=DescribeSnapshotLinks&RegionId=cn-beijing&ZoneId=cn-beijing-btc-a01&PageNumber=1&
Return the example
XML format
D-25okbh3pj d-25okbh3pj data 20 cn-beijing-btc-a01 1 2097152 d-2ze0y1jwzpb1geqxkroq d-2ze0y1jwzpb1geqxkroq system 40 cn-beijing-btc-a01 1 2097152 1 2 9 ED5CF6DD-71CA-462C-9C94-A61A78A01479
JSON format
{"SnapshotLinks": {"SnapshotLink": [{"SourceDiskSize": 20, "TotalSize": 2097152, "SourceDiskType": "data", "RegionId": "cn-beijing-btc-a01", "SnapshotLinkId": "d-25okbh3pj", "SourceDiskId": "d-25okbh3pj", "TotalCount": 1}, {"SourceDiskSize": 40 "TotalSize": 2097152, "SourceDiskType": "data", "RegionId": "cn-beijing-btc-a01", "SnapshotLinkId": "d-2ze0y1jwzpb1geqxkroq", "SourceDiskId": "d-2ze0y1jwzpb1geqxkroq", "TotalCount": 1}}, "PageNumber": 1, "PageSize": 2, "RequestId": "ACD9BBB0-A9D1-46D7-9630-B7A69889E110" "TotalCount": 9}
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! After reading the above, do you have a general understanding of the method of querying a disk to form a relational chain of all snapshots of a disk? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.
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.