You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by gi...@apache.org on 2017/09/26 21:37:41 UTC
[2/2] incubator-trafficcontrol-website git commit: Update docs from
commit 6c0ad39899cf5531b4d760ddf6c47e2dc9574906
Update docs from commit 6c0ad39899cf5531b4d760ddf6c47e2dc9574906
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/commit/23868dc6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/tree/23868dc6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/diff/23868dc6
Branch: refs/heads/asf-site
Commit: 23868dc63a3e82c9559b7fedb7f0354b99b532bc
Parents: 92b0140
Author: jenkins <bu...@apache.org>
Authored: Tue Sep 26 21:37:38 2017 +0000
Committer: jenkins <bu...@apache.org>
Committed: Tue Sep 26 21:37:38 2017 +0000
----------------------------------------------------------------------
.../v12/profile_parameter.rst.txt | 116 ++++++++++++
.../traffic_ops_api/v12/profile_parameter.html | 178 +++++++++++++++++++
docs/master/searchindex.js | 2 +-
3 files changed, 295 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/23868dc6/docs/master/_sources/development/traffic_ops_api/v12/profile_parameter.rst.txt
----------------------------------------------------------------------
diff --git a/docs/master/_sources/development/traffic_ops_api/v12/profile_parameter.rst.txt b/docs/master/_sources/development/traffic_ops_api/v12/profile_parameter.rst.txt
index 31b5789..e8534d9 100644
--- a/docs/master/_sources/development/traffic_ops_api/v12/profile_parameter.rst.txt
+++ b/docs/master/_sources/development/traffic_ops_api/v12/profile_parameter.rst.txt
@@ -455,3 +455,119 @@ Profile parameters
|
+**POST /api/1.2/profileparameter**
+
+ Create one or more profile / parameter assignments.
+
+ Authentication Required: Yes
+
+ Role(s) Required: Admin or Operations
+
+ **Request Parameters**
+
+ +---------------------------------+----------+-------------------------------------------------------------------+
+ | Name | Required | Description |
+ +=================================+==========+===================================================================+
+ | ``profileId`` | yes | The ID of the profile. |
+ +---------------------------------+----------+-------------------------------------------------------------------+
+ | ``paramIds`` | yes | An array of parameter IDs. |
+ +---------------------------------+----------+-------------------------------------------------------------------+
+ | ``replace`` | no | Replace existing profile/param assignments? (true|false) |
+ +---------------------------------+----------+-------------------------------------------------------------------+
+
+ **Request Example** ::
+
+ {
+ "profileId": 22,
+ "paramIds": [ 2, 3, 4, 5, 6 ],
+ "replace": true
+ }
+
+ **Response Properties**
+
+ +------------------------------------+--------+-------------------------------------------------------------------+
+ | Parameter | Type | Description |
+ +====================================+========+===================================================================+
+ | ``profileId`` | int | The ID of the profile. |
+ +------------------------------------+--------+-------------------------------------------------------------------+
+ | ``paramIds`` | array | An array of parameter IDs. |
+ +------------------------------------+--------+-------------------------------------------------------------------+
+ | ``replace`` | bool | Existing profile/param assignments replaced? (true|false). |
+ +------------------------------------+--------+-------------------------------------------------------------------+
+
+ **Response Example** ::
+
+ {
+ "alerts": [
+ {
+ "level": "success",
+ "text": "14 parameters where assigned to the foo profile."
+ }
+ ],
+ "response": {
+ "profileId" : 22,
+ "paramIds" : [ 2, 3, 4, 5, 6 ],
+ "replace" : true
+ }
+ }
+
+|
+
+**POST /api/1.2/parameterprofile**
+
+ Create one or more parameter / profile assignments.
+
+ Authentication Required: Yes
+
+ Role(s) Required: Admin or Operations
+
+ **Request Parameters**
+
+ +---------------------------------+----------+-------------------------------------------------------------------+
+ | Name | Required | Description |
+ +=================================+==========+===================================================================+
+ | ``paramId`` | yes | The ID of the parameter. |
+ +---------------------------------+----------+-------------------------------------------------------------------+
+ | ``profileIds`` | yes | An array of profile IDs. |
+ +---------------------------------+----------+-------------------------------------------------------------------+
+ | ``replace`` | no | Replace existing param/profile assignments? (true|false) |
+ +---------------------------------+----------+-------------------------------------------------------------------+
+
+ **Request Example** ::
+
+ {
+ "paramId": 22,
+ "profileIds": [ 2, 3, 4, 5, 6 ],
+ "replace": true
+ }
+
+ **Response Properties**
+
+ +------------------------------------+--------+-------------------------------------------------------------------+
+ | Parameter | Type | Description |
+ +====================================+========+===================================================================+
+ | ``paramId`` | int | The ID of the parameter. |
+ +------------------------------------+--------+-------------------------------------------------------------------+
+ | ``profileIds`` | array | An array of profile IDs. |
+ +------------------------------------+--------+-------------------------------------------------------------------+
+ | ``replace`` | bool | Existing param/profile assignments replaced? (true|false). |
+ +------------------------------------+--------+-------------------------------------------------------------------+
+
+ **Response Example** ::
+
+ {
+ "alerts": [
+ {
+ "level": "success",
+ "text": "14 profiles where assigned to the bar parameter."
+ }
+ ],
+ "response": {
+ "paramId" : 22,
+ "profileIds" : [ 2, 3, 4, 5, 6 ],
+ "replace" : true
+ }
+ }
+
+|
+
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/23868dc6/docs/master/development/traffic_ops_api/v12/profile_parameter.html
----------------------------------------------------------------------
diff --git a/docs/master/development/traffic_ops_api/v12/profile_parameter.html b/docs/master/development/traffic_ops_api/v12/profile_parameter.html
index 2bb39b7..23f4942 100644
--- a/docs/master/development/traffic_ops_api/v12/profile_parameter.html
+++ b/docs/master/development/traffic_ops_api/v12/profile_parameter.html
@@ -826,6 +826,184 @@ The request properties accept 2 formats, both single paramter and parameters arr
<div class="line-block">
<div class="line"><br /></div>
</div>
+<p><strong>POST /api/1.2/profileparameter</strong></p>
+<blockquote>
+<div><p>Create one or more profile / parameter assignments.</p>
+<p>Authentication Required: Yes</p>
+<p>Role(s) Required: Admin or Operations</p>
+<p><strong>Request Parameters</strong></p>
+<table border="1" class="docutils">
+<colgroup>
+<col width="30%" />
+<col width="9%" />
+<col width="61%" />
+</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">profileId</span></code></td>
+<td>yes</td>
+<td>The ID of the profile.</td>
+</tr>
+<tr class="row-odd"><td><code class="docutils literal"><span class="pre">paramIds</span></code></td>
+<td>yes</td>
+<td>An array of parameter IDs.</td>
+</tr>
+<tr class="row-even"><td><code class="docutils literal"><span class="pre">replace</span></code></td>
+<td>no</td>
+<td>Replace existing profile/param assignments? (true|false)</td>
+</tr>
+</tbody>
+</table>
+<p><strong>Request Example</strong></p>
+<div class="highlight-default"><div class="highlight"><pre><span class="p">{</span>
+ <span class="s2">"profileId"</span><span class="p">:</span> <span class="mi">22</span><span class="p">,</span>
+ <span class="s2">"paramIds"</span><span class="p">:</span> <span class="p">[</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span> <span class="p">],</span>
+ <span class="s2">"replace"</span><span class="p">:</span> <span class="n">true</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+<p><strong>Response Properties</strong></p>
+<table border="1" class="docutils">
+<colgroup>
+<col width="32%" />
+<col width="7%" />
+<col width="60%" />
+</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">profileId</span></code></td>
+<td>int</td>
+<td>The ID of the profile.</td>
+</tr>
+<tr class="row-odd"><td><code class="docutils literal"><span class="pre">paramIds</span></code></td>
+<td>array</td>
+<td>An array of parameter IDs.</td>
+</tr>
+<tr class="row-even"><td><code class="docutils literal"><span class="pre">replace</span></code></td>
+<td>bool</td>
+<td>Existing profile/param assignments replaced? (true|false).</td>
+</tr>
+</tbody>
+</table>
+<p><strong>Response Example</strong></p>
+<div class="highlight-default"><div class="highlight"><pre><span class="p">{</span>
+ <span class="s2">"alerts"</span><span class="p">:</span> <span class="p">[</span>
+ <span class="p">{</span>
+ <span class="s2">"level"</span><span class="p">:</span> <span class="s2">"success"</span><span class="p">,</span>
+ <span class="s2">"text"</span><span class="p">:</span> <span class="s2">"14 parameters where assigned to the foo profile."</span>
+ <span class="p">}</span>
+ <span class="p">],</span>
+ <span class="s2">"response"</span><span class="p">:</span> <span class="p">{</span>
+ <span class="s2">"profileId"</span> <span class="p">:</span> <span class="mi">22</span><span class="p">,</span>
+ <span class="s2">"paramIds"</span> <span class="p">:</span> <span class="p">[</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span> <span class="p">],</span>
+ <span class="s2">"replace"</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>POST /api/1.2/parameterprofile</strong></p>
+<blockquote>
+<div><p>Create one or more parameter / profile assignments.</p>
+<p>Authentication Required: Yes</p>
+<p>Role(s) Required: Admin or Operations</p>
+<p><strong>Request Parameters</strong></p>
+<table border="1" class="docutils">
+<colgroup>
+<col width="30%" />
+<col width="9%" />
+<col width="61%" />
+</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">paramId</span></code></td>
+<td>yes</td>
+<td>The ID of the parameter.</td>
+</tr>
+<tr class="row-odd"><td><code class="docutils literal"><span class="pre">profileIds</span></code></td>
+<td>yes</td>
+<td>An array of profile IDs.</td>
+</tr>
+<tr class="row-even"><td><code class="docutils literal"><span class="pre">replace</span></code></td>
+<td>no</td>
+<td>Replace existing param/profile assignments? (true|false)</td>
+</tr>
+</tbody>
+</table>
+<p><strong>Request Example</strong></p>
+<div class="highlight-default"><div class="highlight"><pre><span class="p">{</span>
+ <span class="s2">"paramId"</span><span class="p">:</span> <span class="mi">22</span><span class="p">,</span>
+ <span class="s2">"profileIds"</span><span class="p">:</span> <span class="p">[</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span> <span class="p">],</span>
+ <span class="s2">"replace"</span><span class="p">:</span> <span class="n">true</span>
+<span class="p">}</span>
+</pre></div>
+</div>
+<p><strong>Response Properties</strong></p>
+<table border="1" class="docutils">
+<colgroup>
+<col width="32%" />
+<col width="7%" />
+<col width="60%" />
+</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">paramId</span></code></td>
+<td>int</td>
+<td>The ID of the parameter.</td>
+</tr>
+<tr class="row-odd"><td><code class="docutils literal"><span class="pre">profileIds</span></code></td>
+<td>array</td>
+<td>An array of profile IDs.</td>
+</tr>
+<tr class="row-even"><td><code class="docutils literal"><span class="pre">replace</span></code></td>
+<td>bool</td>
+<td>Existing param/profile assignments replaced? (true|false).</td>
+</tr>
+</tbody>
+</table>
+<p><strong>Response Example</strong></p>
+<div class="highlight-default"><div class="highlight"><pre><span class="p">{</span>
+ <span class="s2">"alerts"</span><span class="p">:</span> <span class="p">[</span>
+ <span class="p">{</span>
+ <span class="s2">"level"</span><span class="p">:</span> <span class="s2">"success"</span><span class="p">,</span>
+ <span class="s2">"text"</span><span class="p">:</span> <span class="s2">"14 profiles where assigned to the bar parameter."</span>
+ <span class="p">}</span>
+ <span class="p">],</span>
+ <span class="s2">"response"</span><span class="p">:</span> <span class="p">{</span>
+ <span class="s2">"paramId"</span> <span class="p">:</span> <span class="mi">22</span><span class="p">,</span>
+ <span class="s2">"profileIds"</span> <span class="p">:</span> <span class="p">[</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span> <span class="p">],</span>
+ <span class="s2">"replace"</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>
</div>
</div>