python 获取EMC存储Scaleio信息

python 的第三方包pyscaleio可以提供EMC存储的操作和信息获取

安装

pip install pyscaleio

简单使用

import pyscaleio

# create API client
client = pyscaleio.ScaleIOClient.from_args("gateway_address", "admin", "password")

# register it for using in models
pyscaleio.add_client(client)

# get all volumes in cluster
volumes = pyscaleio.Volume.all()

for v in volumes:
    print(v.name)

这种支持的功能有限

直接调用接口

EMC的Scaleio提供了网关服务,可以使用调用官方的Restful-api

Last updated