简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。
ListAccounts
您可以使用 ListAccounts 获取存储租户帐户的完整列表,并可选择分页支持。通过 Element 帐户可以访问卷。
Parameters
此方法具有以下输入参数:
| Name | Description | Type | 默认值 | Required |
|---|---|---|---|---|
包括 StorageContainers |
默认情况下,响应中包括虚拟卷存储容器。要排除存储容器,请设置为 false 。 |
boolean |
true |
否 |
startAccountID |
要返回的起始帐户 ID 。如果不存在具有此帐户 ID 的帐户,则按帐户 ID 顺序排列的下一个帐户将用作列表的开头。要逐页浏览此列表,请传递上一个响应中最后一个帐户的帐户 ID + 1 。 |
整型 |
无 |
否 |
limit |
要返回的帐户对象的最大数量。 |
整型 |
无 |
否 |
返回值
此方法具有以下返回值:
Name |
Description |
Type |
—帐户 |
帐户列表。 |
account 数组 |
请求示例
此方法的请求类似于以下示例:
{
"method": "ListAccounts",
"params": {
"startAccountID" : 0,
"limit" : 1000
},
"id" : 1
}
响应示例
此方法返回类似于以下示例的响应:
{
"result" : {
"accounts": [
{
"attributes": {},
"username": "jamesw",
"targetSecret": "168#5A757ru268)",
"volumes": [],
"enableChap": false,
"status": "active",
"accountID": 16,
"storageContainerID": "abcdef01-1234-5678-90ab-cdef01234567",
"initiatorSecret": "168#5A757ru268)"
},
{
"attributes": {},
"username": "jimmyd",
"targetSecret": "targetsecret",
"volumes": [],
"enableChap": true,
"status": "active",
"accountID": 5,
"storageContainerID": "abcdef01-1234-5678-90ab-cdef01234567",
"initiatorSecret": "initiatorsecret"
}
]
}
}
自版本以来的新增功能
9.6