Location
URI: http://soap.zeus.com/zxtm/1.0/Location/
The Location interface allows management of traffic manager locations. Using this interface, you can create, delete and rename Locations, and manage their configuration.
Methods
addLocation( locations, info ) throws ObjectAlreadyExists, ObjectDoesNotExist, InvalidObjectName, InvalidInput, DeploymentError, LicenseError, InvalidOperation
Adds locations. Configuration for the new locations will be based on the specified locations
void addLocation(
String[] locations
Location.TypeInfo[] info
)deleteLocation( locations ) throws ObjectDoesNotExist, ObjectInUse, DeploymentError, LicenseError
Delete the named Location.
void deleteLocation(
String[] locations
)disable( location ) throws InvalidInput, ObjectDoesNotExist, LicenseError
Disable support for configuration locations, setting all configuration values to those for the specified location.
void disable(
String location
)enable() throws LicenseError, InvalidOperation
Enable support for configuration locations.
void enable()getCoordinates( locations ) throws ObjectDoesNotExist, LicenseError, InvalidOperation
Get the coordinates for the named locations.
Location.Coordinates[] getCoordinates(
String[] locations
)getLocations()
Get the names of all the configured locations.
String[] getLocations()getNote( locations ) throws ObjectDoesNotExist, LicenseError, InvalidOperation
Get the note for each of the named locations
String[] getNote(
String[] locations
)getTrafficManagerLocation( traffic_managers ) throws ObjectDoesNotExist, LicenseError
Gets the location that the named traffic managers are in.
String[] getTrafficManagerLocation(
String[] traffic_managers
)getType( locations ) throws ObjectDoesNotExist, LicenseError, InvalidOperation
Gets a location's type, either config or glb. GLB locations contain no traffic managers, and are only used for global load balancing.
String[] getType(
String[] locations
)renameLocation( locations, new_names ) throws ObjectDoesNotExist, ObjectAlreadyExists, InvalidObjectName, DeploymentError, LicenseError
Rename the named Locations.
void renameLocation(
String[] locations
String[] new_names
)setCoordinates( locations, coordinates ) throws ObjectDoesNotExist, DeploymentError, LicenseError, InvalidOperation
Set the coordinates for the named locations. Coordinates are only needed for global load balancing.
void setCoordinates(
String[] locations
Location.Coordinates[] coordinates
)setNote( locations, values ) throws ObjectDoesNotExist, DeploymentError, LicenseError, InvalidOperation
Set the note for each of the named locations
void setNote(
String[] locations
String[] values
)setTrafficManagerLocation( traffic_managers, locations ) throws ObjectDoesNotExist, LicenseError, DeploymentError, InvalidOperation
Sets the location that the named traffic managers are in.
void setTrafficManagerLocation(
String[] traffic_managers
String[] locations
)setType( locations, type_info ) throws ObjectInUse, ObjectDoesNotExist, LicenseError, InvalidInput, InvalidOperation
Sets a location's type, either config or glb. GLB locations contain no traffic managers, and are only used for global load balancing.
void setType(
String[] locations
Location.TypeInfo[] type_info
)Structures
Location.Coordinates
This structure contains the co-ordinates for a location.
struct Location.Coordinates {
# The longitude of the location.
Double longitude;
# The latitude of the location.
Double latitude;
}Location.TypeInfo
This structure contains information required when adding a location.
struct Location.TypeInfo {
# Location type, either config or glb. GLB locations don't contain any
# traffic managers and are used for global load balancing.
String type;
# If the location isn't of type GLB, this is the location that the
# configuration will be be based on initially
String based_on;
}