Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String ACCESS_KEY_ID = ""; // 用户的Access Key ID
- String SECRET_ACCESS_KEY = ""; // 用户的Secret Access Key
- // 初始化一个BccClient
- BccClientConfiguration config = new BccClientConfiguration();
- config.setCredentials(new DefaultBceCredentials(ACCESS_KEY_ID, SECRET_ACCESS_KEY));
- BccClient client = new BccClient(config);
- ListImagesResponse listInstancesResponse = client.listImages();
- System.out.println(listInstancesResponse.getImages());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement