| |
| |
| <!DOCTYPE html> |
| <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> |
| <head> |
| <meta charset="utf-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| |
| <title>Delivery Service — Traffic Control master documentation </title> |
| |
| |
| |
| |
| <link rel="shortcut icon" href="../../../_static/favicon.ico"/> |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| <link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" /> |
| |
| |
| |
| <link rel="stylesheet" href="../../../_static/theme_overrides.css" type="text/css" /> |
| |
| |
| |
| <link rel="top" title="Traffic Control master documentation" href="../../../index.html"/> |
| <link rel="up" title="Traffic Ops" href="../../traffic_ops.html"/> |
| <link rel="next" title="Delivery Service Statistics" href="deliveryservice_stats.html"/> |
| <link rel="prev" title="Change Logs" href="changelog.html"/> |
| |
| |
| <script src="_static/js/modernizr.min.js"></script> |
| |
| </head> |
| |
| <body class="wy-body-for-nav" role="document"> |
| |
| <div class="wy-grid-for-nav"> |
| |
| |
| <nav data-toggle="wy-nav-shift" class="wy-nav-side"> |
| <div class="wy-side-nav-search"> |
| |
| |
| |
| <a href="/" class="icon icon-home"> Traffic Control |
| |
| |
| |
| |
| <img src="../../../_static/tc_logo_c_only.png" class="logo" /> |
| |
| </a> |
| |
| |
| <div role="search"> |
| <form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get"> |
| <input type="text" name="q" placeholder="Search docs" /> |
| <input type="hidden" name="check_keywords" value="yes" /> |
| <input type="hidden" name="area" value="default" /> |
| </form> |
| </div> |
| |
| |
| </div> |
| |
| <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> |
| |
| |
| |
| <ul> |
| <li class="toctree-l1"><a class="reference internal" href="../../../basics/index.html">CDN Basics</a><ul> |
| <li class="toctree-l2"><a class="reference internal" href="../../../basics/content_delivery_networks.html">Content Delivery Networks</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../basics/http_11.html">HTTP 1.1</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../basics/caching_proxies.html">Caching Proxies</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../basics/cache_revalidation.html">Cache Control Headers and Revalidation</a></li> |
| </ul> |
| </li> |
| </ul> |
| <ul> |
| <li class="toctree-l1"><a class="reference internal" href="../../../overview/index.html">Traffic Control Overview</a><ul> |
| <li class="toctree-l2"><a class="reference internal" href="../../../overview/introduction.html">Introduction</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../overview/traffic_ops.html">Traffic Ops</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../overview/traffic_portal.html">Traffic Portal</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../overview/traffic_router.html">Traffic Router</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../overview/traffic_monitor.html">Traffic Monitor</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../overview/traffic_stats.html">Traffic Stats</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../overview/traffic_server.html">Traffic Server</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../overview/traffic_vault.html">Traffic Vault</a></li> |
| </ul> |
| </li> |
| </ul> |
| <ul> |
| <li class="toctree-l1"><a class="reference internal" href="../../../admin/index.html">Administrator’s Guide</a><ul> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_ops_install.html">Installing Traffic Ops</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_ops_config.html">Configuring Traffic Ops</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_ops_using.html">Using Traffic Ops</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_ops_extensions.html">Managing Traffic Ops Extensions</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_portal.html">Traffic Portal Administration</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_monitor.html">Traffic Monitor Administration</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_router.html">Traffic Router Administration</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_stats.html">Traffic Stats Administration</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_server.html">Traffic Server Administration</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/traffic_vault.html">Traffic Vault Administration</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../admin/quick_howto/index.html">Quick How To Guides</a></li> |
| </ul> |
| </li> |
| </ul> |
| <ul class="current"> |
| <li class="toctree-l1 current"><a class="reference internal" href="../../index.html">Developer’s Guide</a><ul class="current"> |
| <li class="toctree-l2 current"><a class="reference internal" href="../../traffic_ops.html">Traffic Ops</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../traffic_portal.html">Traffic Portal</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../traffic_router.html">Traffic Router</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../traffic_monitor.html">Traffic Monitor</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../traffic_stats.html">Traffic Stats</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../traffic_server.html">Traffic Server</a></li> |
| </ul> |
| </li> |
| </ul> |
| <ul> |
| <li class="toctree-l1"><a class="reference internal" href="../../../faq/index.html">FAQ</a><ul> |
| <li class="toctree-l2"><a class="reference internal" href="../../../faq/general.html">General</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../faq/development.html">Development</a></li> |
| <li class="toctree-l2"><a class="reference internal" href="../../../faq/administration.html">Running a Traffic Control CDN</a></li> |
| </ul> |
| </li> |
| </ul> |
| <ul> |
| <li class="toctree-l1"><a class="reference internal" href="../../../glossary.html">Glossary</a></li> |
| </ul> |
| |
| |
| |
| </div> |
| |
| </nav> |
| |
| <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> |
| |
| |
| <nav class="wy-nav-top" role="navigation" aria-label="top navigation"> |
| <i data-toggle="wy-nav-top" class="fa fa-bars"></i> |
| <a href="../../../index.html">Traffic Control</a> |
| </nav> |
| |
| |
| |
| <div class="wy-nav-content"> |
| <div class="rst-content"> |
| <div role="navigation" aria-label="breadcrumbs navigation"> |
| <ul class="wy-breadcrumbs"> |
| <li><a href="../../../index.html">Traffic Control master</a> »</li> |
| |
| <li><a href="../../index.html">Developer’s Guide</a> »</li> |
| |
| <li><a href="../../traffic_ops.html">Traffic Ops</a> »</li> |
| |
| <li>Delivery Service</li> |
| <li class="wy-breadcrumbs-aside"> |
| |
| <a href="../../../_sources/development/traffic_ops_api/v12/deliveryservice.txt" rel="nofollow"> View page source</a> |
| |
| </li> |
| </ul> |
| <hr/> |
| </div> |
| |
| <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> |
| |
| <a href="deliveryservice_stats.html" class="btn btn-neutral float-right" title="Delivery Service Statistics">Next <span class="fa fa-arrow-circle-right"></span></a> |
| |
| |
| <a href="changelog.html" class="btn btn-neutral" title="Change Logs"><span class="fa fa-arrow-circle-left"></span> Previous</a> |
| |
| </div> |
| |
| <div role="main" class="document"> |
| |
| <div class="section" id="delivery-service"> |
| <span id="to-api-v12-ds"></span><h1>Delivery Service<a class="headerlink" href="#delivery-service" title="Permalink to this headline">¶</a></h1> |
| <div class="section" id="api-1-2-deliveryservices"> |
| <span id="to-api-v12-ds-route"></span><h2>/api/1.2/deliveryservices<a class="headerlink" href="#api-1-2-deliveryservices" title="Permalink to this headline">¶</a></h2> |
| <p><strong>GET /api/1.2/deliveryservices</strong></p> |
| <blockquote> |
| <div><p>Retrieves all delivery services. See also <a class="reference external" href="http://trafficcontrol.apache.org/docs/latest/admin/traffic_ops_using.html#delivery-service">Using Traffic Ops - Delivery Service</a>.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Request Query Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="22%" /> |
| <col width="13%" /> |
| <col width="65%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">cdn</span></code></td> |
| <td>no</td> |
| <td>Filter delivery services by CDN ID.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">type</span></code></td> |
| <td>no</td> |
| <td>Filter delivery services by Type ID.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="15%" /> |
| <col width="5%" /> |
| <col width="80%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">active</span></code></td> |
| <td>bool</td> |
| <td>true if active, false if inactive.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">cacheurl</span></code></td> |
| <td>string</td> |
| <td>Cache URL rule to apply to this delivery service.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">ccrDnsTtl</span></code></td> |
| <td>string</td> |
| <td>The TTL of the DNS response for A or AAAA queries requesting the IP address of the tr. host.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">cdnId</span></code></td> |
| <td>string</td> |
| <td>Id of the CDN to which the delivery service belongs to.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">cdnName</span></code></td> |
| <td>string</td> |
| <td>Name of the CDN to which the delivery service belongs to.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">checkPath</span></code></td> |
| <td>string</td> |
| <td>The path portion of the URL to check this deliveryservice for health.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">displayName</span></code></td> |
| <td>string</td> |
| <td>The display name of the delivery service.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">dnsBypassIp</span></code></td> |
| <td>string</td> |
| <td>The IPv4 IP to use for bypass on a DNS deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">dnsBypassIp6</span></code></td> |
| <td>string</td> |
| <td>The IPv6 IP to use for bypass on a DNS deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">dnsBypassTtl</span></code></td> |
| <td>string</td> |
| <td>The TTL of the DNS bypass response.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">dscp</span></code></td> |
| <td>string</td> |
| <td>The Differentiated Services Code Point (DSCP) with which to mark downstream (EDGE -> customer) traffic.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">edgeHeaderRewrite</span></code></td> |
| <td>string</td> |
| <td>The EDGE header rewrite actions to perform.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">geoLimitRedirectUrl</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">geoLimit</span></code></td> |
| <td>string</td> |
| <td><ul class="first simple"> |
| <li>0: None - no limitations</li> |
| <li>1: Only route on CZF file hit</li> |
| <li>2: Only route on CZF hit or when from USA</li> |
| </ul> |
| <p class="last">Note that this does not prevent access to content or makes content secure; it just prevents |
| routing to the content by Traffic Router.</p> |
| </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">geoLimitCountries</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">geoProvider</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">globalMaxMbps</span></code></td> |
| <td>string</td> |
| <td>The maximum global bandwidth allowed on this deliveryservice. If exceeded, the traffic routes to the |
| dnsByPassIp* for DNS deliveryservices and to the httpBypassFqdn for HTTP deliveryservices.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">globalMaxTps</span></code></td> |
| <td>string</td> |
| <td>The maximum global transactions per second allowed on this deliveryservice. When this is exceeded |
| traffic will be sent to the dnsByPassIp* for DNS deliveryservices and to the httpBypassFqdn for |
| HTTP deliveryservices</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">httpBypassFqdn</span></code></td> |
| <td>string</td> |
| <td>The HTTP destination to use for bypass on an HTTP deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">id</span></code></td> |
| <td>string</td> |
| <td>The deliveryservice id (database row number).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">infoUrl</span></code></td> |
| <td>string</td> |
| <td>Use this to add a URL that points to more information about that deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">initialDispersion</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">ipv6RoutingEnabled</span></code></td> |
| <td>bool</td> |
| <td>false: send IPv4 address of Traffic Router to client on HTTP type del.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">lastUpdated</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">logsEnabled</span></code></td> |
| <td>bool</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">longDesc</span></code></td> |
| <td>string</td> |
| <td>Description field 1.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">longDesc1</span></code></td> |
| <td>string</td> |
| <td>Description field 2.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">longDesc2</span></code></td> |
| <td>string</td> |
| <td>Description field 2.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>>type</span></code></td> |
| <td>string</td> |
| <td>The type of MatchList (one of :ref:to-api-v11-types use_in_table=’regex’).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>>setNumber</span></code></td> |
| <td>string</td> |
| <td>The set Number of the matchList.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>>pattern</span></code></td> |
| <td>string</td> |
| <td>The regexp for the matchList.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">maxDnsAnswers</span></code></td> |
| <td>string</td> |
| <td>The maximum number of IPs to put in a A/AAAA response for a DNS deliveryservice (0 means all |
| available).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">midHeaderRewrite</span></code></td> |
| <td>string</td> |
| <td>The MID header rewrite actions to perform.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">missLat</span></code></td> |
| <td>string</td> |
| <td>The latitude to use when the client cannot be found in the CZF or the Geo lookup.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">missLong</span></code></td> |
| <td>string</td> |
| <td>The longitude to use when the client cannot be found in the CZF or the Geo lookup.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">multiSiteOrigin</span></code></td> |
| <td>bool</td> |
| <td>Is the Multi Site Origin feature enabled for this delivery service (0=false, 1=true). See <a class="reference internal" href="../../../admin/traffic_ops_using.html#rl-multi-site-origin"><em>Multi Site Origin</em></a></td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">multiSiteOriginAlgor</span></code></td> |
| <td>bool</td> |
| <td>Is the Multi Site Origin feature enabled for this delivery service (0=false, 1=true). See <a class="reference internal" href="../../../admin/traffic_ops_using.html#rl-multi-site-origin"><em>Multi Site Origin</em></a></td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">orgServerFqdn</span></code></td> |
| <td>string</td> |
| <td>The origin server base URL (FQDN when used in this instance, includes the |
| protocol (<a class="reference external" href="http://">http://</a> or <a class="reference external" href="https://">https://</a>) for use in retrieving content from the origin server.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">originShield</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">profileDescription</span></code></td> |
| <td>string</td> |
| <td>The description of the Traffic Router Profile with which this deliveryservice is associated.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">profileId</span></code></td> |
| <td>string</td> |
| <td>The id of the Traffic Router Profile with which this deliveryservice is associated.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">profileName</span></code></td> |
| <td>string</td> |
| <td>The name of the Traffic Router Profile with which this deliveryservice is associated.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">protocol</span></code></td> |
| <td>string</td> |
| <td><ul class="first last simple"> |
| <li>0: serve with <a class="reference external" href="http://">http://</a> at EDGE</li> |
| <li>1: serve with <a class="reference external" href="https://">https://</a> at EDGE</li> |
| <li>2: serve with both <a class="reference external" href="http://">http://</a> and <a class="reference external" href="https://">https://</a> at EDGE</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">qstringIgnore</span></code></td> |
| <td>string</td> |
| <td><ul class="first last simple"> |
| <li>0: no special query string handling; it is for use in the cache-key and pass up to origin.</li> |
| <li>1: ignore query string in cache-key, but pass it up to parent and or origin.</li> |
| <li>2: drop query string at edge, and do not use it in the cache-key.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">rangeRequestHandling</span></code></td> |
| <td>string</td> |
| <td><p class="first">How to treat range requests:</p> |
| <ul class="last simple"> |
| <li>0 Do not cache (ranges requested from files taht are already cached due to a non range request will be a HIT)</li> |
| <li>1 Use the <a class="reference external" href="https://docs.trafficserver.apache.org/en/latest/reference/plugins/background_fetch.en.html">background_fetch</a> plugin.</li> |
| <li>2 Use the cache_range_requests plugin.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">regexRemap</span></code></td> |
| <td>string</td> |
| <td>Regex Remap rule to apply to this delivery service at the Edge tier.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">regionalGeoBlocking</span></code></td> |
| <td>bool</td> |
| <td>Regex Remap rule to apply to this delivery service at the Edge tier.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">remapText</span></code></td> |
| <td>string</td> |
| <td>Additional raw remap line text.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">signed</span></code></td> |
| <td>bool</td> |
| <td><ul class="first last simple"> |
| <li>false: token based auth (see :ref:token-based-auth) is not enabled for this deliveryservice.</li> |
| <li>true: token based auth is enabled for this deliveryservice.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">sslKeyVersion</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">trRequestHeaders</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">trResponseHeaders</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">type</span></code></td> |
| <td>string</td> |
| <td>The type of this deliveryservice (one of :ref:to-api-v11-types use_in_table=’deliveryservice’).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">typeId</span></code></td> |
| <td>string</td> |
| <td>The type of this deliveryservice (one of :ref:to-api-v11-types use_in_table=’deliveryservice’).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">xmlId</span></code></td> |
| <td>string</td> |
| <td>Unique string that describes this deliveryservice.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre>{ |
| "response": [ |
| { |
| "active": true, |
| "cacheurl": null, |
| "ccrDnsTtl": "3600", |
| "cdnId": "2", |
| "cdnName": "over-the-top", |
| "checkPath": "", |
| "displayName": "My Cool Delivery Service", |
| "dnsBypassCname": "", |
| "dnsBypassIp": "", |
| "dnsBypassIp6": "", |
| "dnsBypassTtl": "30", |
| "dscp": "40", |
| "edgeHeaderRewrite": null, |
| "exampleURLs": [ |
| "http://edge.foo-ds.foo.bar.net" |
| ], |
| "geoLimit": "0", |
| "geoLimitCountries": null, |
| "geoLimitRedirectURL": null, |
| "geoProvider": "0", |
| "globalMaxMbps": null, |
| "globalMaxTps": "0", |
| "httpBypassFqdn": "", |
| "id": "442", |
| "infoUrl": "", |
| "initialDispersion": "1", |
| "ipv6RoutingEnabled": true, |
| "lastUpdated": "2016-01-26 08:49:35", |
| "logsEnabled": false, |
| "longDesc": "", |
| "longDesc1": "", |
| "longDesc2": "", |
| "matchList": [ |
| { |
| "pattern": ".*\\.foo-ds\\..*", |
| "setNumber": "0", |
| "type": "HOST_REGEXP" |
| } |
| ], |
| "maxDnsAnswers": "0", |
| "midHeaderRewrite": null, |
| "missLat": "41.881944", |
| "missLong": "-87.627778", |
| "multiSiteOrigin": false, |
| "multiSiteOriginAlgorithm": null, |
| "orgServerFqdn": "http://baz.boo.net", |
| "originShield": null, |
| "profileDescription": "Content Router for over-the-top", |
| "profileId": "5", |
| "profileName": "ROUTER_TOP", |
| "protocol": "0", |
| "qstringIgnore": "1", |
| "rangeRequestHandling": "0", |
| "regexRemap": null, |
| "regionalGeoBlocking": false, |
| "remapText": null, |
| "signed": false, |
| "sslKeyVersion": "0", |
| "trRequestHeaders": null, |
| "trResponseHeaders": "Access-Control-Allow-Origin: *", |
| "type": "HTTP", |
| "typeId": "8", |
| "xmlId": "foo-ds" |
| } |
| { .. }, |
| { .. } |
| ] |
| } |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>GET /api/1.2/deliveryservices/:id</strong></p> |
| <blockquote> |
| <div><p>Retrieves a specific delivery service. See also <a class="reference external" href="http://trafficcontrol.apache.org/docs/latest/admin/traffic_ops_using.html#delivery-service">Using Traffic Ops - Delivery Service</a>.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="22%" /> |
| <col width="13%" /> |
| <col width="65%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">id</span></code></td> |
| <td>yes</td> |
| <td>Delivery service ID.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="15%" /> |
| <col width="5%" /> |
| <col width="80%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">active</span></code></td> |
| <td>bool</td> |
| <td>true if active, false if inactive.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">cacheurl</span></code></td> |
| <td>string</td> |
| <td>Cache URL rule to apply to this delivery service.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">ccrDnsTtl</span></code></td> |
| <td>string</td> |
| <td>The TTL of the DNS response for A or AAAA queries requesting the IP address of the tr. host.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">cdnId</span></code></td> |
| <td>string</td> |
| <td>Id of the CDN to which the delivery service belongs to.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">cdnName</span></code></td> |
| <td>string</td> |
| <td>Name of the CDN to which the delivery service belongs to.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">checkPath</span></code></td> |
| <td>string</td> |
| <td>The path portion of the URL to check this deliveryservice for health.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">displayName</span></code></td> |
| <td>string</td> |
| <td>The display name of the delivery service.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">dnsBypassIp</span></code></td> |
| <td>string</td> |
| <td>The IPv4 IP to use for bypass on a DNS deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">dnsBypassIp6</span></code></td> |
| <td>string</td> |
| <td>The IPv6 IP to use for bypass on a DNS deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">dnsBypassTtl</span></code></td> |
| <td>string</td> |
| <td>The TTL of the DNS bypass response.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">dscp</span></code></td> |
| <td>string</td> |
| <td>The Differentiated Services Code Point (DSCP) with which to mark downstream (EDGE -> customer) traffic.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">edgeHeaderRewrite</span></code></td> |
| <td>string</td> |
| <td>The EDGE header rewrite actions to perform.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">exampleURLs</span></code></td> |
| <td>array</td> |
| <td>Entry points into the CDN for this deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">geoLimitRedirectUrl</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">geoLimit</span></code></td> |
| <td>string</td> |
| <td><ul class="first simple"> |
| <li>0: None - no limitations</li> |
| <li>1: Only route on CZF file hit</li> |
| <li>2: Only route on CZF hit or when from USA</li> |
| </ul> |
| <p class="last">Note that this does not prevent access to content or makes content secure; it just prevents |
| routing to the content by Traffic Router.</p> |
| </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">geoLimitCountries</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">geoProvider</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">globalMaxMbps</span></code></td> |
| <td>string</td> |
| <td>The maximum global bandwidth allowed on this deliveryservice. If exceeded, the traffic routes to the |
| dnsByPassIp* for DNS deliveryservices and to the httpBypassFqdn for HTTP deliveryservices.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">globalMaxTps</span></code></td> |
| <td>string</td> |
| <td>The maximum global transactions per second allowed on this deliveryservice. When this is exceeded |
| traffic will be sent to the dnsByPassIp* for DNS deliveryservices and to the httpBypassFqdn for |
| HTTP deliveryservices</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">httpBypassFqdn</span></code></td> |
| <td>string</td> |
| <td>The HTTP destination to use for bypass on an HTTP deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">id</span></code></td> |
| <td>string</td> |
| <td>The deliveryservice id (database row number).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">infoUrl</span></code></td> |
| <td>string</td> |
| <td>Use this to add a URL that points to more information about that deliveryservice.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">initialDispersion</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">ipv6RoutingEnabled</span></code></td> |
| <td>bool</td> |
| <td>false: send IPv4 address of Traffic Router to client on HTTP type del.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">lastUpdated</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">logsEnabled</span></code></td> |
| <td>bool</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">longDesc</span></code></td> |
| <td>string</td> |
| <td>Description field 1.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">longDesc1</span></code></td> |
| <td>string</td> |
| <td>Description field 2.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">longDesc2</span></code></td> |
| <td>string</td> |
| <td>Description field 2.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">matchList</span></code></td> |
| <td>array</td> |
| <td>Array of matchList hashes.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>>type</span></code></td> |
| <td>string</td> |
| <td>The type of MatchList (one of :ref:to-api-v11-types use_in_table=’regex’).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>>setNumber</span></code></td> |
| <td>string</td> |
| <td>The set Number of the matchList.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>>pattern</span></code></td> |
| <td>string</td> |
| <td>The regexp for the matchList.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">maxDnsAnswers</span></code></td> |
| <td>string</td> |
| <td>The maximum number of IPs to put in a A/AAAA response for a DNS deliveryservice (0 means all |
| available).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">midHeaderRewrite</span></code></td> |
| <td>string</td> |
| <td>The MID header rewrite actions to perform.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">missLat</span></code></td> |
| <td>string</td> |
| <td>The latitude to use when the client cannot be found in the CZF or the Geo lookup.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">missLong</span></code></td> |
| <td>string</td> |
| <td>The longitude to use when the client cannot be found in the CZF or the Geo lookup.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">multiSiteOrigin</span></code></td> |
| <td>bool</td> |
| <td>Is the Multi Site Origin feature enabled for this delivery service (0=false, 1=true). See <a class="reference internal" href="../../../admin/traffic_ops_using.html#rl-multi-site-origin"><em>Multi Site Origin</em></a></td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">multiSiteOriginAlgor</span></code></td> |
| <td>bool</td> |
| <td>Is the Multi Site Origin feature enabled for this delivery service (0=false, 1=true). See <a class="reference internal" href="../../../admin/traffic_ops_using.html#rl-multi-site-origin"><em>Multi Site Origin</em></a></td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">orgServerFqdn</span></code></td> |
| <td>string</td> |
| <td>The origin server base URL (FQDN when used in this instance, includes the |
| protocol (<a class="reference external" href="http://">http://</a> or <a class="reference external" href="https://">https://</a>) for use in retrieving content from the origin server.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">originShield</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">profileDescription</span></code></td> |
| <td>string</td> |
| <td>The description of the Traffic Router Profile with which this deliveryservice is associated.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">profileId</span></code></td> |
| <td>string</td> |
| <td>The id of the Traffic Router Profile with which this deliveryservice is associated.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">profileName</span></code></td> |
| <td>string</td> |
| <td>The name of the Traffic Router Profile with which this deliveryservice is associated.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">protocol</span></code></td> |
| <td>string</td> |
| <td><ul class="first last simple"> |
| <li>0: serve with <a class="reference external" href="http://">http://</a> at EDGE</li> |
| <li>1: serve with <a class="reference external" href="https://">https://</a> at EDGE</li> |
| <li>2: serve with both <a class="reference external" href="http://">http://</a> and <a class="reference external" href="https://">https://</a> at EDGE</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">qstringIgnore</span></code></td> |
| <td>string</td> |
| <td><ul class="first last simple"> |
| <li>0: no special query string handling; it is for use in the cache-key and pass up to origin.</li> |
| <li>1: ignore query string in cache-key, but pass it up to parent and or origin.</li> |
| <li>2: drop query string at edge, and do not use it in the cache-key.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">rangeRequestHandling</span></code></td> |
| <td>string</td> |
| <td><p class="first">How to treat range requests:</p> |
| <ul class="last simple"> |
| <li>0 Do not cache (ranges requested from files taht are already cached due to a non range request will be a HIT)</li> |
| <li>1 Use the <a class="reference external" href="https://docs.trafficserver.apache.org/en/latest/reference/plugins/background_fetch.en.html">background_fetch</a> plugin.</li> |
| <li>2 Use the cache_range_requests plugin.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">regexRemap</span></code></td> |
| <td>string</td> |
| <td>Regex Remap rule to apply to this delivery service at the Edge tier.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">regionalGeoBlocking</span></code></td> |
| <td>bool</td> |
| <td>Regex Remap rule to apply to this delivery service at the Edge tier.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">remapText</span></code></td> |
| <td>string</td> |
| <td>Additional raw remap line text.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">signed</span></code></td> |
| <td>bool</td> |
| <td><ul class="first last simple"> |
| <li>false: token based auth (see :ref:token-based-auth) is not enabled for this deliveryservice.</li> |
| <li>true: token based auth is enabled for this deliveryservice.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">sslKeyVersion</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">trRequestHeaders</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">trResponseHeaders</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">type</span></code></td> |
| <td>string</td> |
| <td>The type of this deliveryservice (one of :ref:to-api-v11-types use_in_table=’deliveryservice’).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">typeId</span></code></td> |
| <td>string</td> |
| <td>The type of this deliveryservice (one of :ref:to-api-v11-types use_in_table=’deliveryservice’).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">xmlId</span></code></td> |
| <td>string</td> |
| <td>Unique string that describes this deliveryservice.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="p">{</span> |
| <span class="s">"active"</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span> |
| <span class="s">"cacheurl"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"ccrDnsTtl"</span><span class="p">:</span> <span class="s">"3600"</span><span class="p">,</span> |
| <span class="s">"cdnId"</span><span class="p">:</span> <span class="s">"2"</span><span class="p">,</span> |
| <span class="s">"cdnName"</span><span class="p">:</span> <span class="s">"over-the-top"</span><span class="p">,</span> |
| <span class="s">"checkPath"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"displayName"</span><span class="p">:</span> <span class="s">"My Cool Delivery Service"</span><span class="p">,</span> |
| <span class="s">"dnsBypassCname"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"dnsBypassIp"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"dnsBypassIp6"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"dnsBypassTtl"</span><span class="p">:</span> <span class="s">"30"</span><span class="p">,</span> |
| <span class="s">"dscp"</span><span class="p">:</span> <span class="s">"40"</span><span class="p">,</span> |
| <span class="s">"edgeHeaderRewrite"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"exampleURLs"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="s">"http://edge.foo-ds.foo.bar.net"</span> |
| <span class="p">],</span> |
| <span class="s">"geoLimit"</span><span class="p">:</span> <span class="s">"0"</span><span class="p">,</span> |
| <span class="s">"geoLimitCountries"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"geoLimitRedirectURL"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"geoProvider"</span><span class="p">:</span> <span class="s">"0"</span><span class="p">,</span> |
| <span class="s">"globalMaxMbps"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"globalMaxTps"</span><span class="p">:</span> <span class="s">"0"</span><span class="p">,</span> |
| <span class="s">"httpBypassFqdn"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"id"</span><span class="p">:</span> <span class="s">"442"</span><span class="p">,</span> |
| <span class="s">"infoUrl"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"initialDispersion"</span><span class="p">:</span> <span class="s">"1"</span><span class="p">,</span> |
| <span class="s">"ipv6RoutingEnabled"</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span> |
| <span class="s">"lastUpdated"</span><span class="p">:</span> <span class="s">"2016-01-26 08:49:35"</span><span class="p">,</span> |
| <span class="s">"logsEnabled"</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span> |
| <span class="s">"longDesc"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"longDesc1"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"longDesc2"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"matchList"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="p">{</span> |
| <span class="s">"pattern"</span><span class="p">:</span> <span class="s">".*</span><span class="se">\\</span><span class="s">.foo-ds</span><span class="se">\\</span><span class="s">..*"</span><span class="p">,</span> |
| <span class="s">"setNumber"</span><span class="p">:</span> <span class="s">"0"</span><span class="p">,</span> |
| <span class="s">"type"</span><span class="p">:</span> <span class="s">"HOST_REGEXP"</span> |
| <span class="p">}</span> |
| <span class="p">],</span> |
| <span class="s">"maxDnsAnswers"</span><span class="p">:</span> <span class="s">"0"</span><span class="p">,</span> |
| <span class="s">"midHeaderRewrite"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"missLat"</span><span class="p">:</span> <span class="s">"41.881944"</span><span class="p">,</span> |
| <span class="s">"missLong"</span><span class="p">:</span> <span class="s">"-87.627778"</span><span class="p">,</span> |
| <span class="s">"multiSiteOrigin"</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span> |
| <span class="s">"multiSiteOriginAlgorithm"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"orgServerFqdn"</span><span class="p">:</span> <span class="s">"http://baz.boo.net"</span><span class="p">,</span> |
| <span class="s">"originShield"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"profileDescription"</span><span class="p">:</span> <span class="s">"Content Router for over-the-top"</span><span class="p">,</span> |
| <span class="s">"profileId"</span><span class="p">:</span> <span class="s">"5"</span><span class="p">,</span> |
| <span class="s">"profileName"</span><span class="p">:</span> <span class="s">"ROUTER_TOP"</span><span class="p">,</span> |
| <span class="s">"protocol"</span><span class="p">:</span> <span class="s">"0"</span><span class="p">,</span> |
| <span class="s">"qstringIgnore"</span><span class="p">:</span> <span class="s">"1"</span><span class="p">,</span> |
| <span class="s">"rangeRequestHandling"</span><span class="p">:</span> <span class="s">"0"</span><span class="p">,</span> |
| <span class="s">"regexRemap"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"regionalGeoBlocking"</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span> |
| <span class="s">"remapText"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"signed"</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span> |
| <span class="s">"sslKeyVersion"</span><span class="p">:</span> <span class="s">"0"</span><span class="p">,</span> |
| <span class="s">"trRequestHeaders"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"trResponseHeaders"</span><span class="p">:</span> <span class="s">"Access-Control-Allow-Origin: *"</span><span class="p">,</span> |
| <span class="s">"type"</span><span class="p">:</span> <span class="s">"HTTP"</span><span class="p">,</span> |
| <span class="s">"typeId"</span><span class="p">:</span> <span class="s">"8"</span><span class="p">,</span> |
| <span class="s">"xmlId"</span><span class="p">:</span> <span class="s">"foo-ds"</span> |
| <span class="p">}</span> |
| <span class="p">]</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>GET /api/1.2/deliveryservices/:id/servers</strong></p> |
| <blockquote> |
| <div><p>Retrieves properties of CDN Edge servers assigned to a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="22%" /> |
| <col width="13%" /> |
| <col width="65%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">id</span></code></td> |
| <td>yes</td> |
| <td>Delivery service ID.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="15%" /> |
| <col width="6%" /> |
| <col width="79%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">cachegroup</span></code></td> |
| <td>string</td> |
| <td>The cache group name (see <a class="reference internal" href="../v11/cachegroup.html#to-api-v11-cachegroup"><em>Cache Group</em></a>).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">cachegroupId</span></code></td> |
| <td>string</td> |
| <td>The cache group id.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">cdnId</span></code></td> |
| <td>string</td> |
| <td>Id of the CDN to which the server belongs to.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">cdnName</span></code></td> |
| <td>string</td> |
| <td>Name of the CDN to which the server belongs to.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">domainName</span></code></td> |
| <td>string</td> |
| <td>The domain name part of the FQDN of the cache.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">guid</span></code></td> |
| <td>string</td> |
| <td>An identifier used to uniquely identify the server.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">hostName</span></code></td> |
| <td>string</td> |
| <td>The host name part of the cache.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">httpsPort</span></code></td> |
| <td>string</td> |
| <td>The HTTPS port on which the main application listens (443 in most cases).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">id</span></code></td> |
| <td>string</td> |
| <td>The server id (database row number).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">iloIpAddress</span></code></td> |
| <td>string</td> |
| <td>The IPv4 address of the lights-out-management port.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">iloIpGateway</span></code></td> |
| <td>string</td> |
| <td>The IPv4 gateway address of the lights-out-management port.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">iloIpNetmask</span></code></td> |
| <td>string</td> |
| <td>The IPv4 netmask of the lights-out-management port.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">iloPassword</span></code></td> |
| <td>string</td> |
| <td>The password of the of the lights-out-management user (displays as <strong>**</strong> unless you are an ‘admin’ user).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">iloUsername</span></code></td> |
| <td>string</td> |
| <td>The user name for lights-out-management.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">interfaceMtu</span></code></td> |
| <td>string</td> |
| <td>The Maximum Transmission Unit (MTU) to configure for <code class="docutils literal"><span class="pre">interfaceName</span></code>.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">interfaceName</span></code></td> |
| <td>string</td> |
| <td>The network interface name used for serving traffic.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">ip6Address</span></code></td> |
| <td>string</td> |
| <td>The IPv6 address/netmask for <code class="docutils literal"><span class="pre">interfaceName</span></code>.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">ip6Gateway</span></code></td> |
| <td>string</td> |
| <td>The IPv6 gateway for <code class="docutils literal"><span class="pre">interfaceName</span></code>.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">ipAddress</span></code></td> |
| <td>string</td> |
| <td>The IPv4 address for <code class="docutils literal"><span class="pre">interfaceName</span></code>.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">ipGateway</span></code></td> |
| <td>string</td> |
| <td>The IPv4 gateway for <code class="docutils literal"><span class="pre">interfaceName</span></code>.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">ipNetmask</span></code></td> |
| <td>string</td> |
| <td>The IPv4 netmask for <code class="docutils literal"><span class="pre">interfaceName</span></code>.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">lastUpdated</span></code></td> |
| <td>string</td> |
| <td>The Time and Date for the last update for this server.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">mgmtIpAddress</span></code></td> |
| <td>string</td> |
| <td>The IPv4 address of the management port (optional).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">mgmtIpGateway</span></code></td> |
| <td>string</td> |
| <td>The IPv4 gateway of the management port (optional).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">mgmtIpNetmask</span></code></td> |
| <td>string</td> |
| <td>The IPv4 netmask of the management port (optional).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">offlineReason</span></code></td> |
| <td>string</td> |
| <td>A user-entered reason why the server is in ADMIN_DOWN or OFFLINE status.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">physLocation</span></code></td> |
| <td>string</td> |
| <td>The physical location name (see <a class="reference internal" href="../v11/phys_location.html#to-api-v11-phys-loc"><em>Physical Location</em></a>).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">physLocationId</span></code></td> |
| <td>string</td> |
| <td>The physical location id (see <a class="reference internal" href="../v11/phys_location.html#to-api-v11-phys-loc"><em>Physical Location</em></a>).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">profile</span></code></td> |
| <td>string</td> |
| <td>The assigned profile name (see <a class="reference internal" href="../v11/profile.html#to-api-v11-profile"><em>Profiles</em></a>).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">profileDesc</span></code></td> |
| <td>string</td> |
| <td>The assigned profile description (see <a class="reference internal" href="../v11/profile.html#to-api-v11-profile"><em>Profiles</em></a>).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">profileId</span></code></td> |
| <td>string</td> |
| <td>The assigned profile Id (see <a class="reference internal" href="../v11/profile.html#to-api-v11-profile"><em>Profiles</em></a>).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">rack</span></code></td> |
| <td>string</td> |
| <td>A string indicating rack location.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">routerHostName</span></code></td> |
| <td>string</td> |
| <td>The human readable name of the router.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">routerPortName</span></code></td> |
| <td>string</td> |
| <td>The human readable name of the router port.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">status</span></code></td> |
| <td>string</td> |
| <td>The Status string (See <a class="reference internal" href="../v11/status.html#to-api-v11-status"><em>Status</em></a>).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">statusId</span></code></td> |
| <td>string</td> |
| <td>The Status id (See <a class="reference internal" href="../v11/status.html#to-api-v11-status"><em>Status</em></a>).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">tcpPort</span></code></td> |
| <td>string</td> |
| <td>The default TCP port on which the main application listens (80 for a cache in most cases).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">type</span></code></td> |
| <td>string</td> |
| <td>The name of the type of this server (see <a class="reference internal" href="../v11/type.html#to-api-v11-type"><em>Types</em></a>).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">typeId</span></code></td> |
| <td>string</td> |
| <td>The id of the type of this server (see <a class="reference internal" href="../v11/type.html#to-api-v11-type"><em>Types</em></a>).</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">updPending</span></code></td> |
| <td>bool</td> |
| <td> </td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="p">{</span> |
| <span class="s">"cachegroup"</span><span class="p">:</span> <span class="s">"us-il-chicago"</span><span class="p">,</span> |
| <span class="s">"cachegroupId"</span><span class="p">:</span> <span class="s">"3"</span><span class="p">,</span> |
| <span class="s">"cdnId"</span><span class="p">:</span> <span class="s">"3"</span><span class="p">,</span> |
| <span class="s">"cdnName"</span><span class="p">:</span> <span class="s">"CDN-1"</span><span class="p">,</span> |
| <span class="s">"domainName"</span><span class="p">:</span> <span class="s">"chi.kabletown.net"</span><span class="p">,</span> |
| <span class="s">"guid"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"hostName"</span><span class="p">:</span> <span class="s">"atsec-chi-00"</span><span class="p">,</span> |
| <span class="s">"id"</span><span class="p">:</span> <span class="s">"19"</span><span class="p">,</span> |
| <span class="s">"iloIpAddress"</span><span class="p">:</span> <span class="s">"172.16.2.6"</span><span class="p">,</span> |
| <span class="s">"iloIpGateway"</span><span class="p">:</span> <span class="s">"172.16.2.1"</span><span class="p">,</span> |
| <span class="s">"iloIpNetmask"</span><span class="p">:</span> <span class="s">"255.255.255.0"</span><span class="p">,</span> |
| <span class="s">"iloPassword"</span><span class="p">:</span> <span class="s">"********"</span><span class="p">,</span> |
| <span class="s">"iloUsername"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"interfaceMtu"</span><span class="p">:</span> <span class="s">"9000"</span><span class="p">,</span> |
| <span class="s">"interfaceName"</span><span class="p">:</span> <span class="s">"bond0"</span><span class="p">,</span> |
| <span class="s">"ip6Address"</span><span class="p">:</span> <span class="s">"2033:D0D0:3300::2:2/64"</span><span class="p">,</span> |
| <span class="s">"ip6Gateway"</span><span class="p">:</span> <span class="s">"2033:D0D0:3300::2:1"</span><span class="p">,</span> |
| <span class="s">"ipAddress"</span><span class="p">:</span> <span class="s">"10.10.2.2"</span><span class="p">,</span> |
| <span class="s">"ipGateway"</span><span class="p">:</span> <span class="s">"10.10.2.1"</span><span class="p">,</span> |
| <span class="s">"ipNetmask"</span><span class="p">:</span> <span class="s">"255.255.255.0"</span><span class="p">,</span> |
| <span class="s">"lastUpdated"</span><span class="p">:</span> <span class="s">"2015-03-08 15:57:32"</span><span class="p">,</span> |
| <span class="s">"mgmtIpAddress"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"mgmtIpGateway"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"mgmtIpNetmask"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"offlineReason"</span><span class="p">:</span> <span class="s">"N/A"</span><span class="p">,</span> |
| <span class="s">"physLocation"</span><span class="p">:</span> <span class="s">"plocation-chi-1"</span><span class="p">,</span> |
| <span class="s">"physLocationId"</span><span class="p">:</span> <span class="s">"9"</span><span class="p">,</span> |
| <span class="s">"profile"</span><span class="p">:</span> <span class="s">"EDGE1_CDN1_421_SSL"</span><span class="p">,</span> |
| <span class="s">"profileDesc"</span><span class="p">:</span> <span class="s">"EDGE1_CDN1_421_SSL profile"</span><span class="p">,</span> |
| <span class="s">"profileId"</span><span class="p">:</span> <span class="s">"12"</span><span class="p">,</span> |
| <span class="s">"rack"</span><span class="p">:</span> <span class="s">"RR 119.02"</span><span class="p">,</span> |
| <span class="s">"routerHostName"</span><span class="p">:</span> <span class="s">"rtr-chi.kabletown.net"</span><span class="p">,</span> |
| <span class="s">"routerPortName"</span><span class="p">:</span> <span class="s">"2"</span><span class="p">,</span> |
| <span class="s">"status"</span><span class="p">:</span> <span class="s">"ONLINE"</span><span class="p">,</span> |
| <span class="s">"statusId"</span><span class="p">:</span> <span class="s">"6"</span><span class="p">,</span> |
| <span class="s">"tcpPort"</span><span class="p">:</span> <span class="s">"80"</span><span class="p">,</span> |
| <span class="s">"httpsPort"</span><span class="p">:</span> <span class="s">"443"</span><span class="p">,</span> |
| <span class="s">"type"</span><span class="p">:</span> <span class="s">"EDGE"</span><span class="p">,</span> |
| <span class="s">"typeId"</span><span class="p">:</span> <span class="s">"3"</span><span class="p">,</span> |
| <span class="s">"updPending"</span><span class="p">:</span> <span class="n">false</span> |
| <span class="p">},</span> |
| <span class="p">{</span> |
| <span class="o">...</span> <span class="n">more</span> <span class="n">server</span> <span class="n">data</span> |
| <span class="p">}</span> |
| <span class="p">]</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| </div> |
| <div class="section" id="health"> |
| <span id="to-api-v12-ds-health"></span><h2>Health<a class="headerlink" href="#health" title="Permalink to this headline">¶</a></h2> |
| <p><strong>GET /api/1.2/deliveryservices/:id/state</strong></p> |
| <blockquote> |
| <div><p>Retrieves the failover state for a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="24%" /> |
| <col width="12%" /> |
| <col width="64%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">failover</span></code></td> |
| <td>hash</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>locations</span></code></td> |
| <td>array</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>destination</span></code></td> |
| <td>hash</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>>location</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>>type</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>configured</span></code></td> |
| <td>boolean</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>enabled</span></code></td> |
| <td>boolean</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">enabled</span></code></td> |
| <td>boolean</td> |
| <td> </td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"failover"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"locations"</span><span class="p">:</span> <span class="p">[</span> <span class="p">],</span> |
| <span class="s">"destination"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"location"</span><span class="p">:</span> <span class="n">null</span><span class="p">,</span> |
| <span class="s">"type"</span><span class="p">:</span> <span class="s">"DNS"</span><span class="p">,</span> |
| <span class="p">},</span> |
| <span class="s">"configured"</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span> |
| <span class="s">"enabled"</span><span class="p">:</span> <span class="n">false</span> |
| <span class="p">},</span> |
| <span class="s">"enabled"</span><span class="p">:</span> <span class="n">true</span> |
| <span class="p">}</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>GET /api/1.2/deliveryservices/:id/health</strong></p> |
| <blockquote> |
| <div><p>Retrieves the health of all locations (cache groups) for a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="24%" /> |
| <col width="11%" /> |
| <col width="65%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">totalOnline</span></code></td> |
| <td>int</td> |
| <td>Total number of online caches across all CDNs.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">totalOffline</span></code></td> |
| <td>int</td> |
| <td>Total number of offline caches across all CDNs.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">cachegroups</span></code></td> |
| <td>array</td> |
| <td>A collection of cache groups.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>online</span></code></td> |
| <td>int</td> |
| <td>The number of online caches for the cache group</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>offline</span></code></td> |
| <td>int</td> |
| <td>The number of offline caches for the cache |
| group.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>name</span></code></td> |
| <td>string</td> |
| <td>Cache group name.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"totalOnline"</span><span class="p">:</span> <span class="mi">148</span><span class="p">,</span> |
| <span class="s">"totalOffline"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"cachegroups"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="p">{</span> |
| <span class="s">"online"</span><span class="p">:</span> <span class="mi">8</span><span class="p">,</span> |
| <span class="s">"offline"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"name"</span><span class="p">:</span> <span class="s">"us-co-denver"</span> |
| <span class="p">},</span> |
| <span class="p">{</span> |
| <span class="s">"online"</span><span class="p">:</span> <span class="mi">7</span><span class="p">,</span> |
| <span class="s">"offline"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"name"</span><span class="p">:</span> <span class="s">"us-de-newcastle"</span> |
| <span class="p">}</span> |
| <span class="p">]</span> |
| <span class="p">}</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>GET /api/1.2/deliveryservices/:id/capacity</strong></p> |
| <blockquote> |
| <div><p>Retrieves the capacity percentages of a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="22%" /> |
| <col width="13%" /> |
| <col width="65%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>id</td> |
| <td>yes</td> |
| <td>delivery service id.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="29%" /> |
| <col width="10%" /> |
| <col width="61%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">availablePercent</span></code></td> |
| <td>number</td> |
| <td>The percentage of server capacity assigned to |
| the delivery service that is available.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">unavailablePercent</span></code></td> |
| <td>number</td> |
| <td>The percentage of server capacity assigned to the |
| delivery service that is unavailable.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">utilizedPercent</span></code></td> |
| <td>number</td> |
| <td>The percentage of server capacity assigned to the |
| delivery service being used.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">maintenancePercent</span></code></td> |
| <td>number</td> |
| <td>The percentage of server capacity assigned to the |
| delivery service that is down for maintenance.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"availablePercent"</span><span class="p">:</span> <span class="mf">89.0939840205533</span><span class="p">,</span> |
| <span class="s">"unavailablePercent"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"utilizedPercent"</span><span class="p">:</span> <span class="mf">10.9060020300395</span><span class="p">,</span> |
| <span class="s">"maintenancePercent"</span><span class="p">:</span> <span class="mf">0.0000139494071146245</span> |
| <span class="p">},</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>GET /api/1.2/deliveryservices/:id/routing</strong></p> |
| <blockquote> |
| <div><p>Retrieves the routing method percentages of a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="22%" /> |
| <col width="13%" /> |
| <col width="65%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>id</td> |
| <td>yes</td> |
| <td>delivery service id.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="16%" /> |
| <col width="5%" /> |
| <col width="79%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">staticRoute</span></code></td> |
| <td>number</td> |
| <td>The percentage of Traffic Router responses for this deliveryservice satisfied with pre-configured DNS entries.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">miss</span></code></td> |
| <td>number</td> |
| <td>The percentage of Traffic Router responses for this deliveryservice that were a miss (no location available for client IP).</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">geo</span></code></td> |
| <td>number</td> |
| <td>The percentage of Traffic Router responses for this deliveryservice satisfied using 3rd party geo-IP mapping.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">err</span></code></td> |
| <td>number</td> |
| <td>The percentage of Traffic Router requests for this deliveryservice resulting in an error.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">cz</span></code></td> |
| <td>number</td> |
| <td>The percentage of Traffic Router requests for this deliveryservice satisfied by a CZF (coverage zone file) hit.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">dsr</span></code></td> |
| <td>number</td> |
| <td>The percentage of Traffic Router requests for this deliveryservice satisfied by sending the |
| client to the overflow CDN.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">fed</span></code></td> |
| <td>number</td> |
| <td>The percentage of Traffic Router requests for this deliveryservice satisfied by sending the client to a federated CDN.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">regionalAlternate</span></code></td> |
| <td>number</td> |
| <td>The percentage of Traffic Router requests for this deliveryservice satisfied by sending the client to the alternate |
| regional geoblocking URL.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">regionalDenied</span></code></td> |
| <td>number</td> |
| <td>The percent of Traffic Router requests for this deliveryservice denied due to geolocation policy.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"staticRoute"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"miss"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"geo"</span><span class="p">:</span> <span class="mf">37.8855391018869</span><span class="p">,</span> |
| <span class="s">"err"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"cz"</span><span class="p">:</span> <span class="mf">62.1144608981131</span><span class="p">,</span> |
| <span class="s">"dsr"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"fed"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"regionalAlternate"</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span> |
| <span class="s">"regionalDenied"</span><span class="p">:</span> <span class="mi">0</span> |
| <span class="p">},</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| </div> |
| <div class="section" id="server"> |
| <span id="to-api-v12-ds-server"></span><h2>Server<a class="headerlink" href="#server" title="Permalink to this headline">¶</a></h2> |
| <p><strong>GET /api/1.2/deliveryserviceserver</strong></p> |
| <blockquote> |
| <div><p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Request Query Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="18%" /> |
| <col width="16%" /> |
| <col width="66%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">page</span></code></td> |
| <td>no</td> |
| <td>The page number for use in pagination.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">limit</span></code></td> |
| <td>no</td> |
| <td>For use in limiting the result set.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="28%" /> |
| <col width="10%" /> |
| <col width="62%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">lastUpdated</span></code></td> |
| <td>array</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">server</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">deliveryService</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"page"</span><span class="p">:</span> <span class="mi">2</span><span class="p">,</span> |
| <span class="s">"orderby"</span><span class="p">:</span> <span class="s">"deliveryservice"</span><span class="p">,</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="p">{</span> |
| <span class="s">"lastUpdated"</span><span class="p">:</span> <span class="s">"2014-09-26 17:53:43"</span><span class="p">,</span> |
| <span class="s">"server"</span><span class="p">:</span> <span class="s">"20"</span><span class="p">,</span> |
| <span class="s">"deliveryService"</span><span class="p">:</span> <span class="s">"1"</span> |
| <span class="p">},</span> |
| <span class="p">{</span> |
| <span class="s">"lastUpdated"</span><span class="p">:</span> <span class="s">"2014-09-26 17:53:44"</span><span class="p">,</span> |
| <span class="s">"server"</span><span class="p">:</span> <span class="s">"21"</span><span class="p">,</span> |
| <span class="s">"deliveryService"</span><span class="p">:</span> <span class="s">"1"</span> |
| <span class="p">},</span> |
| <span class="p">],</span> |
| <span class="s">"limit"</span><span class="p">:</span> <span class="mi">2</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| </div> |
| <div class="section" id="ssl-keys"> |
| <span id="to-api-v12-ds-sslkeys"></span><h2>SSL Keys<a class="headerlink" href="#ssl-keys" title="Permalink to this headline">¶</a></h2> |
| <p><strong>GET /api/1.2/deliveryservices/xmlId/:xmlid/sslkeys</strong></p> |
| <blockquote> |
| <div><p>Authentication Required: Yes</p> |
| <p>Role(s) Required: Admin</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="18%" /> |
| <col width="16%" /> |
| <col width="66%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">xmlId</span></code></td> |
| <td>yes</td> |
| <td>xml_id of the desired delivery service</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Query Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="24%" /> |
| <col width="18%" /> |
| <col width="58%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>no</td> |
| <td>The version number to retrieve</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="13%" /> |
| <col width="5%" /> |
| <col width="83%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">crt</span></code></td> |
| <td>string</td> |
| <td>base64 encoded crt file for delivery service</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">csr</span></code></td> |
| <td>string</td> |
| <td>base64 encoded csr file for delivery service</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">key</span></code></td> |
| <td>string</td> |
| <td>base64 encoded private key file for delivery service</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">cdn</span></code></td> |
| <td>string</td> |
| <td>The CDN of the delivery service for which the certs were generated.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">deliveryservice</span></code></td> |
| <td>string</td> |
| <td>The XML ID of the delivery service for which the cert was generated.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">businessUnit</span></code></td> |
| <td>string</td> |
| <td>The business unit entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">city</span></code></td> |
| <td>string</td> |
| <td>The city entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">organization</span></code></td> |
| <td>string</td> |
| <td>The organization entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">hostname</span></code></td> |
| <td>string</td> |
| <td>The hostname generated by Traffic Ops that is used as the common name when generating the certificate. |
| This will be a FQDN for DNS delivery services and a wildcard URL for HTTP delivery services.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">country</span></code></td> |
| <td>string</td> |
| <td>The country entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">state</span></code></td> |
| <td>string</td> |
| <td>The state entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>string</td> |
| <td>The version of the certificate record in Riak</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"certificate"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"crt"</span><span class="p">:</span> <span class="s">"crt"</span><span class="p">,</span> |
| <span class="s">"key"</span><span class="p">:</span> <span class="s">"key"</span><span class="p">,</span> |
| <span class="s">"csr"</span><span class="p">:</span> <span class="s">"csr"</span> |
| <span class="p">},</span> |
| <span class="s">"deliveryservice"</span><span class="p">:</span> <span class="s">"my-ds"</span><span class="p">,</span> |
| <span class="s">"cdn"</span><span class="p">:</span> <span class="s">"qa"</span><span class="p">,</span> |
| <span class="s">"businessUnit"</span><span class="p">:</span> <span class="s">"CDN_Eng"</span><span class="p">,</span> |
| <span class="s">"city"</span><span class="p">:</span> <span class="s">"Denver"</span><span class="p">,</span> |
| <span class="s">"organization"</span><span class="p">:</span> <span class="s">"KableTown"</span><span class="p">,</span> |
| <span class="s">"hostname"</span><span class="p">:</span> <span class="s">"foober.com"</span><span class="p">,</span> |
| <span class="s">"country"</span><span class="p">:</span> <span class="s">"US"</span><span class="p">,</span> |
| <span class="s">"state"</span><span class="p">:</span> <span class="s">"Colorado"</span><span class="p">,</span> |
| <span class="s">"version"</span><span class="p">:</span> <span class="s">"1"</span> |
| <span class="p">}</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>GET /api/1.2/deliveryservices/hostname/:hostname/sslkeys</strong></p> |
| <blockquote> |
| <div><p>Authentication Required: Yes</p> |
| <p>Role(s) Required: Admin</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="19%" /> |
| <col width="13%" /> |
| <col width="68%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">hostname</span></code></td> |
| <td>yes</td> |
| <td>pristine hostname of the desired delivery service</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Query Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="24%" /> |
| <col width="18%" /> |
| <col width="58%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>no</td> |
| <td>The version number to retrieve</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="13%" /> |
| <col width="5%" /> |
| <col width="83%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">crt</span></code></td> |
| <td>string</td> |
| <td>base64 encoded crt file for delivery service</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">csr</span></code></td> |
| <td>string</td> |
| <td>base64 encoded csr file for delivery service</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">key</span></code></td> |
| <td>string</td> |
| <td>base64 encoded private key file for delivery service</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">cdn</span></code></td> |
| <td>string</td> |
| <td>The CDN of the delivery service for which the certs were generated.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">deliveryservice</span></code></td> |
| <td>string</td> |
| <td>The XML ID of the delivery service for which the cert was generated.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">businessUnit</span></code></td> |
| <td>string</td> |
| <td>The business unit entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">city</span></code></td> |
| <td>string</td> |
| <td>The city entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">organization</span></code></td> |
| <td>string</td> |
| <td>The organization entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">hostname</span></code></td> |
| <td>string</td> |
| <td>The hostname generated by Traffic Ops that is used as the common name when generating the certificate. |
| This will be a FQDN for DNS delivery services and a wildcard URL for HTTP delivery services.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">country</span></code></td> |
| <td>string</td> |
| <td>The country entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">state</span></code></td> |
| <td>string</td> |
| <td>The state entered by the user when generating certs. Field is optional and if not provided by the user will not be in response</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>string</td> |
| <td>The version of the certificate record in Riak</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"certificate"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"crt"</span><span class="p">:</span> <span class="s">"crt"</span><span class="p">,</span> |
| <span class="s">"key"</span><span class="p">:</span> <span class="s">"key"</span><span class="p">,</span> |
| <span class="s">"csr"</span><span class="p">:</span> <span class="s">"csr"</span> |
| <span class="p">},</span> |
| <span class="s">"deliveryservice"</span><span class="p">:</span> <span class="s">"my-ds"</span><span class="p">,</span> |
| <span class="s">"cdn"</span><span class="p">:</span> <span class="s">"qa"</span><span class="p">,</span> |
| <span class="s">"businessUnit"</span><span class="p">:</span> <span class="s">"CDN_Eng"</span><span class="p">,</span> |
| <span class="s">"city"</span><span class="p">:</span> <span class="s">"Denver"</span><span class="p">,</span> |
| <span class="s">"organization"</span><span class="p">:</span> <span class="s">"KableTown"</span><span class="p">,</span> |
| <span class="s">"hostname"</span><span class="p">:</span> <span class="s">"foober.com"</span><span class="p">,</span> |
| <span class="s">"country"</span><span class="p">:</span> <span class="s">"US"</span><span class="p">,</span> |
| <span class="s">"state"</span><span class="p">:</span> <span class="s">"Colorado"</span><span class="p">,</span> |
| <span class="s">"version"</span><span class="p">:</span> <span class="s">"1"</span> |
| <span class="p">}</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>GET /api/1.2/deliveryservices/xmlId/:xmlid/sslkeys/delete</strong></p> |
| <blockquote> |
| <div><p>Authentication Required: Yes</p> |
| <p>Role Required: Admin</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="18%" /> |
| <col width="16%" /> |
| <col width="66%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">xmlId</span></code></td> |
| <td>yes</td> |
| <td>xml_id of the desired delivery service</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Query Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="24%" /> |
| <col width="18%" /> |
| <col width="58%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>no</td> |
| <td>The version number to retrieve</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="35%" /> |
| <col width="20%" /> |
| <col width="45%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">response</span></code></td> |
| <td>string</td> |
| <td>success response</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="s">"Successfully deleted ssl keys for <xml_id>"</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>POST /api/1.2/deliveryservices/sslkeys/generate</strong></p> |
| <blockquote> |
| <div><p>Generates SSL crt, csr, and private key for a delivery service</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: Admin</p> |
| <p><strong>Request Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="19%" /> |
| <col width="13%" /> |
| <col width="68%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">key</span></code></td> |
| <td>string</td> |
| <td>xml_id of the delivery service</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>string</td> |
| <td>version of the keys being generated</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">hostname</span></code></td> |
| <td>string</td> |
| <td>the <em>pristine hostname</em> of the delivery service</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">country</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">state</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">city</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">org</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">unit</span></code></td> |
| <td>boolean</td> |
| <td> </td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"key"</span><span class="p">:</span> <span class="s">"ds-01"</span><span class="p">,</span> |
| <span class="s">"businessUnit"</span><span class="p">:</span> <span class="s">"CDN Engineering"</span><span class="p">,</span> |
| <span class="s">"version"</span><span class="p">:</span> <span class="s">"3"</span><span class="p">,</span> |
| <span class="s">"hostname"</span><span class="p">:</span> <span class="s">"tr.ds-01.ott.kabletown.com"</span><span class="p">,</span> |
| <span class="s">"certificate"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"key"</span><span class="p">:</span> <span class="s">"some_key"</span><span class="p">,</span> |
| <span class="s">"csr"</span><span class="p">:</span> <span class="s">"some_csr"</span><span class="p">,</span> |
| <span class="s">"crt"</span><span class="p">:</span> <span class="s">"some_crt"</span> |
| <span class="p">},</span> |
| <span class="s">"country"</span><span class="p">:</span> <span class="s">"US"</span><span class="p">,</span> |
| <span class="s">"organization"</span><span class="p">:</span> <span class="s">"Kabletown"</span><span class="p">,</span> |
| <span class="s">"city"</span><span class="p">:</span> <span class="s">"Denver"</span><span class="p">,</span> |
| <span class="s">"state"</span><span class="p">:</span> <span class="s">"Colorado"</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <blockquote> |
| <div><p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="36%" /> |
| <col width="21%" /> |
| <col width="44%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">response</span></code></td> |
| <td>string</td> |
| <td>response string</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>string</td> |
| <td>API version</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="s">"Successfully created ssl keys for ds-01"</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>POST /api/1.2/deliveryservices/sslkeys/add</strong></p> |
| <blockquote> |
| <div><p>Allows user to add SSL crt, csr, and private key for a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: Admin</p> |
| <p><strong>Request Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="22%" /> |
| <col width="14%" /> |
| <col width="64%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">key</span></code></td> |
| <td>string</td> |
| <td>xml_id of the delivery service</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>string</td> |
| <td>version of the keys being generated</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">csr</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">crt</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">key</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"key"</span><span class="p">:</span> <span class="s">"ds-01"</span><span class="p">,</span> |
| <span class="s">"version"</span><span class="p">:</span> <span class="s">"1"</span><span class="p">,</span> |
| <span class="s">"certificate"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"key"</span><span class="p">:</span> <span class="s">"some_key"</span><span class="p">,</span> |
| <span class="s">"csr"</span><span class="p">:</span> <span class="s">"some_csr"</span><span class="p">,</span> |
| <span class="s">"crt"</span><span class="p">:</span> <span class="s">"some_crt"</span> |
| <span class="p">}</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <blockquote> |
| <div><p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="36%" /> |
| <col width="21%" /> |
| <col width="44%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">response</span></code></td> |
| <td>string</td> |
| <td>response string</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>string</td> |
| <td>API version</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:</span> <span class="s">"Successfully added ssl keys for ds-01"</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <p><strong>POST /api/1.2/deliveryservices/request</strong></p> |
| <blockquote> |
| <div><p>Allows a user to send delivery service request details to a specified email address.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: None</p> |
| <p><strong>Request Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="26%" /> |
| <col width="5%" /> |
| <col width="7%" /> |
| <col width="62%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">emailTo</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>The email to which the delivery service request will be sent.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">details</span></code></td> |
| <td>hash</td> |
| <td>yes</td> |
| <td>Parameters for the delivery service request.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>customer</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>Name of the customer to associated with the delivery service.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>deliveryProtocol</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>Eg. http or http/https</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>routingType</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>Eg. DNS or HTTP Redirect</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>serviceDesc</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>A description of the delivery service.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>peakBPSEstimate</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>Used to manage cache efficiency and plan for capacity.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>peakTPSEstimate</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>Used to manage cache efficiency and plan for capacity.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>maxLibrarySizeEstimate</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>Used to manage cache efficiency and plan for capacity.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>originURL</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>The URL path to the origin server.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>hasOriginDynamicRemap</span></code></td> |
| <td>bool</td> |
| <td>yes</td> |
| <td>This is a feature which allows services to use multiple origin URLs for the same service.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>originTestFile</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>A URL path to a test file available on the origin server.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>hasOriginACLWhitelist</span></code></td> |
| <td>bool</td> |
| <td>yes</td> |
| <td>Is access to your origin restricted using an access control list (ACL or whitelist) of Ips?</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>originHeaders</span></code></td> |
| <td>string</td> |
| <td>no</td> |
| <td>Header values that must be passed to requests to your origin.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>otherOriginSecurity</span></code></td> |
| <td>string</td> |
| <td>no</td> |
| <td>Other origin security measures that need to be considered for access.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>queryStringHandling</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>How to handle query strings that come with the request.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>rangeRequestHandling</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>How to handle range requests.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>hasSignedURLs</span></code></td> |
| <td>bool</td> |
| <td>yes</td> |
| <td>Are Urls signed?</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>hasNegativeCachingCustomization</span></code></td> |
| <td>bool</td> |
| <td>yes</td> |
| <td>Any customization required for negative caching?</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>negativeCachingCustomizationNote</span></code></td> |
| <td>string</td> |
| <td>yes</td> |
| <td>Negative caching customization instructions.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>serviceAliases</span></code></td> |
| <td>array</td> |
| <td>no</td> |
| <td>Service aliases which will be used for this service.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>rateLimitingGBPS</span></code></td> |
| <td>int</td> |
| <td>no</td> |
| <td>Rate Limiting - Bandwidth (Gbps)</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>rateLimitingTPS</span></code></td> |
| <td>int</td> |
| <td>no</td> |
| <td>Rate Limiting - Transactions/Second</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>overflowService</span></code></td> |
| <td>string</td> |
| <td>no</td> |
| <td>An overflow point (URL or IP address) used if rate limits are met.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>headerRewriteEdge</span></code></td> |
| <td>string</td> |
| <td>no</td> |
| <td>Headers can be added or altered at each layer of the CDN.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>headerRewriteMid</span></code></td> |
| <td>string</td> |
| <td>no</td> |
| <td>Headers can be added or altered at each layer of the CDN.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>headerRewriteRedirectRouter</span></code></td> |
| <td>string</td> |
| <td>no</td> |
| <td>Headers can be added or altered at each layer of the CDN.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>notes</span></code></td> |
| <td>string</td> |
| <td>no</td> |
| <td>Additional instructions to provide the delivery service provisioning team.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"emailTo"</span><span class="p">:</span> <span class="s">"foo@bar.com"</span><span class="p">,</span> |
| <span class="s">"details"</span><span class="p">:</span> <span class="p">{</span> |
| <span class="s">"customer"</span><span class="p">:</span> <span class="s">"XYZ Corporation"</span><span class="p">,</span> |
| <span class="s">"contentType"</span><span class="p">:</span> <span class="s">"video-on-demand"</span><span class="p">,</span> |
| <span class="s">"deliveryProtocol"</span><span class="p">:</span> <span class="s">"http"</span><span class="p">,</span> |
| <span class="s">"routingType"</span><span class="p">:</span> <span class="s">"dns"</span><span class="p">,</span> |
| <span class="s">"serviceDesc"</span><span class="p">:</span> <span class="s">"service description goes here"</span><span class="p">,</span> |
| <span class="s">"peakBPSEstimate"</span><span class="p">:</span> <span class="s">"less-than-5-Gbps"</span><span class="p">,</span> |
| <span class="s">"peakTPSEstimate"</span><span class="p">:</span> <span class="s">"less-than-1000-TPS"</span><span class="p">,</span> |
| <span class="s">"maxLibrarySizeEstimate"</span><span class="p">:</span> <span class="s">"less-than-200-GB"</span><span class="p">,</span> |
| <span class="s">"originURL"</span><span class="p">:</span> <span class="s">"http://myorigin.com"</span><span class="p">,</span> |
| <span class="s">"hasOriginDynamicRemap"</span><span class="p">:</span> <span class="n">false</span><span class="p">,</span> |
| <span class="s">"originTestFile"</span><span class="p">:</span> <span class="s">"http://myorigin.com/crossdomain.xml"</span><span class="p">,</span> |
| <span class="s">"hasOriginACLWhitelist"</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span> |
| <span class="s">"originHeaders"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"otherOriginSecurity"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"queryStringHandling"</span><span class="p">:</span> <span class="s">"ignore-in-cache-key-and-pass-up"</span><span class="p">,</span> |
| <span class="s">"rangeRequestHandling"</span><span class="p">:</span> <span class="s">"range-requests-not-used"</span><span class="p">,</span> |
| <span class="s">"hasSignedURLs"</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span> |
| <span class="s">"hasNegativeCachingCustomization"</span><span class="p">:</span> <span class="n">true</span><span class="p">,</span> |
| <span class="s">"negativeCachingCustomizationNote"</span><span class="p">:</span> <span class="s">"negative caching instructions"</span><span class="p">,</span> |
| <span class="s">"serviceAliases"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="s">"http://alias1.com"</span><span class="p">,</span> |
| <span class="s">"http://alias2.com"</span> |
| <span class="p">],</span> |
| <span class="s">"rateLimitingGBPS"</span><span class="p">:</span> <span class="mi">50</span><span class="p">,</span> |
| <span class="s">"rateLimitingTPS"</span><span class="p">:</span> <span class="mi">5000</span><span class="p">,</span> |
| <span class="s">"overflowService"</span><span class="p">:</span> <span class="s">"http://overflowcdn.com"</span><span class="p">,</span> |
| <span class="s">"headerRewriteEdge"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"headerRewriteMid"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"headerRewriteRedirectRouter"</span><span class="p">:</span> <span class="s">""</span><span class="p">,</span> |
| <span class="s">"notes"</span><span class="p">:</span> <span class="s">""</span> |
| <span class="p">}</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <blockquote> |
| <div><p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="24%" /> |
| <col width="15%" /> |
| <col width="62%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">alerts</span></code></td> |
| <td>array</td> |
| <td>A collection of alert messages.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">>level</span></code></td> |
| <td>string</td> |
| <td>Success, info, warning or error.</td> |
| </tr> |
| <tr class="row-even"><td><code class="docutils literal"><span class="pre">>text</span></code></td> |
| <td>string</td> |
| <td>Alert message.</td> |
| </tr> |
| <tr class="row-odd"><td><code class="docutils literal"><span class="pre">version</span></code></td> |
| <td>string</td> |
| <td> </td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"alerts"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="p">{</span> |
| <span class="s">"level"</span><span class="p">:</span> <span class="s">"success"</span><span class="p">,</span> |
| <span class="s">"text"</span><span class="p">:</span> <span class="s">"Delivery Service request sent to foo@bar.com."</span> |
| <span class="p">}</span> |
| <span class="p">]</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>POST /api/1.2/deliveryservices</strong></p> |
| <blockquote> |
| <div><p>Allows user to create a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: admin or oper</p> |
| <p><strong>Request Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="17%" /> |
| <col width="7%" /> |
| <col width="76%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>xmlId</td> |
| <td>yes</td> |
| <td>Unique string that describes this deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td>active</td> |
| <td>yes</td> |
| <td>true if active, false if inactive.</td> |
| </tr> |
| <tr class="row-even"><td>cacheurl</td> |
| <td>no</td> |
| <td>Cache URL rule to apply to this delivery service.</td> |
| </tr> |
| <tr class="row-odd"><td>protocol</td> |
| <td>yes</td> |
| <td><ul class="first last simple"> |
| <li>0: serve with <a class="reference external" href="http://">http://</a> at EDGE</li> |
| <li>1: serve with <a class="reference external" href="https://">https://</a> at EDGE</li> |
| <li>2: serve with both <a class="reference external" href="http://">http://</a> and <a class="reference external" href="https://">https://</a> at EDGE</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-even"><td>ccrDnsTtl</td> |
| <td>no</td> |
| <td>The TTL of the DNS response for A or AAAA queries requesting the IP address of the tr.host.</td> |
| </tr> |
| <tr class="row-odd"><td>checkPath</td> |
| <td>no</td> |
| <td>The path portion of the URL to check this deliveryservice for health.</td> |
| </tr> |
| <tr class="row-even"><td>dnsBypassIp</td> |
| <td>no</td> |
| <td>The IPv4 IP to use for bypass on a DNS deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td>dnsBypassIp6</td> |
| <td>no</td> |
| <td>The IPv6 IP to use for bypass on a DNS deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-even"><td>dnsBypassTtl</td> |
| <td>no</td> |
| <td>The TTL of the DNS bypass response.</td> |
| </tr> |
| <tr class="row-odd"><td>dscp</td> |
| <td>no</td> |
| <td>The Differentiated Services Code Point (DSCP) with which to mark downstream (EDGE -> customer) traffic.</td> |
| </tr> |
| <tr class="row-even"><td>edgeHeaderRewrite</td> |
| <td>no</td> |
| <td>The EDGE header rewrite actions to perform.</td> |
| </tr> |
| <tr class="row-odd"><td>geoLimit</td> |
| <td>no</td> |
| <td><ul class="first simple"> |
| <li>0: None - no limitations</li> |
| <li>1: Only route on CZF file hit</li> |
| <li>2: Only route on CZF hit or when from geo limit countries</li> |
| </ul> |
| <p class="last">Note that this does not prevent access to content or makes content secure; it just prevents |
| routing to the content by Traffic Router.</p> |
| </td> |
| </tr> |
| <tr class="row-even"><td>geoLimitCountries</td> |
| <td>no</td> |
| <td>The geo limit countries.</td> |
| </tr> |
| <tr class="row-odd"><td>geoLimitRedirectURL</td> |
| <td>no</td> |
| <td>This is the URL Traffic Router will redirect to when Geo Limit Failure.</td> |
| </tr> |
| <tr class="row-even"><td>geoProvider</td> |
| <td>no</td> |
| <td><ul class="first last simple"> |
| <li>0: Maxmind(default)</li> |
| <li>1: Neustar</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td>globalMaxMbps</td> |
| <td>no</td> |
| <td>The maximum global bandwidth allowed on this deliveryservice. If exceeded, the traffic routes to the |
| dnsByPassIp* for DNS deliveryservices and to the httpBypassFqdn for HTTP deliveryservices.</td> |
| </tr> |
| <tr class="row-even"><td>globalMaxTps</td> |
| <td>no</td> |
| <td>The maximum global transactions per second allowed on this deliveryservice. When this is exceeded |
| traffic will be sent to the dnsByPassIp* for DNS deliveryservices and to the httpBypassFqdn for |
| HTTP deliveryservices</td> |
| </tr> |
| <tr class="row-odd"><td>httpBypassFqdn</td> |
| <td>no</td> |
| <td>The HTTP destination to use for bypass on an HTTP deliveryservice - bypass starts when serving more |
| than the globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-even"><td>infoUrl</td> |
| <td>no</td> |
| <td>Use this to add a URL that points to more information about that deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td>ipv6RoutingEnabled</td> |
| <td>no</td> |
| <td>false: send IPv4 address of Traffic Router to client on HTTP type del.</td> |
| </tr> |
| <tr class="row-even"><td>longDesc</td> |
| <td>no</td> |
| <td>Description field.</td> |
| </tr> |
| <tr class="row-odd"><td>longDesc1</td> |
| <td>no</td> |
| <td>Description field 1.</td> |
| </tr> |
| <tr class="row-even"><td>longDesc2</td> |
| <td>no</td> |
| <td>Description field 2.</td> |
| </tr> |
| <tr class="row-odd"><td>matchList</td> |
| <td>yes</td> |
| <td>Array of matchList hashes.</td> |
| </tr> |
| <tr class="row-even"><td>>type</td> |
| <td>yes</td> |
| <td>The type of MatchList (one of :ref:to-api-v12-types use_in_table=’regex’).</td> |
| </tr> |
| <tr class="row-odd"><td>>setNumber</td> |
| <td>yes</td> |
| <td>The set Number of the matchList.</td> |
| </tr> |
| <tr class="row-even"><td>>pattern</td> |
| <td>yes</td> |
| <td>The regexp for the matchList.</td> |
| </tr> |
| <tr class="row-odd"><td>maxDnsAnswers</td> |
| <td>no</td> |
| <td>The maximum number of IPs to put in a A/AAAA response for a DNS deliveryservice (0 means all |
| available).</td> |
| </tr> |
| <tr class="row-even"><td>missLat</td> |
| <td>no</td> |
| <td>The latitude to use when the client cannot be found in the CZF or the Geo lookup.</td> |
| </tr> |
| <tr class="row-odd"><td>missLong</td> |
| <td>no</td> |
| <td>The longitude to use when the client cannot be found in the CZF or the Geo lookup.</td> |
| </tr> |
| <tr class="row-even"><td>midHeaderRewrite</td> |
| <td>no</td> |
| <td>The MID header rewrite actions to perform.</td> |
| </tr> |
| <tr class="row-odd"><td>multiSiteOrigin</td> |
| <td>yes</td> |
| <td>1 if enabled, 0 if disabled.</td> |
| </tr> |
| <tr class="row-even"><td>orgServerFqdn</td> |
| <td>yes</td> |
| <td>The origin server base URL (FQDN when used in this instance, includes the |
| protocol (<a class="reference external" href="http://">http://</a> or <a class="reference external" href="https://">https://</a>) for use in retrieving content from the origin server.</td> |
| </tr> |
| <tr class="row-odd"><td>profileName</td> |
| <td>yes</td> |
| <td>Traffic router profile name, for example “CCR_CDN”</td> |
| </tr> |
| <tr class="row-even"><td>qstringIgnore</td> |
| <td>no</td> |
| <td><ul class="first last simple"> |
| <li>0: no special query string handling; it is for use in the cache-key and pass up to origin.</li> |
| <li>1: ignore query string in cache-key, but pass it up to parent and or origin.</li> |
| <li>2: drop query string at edge, and do not use it in the cache-key.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td>regexRemap</td> |
| <td>no</td> |
| <td>Regex Remap rule to apply to this delivery service at the Edge tier.</td> |
| </tr> |
| <tr class="row-even"><td>remapText</td> |
| <td>no</td> |
| <td>Additional raw remap line text.</td> |
| </tr> |
| <tr class="row-odd"><td>signed</td> |
| <td>no</td> |
| <td><ul class="first last simple"> |
| <li>false: token based auth (see :ref:token-based-auth) is not enabled for this deliveryservice.</li> |
| <li>true: token based auth is enabled for this deliveryservice.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-even"><td>rangeRequestHandling</td> |
| <td>no</td> |
| <td><p class="first">How to treat range requests:</p> |
| <ul class="last simple"> |
| <li>0 Do not cache (ranges requested from files taht are already cached due to a non range request will |
| be a HIT)</li> |
| <li>1 Use the background_fetch plugin.</li> |
| <li>2 Use the cache_range_requests plugin.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td>type</td> |
| <td>yes</td> |
| <td>The type of this deliveryservice (one of :ref:to-api-v12-types use_in_table=’deliveryservice’).</td> |
| </tr> |
| <tr class="row-even"><td>displayName</td> |
| <td>yes</td> |
| <td>Display name</td> |
| </tr> |
| <tr class="row-odd"><td>cdnName</td> |
| <td>yes</td> |
| <td>cdn name</td> |
| </tr> |
| <tr class="row-even"><td>dnsBypassCname</td> |
| <td>no</td> |
| <td>Bypass CNAME</td> |
| </tr> |
| <tr class="row-odd"><td>trResponseHeaders</td> |
| <td>no</td> |
| <td>Traffic router additional response headers</td> |
| </tr> |
| <tr class="row-even"><td>initialDispersion</td> |
| <td>no</td> |
| <td>Initial dispersion</td> |
| </tr> |
| <tr class="row-odd"><td>regionalGeoBlocking</td> |
| <td>no</td> |
| <td>Is the Regional Geo Blocking feature enabled for this delivery service.</td> |
| </tr> |
| <tr class="row-even"><td>sslKeyVersion</td> |
| <td>no</td> |
| <td>SSL key version</td> |
| </tr> |
| <tr class="row-odd"><td>originShield</td> |
| <td>no</td> |
| <td>Origin shield</td> |
| </tr> |
| <tr class="row-even"><td>trRequestHeaders</td> |
| <td>no</td> |
| <td>Traffic router log request headers</td> |
| </tr> |
| <tr class="row-odd"><td>logsEnabled</td> |
| <td>no</td> |
| <td><ul class="first last simple"> |
| <li>false: No</li> |
| <li>true: Yes</li> |
| </ul> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre>{ |
| "xmlId": "my_ds_1", |
| "displayName": "my_ds_displayname_1", |
| "protocol": "1", |
| "orgServerFqdn": "http://10.75.168.91", |
| "cdnName": "cdn_number_1", |
| "profileName": "CCR_CDN1", |
| "type": "HTTP", |
| "multiSiteOrigin": "0", |
| "active": "false", |
| "matchList": [ |
| { |
| "type": "HOST_REGEXP", |
| "pattern": ".*\\.ds_1\\..*" |
| "setNumber": "0" |
| }, |
| { |
| "type": "HOST_REGEXP", |
| "pattern": ".*\\.my_vod1\\..*" |
| "setNumber": "1" |
| } |
| ] |
| } |
| </pre></div> |
| </div> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre>{ |
| "response":{ |
| "xmlId":"my_ds_1", |
| "active":"false", |
| "protocol":"0", |
| "missLong":null, |
| "maxDnsAnswers":"0", |
| "profileName": "CCR_CDN1", |
| "multiSiteOrigin":"0", |
| "dnsBypassIp6":null, |
| "globalMaxTps":"0", |
| "orgServerFqdn":"http:\/\/10.75.168.91", |
| "infoUrl":null, |
| "rangeRequestHandling":null, |
| "id":"311", |
| "trResponseHeaders":null, |
| "ipv6RoutingEnabled":null, |
| "midHeaderRewrite":null, |
| "longDesc":null, |
| "httpBypassFqdn":null, |
| "cdnName":"cdn_number_1", |
| "protocol":"1", |
| "missLat":null, |
| "globalMaxMbps":"0", |
| "initialDispersion":null, |
| "type":"HTTP", |
| "geoLimit":null, |
| "dnsBypassTtl":null, |
| "dnsBypassCname":null, |
| "ccrDnsTtl":null, |
| "longDesc2":null, |
| "remapText":null, |
| "dnsBypassIp":null, |
| "longDesc1":null, |
| "checkPath":null, |
| "qstringIgnore":null, |
| "dscp":"1", |
| "regexRemap":null, |
| "edgeHeaderRewrite":null, |
| "sslKeyVersion":"0", |
| "displayName":"my_ds_displayname_1", |
| "cacheurl":null, |
| "signed":"0", |
| "matchList":[ |
| { |
| "type":"HOST_REGEXP", |
| "setNumber":"0", |
| "pattern":".*\\.ds_1\\..*" |
| }, |
| { |
| "type":"HOST_REGEXP", |
| "setNumber":"1", |
| "pattern":".*\\.my_vod1\\..*" |
| } |
| ], |
| "regionalGeoBlocking":0, |
| "originShield":null, |
| "trRequestHeaders":null, |
| "geoProvider":"0", |
| "logsEnabled":"false", |
| } |
| "alerts":[ |
| { |
| "level": "success", |
| "text": "Delivery service was created: 312" |
| } |
| ] |
| } |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>PUT /api/1.2/deliveryservices/{:id}</strong></p> |
| <blockquote> |
| <div><p>Allows user to edit a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: admin or oper</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="22%" /> |
| <col width="13%" /> |
| <col width="65%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>id</td> |
| <td>yes</td> |
| <td>delivery service id.</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="17%" /> |
| <col width="7%" /> |
| <col width="76%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>xmlId</td> |
| <td>yes</td> |
| <td>Unique string that describes this deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td>active</td> |
| <td>yes</td> |
| <td>true if active, false if inactive.</td> |
| </tr> |
| <tr class="row-even"><td>cacheurl</td> |
| <td>no</td> |
| <td>Cache URL rule to apply to this delivery service.</td> |
| </tr> |
| <tr class="row-odd"><td>protocol</td> |
| <td>yes</td> |
| <td><ul class="first last simple"> |
| <li>0: serve with <a class="reference external" href="http://">http://</a> at EDGE</li> |
| <li>1: serve with <a class="reference external" href="https://">https://</a> at EDGE</li> |
| <li>2: serve with both <a class="reference external" href="http://">http://</a> and <a class="reference external" href="https://">https://</a> at EDGE</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-even"><td>ccrDnsTtl</td> |
| <td>no</td> |
| <td>The TTL of the DNS response for A or AAAA queries requesting the IP address of the tr.host.</td> |
| </tr> |
| <tr class="row-odd"><td>checkPath</td> |
| <td>no</td> |
| <td>The path portion of the URL to check this deliveryservice for health.</td> |
| </tr> |
| <tr class="row-even"><td>dnsBypassIp</td> |
| <td>no</td> |
| <td>The IPv4 IP to use for bypass on a DNS deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td>dnsBypassIp6</td> |
| <td>no</td> |
| <td>The IPv6 IP to use for bypass on a DNS deliveryservice - bypass starts when serving more than the |
| globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-even"><td>dnsBypassTtl</td> |
| <td>no</td> |
| <td>The TTL of the DNS bypass response.</td> |
| </tr> |
| <tr class="row-odd"><td>dscp</td> |
| <td>no</td> |
| <td>The Differentiated Services Code Point (DSCP) with which to mark downstream (EDGE -> customer) traffic.</td> |
| </tr> |
| <tr class="row-even"><td>edgeHeaderRewrite</td> |
| <td>no</td> |
| <td>The EDGE header rewrite actions to perform.</td> |
| </tr> |
| <tr class="row-odd"><td>geoLimit</td> |
| <td>no</td> |
| <td><ul class="first simple"> |
| <li>0: None - no limitations</li> |
| <li>1: Only route on CZF file hit</li> |
| <li>2: Only route on CZF hit or when from geo limit countries</li> |
| </ul> |
| <p class="last">Note that this does not prevent access to content or makes content secure; it just prevents |
| routing to the content by Traffic Router.</p> |
| </td> |
| </tr> |
| <tr class="row-even"><td>geoLimitCountries</td> |
| <td>no</td> |
| <td>The geo limit countries.</td> |
| </tr> |
| <tr class="row-odd"><td>geoLimitRedirectURL</td> |
| <td>no</td> |
| <td>This is the URL Traffic Router will redirect to when Geo Limit Failure.</td> |
| </tr> |
| <tr class="row-even"><td>geoProvider</td> |
| <td>no</td> |
| <td><ul class="first last simple"> |
| <li>0: Maxmind(default)</li> |
| <li>1: Neustar</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td>globalMaxMbps</td> |
| <td>no</td> |
| <td>The maximum global bandwidth allowed on this deliveryservice. If exceeded, the traffic routes to the |
| dnsByPassIp* for DNS deliveryservices and to the httpBypassFqdn for HTTP deliveryservices.</td> |
| </tr> |
| <tr class="row-even"><td>globalMaxTps</td> |
| <td>no</td> |
| <td>The maximum global transactions per second allowed on this deliveryservice. When this is exceeded |
| traffic will be sent to the dnsByPassIp* for DNS deliveryservices and to the httpBypassFqdn for |
| HTTP deliveryservices</td> |
| </tr> |
| <tr class="row-odd"><td>httpBypassFqdn</td> |
| <td>no</td> |
| <td>The HTTP destination to use for bypass on an HTTP deliveryservice - bypass starts when serving more |
| than the globalMaxMbps traffic on this deliveryservice.</td> |
| </tr> |
| <tr class="row-even"><td>infoUrl</td> |
| <td>no</td> |
| <td>Use this to add a URL that points to more information about that deliveryservice.</td> |
| </tr> |
| <tr class="row-odd"><td>ipv6RoutingEnabled</td> |
| <td>no</td> |
| <td>false: send IPv4 address of Traffic Router to client on HTTP type del.</td> |
| </tr> |
| <tr class="row-even"><td>longDesc</td> |
| <td>no</td> |
| <td>Description field.</td> |
| </tr> |
| <tr class="row-odd"><td>longDesc1</td> |
| <td>no</td> |
| <td>Description field 1.</td> |
| </tr> |
| <tr class="row-even"><td>longDesc2</td> |
| <td>no</td> |
| <td>Description field 2.</td> |
| </tr> |
| <tr class="row-odd"><td>matchList</td> |
| <td>yes</td> |
| <td>Array of matchList hashes.</td> |
| </tr> |
| <tr class="row-even"><td>>type</td> |
| <td>yes</td> |
| <td>The type of MatchList (one of :ref:to-api-v12-types use_in_table=’regex’).</td> |
| </tr> |
| <tr class="row-odd"><td>>setNumber</td> |
| <td>yes</td> |
| <td>The set Number of the matchList.</td> |
| </tr> |
| <tr class="row-even"><td>>pattern</td> |
| <td>yes</td> |
| <td>The regexp for the matchList.</td> |
| </tr> |
| <tr class="row-odd"><td>maxDnsAnswers</td> |
| <td>no</td> |
| <td>The maximum number of IPs to put in a A/AAAA response for a DNS deliveryservice (0 means all |
| available).</td> |
| </tr> |
| <tr class="row-even"><td>missLat</td> |
| <td>no</td> |
| <td>The latitude to use when the client cannot be found in the CZF or the Geo lookup.</td> |
| </tr> |
| <tr class="row-odd"><td>missLong</td> |
| <td>no</td> |
| <td>The longitude to use when the client cannot be found in the CZF or the Geo lookup.</td> |
| </tr> |
| <tr class="row-even"><td>midHeaderRewrite</td> |
| <td>no</td> |
| <td>The MID header rewrite actions to perform.</td> |
| </tr> |
| <tr class="row-odd"><td>multiSiteOrigin</td> |
| <td>yes</td> |
| <td>1 if enabled, 0 if disabled.</td> |
| </tr> |
| <tr class="row-even"><td>orgServerFqdn</td> |
| <td>yes</td> |
| <td>The origin server base URL (FQDN when used in this instance, includes the |
| protocol (<a class="reference external" href="http://">http://</a> or <a class="reference external" href="https://">https://</a>) for use in retrieving content from the origin server.</td> |
| </tr> |
| <tr class="row-odd"><td>profileName</td> |
| <td>yes</td> |
| <td>Traffic router profile name, for example “CCR_CDN”</td> |
| </tr> |
| <tr class="row-even"><td>qstringIgnore</td> |
| <td>no</td> |
| <td><ul class="first last simple"> |
| <li>0: no special query string handling; it is for use in the cache-key and pass up to origin.</li> |
| <li>1: ignore query string in cache-key, but pass it up to parent and or origin.</li> |
| <li>2: drop query string at edge, and do not use it in the cache-key.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td>regexRemap</td> |
| <td>no</td> |
| <td>Regex Remap rule to apply to this delivery service at the Edge tier.</td> |
| </tr> |
| <tr class="row-even"><td>remapText</td> |
| <td>no</td> |
| <td>Additional raw remap line text.</td> |
| </tr> |
| <tr class="row-odd"><td>signed</td> |
| <td>no</td> |
| <td><ul class="first last simple"> |
| <li>false: token based auth (see :ref:token-based-auth) is not enabled for this deliveryservice.</li> |
| <li>true: token based auth is enabled for this deliveryservice.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-even"><td>rangeRequestHandling</td> |
| <td>no</td> |
| <td><p class="first">How to treat range requests:</p> |
| <ul class="last simple"> |
| <li>0 Do not cache (ranges requested from files taht are already cached due to a non range request will |
| be a HIT)</li> |
| <li>1 Use the background_fetch plugin.</li> |
| <li>2 Use the cache_range_requests plugin.</li> |
| </ul> |
| </td> |
| </tr> |
| <tr class="row-odd"><td>type</td> |
| <td>yes</td> |
| <td>The type of this deliveryservice (one of :ref:to-api-v12-types use_in_table=’deliveryservice’).</td> |
| </tr> |
| <tr class="row-even"><td>displayName</td> |
| <td>yes</td> |
| <td>Display name</td> |
| </tr> |
| <tr class="row-odd"><td>cdnName</td> |
| <td>yes</td> |
| <td>cdn name</td> |
| </tr> |
| <tr class="row-even"><td>dnsBypassCname</td> |
| <td>no</td> |
| <td>Bypass CNAME</td> |
| </tr> |
| <tr class="row-odd"><td>trResponseHeaders</td> |
| <td>no</td> |
| <td>Traffic router additional response headers</td> |
| </tr> |
| <tr class="row-even"><td>initialDispersion</td> |
| <td>no</td> |
| <td>Initial dispersion</td> |
| </tr> |
| <tr class="row-odd"><td>regionalGeoBlocking</td> |
| <td>no</td> |
| <td>Is the Regional Geo Blocking feature enabled for this delivery service.</td> |
| </tr> |
| <tr class="row-even"><td>sslKeyVersion</td> |
| <td>no</td> |
| <td>SSL key version</td> |
| </tr> |
| <tr class="row-odd"><td>originShield</td> |
| <td>no</td> |
| <td>Origin shield</td> |
| </tr> |
| <tr class="row-even"><td>trRequestHeaders</td> |
| <td>no</td> |
| <td>Traffic router log request headers</td> |
| </tr> |
| <tr class="row-odd"><td>logsEnabled</td> |
| <td>no</td> |
| <td><ul class="first last simple"> |
| <li>false: No</li> |
| <li>true: Yes</li> |
| </ul> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre>{ |
| "xmlId": "my_ds_2", |
| "displayName": "my_ds_displayname_2", |
| "protocol": "1", |
| "orgServerFqdn": "http://10.75.168.91", |
| "cdnName": "cdn_number_1", |
| "profileName": "CCR_CDN1", |
| "type": "HTTP", |
| "multiSiteOrigin": "0", |
| "active": "true", |
| "matchList": [ |
| { |
| "type": "HOST_REGEXP", |
| "pattern": ".*\\.ds_1\\..*" |
| "setNumber": "0" |
| }, |
| { |
| "type": "HOST_REGEXP", |
| "pattern": ".*\\.my_vod1\\..*" |
| "setNumber": "1" |
| } |
| ] |
| } |
| </pre></div> |
| </div> |
| <p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre>{ |
| "response":{ |
| "xmlId":"my_ds_2", |
| "active":"true", |
| "protocol":"0", |
| "missLong":null, |
| "maxDnsAnswers":"0", |
| "profileName": "CCR_CDN1", |
| "multiSiteOrigin":"0", |
| "dnsBypassIp6":null, |
| "globalMaxTps":"0", |
| "orgServerFqdn":"http:\/\/10.75.168.91", |
| "infoUrl":null, |
| "rangeRequestHandling":null, |
| "id":"311", |
| "trResponseHeaders":null, |
| "ipv6RoutingEnabled":null, |
| "midHeaderRewrite":null, |
| "longDesc":null, |
| "httpBypassFqdn":null, |
| "cdnName":"cdn_number_1", |
| "protocol":"1", |
| "missLat":null, |
| "globalMaxMbps":"0", |
| "initialDispersion":null, |
| "type":"HTTP", |
| "geoLimit":null, |
| "dnsBypassTtl":null, |
| "dnsBypassCname":null, |
| "ccrDnsTtl":null, |
| "longDesc2":null, |
| "remapText":null, |
| "dnsBypassIp":null, |
| "longDesc1":null, |
| "checkPath":null, |
| "qstringIgnore":null, |
| "dscp":"1", |
| "regexRemap":null, |
| "edgeHeaderRewrite":null, |
| "sslKeyVersion":"0", |
| "displayName":"my_ds_displayname_2", |
| "cacheurl":null, |
| "signed":"0", |
| "matchList":[ |
| { |
| "type":"HOST_REGEXP", |
| "setNumber":"0", |
| "pattern":".*\\.ds_1\\..*" |
| }, |
| { |
| "type":"HOST_REGEXP", |
| "setNumber":"1", |
| "pattern":".*\\.my_vod1\\..*" |
| } |
| ], |
| "regionalGeoBlocking":0, |
| "originShield":null, |
| "trRequestHeaders":null, |
| "geoProvider":"0", |
| "logsEnabled":"false", |
| } |
| "alerts":[ |
| { |
| "level": "success", |
| "text": "Delivery service was updated: 312" |
| } |
| ] |
| } |
| </pre></div> |
| </div> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>DELETE /api/1.2/deliveryservices/{:id}</strong></p> |
| <blockquote> |
| <div><p>Allows user to delete a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: admin or oper</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="22%" /> |
| <col width="13%" /> |
| <col width="65%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>id</td> |
| <td>yes</td> |
| <td>delivery service id.</td> |
| </tr> |
| </tbody> |
| </table> |
| <blockquote> |
| <div><p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"alerts"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="p">{</span> |
| <span class="s">"level"</span><span class="p">:</span> <span class="s">"success"</span><span class="p">,</span> |
| <span class="s">"text"</span><span class="p">:</span> <span class="s">"Delivery service was deleted."</span> |
| <span class="p">}</span> |
| <span class="p">],</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| <p><strong>POST /api/1.2/deliveryservices/:xml_id/servers</strong></p> |
| <blockquote> |
| <div><p>Assign caches to a delivery service.</p> |
| <p>Authentication Required: Yes</p> |
| <p>Role(s) Required: admin or oper</p> |
| <p><strong>Request Route Parameters</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="15%" /> |
| <col width="19%" /> |
| <col width="66%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Name</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>xml_id</td> |
| <td>yes</td> |
| <td>the xml_id of the deliveryservice</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="11%" /> |
| <col width="8%" /> |
| <col width="82%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Required</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>serverNames</td> |
| <td>yes</td> |
| <td>array of hostname of cache servers to assign to this deliveryservice, for example: [ “server1”, “server2” ]</td> |
| </tr> |
| </tbody> |
| </table> |
| <p><strong>Request Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"serverNames"</span><span class="p">:</span> <span class="p">[</span> |
| <span class="s">"tc1_ats1"</span> |
| <span class="p">]</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| <p><strong>Response Properties</strong></p> |
| <table border="1" class="docutils"> |
| <colgroup> |
| <col width="11%" /> |
| <col width="6%" /> |
| <col width="83%" /> |
| </colgroup> |
| <thead valign="bottom"> |
| <tr class="row-odd"><th class="head">Parameter</th> |
| <th class="head">Type</th> |
| <th class="head">Description</th> |
| </tr> |
| </thead> |
| <tbody valign="top"> |
| <tr class="row-even"><td>xml_id</td> |
| <td>string</td> |
| <td>Unique string that describes this delivery service.</td> |
| </tr> |
| <tr class="row-odd"><td>serverNames</td> |
| <td>string</td> |
| <td>array of hostname of cache servers to assign to this deliveryservice, for example: [ “server1”, “server2” ]</td> |
| </tr> |
| </tbody> |
| </table> |
| <blockquote> |
| <div><p><strong>Response Example</strong></p> |
| <div class="highlight-python"><div class="highlight"><pre><span class="p">{</span> |
| <span class="s">"response"</span><span class="p">:{</span> |
| <span class="s">"serverNames"</span><span class="p">:[</span> |
| <span class="s">"tc1_ats1"</span> |
| <span class="p">],</span> |
| <span class="s">"xmlId"</span><span class="p">:</span><span class="s">"my_ds_1"</span> |
| <span class="p">}</span> |
| <span class="p">}</span> |
| </pre></div> |
| </div> |
| </div></blockquote> |
| </div></blockquote> |
| <div class="line-block"> |
| <div class="line"><br /></div> |
| </div> |
| </div> |
| </div> |
| |
| |
| </div> |
| <footer> |
| |
| <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> |
| |
| <a href="deliveryservice_stats.html" class="btn btn-neutral float-right" title="Delivery Service Statistics">Next <span class="fa fa-arrow-circle-right"></span></a> |
| |
| |
| <a href="changelog.html" class="btn btn-neutral" title="Change Logs"><span class="fa fa-arrow-circle-left"></span> Previous</a> |
| |
| </div> |
| |
| |
| <hr/> |
| |
| <div role="contentinfo"> |
| <p> |
| </p> |
| </div> |
| Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. |
| |
| </footer> |
| |
| </div> |
| </div> |
| |
| </section> |
| |
| </div> |
| |
| |
| |
| |
| |
| <script type="text/javascript"> |
| var DOCUMENTATION_OPTIONS = { |
| URL_ROOT:'../../../', |
| VERSION:'master', |
| COLLAPSE_INDEX:false, |
| FILE_SUFFIX:'.html', |
| HAS_SOURCE: true |
| }; |
| </script> |
| <script type="text/javascript" src="../../../_static/jquery.js"></script> |
| <script type="text/javascript" src="../../../_static/underscore.js"></script> |
| <script type="text/javascript" src="../../../_static/doctools.js"></script> |
| |
| |
| |
| |
| |
| <script type="text/javascript" src="../../../_static/js/theme.js"></script> |
| |
| |
| |
| |
| <script type="text/javascript"> |
| jQuery(function () { |
| SphinxRtdTheme.StickyNav.enable(); |
| }); |
| </script> |
| |
| |
| </body> |
| </html> |