Listing Parallel File Systems

If you have any questions during development, post them on the Issues page of GitHub. For details about parameters and usage of each API, see the API Reference

You can use ObsClient.listBuckets to list existing parallel file systems.

String endPoint = "https://your-endpoint";
String ak = "*** Provide your Access Key ***";
String sk = "*** Provide your Secret Key ***";

// Create an instance of ObsClient.
ObsClient obsClient = new ObsClient(ak, sk, endPoint);

// List parallel file systems.
ListBucketsRequest request = new ListBucketsRequest();
request.setBucketType(BucketTypeEnum.PFS);
List<ObsBucket> buckets = obsClient.listBuckets(request);
for(ObsBucket bucket : buckets){
    System.out.println("BucketName:" + bucket.getBucketName());
    System.out.println("CreationDate:" + bucket.getCreationDate());
    System.out.println("Location:" + bucket.getLocation());
}
;
  • This example lists the parallel file systems of a user.
  • Set ListBucketsRequest.setBucketType to BucketTypeEnum.PFS to list the parallel file systems of the current user.