MCPcopy Index your code
hub / github.com/scality/cloudserver / _getLocationId

Function _getLocationId

lib/utapi/utilities.js:356–358  ·  view source on GitHub ↗

* internal: get the unique location ID from the location name * * @param {string} location - location name * @return {string} - location unique ID

(location)

Source from the content-addressed store, hash-verified

354 * @return {string} - location unique ID
355 */
356function _getLocationId(location) {
357 return _config.locationConstraints[location].objectId;
358}
359
360/**
361 * Call the Utapi Client 'getLocationMetric' method with the

Callers 2

getLocationMetricFunction · 0.85
pushLocationMetricFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected