public class CfsClient extends BaseBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX| Constructor and Description |
|---|
CfsClient(BceClientConfiguration configuration)
Constructs a new client to invoke service methods on demo.
|
CfsClient(String ak,
String sk)
Constructs a new client to invoke service methods on demo.
|
CfsClient(String ak,
String sk,
BceRegion region)
Constructs a new client to invoke service methods on demo with region.
|
| Modifier and Type | Method and Description |
|---|---|
CreateFSResponse |
createFS(CreateFSRequest body)
创建文件系统
|
CreateMountTargetResponse |
createMountTarget(String fsId,
CreateMountTargetRequest body)
* 给创建一个文件系统的挂载点,返回domain。 * 付费方式为后付费。
|
void |
deleteMountTarget(String fsId,
String mountId)
释放指定的FileSystem的MountTarget
|
DescribeFsResponse |
describeFs(DescribeFsRequest body,
String userId,
String fsId,
String marker,
Integer maxKeys)
查询用户账户下的所有FileSystem信息。 支持按fsId、userId,匹配规则支持部分包含。 返回结果是多重查询条件的交集 结果支持marker分页,分页大小默认为1000,可通过maxKeys参数指定
|
DescribeMountTargetResponse |
describeMountTarget(String fsId,
DescribeMountTargetRequest body,
String mountId,
String marker,
Integer maxKeys)
* 查询指定文件系统下的所有MountTarget信息。 * 返回结果是多重查询条件的交集 * 结果支持marker分页,分页大小默认为1000,可通过maxKeys参数指定
|
void |
dropFs(String fsId,
DropFsRequest body)
释放指定的FileSystem,被释放的FileSystem超过回收时间后会被永远删除,无法找回
|
GetFsQuotaResponse |
getFsQuota()
获取文件系统quota
|
void |
updateFs(String fsId,
UpdateFsRequest body)
更新一个filesystem的配置信息。
|
createRequestcomputeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdownpublic CfsClient(String ak, String sk, BceRegion region)
public CfsClient(String ak, String sk)
public CfsClient(BceClientConfiguration configuration)
public CreateFSResponse createFS(CreateFSRequest body)
body - public CreateMountTargetResponse createMountTarget(String fsId, CreateMountTargetRequest body)
fsId - 待创建MountTarget的FileSystem的IDbody - public void deleteMountTarget(String fsId, String mountId)
fsId - 待释放的target的FileSystem的IDmountId - 待释放的target的IDpublic DescribeFsResponse describeFs(DescribeFsRequest body, String userId, String fsId, String marker, Integer maxKeys)
userId - 要查询文件系统所属的用户IDfsId - 要查询的FileSystem IDmarker - 批量获取列表的查询的起始位置,是一个由系统生成的字符串maxKeys - 每页包含的最大数量,最大数量不超过1000。缺省值为1000body - public DescribeMountTargetResponse describeMountTarget(String fsId, DescribeMountTargetRequest body, String mountId, String marker, Integer maxKeys)
fsId - mountId - 要查询的MountTarget的IDmarker - 批量获取列表的查询的起始位置,是一个由系统生成的字符串maxKeys - 每页包含的最大数量,最大数量不超过1000。缺省值为1000body - public void dropFs(String fsId, DropFsRequest body)
fsId - 待释放的FileSystem的IDbody - public GetFsQuotaResponse getFsQuota()
public void updateFs(String fsId, UpdateFsRequest body)
fsId - 待更新的FileSystem的IDbody - Copyright © 2023. All rights reserved.