查询本地磁盘

最近更新时间:2019-05-13 14:56:49

DescribeLocalVolumes(描述本地盘信息)

描述指定区域的本地盘列表,当指定实例名时,可以获取该实例下的磁盘信息,当不指定实例名时,获得所有的磁盘信息

Request Parameters(请求参数)

InstanceName

  • 实例名字
  • 类型: String
  • 是否可缺省: 是

Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String

LocalVolumeCount

  • 返回的本地盘数目

LocalVolumeSet

Examples(例子)

在cn-beijing-6这个region,描述用户全部本地磁盘

Sample Request(请求)
http://kec.cn-beijing-6.api.ksyun.com/?Action=DescribeLocalVolumes&Version=2016-03-04
&AUTHPARAMS
Sample Response(返回)
{
    "RequestId": "8221fbe8-43ec-4c48-9b51-ab6ff17f4020001",
    "Marker": 0,
    "LocalVolumeCount": 32,
    "LocalVolumeSet": [
        {
            "LocalVolumeId": "3190b895-66c9-456f-ab22-4cd92ac98cc6-a",
            "LocalVolumeName": "ksc-3190b895-66c9-456f-ab22-4cd92ac98cc6-vda",
            "LocalVolumeState": "attached",
            "InstanceId": "3190b895-66c9-456f-ab22-4cd92ac98cc6",
            "InstanceName": "pang",
            "InstanceState": "active",
            "LocalVolumeType": "SSD",
            "LocalVolumeCategory": "system",
            "LocalVolumeSize": 20,
            "CreationDate": "2019-03-26T18:27:21Z"
        },
        {
            "LocalVolumeId": "3190b895-66c9-456f-ab22-4cd92ac98cc6-c",
            "LocalVolumeName": "ksc-3190b895-66c9-456f-ab22-4cd92ac98cc6-vdc",
            "LocalVolumeState": "attached",
            "InstanceId": "3190b895-66c9-456f-ab22-4cd92ac98cc6",
            "InstanceName": "pang",
            "InstanceState": "active",
            "LocalVolumeType": "SSD",
            "LocalVolumeCategory": "data",
            "LocalVolumeSize": 40,
            "CreationDate": "2019-03-26T18:27:21Z"
        },
...
   ]
}

金山云,开启您的云计算之旅

注册有礼