Get CDN Resource Basic Details

To view details of the particular CDN resource, use the following request:

GET /cdn_resources/:id.xml
GET /cdn_resources/:id.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/3.xml

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/3.json

XML Output Example

<created_at type="datetime">2012-05-14T10:19:37+00:00</created_at>
<id type="integer">3</id>
<updated_at type="datetime">2012-05-14T10:19:37+00:00</updated_at>
<user_id type="integer">1</user_id>
<last_24h_cost type="float">0.0</last_24h_cost>
<edge_groups type="array">
<created_at type="datetime">2012-04-18T11:58:05+00:00</created_at>
<id type="integer">158</id>
<updated_at type="datetime">2012-04-18T11:58:05+00:00</updated_at>
<secondary_hostnames type="array"/>
<ssl_on type="boolean">false</ssl_on>
<ssl nil="true"/>
<origins type="array">


cdn_hostname - the hostname which will serve static content

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.

edge_groups – the array of edge groups assigned to this resource, where:

created_at – the date when the edge group was created

label – the label of the particular edge group assigned

id – the edge group id

updated_at – the date when the edge group was updated

status – the resource status (can be Preparing, Active, Suspended)

secondary hostname – secondary CDN hostname

ssl_on - whether SSL is enabled for the resource or not

ssl - custom SNI SSL certificate if it is added to the resource

origins – the path from which the CDN requests the content

key – access key, if any

value – the path to the content