List available Locations – Management API – MediaKind

List available Locations

get https://app.mk.io/api/v1/locations

Listing, Sorting and Filtering Locations

This endpoint returns the list of locations.

Sorting

The results from this endpoint can be ordered using the $orderby query parameter. Specify a list of field names, separated by commas where each one can optionally specify asc or desc.

Sorting is valid on the following fields: displayName, id, name

Filtering

The $filter query parameter allows for locations to be filtered on the basis of fields in the schema using OData query syntax. See this document for more details on the syntax used.

Filters are valid on the following fields: cloud/name, cloud/region/name, displayName, id, name

Examples:

?$top=10 - Returns only the first 10 locations from the list.

?$orderby=name desc - Sorts locations by name in descending order.

?$filter=name eq 'descriptive name' - Returns locations that match the provided name.

RBAC Capability Required: core.location.get

Authentication

Authorization Bearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Query parameters

Response

200 A list of locations

kind string Optional

The type of the resource.

value list of objects LocationSchema_v1 Required

A list of Locations

metadata object MetadataMinimalSchema Required

Metadata.

spec object LocationSpecSchema_v1 Required

Specification.

Errors

400 Bad Request

error object ErrorDetail Required

Pertinent information about the error

401 Unauthorized

error object ErrorDetail Required

Pertinent information about the error

403 Forbidden

error object ErrorDetail Required

Pertinent information about the error

404 Not Found

error object ErrorDetail Required

Pertinent information about the error

429 Too Many Requests

error object ErrorDetail Required

Pertinent information about the error

500 Internal Server Error

error object ErrorDetail Required

Pertinent information about the error