Interface GlobalZoneApi

  • All Superinterfaces:
    ZoneApi

    public interface GlobalZoneApi
    extends ZoneApi
    Provides synchronous access to CloudStack Account features available to Global Admin users.
    See Also:
    • 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 Zone
        networkType - network type of the zone, can be Basic or Advanced
        dns1 - the first DNS for the Zone
        internalDns1 - the first internal DNS for the Zone
        options - 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 Zone
        options - 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