添加镜像仓库服务器(AddImageStoreBackupStorage)
管理员可以使用AddImageStoreBackupStorage添加镜像仓库服务器。
例如:
AddImageStoreBackupStorage hostname="10.0.33.123" username=admin name=imagestore
url="/data/imagestore" password=password importImages=false
参数(Parameters)
名字 | 描述 | 可选的 | 可选的参数值 | 起始支持版本 |
---|---|---|---|---|
hostname | 服务器主机地址 | 1.6 | ||
username | 服务器SSH用户名 | 1.6 | ||
password | 服务器SSH用户密码 | 1.6 | ||
sshPort | 服务器SSH端口 | 是 | 1.6 | |
url | 镜像仓库本地数据存放地址 | 1.6 | ||
name | 镜像仓库名称 | 1.6 | ||
description | 镜像仓库详细描述 | 是 | 1.6 | |
type | 类型为ImageStoreBackupStorage | 是 | 1.6 | |
importImages | 是否导入镜像 | 是 | 1.9 | |
resourceUuid | 资源uuid | 是 | 1.6 | |
userTags | 用户标签,请参见 创建用户标签(CreateUserTag);资源类型是 ImageStoreBackupStorageVO | 是 | 1.6 | |
systemTags | 系统标签,请参见 创建系统标签(CreateSystemTag); 资源类型是 ImageStoreBackupStorageVO | 是 | 1.6 | |
timeout | 是 |