ASN¶
/api/1.2/asns¶
GET /api/1.2/asns
Authentication Required: Yes
Role(s) Required: None
Request Query Parameters
Name Required Description cachegroupno Filter ASNs by cache group ID Response Properties
Parameter Type Description lastUpdatedstring The Time / Date this server entry was last updated idstring Local unique identifier for the ASN asnstring Autonomous System Numbers per APNIC for identifying a service provider. cachegroupstring Related cachegroup name cachegroupIdstring Related cachegroup id Response Example
{ "response": [ { "lastUpdated": "2012-09-17 21:41:22", "id": "27", "asn": "7015", "cachegroup": "us-ma-woburn", "cachegroupId": "27", }, { "lastUpdated": "2012-09-17 21:41:22", "id": "28", "asn": "7016", "cachegroup": "us-pa-pittsburgh", "cachegroupId": "13" } ] }
GET /api/1.2/asns/:id
Authentication Required: Yes
Role(s) Required: None
Request Route Parameters
Name Required Description idyes ASN id. Response Properties
Parameter Type Description lastUpdatedstring The Time / Date this server entry was last updated idstring Local unique identifier for the ASN asnstring Autonomous System Numbers per APNIC for identifying a service provider. cachegroupstring Related cachegroup name cachegroupIdstring Related cachegroup id Response Example
{ "response": [ { "lastUpdated": "2012-09-17 21:41:22", "id": "28", "asn": "7016", "cachegroup": "us-pa-pittsburgh", "cachegroupId": "13" } ] }
PUT /api/1.2/asns/{:id}
Allows user to edit an ASN.
Authentication Required: Yes
Role(s) Required: admin or oper
Request Route Parameters
Name Type Description idint ASN id. Request Properties
Parameter Type Description asnstring ASN cachegroupIdstring The cachegroup the ASN belongs to Request Example
{ "asn": "99", "cachegroupId": "177" }Response Properties
Parameter Type Description responsehash The details of the update, if success. >namestring CDN name. >idint CDN id. >dnssecEnabledstring Whether dnssec is enabled. alertsarray A collection of alert messages. >levelstring Success, info, warning or error. >textstring Alert message. Response Example
{ "response":{ "lastUpdated": "2012-09-17 21:41:22", "id": "28", "asn": "99", "cachegroup": "us-pa-pittsburgh", "cachegroupId": "177" }, "alerts":[ { "level": "success", "text": "cdn was updated." } ] }