类 CfsClient
- java.lang.Object
-
- com.baidubce.AbstractBceClient
-
- com.baidubce.common.BaseBceClient
-
- com.baidubce.services.cfs.v2.CfsClient
-
public class CfsClient extends BaseBceClient
Cfs
-
-
字段概要
-
从类继承的字段 com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
-
-
构造器概要
构造器 构造器 说明 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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CreateFSResponsecreateFS(CreateFSRequest body)创建文件系统CreateMountTargetResponsecreateMountTarget(String fsId, CreateMountTargetRequest body)* 给创建一个文件系统的挂载点,返回domain。 * 付费方式为后付费。voiddeleteMountTarget(String fsId, String mountId)释放指定的FileSystem的MountTargetDescribeFsResponsedescribeFs(DescribeFsRequest body, String userId, String fsId, String marker, Integer maxKeys)查询用户账户下的所有FileSystem信息。 支持按fsId、userId,匹配规则支持部分包含。 返回结果是多重查询条件的交集 结果支持marker分页,分页大小默认为1000,可通过maxKeys参数指定DescribeMountTargetResponsedescribeMountTarget(String fsId, DescribeMountTargetRequest body, String mountId, String marker, Integer maxKeys)* 查询指定文件系统下的所有MountTarget信息。 * 返回结果是多重查询条件的交集 * 结果支持marker分页,分页大小默认为1000,可通过maxKeys参数指定voiddropFs(String fsId, DropFsRequest body)释放指定的FileSystem,被释放的FileSystem超过回收时间后会被永远删除,无法找回GetFsQuotaResponsegetFsQuota()获取文件系统quotavoidupdateFs(String fsId, UpdateFsRequest body)更新一个filesystem的配置信息。-
从类继承的方法 com.baidubce.common.BaseBceClient
createRequest
-
从类继承的方法 com.baidubce.AbstractBceClient
computeBktVirEndpoint, computeServiceId, getBktVirEndpoint, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
-
-
-
-
构造器详细资料
-
CfsClient
public CfsClient(String ak, String sk, BceRegion region)
Constructs a new client to invoke service methods on demo with region.
-
CfsClient
public CfsClient(String ak, String sk)
Constructs a new client to invoke service methods on demo.
-
CfsClient
public CfsClient(BceClientConfiguration configuration)
Constructs a new client to invoke service methods on demo.
-
-
方法详细资料
-
createFS
public CreateFSResponse createFS(CreateFSRequest body)
创建文件系统- 参数:
body-- 返回:
- CreateFSResponse
-
createMountTarget
public CreateMountTargetResponse createMountTarget(String fsId, CreateMountTargetRequest body)
* 给创建一个文件系统的挂载点,返回domain。 * 付费方式为后付费。- 参数:
fsId- 待创建MountTarget的FileSystem的IDbody-- 返回:
- CreateMountTargetResponse
-
deleteMountTarget
public void deleteMountTarget(String fsId, String mountId)
释放指定的FileSystem的MountTarget- 参数:
fsId- 待释放的target的FileSystem的IDmountId- 待释放的target的ID
-
describeFs
public DescribeFsResponse describeFs(DescribeFsRequest body, String userId, String fsId, String marker, Integer maxKeys)
查询用户账户下的所有FileSystem信息。 支持按fsId、userId,匹配规则支持部分包含。 返回结果是多重查询条件的交集 结果支持marker分页,分页大小默认为1000,可通过maxKeys参数指定- 参数:
userId- 要查询文件系统所属的用户IDfsId- 要查询的FileSystem IDmarker- 批量获取列表的查询的起始位置,是一个由系统生成的字符串maxKeys- 每页包含的最大数量,最大数量不超过1000。缺省值为1000body-- 返回:
- DescribeFsResponse
-
describeMountTarget
public DescribeMountTargetResponse describeMountTarget(String fsId, DescribeMountTargetRequest body, String mountId, String marker, Integer maxKeys)
* 查询指定文件系统下的所有MountTarget信息。 * 返回结果是多重查询条件的交集 * 结果支持marker分页,分页大小默认为1000,可通过maxKeys参数指定- 参数:
fsId-mountId- 要查询的MountTarget的IDmarker- 批量获取列表的查询的起始位置,是一个由系统生成的字符串maxKeys- 每页包含的最大数量,最大数量不超过1000。缺省值为1000body-- 返回:
- DescribeMountTargetResponse
-
dropFs
public void dropFs(String fsId, DropFsRequest body)
释放指定的FileSystem,被释放的FileSystem超过回收时间后会被永远删除,无法找回- 参数:
fsId- 待释放的FileSystem的IDbody-
-
getFsQuota
public GetFsQuotaResponse getFsQuota()
获取文件系统quota- 返回:
- GetFsQuotaResponse
-
updateFs
public void updateFs(String fsId, UpdateFsRequest body)
更新一个filesystem的配置信息。- 参数:
fsId- 待更新的FileSystem的IDbody-
-
-