您可以使用ListAccounts获取存储租户帐户的完整列表、并提供可选的寻呼支持。元素帐户允许访问卷。
此方法具有以下输入参数:
名称 | 说明 | 类型 | 默认值 | 必需 |
---|---|---|---|---|
includeStorageContainers | 默认情况下,响应中包含虚拟卷存储容器。要排除存储容器,请设置为 false。 | 布尔型 | true | 否 |
startAccountID | 要返回的起始帐户 ID。如果不存在具有此帐户 ID 的帐户,则按帐户 ID 顺序排列的下一个帐户将用作列表的第一个帐户。要逐页浏览该列表,请传递前一响应中最后一个帐户的帐户 ID + 1。 | 整型 | 无 | 否 |
limit | 要返回的帐户对象的最大数量。 | 整型 | 无 | 否 |
此方法的请求类似于以下示例:
{ "method": "ListAccounts", "params": { "startAccountID" : 0, "limit" : 1000 }, "id" : 1 }
此方法返回类似于以下示例的响应:
{ "result" : { "accounts" : [ { "accountID" : 25, "username" : "jimmyd", "status" : "active", "initiatorSecret" : "168[#5A757ru268)", "targetSecret" : "168[#5A757ru268)", "attributes" : {}, "volumes" : [6,7,20] }, { "accountID" : 26, "username" : "jamesw", "status" : "active", "initiatorSecret" : "initiatorsecret", "targetSecret" : "targetsecret", "attributes" : { "billingcode" : "1234R" }, "volumes" : [23,64] }, ] }, "id" : 1 }
9.6