Retrieves all edge CNAMEs associated with the HTTP Large platform.
A request to retrieve a list of edge CNAMEs is described below.
HTTP Method | Request URI |
---|---|
GET |
https://api.edgecast.com/v2/mcc/customers/AccountNumber/cnames/httplarge |
Define the following variable when submitting the above request.
VariableA variable represents a value that must be replaced. A variable consists of either a URL segment (e.g., "0001" in /0001/) or a query string value (e.g., "3" in mediaTypes=3). | Description |
---|---|
Required |
|
This endpointIdentifies a request's connection point to our REST API service. only takes advantage of common request headers.
Request body parameters are not required by this endpoint.
The response to the above request includes an HTTP status code, response headers, and a response body.
A status code indicates whether the request was successfully performed.
The response for this endpoint only includes standard HTTP response headers.
The response body for a successful request contains the following response parameters for each edge CNAME configuration returned by this endpoint:
Name | Data Type | Description |
---|---|---|
DirPath |
String |
Indicates the relative location on the origin server to which the edge CNAME is pointed. If this response parameter is set to blank, then the edge CNAME points to the root folder of the origin server. |
EnableCustomReports |
Integer |
Indicates whether hits and data transferred statistics are being tracked for this edge CNAME. Logged data can be viewed through the Custom Reports module. Valid values are:
|
Id |
Integer |
Indicates the system-defined ID for the edge CNAME. |
MediaTypeId |
Integer |
Indicates the platform on which the edge CNAME configuration resides. This response parameter will always report "3," which is the value assigned to the HTTP Large platform. |
Name |
String |
Indicates the name assigned to the edge CNAME. |
OriginId |
Integer |
Indicates the origin server associated with the edge CNAME. Valid return values are:
|
OriginString |
String |
Indicates the origin identifier, the account number, and the relative path associated with the edge CNAME. Format:
|
The response body for an unsuccessful request may contain an error parameter that provides additional information.
A sample JSON request is shown below.
GET https://api.edgecast.com/v2/mcc/customers/0001/cnames/httplarge HTTP/1.1
Authorization: TOK:12345678-1234-1234-1234-1234567890ab
Accept: application/json
Host:api.edgecast.com
A sample JSON response is shown below.
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/json; charset=utf-8
Date: Thu, 15 Apr 2021 12:00:00 GMT
Content-Length: 386
[{ "DirPath" : "", "EnableCustomReports" : 0, "Id" : 10101, "MediaTypeId" : 3, "Name" : "www.domain.com", "OriginId" : -1, "OriginString" : "\/000001" }, { "DirPath" : "\/2013\/images", "EnableCustomReports" : 0, "Id" : 55330, "MediaTypeId" : 3, "Name" : "images.domain.com", "OriginId" : 12345, "OriginString" : "\/800001\/myorigin\/2013\/images" } ]
A sample XML request is shown below.
GET https://api.edgecast.com/v2/mcc/customers/0001/cnames/httplarge HTTP/1.1
Authorization: TOK:12345678-1234-1234-1234-1234567890ab
Accept: application/xml
Host:api.edgecast.com
A sample XML response is shown below.
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: application/xml; charset=utf-8
Date: Thu, 15 Apr 2021 12:00:00 GMT
Content-Length: 694
<ArrayOfCustomerCname xmlns="http://www.whitecdn.com/schemas/apiservices/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <CustomerCname> <DirPath /> <EnableCustomReports>0</EnableCustomReports> <Id>10101</Id> <MediaTypeId>3</MediaTypeId> <Name>my.domain.com</Name> <OriginId>-1</OriginId> <OriginString>/000001</OriginString> </CustomerCname> <CustomerCname> <DirPath>/2013/images</DirPath> <EnableCustomReports>0</EnableCustomReports> <Id>55330</Id> <MediaTypeId>3</MediaTypeId> <Name>images.domain.com</Name> <OriginId>12345</OriginId> <OriginString>/800001/myorigin/2013/images</OriginString> </CustomerCname> </ArrayOfCustomerCname>