Config Files and Config File Metadata¶
/api/1.2/servers/:hostname/configfiles/ats¶
GET /api/1.2/servers/:hostname/configfiles/ats
Authentication Required: Yes
Role(s) Required: Operator
Request Query Parameters
Response Properties
Info Section Parameter Type Description profileIdint The ID of the profile assigned to the cache. profileNamestring The name of the profile assigned to the cache. toRevProxyUrlstring The configured reverse proxy cache for configfile requests. toURLstring The configured URL for Traffic Ops. serverIpv4string The configured IP address of the cache. serverNamestring The cache’s short form hostname. serverIdint The cache’s Traffic Ops ID. cdnIdint The ID of the cache’s assigned CDN. cdnNamestring The name of the cache’s assigned CDN. serverTcpPortint The configured port of the server’s used by ATS. fnameOnDiskstring The filename of the configuration file as stored on the cache. locationstring The directory location of the configuration file as stored on the cache. apiUristring The path to generate the configuration file from Traffic Ops. scopestring The scope of the configuration file. Response Example
{ "info": { "profileId": 278, "toRevProxyUrl": "https://to.example.com:81", "toUrl": "https://to.example.com/", "serverIpv4": "192.168.1.5", "serverTcpPort": 80, "serverName": "cache-ats-01", "cdnId": 1, "cdnName": "CDN_1", "serverId": 21, "profileName": "EDGE_CDN_1_EXAMPLE" }, "configFiles": [ { "fnameOnDisk": "remap.config", "location": "/opt/trafficserver/etc/trafficserver", "apiUri": "/api/1.2/profiles/EDGE_CDN_1_EXAMPLE/configfiles/ats/remap.config", "scope": "profiles" }, { "fnameOnDisk": "ssl_multicert.config", "location": "/opt/trafficserver/etc/trafficserver", "apiUri": "/api/1.2/cdns/CDN_1/configfiles/ats/ssl_multicert.config", "scope": "cdns" }, { "fnameOnDisk": "parent.config", "location": "/opt/trafficserver/etc/trafficserver", "apiUri": "/api/1.2/servers/cache-ats-01/configfiles/ats/parent.config" } ] }
/api/1.2/servers/:hostname/configfiles/ats/:configfile¶
GET /api/1.2/servers/:hostname/configfiles/ats/:configfile GET /api/1.2/servers/:host_id/configfiles/ats/:configfile
Authentication Required: Yes
Role(s) Required: Operator
Request Query Parameters
Response Properties
Returns the requested configuration file for download. If scope used is incorrect for the config file requested, returns a 404 with the correct scope.
Response Example
{ "alerts": [ { "level": "error", "text": "Error - incorrect file scope for route used. Please use the profiles route." } ] }
/api/1.2/profiles/:profile_name/configfiles/ats/:configfile¶
GET /api/1.2/profiles/:profile_name/configfiles/ats/:configfile GET /api/1.2/profiles/:profile_id/configfiles/ats/:configfile
Authentication Required: Yes
Role(s) Required: Operator
Request Query Parameters
Response Properties
Returns the requested configuration file for download. If scope used is incorrect for the config file requested, returns a 404 with the correct scope.
Response Example
{ "alerts": [ { "level": "error", "text": "Error - incorrect file scope for route used. Please use the cdns route." } ] }
/api/1.2/cdns/:cdn_name/configfiles/ats/:configfile¶
GET /api/1.2/cdns/:cdn_name/configfiles/ats/:configfile GET /api/1.2/cdns/:cdn_id/configfiles/ats/:configfile
Authentication Required: Yes
Role(s) Required: Operator
Request Query Parameters
Response Properties
Returns the requested configuration file for download. If scope used is incorrect for the config file requested, returns a 404 with the correct scope.
Response Example
{ "alerts": [ { "level": "error", "text": "Error - incorrect file scope for route used. Please use the servers route." } ] }