Child pages
  • Search CDN Resource
Skip to end of metadata
Go to start of metadata

To search for a specific CDN resource, use the following request:

GET /cdn_resources.xml?q=search_param
GET /cdn_resources.json?q=search_param

The request will search the CDN hostname, origin (both the hostname and an IP address, including redundant origins). For Live Stream CDNs, the request searches the pattern inside Publishing Location fields (main and failover) and Aflexi ID.

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.xml?q=111.111.111.1


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.json?q=111.111.111.1

The example request will search all the CDN resources where the 111.111.111.1 IP is used.

XML output example:

<?xml version="1.0" encoding="UTF-8"?>
<cdn_resources type="array">
  <cdn_resource>
    <cdn_hostname>oldtestnewnewpull.qwe</cdn_hostname>
    <cname>438335686.r.worldcdn-beta.net</cname>
    <created_at type="datetime">2013-07-29T13:58:55+03:00</created_at>
    <id type="integer">10375</id>
    <resource_type>HTTP_PULL</resource_type>
    <updated_at type="datetime">2013-08-20T17:18:21+03:00</updated_at>
    <user_id type="integer">20</user_id>
    <last_24h_cost type="float">0.0</last_24h_cost>
    <cname>438335686.r.worldcdn-beta.net</cname>
    <cdn_reference type="integer">438335686</cdn_reference>
    <origins type="array">
      <origin>111.111.11.111</origin>
    </origins>
  </cdn_resource>
</cdn_resources>


Where:

cdn_hostname - the hostname which will serve static content

cname - CNAME record

created_at - the date when the resource was created

id – the resource ID in the database

resource_type  – HTTP PULL or PUSH

updated_at – the date when the resource was updated

user_id – the ID of the user, who owns the resource

last_24h_cost – the amount of money owed for the resource for the last 24 hours.

cdn_reference - the identifier in database

origins – the path from which the CDN requests the content

 

 

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