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 querying the status information of one or more disks

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

Share

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

How to query the status information of one or more disks? 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!

DescribeDisksFullStatus

Description

All status information of the disk includes disk life cycle (Status), disk health status (HealthStatus) and disk event type (EventType).

Because the release time of disk-related events, the planned execution time of events, and the actual execution time of events are the same, if you specify a period of time [EventTime.Start, EventTime.End], you can query all historical events that have occurred during that time. Currently, you can query up to the historical events of the most recent week.

Request parameter

Return parameters

Data type DiskFullStatusType

Data type DiskEventType

Example

Request example

Https://ecs.aliyuncs.com/?Action=DescribeDisksFullStatus&RegionId=cn-hangzhou&

Normal return example

XML format

E-event1 7 Stalled 2018-05-08T02:43:10Z d-disk1 i-instance1 128 Impaired 129 Available e-event2 1 Degraded 2018- 05-06T02:43:10Z 2018-05-06T02:48:52Z d-disk2 i-instance2 64 Warning 0 Ok 1 10 1A8B4B27-8B2D-XXXX-XXXX-0F64DBE4C211 2

JSON format

{"DiskFullStatusSet": {"DiskFullStatusType": [{"DiskEventSet": {"DiskEventType": [{"EventId": "e-event1" "EventType": {"Code": "7", "Name": "Stalled"} "EventTime": "2018-05-08T02:43:10Z"}}, "DiskId": "d-disk1", "InstanceId": "i-instance1", "HealthStatus": {"Code": 128 "Name": "Impaired"}, "Status": {"Code": 129, "Name": "Available"}} {"DiskEventSet": {"DiskEventType": [{"EventId": "e-event2", "EventType": {"Code": "1" "Name": "Degraded"}, "EventTime": "2018-05-06T02:43:10Z" "EventEndTime": "2018-05-06T02:48:52Z"}]}, "DiskId": "d-disk2", "InstanceId": "i-instance2", "HealthStatus": {"Code": 0 "Name": "Ok"}, "Status": {"Code": 129, "Name": "Available"}]}, "PageNumber": 1, "PageSize": 10 "RequestId": "1A8B4B27-8B2D-XXXX-XXXX-0F64DBE4C211", "TotalCount": 2}

Exception return example

XML format

C38E0D94-C18B-44F3-8C05-6E35BE334086 ecs.aliyuncs.com MissingParameter The input parameter that is mandatory for processing this request is not supplied.

JSON format

{"RequestId": "1A8B4B27-8B2D-XXXX-XXXX-0F64DBE4C211", "HostId": "ecs.aliyuncs.com"Code": "MissingParameter"Message": "The input parameter that is mandatory for processing this request is not supplied."}

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 idea of how to query the status information of one or more disks? 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.

Share To

Servers

Wechat

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

12
Report