百度智能云

All Product Document

          Cloud Compute Service

          zone

          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());
              }
          }
          Previous
          Key Pair
          Next
          Log