zone
Last Updated:2020-07-20
Query the Availability Zone List
You can query the availability zone list information in current region by using the following codes:
public static void listZone(BccClient bccClient) {
ListZonesResponse listZonesResponse = bccClient.listZones();
for (ZoneModel zoneModel : listZonesResponse.getZones()) {
System.out.println(zoneModel.getZoneName());
}
}