Package org.jclouds.cloudstack.features
Interface GlobalZoneApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Zone
createZone(String name, NetworkType networkType, String externalDns1, String internalDns1, CreateZoneOptions... options)
Create a new Zonevoid
deleteZone(String id)
Delete a zone with a specific IDZone
updateZone(String id, UpdateZoneOptions... options)
Update a zone
-
-
-
Method Detail
-
createZone
@Named("createZone") @GET @Consumes("application/json") Zone createZone(@QueryParam("name") String name, @QueryParam("networktype") NetworkType networkType, @QueryParam("dns1") String externalDns1, @QueryParam("internaldns1") String internalDns1, CreateZoneOptions... options)
Create a new Zone- Parameters:
name
- the name of the ZonenetworkType
- network type of the zone, can be Basic or Advanceddns1
- the first DNS for the ZoneinternalDns1
- the first internal DNS for the Zoneoptions
- optional arguments- Returns:
- zone instance or null
-
updateZone
@Named("updateZone") @GET @Consumes("application/json") Zone updateZone(@QueryParam("id") String id, UpdateZoneOptions... options)
Update a zone- Parameters:
id
- the ID of the Zoneoptions
- optional arguments- Returns:
-
deleteZone
@Named("deleteZone") @GET @Consumes("application/json") void deleteZone(@QueryParam("id") String id)
Delete a zone with a specific ID- Parameters:
zoneId
- the ID of the Zone
-
-