目录

1.10.1 Service操作API的签名和示例

优质
小牛编辑
127浏览
2023-12-01

List Buckets

函数签名
/**
* Returns a list of all fds buckets that the authenticated sender
* of the request owns.
*
* @return A list of all fds buckets owned by the authenticated sender
*         of the request
* @throws GalaxyFDSClientException
*/
public List<FDSBucket> listBuckets() throws GalaxyFDSClientException;
示例
List<FDSBucket> buckets = fdsClient.listBuckets();
if (buckets != null) {
  for (FDSBucket bucket : buckets) {
    System.out.println(bucket.getName());
  }
}