附录
更新时间:2023-08-24
类型信息
存储网关状态
| 名称 | 类型 | 描述 |
|---|---|---|
| CREATING | String | 正在创建 |
| CREATE_FAILED | String | 创建失败 |
| RUNNING | String | 正常运行(创建成功) |
| DELETED | String | 已删除 |
| EXPIRED | String | 已过期(付费) |
共享目标状态
| 名称 | 类型 | 描述 |
|---|---|---|
| CREATING | String | 正在创建 |
| CREATE_FAILED | String | 创建失败 |
| CONFIGURING | String | 正在配置中(正在拉起存储服务中) |
| RUNNING | String | 正常运行(创建成功) |
| DELETED | String | 已删除 |
权限状态
| 名称 | 类型 | 描述 |
|---|---|---|
| CREATING | String | 正在创建 |
| CREATE_FAILED | String | 创建失败 |
| CONFIGURING | String | 正在配置中 |
| RUNNING | String | 正常运行(生效中) |
| DELETED | String | 已删除 |
数据类型
TargetInfo
Plain Text
1"TargetInfo": {
2 "targetId": targetId,
3 "bucketName": bucketName,
4 "protocolType": protocolType,
5 "groupId": groupId,
6 }
7
| 名称 | 类型 | 描述 |
|---|---|---|
| targetId | String | 共享目标id |
| name | String | 共享目标名称 |
| protocolType | String | 协议类型 NFS SMB |
| bucket | String | 共享目标关联的BOS bucket |
authGroupInfo
Plain Text
1"groupInfo": {
2 "authGroupId": authGroupId,
3 "name": name,
4 "protocolType": protocolType,
5
6 "accounts": [
7 accountId,
8 ]
9 }
| 名称 | 类型 | 描述 |
|---|---|---|
| authGroupId | String | 权限组id |
| name | String | 权限组名称 |
| protocolType | String | 协议名称 NFS SMB |
| authList | List |
具体权限信息列表 |
authInfo
Plain Text
1"authInfo": {
2 "authId": authId,
3 "protocolType": protocolType,
4 "nfsFileShareConfig": {
5 "ip": ip,
6 "mode": mode,
7 "squash": squash,
8 "sync": sync,
9 },
10
11 "smbFileShareConfig": {
12 "userName": userName,
13 "password": password,
14 }
15 }
| 参数名称 | 类型 | 描述 |
|---|---|---|
| authId | String | 权限id |
| protocolType | String | 存储网关协议 |
| nfsFileShareConfig | nfsFileShareConfig | NFS协议配置 |
| smbFileShareConfig | smbFileShareConfig | SMB协议配置 |
nfsFileShareConfig
Plain Text
1"nfsFileShareConfig": {
2 “ip“: ip,
3 "mode": mode,
4 "squash": squash,
5 "sync":sync,
6},
| 参数名称 | 类型 | 描述 |
|---|---|---|
| ip | String | 访问nfs的ip信息,支持单个ip和ip段 |
| mode | String | 访问权限,ro:只读 & rw:读写 |
| squash | String | 指定root权限, no_root_squash:不限制 & root_squash:限制root用户 & all_squash:限制所有用户 |
| sync | String | 指定数据持久化写入方式: sync 同步 & async 异步 |
smbFileShareConfig
Plain Text
1 "smbFileShareConfig": {
2 "userName": userName,
3 "password": password,
4 }
| 参数名称 | 类型 | 描述 |
|---|---|---|
| userName | String | 访问smb的用户 |
| password | String | 访问smb用户的密码 |
