Child pages
  • Get List of Available Storage Locations
Skip to end of metadata
Go to start of metadata

To create a CDN PUSH resource, it is necessary to specify a storage location. To view the list of available storage locations, run the following request:

GET /cdn_resources/available_storage_server_locations.xml
GET /cdn_resources/available_storage_server_locations.json

 

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url "http://onapp.test/cdn_resources/available_storage_server_locations.xml?type=streaming&only_active=false"

 

Json Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url "http://onapp.test/cdn_resources/available_storage_server_locations.json?type=streaming&only_active=false"

Where

type - the optional parameter which describes the Storage Server's type - streaming or http;

only_active - the optional parameter which describes the Storage Server's status (only_active = true if only all active SSs or only_active = false if all the available SSs ).

On success HTTP 200 status is returned.

 

XML Response Example:

<?xml version="1.0" encoding="UTF-8"?>
<storage_server_locations type="array">
  <storage_server_location>
    <city>Kolin</city>
    <country>CZ</country>
    <id type="integer">816382921</id>
    <storage_server>
      <id type="integer">670906719</id>
      <status>ACTIVE</status>
      <http_push_on type="boolean">false</http_push_on>
      <vod_push_on type="boolean">true</vod_push_on>
    </storage_server>
  </storage_server_location>
</storage_server_locations>

Where:

city - the city where the storage server is located

country - the country where the storage server is located

id - the ID of the location

storage_server - the array of the storage server details

id - the ID of the storage server

status - the status of the storage server

http_push_on

vod_push_on

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels