Interface Metros
- All Known Implementing Classes:
MetrosImpl
public interface Metros
Client interface for querying Equinix Fabric metro locations. Metros represent
geographic data center regions where Fabric resources can be provisioned.
- Author:
- ianjones
-
Method Summary
Modifier and TypeMethodDescriptiongetByMetroCode(MetroCode metroCode) Retrieves a single metro by its metro code.getByMetroCode(String metroCode) Retrieves a single metro by its raw metro code string.getByMetroId(MetroId metroId) Retrieves a single metro by itsMetroId.list()Lists all available Equinix metro locations.list(MetroPresence presence) Lists metro locations filtered by the specified presence type.
-
Method Details
-
list
PaginatedList<Metro> list()Lists all available Equinix metro locations.- Returns:
- a paginated list of metros
-
list
Lists metro locations filtered by the specified presence type.- Parameters:
presence- the presence type to filter metros by (e.g., available for connections)- Returns:
- a paginated list of metros matching the presence filter
-
getByMetroCode
-
getByMetroCode
Retrieves a single metro by its raw metro code string. Use this for a metro not listed by theMetroCodeenum (e.g. one added after this SDK was built).- Parameters:
metroCode- the code identifying the metro location (e.g.,"SV")- Returns:
- the metro matching the given code
-
getByMetroId
-