You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2016/11/01 21:44:44 UTC

[20/51] [partial] incubator-trafficcontrol-website git commit: updates website files except for downloads dir

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/91716725/docs/latest/_sources/development/traffic_ops_api/v12/division.txt
----------------------------------------------------------------------
diff --git a/docs/latest/_sources/development/traffic_ops_api/v12/division.txt b/docs/latest/_sources/development/traffic_ops_api/v12/division.txt
index 2110b00..2d9403a 100644
--- a/docs/latest/_sources/development/traffic_ops_api/v12/division.txt
+++ b/docs/latest/_sources/development/traffic_ops_api/v12/division.txt
@@ -22,7 +22,141 @@ Divisions
 .. _to-api-v12-division-route:
 
 /api/1.2/divisions
-++++++++++++++++++
+++++++++++++++++
+
+**GET /api/1.2/divisions**
+  Get all divisions.
+
+  Authentication Required: Yes
+
+  Role(s) Required: None
+
+  **Response Properties**
+
+  +----------------------+--------+-------------------------------------------------+
+  | Parameter            | Type   | Description                                     |
+  +======================+========+=================================================+
+  |``id``                | string | Division id                                     |
+  +----------------------+--------+-------------------------------------------------+
+  |``lastUpdated``       | string |                                                 |
+  +----------------------+--------+-------------------------------------------------+
+  |``name``              | string | Division name                                   |
+  +----------------------+--------+-------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+     "response": [
+        {
+           "id": "1"
+           "name": "Central",
+           "lastUpdated": "2014-10-02 08:22:43"
+        },
+        {
+           "id": "2"
+           "name": "West",
+           "lastUpdated": "2014-10-02 08:22:43"
+        }
+     ]
+    }
+
+|
+
+
+**GET /api/1.2/divisions/:id**
+  Get division by Id.
+
+  Authentication Required: Yes
+
+  Role(s) Required: None
+
+  **Response Properties**
+
+  +----------------------+--------+-------------------------------------------------+
+  | Parameter            | Type   | Description                                     |
+  +======================+========+=================================================+
+  |``id``                | string | Division id                                     |
+  +----------------------+--------+-------------------------------------------------+
+  |``lastUpdated``       | string |                                                 |
+  +----------------------+--------+-------------------------------------------------+
+  |``name``              | string | Division name                                   |
+  +----------------------+--------+-------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+     "response": [
+        {
+           "id": "1"
+           "name": "Central",
+           "lastUpdated": "2014-10-02 08:22:43"
+        }
+     ]
+    }
+
+|
+
+
+**PUT /api/1.2/divisions/:id**
+  Update a division
+
+  Authentication Required: Yes
+
+  Role(s) Required: admin or oper
+
+  **Request Route Parameters**
+
+  +-------------------+----------+------------------------------------------------+
+  | Name              |   Type   |                 Description                    |
+  +===================+==========+================================================+
+  | ``id``            | int      | Division id.                                   |
+  +-------------------+----------+------------------------------------------------+
+
+  **Request Properties**
+
+  +-----------+----------+--------------------------+
+  | Parameter | Required | Description              |
+  +===========+==========+==========================+
+  | ``name``  | yes      | The name of the division |
+  +-----------+----------+--------------------------+
+ 
+  **Request Example** ::
+
+    {
+        "name": "mydivision1"
+    }
+
+|
+
+  **Response Properties**
+
+  +----------------------+--------+------------------------------------------------+
+  | Parameter            | Type   | Description                                    |
+  +======================+========+================================================+
+  |``name``              | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``id``                | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``lastUpdated``       | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+
+  **Response Example** ::
+
+	{
+		"alerts": [
+			{
+				"level": "success",
+				"text": "Division update was successful."
+			}
+		],
+		"response": {
+			"id": "1",
+			"lastUpdated": "2014-03-18 08:57:39",
+			"name": "mydivision1"
+		}
+	}
+|
+
 
 **POST /api/1.2/divisions**
   Create division
@@ -38,7 +172,7 @@ Divisions
   +===========+==========+==========================+
   | ``name``  | yes      | The name of the division |
   +-----------+----------+--------------------------+
- 
+
   **Request Example** ::
 
     {

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/91716725/docs/latest/_sources/development/traffic_ops_api/v12/parameter.txt
----------------------------------------------------------------------
diff --git a/docs/latest/_sources/development/traffic_ops_api/v12/parameter.txt b/docs/latest/_sources/development/traffic_ops_api/v12/parameter.txt
index 818205c..81c00c3 100644
--- a/docs/latest/_sources/development/traffic_ops_api/v12/parameter.txt
+++ b/docs/latest/_sources/development/traffic_ops_api/v12/parameter.txt
@@ -24,7 +24,7 @@ Parameter
 /api/1.2/parameters
 +++++++++++++++++++
 
-**GET /api/1.2/parameters.json**
+**GET /api/1.2/parameters**
 
   Authentication Required: Yes
 
@@ -52,21 +52,21 @@ Parameter
      "response": [
         {
            "last_updated": "2012-09-17 21:41:22",
-           "secure": 0,
+           "secure": false,
            "value": "foo.bar.net",
            "name": "domain_name",
            "config_file": "FooConfig.xml"
         },
         {
            "last_updated": "2012-09-17 21:41:22",
-           "secure": 0,
+           "secure": false,
            "value": "0,1,2,3,4,5,6",
            "name": "Drive_Letters",
            "config_file": "storage.config"
         },
         {
            "last_updated": "2012-09-17 21:41:22",
-           "secure": 0,
+           "secure": true,
            "value": "STRING __HOSTNAME__",
            "name": "CONFIG proxy.config.proxy_name",
            "config_file": "records.config"
@@ -76,7 +76,46 @@ Parameter
 
 |
 
-**GET /api/1.2/parameters/profile/:name.json**
+**GET /api/1.2/parameters/:id**
+
+  Authentication Required: Yes
+
+  Role(s) Required: if secure of the parameter fetched is 1, require admin role, or any valid role can access.
+
+  **Response Properties**
+
+  +------------------+---------+--------------------------------------------------------------------------------+
+  |    Parameter     |  Type   |                    Description                                                 |
+  +==================+=========+================================================================================+
+  | ``id``           | integer | The parameter index                                                            |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``secure``       | boolean | When true, the parameter is accessible only by admin users. Defaults to false. |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``value``        | string  | The parameter value, only visible to admin if secure is true                   |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``name``         | string  | The parameter name                                                             |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``config_file``  | string  | The parameter config_file                                                      |
+  +------------------+---------+--------------------------------------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+      "response": [
+          {
+              "last_updated": "2012-09-17 21:41:22",
+              "secure": 0,
+              "value": "foo.bar.net",
+              "name": "domain_name",
+              "id": "27",
+              "config_file": "FooConfig.xml",
+          }
+      ]
+    }
+
+|
+
+**GET /api/1.2/profiles/:id/parameters**
 
   Authentication Required: Yes
 
@@ -84,11 +123,11 @@ Parameter
 
   **Request Route Parameters**
 
-  +------------------+----------+-------------+
-  |       Name       | Required | Description |
-  +==================+==========+=============+
-  | ``profile_name`` | yes      |             |
-  +------------------+----------+-------------+
+  +------------------+----------+-----------------------+
+  |       Name       | Required | Description           |
+  +==================+==========+=======================+
+  | ``id``           | yes      | Profile id            |
+  +------------------+----------+-----------------------+
 
   **Response Properties**
 
@@ -112,21 +151,21 @@ Parameter
      "response": [
         {
            "last_updated": "2012-09-17 21:41:22",
-           "secure": 0,
+           "secure": false,
            "value": "foo.bar.net",
            "name": "domain_name",
            "config_file": "FooConfig.xml"
         },
         {
            "last_updated": "2012-09-17 21:41:22",
-           "secure": 0,
+           "secure": false,
            "value": "0,1,2,3,4,5,6",
            "name": "Drive_Letters",
            "config_file": "storage.config"
         },
         {
            "last_updated": "2012-09-17 21:41:22",
-           "secure": 0,
+           "secure": true,
            "value": "STRING __HOSTNAME__",
            "name": "CONFIG proxy.config.proxy_name",
            "config_file": "records.config"
@@ -135,3 +174,344 @@ Parameter
     }
 
 |
+
+**GET /api/1.2/profiles/name/:name/parameters**
+
+  Authentication Required: Yes
+
+  Role(s) Required: None
+
+  **Request Route Parameters**
+
+  +------------------+----------+-----------------------+
+  |       Name       | Required | Description           |
+  +==================+==========+=======================+
+  | ``name``         | yes      | Profile name          |
+  +------------------+----------+-----------------------+
+
+  **Response Properties**
+
+  +------------------+---------+--------------------------------------------------------------------------------+
+  |    Parameter     |  Type   |                    Description                                                 |
+  +==================+=========+================================================================================+
+  | ``last_updated`` | string  | The Time / Date this server entry was last updated                             |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``secure``       | boolean | When true, the parameter is accessible only by admin users. Defaults to false. |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``value``        | string  | The parameter value, only visible to admin if secure is true                   |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``name``         | string  | The parameter name                                                             |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``config_file``  | string  | The parameter config_file                                                      |
+  +------------------+---------+--------------------------------------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+     "response": [
+        {
+           "last_updated": "2012-09-17 21:41:22",
+           "secure": false,
+           "value": "foo.bar.net",
+           "name": "domain_name",
+           "config_file": "FooConfig.xml"
+        },
+        {
+           "last_updated": "2012-09-17 21:41:22",
+           "secure": false,
+           "value": "0,1,2,3,4,5,6",
+           "name": "Drive_Letters",
+           "config_file": "storage.config"
+        },
+        {
+           "last_updated": "2012-09-17 21:41:22",
+           "secure": true,
+           "value": "STRING __HOSTNAME__",
+           "name": "CONFIG proxy.config.proxy_name",
+           "config_file": "records.config"
+        }
+     ],
+    }
+
+|
+
+**POST /api/1.2/parameters**
+  Create parameters.
+
+  Authentication Required: Yes
+
+  Role(s) Required: admin or oper
+
+  **Request Route Parameters**
+  The request route parameters accept 2 formats, both single paramter and parameters array formats are acceptable.
+
+  single parameter format:
+
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | Name           | Required | Type    | Description                                                                          |
+  +================+==========+=========+======================================================================================+
+  | ``name``       | yes      | string  | parameter name                                                                       |
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``configFile`` | yes      | string  | parameter config_file                                                                |
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``value``      | yes      | string  | parameter value                                                                      |
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``secure``     | yes      | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+
+  parameters array format:
+
+  +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | Name            | Required | Type    | Description                                                                          |
+  +=================+==========+=========+======================================================================================+
+  |                 | yes      | array   | parameters array                                                                     |
+  +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``>name``       | yes      | string  | parameter name                                                                       |
+  +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``>configFile`` | yes      | string  | parameter config_file                                                                |
+  +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``>value``      | yes      | string  | parameter value                                                                      |
+  +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``>secure``     | yes      | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+  +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+
+  **Response Properties**
+
+  +-----------------+---------+--------------------------------------------------------------------------------------+
+  | Parameter       | Type    | Description                                                                          |
+  +=================+=========+======================================================================================+
+  |                 | array   | parameters array                                                                     |
+  +-----------------+---------+--------------------------------------------------------------------------------------+
+  | ``>id``         | integer | The parameter id                                                                     |
+  +-----------------+---------+--------------------------------------------------------------------------------------+
+  | ``>name``       | string  | parameter name                                                                       |
+  +-----------------+---------+--------------------------------------------------------------------------------------+
+  | ``>configFile`` | string  | parameter config_file                                                                |
+  +-----------------+---------+--------------------------------------------------------------------------------------+
+  | ``>value``      | string  | parameter value                                                                      |
+  +-----------------+---------+--------------------------------------------------------------------------------------+
+  | ``>secure``     | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+  +-----------------+---------+--------------------------------------------------------------------------------------+
+
+  
+  **Request Example** ::
+
+  1. single parameter format exampe:
+    {
+        "name":"param1",
+        "configFile":"configFile1"
+        "value":"value1",
+        "secure":0,
+    }
+
+  2. array format example:
+    [
+        {
+            "name":"param1",
+            "configFile":"configFile1"
+            "value":"value1",
+            "secure":0,
+        }, 
+        {
+            "name":"param2",
+            "configFile":"configFile2"
+            "value":"value2",
+            "secure":1,
+        }
+    ]
+
+  **Response Example** ::
+
+    {
+        "response": [
+           {
+               "value":"value1",
+               "secure":0,
+               "name":"param1",
+               "id":"1139",
+               "configFile":"configFile1"
+           },
+           {
+               "value":"value2",
+               "secure":1,
+               "name":"param2",
+               "id":"1140",
+               "configFile":"configFile2"
+           }
+       ]
+    }
+
+|
+
+**PUT /api/1.2/parameters/{:id}**
+  Edit parameter.
+
+  Authentication Required: Yes
+
+  Role(s) Required: if the parameter's secure equals 1, only admin role can edit the parameter, or admin or oper role can access the API.
+
+  **Request Parameters**
+
+  +-----------+---------+------------------+
+  | Parameter | Type    | Description      |
+  +===========+=========+==================+
+  | ``id``    | integer | The parameter id |
+  +-----------+---------+------------------+
+
+  **Request Route Parameters**
+
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | Name           | Required | Type    | Description                                                                          |
+  +================+==========+=========+======================================================================================+
+  | ``name``       | no       | string  | parameter name                                                                       |
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``configFile`` | no       | string  | parameter config_file                                                                |
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``value``      | no       | string  | parameter value                                                                      |
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+  | ``secure``     | no       | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+  +----------------+----------+---------+--------------------------------------------------------------------------------------+
+
+  **Response Properties**
+
+  +------------------+---------+--------------------------------------------------------------------------------+
+  |    Parameter     |  Type   |                    Description                                                 |
+  +==================+=========+================================================================================+
+  |   ``id``         | integer | The parameter id                                                               |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``secure``       | integer | When 1, the parameter is accessible only by admin users. Defaults to 0.        |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``value``        | string  | The parameter value, only visible to admin if secure is true                   |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``name``         | string  | The parameter name                                                             |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``config_file``  | string  | The parameter config_file                                                      |
+  +------------------+---------+--------------------------------------------------------------------------------+
+
+  **Request Example** ::
+
+    {
+        "name":"param1",
+        "configFile":"configFile1"
+        "value":"value1",
+        "secure":"0",
+    }
+
+  **Response Example** ::
+
+    {
+     "response": {
+        "value":"value1",
+        "secure":"0",
+        "name":"param1",
+        "id":"1134",
+        "configFile":"configFile1"
+        }
+    }
+
+|
+
+**DELETE /api/1.2/parameters/{:id}**
+  delete parameter. If the parameter have profile associated, can not be deleted.
+
+  Authentication Required: Yes
+
+  Role(s) Required: admin or oper role
+
+  **Request Parameters**
+
+  +-----------+---------+------------------+
+  | Parameter | Type    | Description      |
+  +===========+=========+==================+
+  | ``id``    | integer | The parameter id |
+  +-----------+---------+------------------+
+
+  **No Request Route Parameters**
+
+  **Response Properties**
+
+  +-------------+--------+----------------------------------+
+  |  Parameter  |  Type  |           Description            |
+  +=============+========+==================================+
+  | ``alerts``  | array  | A collection of alert messages.  |
+  +-------------+--------+----------------------------------+
+  | ``>level``  | string | Success, info, warning or error. |
+  +-------------+--------+----------------------------------+
+  | ``>text``   | string | Alert message.                   |
+  +-------------+--------+----------------------------------+
+  | ``version`` | string |                                  |
+  +-------------+--------+----------------------------------+
+
+  **Response Example** ::
+
+    Response Example:
+
+    {
+      "alerts":
+        [
+          { 
+            "level": "success",
+            "text": "Parameter was successfully deleted."
+          }
+        ],
+    }
+
+|
+
+**POST /api/1.2/parameters/validate**
+  Validate if the parameter exists.
+
+  Authentication Required: Yes
+
+  Role(s) Required: None
+
+  **Request Route Parameters**
+
+  +----------------+----------+--------------------------------+
+  | Name           | Required | Type   | Description           |
+  +================+==========+================================+
+  | ``name``       | yes      | string | parameter name        |
+  +----------------+----------+--------------------------------+
+  | ``configFile`` | yes      | string | parameter config_file |
+  +----------------+----------+--------------------------------+
+  | ``value``      | yes      | string | parameter value       |
+  +----------------+----------+--------------------------------+
+
+  **Response Properties**
+
+  +------------------+---------+--------------------------------------------------------------------------------+
+  |    Parameter     |  Type   |                    Description                                                 |
+  +==================+=========+================================================================================+
+  |   ``id``         | integer | The parameter id                                                               |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``secure``       | integer | When 1, the parameter is accessible only by admin users. Defaults to 0.        |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``value``        | string  | The parameter value, only visible to admin if secure is true                   |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``name``         | string  | The parameter name                                                             |
+  +------------------+---------+--------------------------------------------------------------------------------+
+  | ``config_file``  | string  | The parameter config_file                                                      |
+  +------------------+---------+--------------------------------------------------------------------------------+
+
+  **Request Example** ::
+
+    {
+        "name":"param1",
+        "configFile":"configFile1"
+        "value":"value1",
+    }
+
+  **Response Example** ::
+
+    {
+     "response": {
+        "value":"value1",
+        "secure":"0",
+        "name":"param1",
+        "id":"1134",
+        "configFile":"configFile1"
+        }
+    }
+
+|
+

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/91716725/docs/latest/_sources/development/traffic_ops_api/v12/phys_location.txt
----------------------------------------------------------------------
diff --git a/docs/latest/_sources/development/traffic_ops_api/v12/phys_location.txt b/docs/latest/_sources/development/traffic_ops_api/v12/phys_location.txt
index ef05085..53c561f 100644
--- a/docs/latest/_sources/development/traffic_ops_api/v12/phys_location.txt
+++ b/docs/latest/_sources/development/traffic_ops_api/v12/phys_location.txt
@@ -24,7 +24,7 @@ Physical Location
 /api/1.2/phys_locations
 +++++++++++++++++++++++
 
-**GET /api/1.2/phys_locations.json**
+**GET /api/1.2/phys_locations**
 
   Authentication Required: Yes
 
@@ -35,30 +35,34 @@ Physical Location
   +----------------------+--------+------------------------------------------------+
   | Parameter            | Type   | Description                                    |
   +======================+========+================================================+
-  |``region``            | string |                                                |
-  +----------------------+--------+------------------------------------------------+
-  |``poc``               | string |                                                |
+  |``address``           | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``name``              | string |                                                |
+  |``city``              | string |                                                |
   +----------------------+--------+------------------------------------------------+
   |``comments``          | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``phone``             | string |                                                |
+  |``email``             | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``state``             | string |                                                |
+  |``id``                | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``email``             | string |                                                |
+  |``lastUpdated``       | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``city``              | string |                                                |
+  |``name``              | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``zip``               | string |                                                |
+  |``phone``             | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``id``                | string |                                                |
+  |``poc``               | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``address``           | string |                                                |
+  |``region``            | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``regionId``          | string |                                                |
   +----------------------+--------+------------------------------------------------+
   |``shortName``         | string |                                                |
   +----------------------+--------+------------------------------------------------+
+  |``state``             | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``zip``               | string |                                                |
+  +----------------------+--------+------------------------------------------------+
 
   **Response Example** ::
 
@@ -66,7 +70,9 @@ Physical Location
      "response": [
         {
            "region": "Mile High",
+           "region": "4",
            "poc": "Jane Doe",
+           "lastUpdated": "2014-10-02 08:22:43",
            "name": "Albuquerque",
            "comments": "Albuquerque",
            "phone": "(123) 555-1111",
@@ -79,20 +85,22 @@ Physical Location
            "shortName": "Albuquerque"
         },
         {
-           "region": "Chicago",
-           "poc": "John Doe",
-           "name": "Chicago",
-           "comments": "",
-           "phone": "(321) 555-1111",
-           "state": "IL",
-           "email": "john.doe@email.com",
-           "city": "Chicago",
-           "zip": "60636",
-           "id": "3",
-           "address": "123 East 4th Street",
-           "shortName": "chicago"
+           "region": "Mile High",
+           "region": "4",
+           "poc": "Jane Doe",
+           "lastUpdated": "2014-10-02 08:22:43",
+           "name": "Albuquerque",
+           "comments": "Albuquerque",
+           "phone": "(123) 555-1111",
+           "state": "NM",
+           "email": "jane.doe@email.com",
+           "city": "Albuquerque",
+           "zip": "87107",
+           "id": "2",
+           "address": "123 East 3rd St",
+           "shortName": "Albuquerque"
         }
-     ],
+     ]
     }
 
 |
@@ -126,6 +134,209 @@ Physical Location
 
 |
 
+
+**GET /api/1.2/phys_locations/:id**
+
+  Authentication Required: Yes
+
+  Role(s) Required: None
+
+  **Request Route Parameters**
+
+  +-----------+----------+---------------------------------------------+
+  |   Name    | Required |                Description                  |
+  +===========+==========+=============================================+
+  | ``id``    | yes      | Physical location ID.                       |
+  +-----------+----------+---------------------------------------------+
+
+  **Response Properties**
+
+  +----------------------+--------+------------------------------------------------+
+  | Parameter            | Type   | Description                                    |
+  +======================+========+================================================+
+  |``address``           | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``city``              | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``comments``          | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``email``             | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``id``                | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``lastUpdated``       | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``name``              | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``phone``             | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``poc``               | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``region``            | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``regionId``          | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``shortName``         | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``state``             | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``zip``               | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+     "response": [
+        {
+           "region": "Mile High",
+           "region": "4",
+           "poc": "Jane Doe",
+           "lastUpdated": "2014-10-02 08:22:43",
+           "name": "Albuquerque",
+           "comments": "Albuquerque",
+           "phone": "(123) 555-1111",
+           "state": "NM",
+           "email": "jane.doe@email.com",
+           "city": "Albuquerque",
+           "zip": "87107",
+           "id": "2",
+           "address": "123 East 3rd St",
+           "shortName": "Albuquerque"
+        }
+     ]
+    }
+
+|
+
+**PUT /api/1.2/phys_locations/:id**
+  Update a physical location
+
+  Authentication Required: Yes
+
+  Role(s) Required: admin or oper
+
+  **Request Route Parameters**
+
+  +-------------------+----------+------------------------------------------------+
+  | Name              |   Type   |                 Description                    |
+  +===================+==========+================================================+
+  | ``id``            | int      | Physical location id.                          |
+  +-------------------+----------+------------------------------------------------+
+
+  **Request Properties**
+
+  +-------------------+----------+------------------------------------------------+
+  | Parameter         | Required | Description                                    |
+  +===================+==========+================================================+
+  | ``address``       |    yes   | Physical location address.                     |
+  +-------------------+----------+------------------------------------------------+
+  | ``city``          |    yes   | Physical location city.                        |
+  +-------------------+----------+------------------------------------------------+
+  | ``comments``      |    no    | Physical location comments.                    |
+  +-------------------+----------+------------------------------------------------+
+  | ``email``         |    no    | Physical location email.                       |
+  +-------------------+----------+------------------------------------------------+
+  | ``name``          |    yes   | Physical location name.                        |
+  +-------------------+----------+------------------------------------------------+
+  | ``phone``         |    no    | Physical location phone.                       |
+  +-------------------+----------+------------------------------------------------+
+  | ``poc``           |    no    | Physical location point of contact.            |
+  +-------------------+----------+------------------------------------------------+
+  | ``regionId``      |    no    | Physical location region ID.                   |
+  +-------------------+----------+------------------------------------------------+
+  | ``shortName``     |    yes   | Physical location short name.                  |
+  +-------------------+----------+------------------------------------------------+
+  | ``state``         |    yes   | Physical location state.                       |
+  +-------------------+----------+------------------------------------------------+
+  | ``zip``           |    yes   | Physical location zip.                         |
+  +-------------------+----------+------------------------------------------------+
+
+  **Request Example** ::
+
+     {
+        "regionId": "1",
+        "poc": "Jane Doesssss",
+        "name": "Albuquerque",
+        "comments": "Albuquerque",
+        "phone": "(123) 555-1111",
+        "state": "NM",
+        "email": "jane.doe@email.com",
+        "city": "Albuquerque",
+        "zip": "87107",
+        "address": "123 East 9rd St",
+        "shortName": "Albuquerque"
+     }
+
+|
+
+
+  **Response Properties**
+
+  +----------------------+--------+------------------------------------------------+
+  | Parameter            | Type   | Description                                    |
+  +======================+========+================================================+
+  |``address``           | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``city``              | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``comments``          | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``email``             | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``id``                | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``lastUpdated``       | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``name``              | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``phone``             | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``poc``               | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``region``            | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``regionId``          | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``shortName``         | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``state``             | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``zip``               | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+
+
+  **Response Example** ::
+
+    {
+     "alerts": [
+        {
+            "level": "success",
+            "text": "Physical location update was successful."
+        }
+      ],
+     "response": [
+        {
+           "region": "Mile High",
+           "region": "4",
+           "poc": "Jane Doe",
+           "lastUpdated": "2014-10-02 08:22:43",
+           "name": "Albuquerque",
+           "comments": "Albuquerque",
+           "phone": "(123) 555-1111",
+           "state": "NM",
+           "email": "jane.doe@email.com",
+           "city": "Albuquerque",
+           "zip": "87107",
+           "id": "2",
+           "address": "123 East 3rd St",
+           "shortName": "Albuquerque"
+        }
+     ]
+    }
+
+|
+
+
 **POST /api/1.2/regions/:region_name/phys_locations**
   Create physical location.
 

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/91716725/docs/latest/_sources/development/traffic_ops_api/v12/profile.txt
----------------------------------------------------------------------
diff --git a/docs/latest/_sources/development/traffic_ops_api/v12/profile.txt b/docs/latest/_sources/development/traffic_ops_api/v12/profile.txt
index 82cb5ae..5892272 100644
--- a/docs/latest/_sources/development/traffic_ops_api/v12/profile.txt
+++ b/docs/latest/_sources/development/traffic_ops_api/v12/profile.txt
@@ -25,12 +25,20 @@ Profiles
 /api/1.2/profiles
 +++++++++++++++++
 
-**GET /api/1.2/profiles.json**
+**GET /api/1.2/profiles**
 
 	Authentication Required: Yes
 
 	Role(s) Required: None
 
+	**Request Query Parameters**
+
+	+---------------+----------+----------------------------------------------------+
+	|    Name       | Required |                    Description                     |
+	+===============+==========+====================================================+
+	| ``param``     |   no     | Used to filter profiles by parameter.              |
+	+---------------+----------+----------------------------------------------------+
+
 	**Response Properties**
 
 	+-----------------+--------+----------------------------------------------------+
@@ -60,7 +68,7 @@ Profiles
 
 |
 
-**GET /api/1.2/profiles/trimmed.json**
+**GET /api/1.2/profiles/trimmed**
 
 	Authentication Required: Yes
 
@@ -86,6 +94,50 @@ Profiles
 
 |
 
+**GET /api/1.2/profiles/:id**
+
+	Authentication Required: Yes
+
+	Role(s) Required: None
+
+	**Request Route Parameters**
+
+	+-----------------+------------+------------------------------------------------+
+	|    Parameter    |  Required  |                    Description                 |
+	+=================+============+================================================+
+	| ``id``          |    yes     | The ID of the profile.                         |
+	+-----------------+------------+------------------------------------------------+
+
+	**Response Properties**
+
+	+-----------------+--------+----------------------------------------------------+
+	|    Parameter    |  Type  |                    Description                     |
+	+=================+========+====================================================+
+	| ``lastUpdated`` | array  | The Time / Date this server entry was last updated |
+	+-----------------+--------+----------------------------------------------------+
+	| ``name``        | string | The name for the profile                           |
+	+-----------------+--------+----------------------------------------------------+
+	| ``id``          | string | Primary key                                        |
+	+-----------------+--------+----------------------------------------------------+
+	| ``description`` | string | The description for the profile                    |
+	+-----------------+--------+----------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+     "response": [
+        {
+            "lastUpdated": "2012-10-08 19:34:45",
+            "name": "CCR_TOP",
+            "id": "8",
+            "description": "Content Router for top.foobar.net"
+        }
+     ]
+    }
+
+|
+
+
 **POST /api/1.2/profiles**
     Create a new empty  profile. 
 
@@ -187,3 +239,120 @@ Profiles
     }
 
 |
+
+**PUT /api/1.2/profiles/{:id}**
+
+    Allows user to edit a profile.
+
+	Authentication Required: Yes
+
+	Role(s) Required:  admin or oper
+
+	**Request Route Parameters**
+
+	+-----------------+----------+---------------------------------------------------+
+	| Name            | Required | Description                                       |
+	+=================+==========+===================================================+
+	| ``id``          | yes      | profile id.                                       |
+	+-----------------+----------+---------------------------------------------------+
+
+	**Request Properties**
+
+	+-----------------+----------+---------------------------------------------------+
+	| Parameter       | Required | Description                                       |
+	+=================+==========+===================================================+
+	| ``name``        | yes      | The new name for the profile.                     |
+	+-----------------+----------+---------------------------------------------------+
+	| ``description`` | yes      | The new description for the profile.              |
+	+-----------------+----------+---------------------------------------------------+
+
+  **Request Example** ::
+
+    {
+      "name": "CCR_UPDATE",
+      "description": "CCR_UPDATE description"
+    }
+
+ 	**Response Properties**
+
+	+------------------+--------+----------------------------------+
+	|  Parameter       |  Type  |           Description            |
+	+==================+========+==================================+
+	| ``response``     |        | The updated profile info.        |
+	+------------------+--------+----------------------------------+
+	| ``>id``          | string | Profile id.                      |
+	+------------------+--------+----------------------------------+
+	| ``>name``        | string | Profile name.                    |
+	+------------------+--------+----------------------------------+
+	| ``>description`` | string | Profile description.             |
+	+------------------+--------+----------------------------------+
+	| ``alerts``       | array  | A collection of alert messages.  |
+	+------------------+--------+----------------------------------+
+	| ``>level``       | string | success, info, warning or error. |
+	+------------------+--------+----------------------------------+
+	| ``>text``        | string | Alert message.                   |
+	+------------------+--------+----------------------------------+
+	| ``version``      | string |                                  |
+	+------------------+--------+----------------------------------+
+
+  **Response Example** ::
+
+    {
+      "response":{
+        "id": "219",
+        "name": "CCR_UPDATE",
+        "description": "CCR_UPDATE description"
+      }
+      "alerts":[
+        {
+          "level": "success",
+          "text": "Profile was updated: 219"
+        }
+      ]
+    }
+
+|
+
+**DELETE /api/1.2/profiles/{:id}**
+
+  Allows user to delete a profile.
+
+	Authentication Required: Yes
+
+	Role(s) Required:  admin or oper
+
+	**Request Route Parameters**
+
+	+-----------------+----------+----------------------------+
+	| Name            | Required | Description                |
+	+=================+==========+============================+
+	| ``id``          | yes      | profile id.                |
+	+-----------------+----------+----------------------------+
+
+ 	**Response Properties**
+
+	+-------------+--------+----------------------------------+
+	|  Parameter  |  Type  |           Description            |
+	+=============+========+==================================+
+	| ``alerts``  | array  | A collection of alert messages.  |
+	+-------------+--------+----------------------------------+
+	| ``>level``  | string | success, info, warning or error. |
+	+-------------+--------+----------------------------------+
+	| ``>text``   | string | Alert message.                   |
+	+-------------+--------+----------------------------------+
+	| ``version`` | string |                                  |
+	+-------------+--------+----------------------------------+
+
+  **Response Example** ::
+
+    {
+      "alerts": [
+        {
+          "level": "success",
+          "text": "Profile was deleted."
+        }
+      ]
+    }
+
+|
+

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/91716725/docs/latest/_sources/development/traffic_ops_api/v12/profile_parameter.txt
----------------------------------------------------------------------
diff --git a/docs/latest/_sources/development/traffic_ops_api/v12/profile_parameter.txt b/docs/latest/_sources/development/traffic_ops_api/v12/profile_parameter.txt
new file mode 100644
index 0000000..bc16128
--- /dev/null
+++ b/docs/latest/_sources/development/traffic_ops_api/v12/profile_parameter.txt
@@ -0,0 +1,458 @@
+.. 
+.. Copyright 2015 Comcast Cable Communications Management, LLC
+.. 
+.. Licensed under the Apache License, Version 2.0 (the "License");
+.. you may not use this file except in compliance with the License.
+.. You may obtain a copy of the License at
+.. 
+..     http://www.apache.org/licenses/LICENSE-2.0
+.. 
+.. Unless required by applicable law or agreed to in writing, software
+.. distributed under the License is distributed on an "AS IS" BASIS,
+.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+.. See the License for the specific language governing permissions and
+.. limitations under the License.
+.. 
+
+.. _to-api-v12-profileparameters:
+
+
+Profile parameters
+==================
+
+.. _to-api-v12-profileparameters-route:
+
+/api/1.2/profileparameters
+++++++++++++++++++++++++++
+
+**POST /api/1.2/profileparameters**
+
+    Associate parameter to profile.
+
+	Authentication Required: Yes
+
+	Role(s) Required:  admin or oper
+
+	**Request Properties**
+	This accept two formats: single profile-parameter, profile-parameter array.
+
+	Single profile-parameter format:
+
+	+------------------+----------+----------------------------------------------------+
+	| Parameter        | Required | Description                                        |
+	+==================+==========+====================================================+
+	| ``profileId``    | yes      | profile id.                                        |
+	+------------------+----------+----------------------------------------------------+
+	| ``parameterId``  | yes      | parameter id.                                      |
+	+------------------+----------+----------------------------------------------------+
+
+	Profile-parameter array format:
+
+	+------------------+----------+----------------------------------------------------+
+	| Parameter        | Required | Description                                        |
+	+==================+==========+====================================================+
+	|                  | yes      | profile-parameter array.                           |
+	+------------------+----------+----------------------------------------------------+
+	| ``>profileId``   | yes      | profile id.                                        |
+	+------------------+----------+----------------------------------------------------+
+	| ``>parameterId`` | yes      | parameter id.                                      |
+	+------------------+----------+----------------------------------------------------+
+
+  **Request Example** ::
+
+    Single profile-parameter format:
+
+    {
+      "profileId": 2,
+      "parameterId": 6
+    }
+
+    Profile-parameter array format:
+
+    [
+        {
+          "profileId": 2,
+          "parameterId": 6
+        },
+        {
+          "profileId": 2,
+          "parameterId": 7
+        },
+        {
+          "profileId": 3,
+          "parameterId": 6
+        }
+    ]
+
+ 	**Response Properties**
+
+	+-------------------+---------+-----------------------------------------------------+
+	|  Parameter        |  Type   |           Description                               |
+	+===================+=========+=====================================================+
+	| ``response``      | array   | Profile-parameter associations.                     |
+	+-------------------+---------+-----------------------------------------------------+
+	| ``>profileId``    | string  | Profile id.                                         |
+	+-------------------+---------+-----------------------------------------------------+
+	| ``>parameterId``  | string  | Parameter id.                                       |
+	+-------------------+---------+-----------------------------------------------------+
+	| ``alerts``        | array   | A collection of alert messages.                     |
+	+-------------------+---------+-----------------------------------------------------+
+	| ``>level``        | string  | success, info, warning or error.                    |
+	+-------------------+---------+-----------------------------------------------------+
+	| ``>text``         | string  | Alert message.                                      |
+	+-------------------+---------+-----------------------------------------------------+
+	| ``version``       | string  |                                                     |
+	+-------------------+---------+-----------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+      "response":[
+        {
+          "profileId": "2",
+          "parameterId": "6"
+        },
+        {
+          "profileId": "2",
+          "parameterId": "7"
+        },
+        {
+          "profileId": "3",
+          "parameterId": "6"
+        }
+      ]
+      "alerts":[
+        {
+          "level": "success",
+          "text": "Profile parameter associations were created."
+        }
+      ]
+    }
+
+|
+
+**DELETE /api/1.2/profileparameters/{:profile_id}/{:parameter_id}**
+
+    Delete a profile parameter association.
+
+	Authentication Required: Yes
+
+	Role(s) Required:  admin or oper
+
+	**Request Route Parameters**
+
+	+------------------+----------+----------------------------------------------------+
+	| Name             | Required | Description                                        |
+	+==================+==========+====================================================+
+	| ``profile_id``   | yes      | profile id.                                        |
+	+------------------+----------+----------------------------------------------------+
+	| ``parameter_id`` | yes      | parameter id.                                      |
+	+------------------+----------+----------------------------------------------------+
+
+ 	**Response Properties**
+
+	+-------------------+--------+-----------------------------------------------------+
+	|  Parameter        |  Type  |           Description                               |
+	+===================+========+=====================================================+
+	| ``alerts``        | array  | A collection of alert messages.                     |
+	+-------------------+--------+-----------------------------------------------------+
+	| ``>level``        | string | success, info, warning or error.                    |
+	+-------------------+--------+-----------------------------------------------------+
+	| ``>text``         | string | Alert message.                                      |
+	+-------------------+--------+-----------------------------------------------------+
+	| ``version``       | string |                                                     |
+	+-------------------+--------+-----------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+      "alerts":[
+        {
+          "level": "success",
+          "text": "Profile parameter association was deleted."
+        }
+      ]
+    }
+
+|
+
+**POST /api/1.2/profiles/name/{:name}/parameters**
+
+    Associate parameters to a profile. If the parameter does not exist, create it and associate to the profile. If the parameter already exists, associate it to the profile. If the parameter already associate the profile, keep the association.
+    If the profile does not exist, the API returns fail.
+
+    Authentication Required: Yes
+
+    Role(s) Required:  admin or oper. If there is parameter's secure equals 1 in the request properties, need admin role. 
+
+	**Request Route Parameters**
+
+	+------------+----------+----------------------------------------------------+
+	| Name       | Required | Description                                        |
+	+============+==========+====================================================+
+	| ``name``   | yes      | profile name.                                      |
+	+------------+----------+----------------------------------------------------+
+
+    **Request Properties**
+    The request properties accept 2 formats, both single paramter and parameters array formats are acceptable.
+
+    single parameter format:
+
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | Name            | Required | Type    | Description                                                                          |
+    +=================+==========+=========+======================================================================================+
+    | ``name``        | yes      | string  | parameter name                                                                       |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``configFile``  | yes      | string  | parameter config_file                                                                |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``value``       | yes      | string  | parameter value                                                                      |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``secure``      | yes      | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+
+    array parameters format:
+
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | Name            | Required | Type    | Description                                                                          |
+    +=================+==========+=========+======================================================================================+
+    |                 | yes      | array   | parameters array                                                                     |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``>name``       | yes      | string  | parameter name                                                                       |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``>configFile`` | yes      | string  | parameter config_file                                                                |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``>value``      | yes      | string  | parameter value                                                                      |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``>secure``     | yes      | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+
+  **Request Example** ::
+
+    1. single parameter format exampe:  
+    {
+        "name":"param1", 
+        "configFile":"configFile1",  
+        "value":"value1",   
+        "secure":0,  
+    }
+
+    2. array format example:  
+    [
+      {
+          "name":"param1",
+          "configFile":"configFile1",
+          "value":"value1",
+          "secure":0,
+      },
+      {
+          "name":"param2",
+          "configFile":"configFile2",
+          "value":"value2",
+          "secure":1,
+      }
+    ]
+
+
+  **Response Properties** ::
+
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | Name             | Type    | Description                                                                          |
+    +==================+=========+======================================================================================+
+    | ``response``     |         | Parameters associated with the profile.                                              |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>profileName`` | string  | profile name                                                                         |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>profileId``   | integer | profile index                                                                        |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>parameters``  | array   | parameters array                                                                     |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>id``         | integer | parameter index                                                                      |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>name``       | string  | parameter name                                                                       |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>configFile`` | string  | parameter config_file                                                                |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>value``      | string  | parameter value                                                                      |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>secure``     | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``alerts``       | array   | A collection of alert messages.                                                      |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>level``       | string  | success, info, warning or error.                                                     |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>text``        | string  | Alert message.                                                                       |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``version``      | string  |                                                                                      |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+      "response":{
+        "profileName": "CCR1",
+        "profileId" : "12",
+        "parameters":[
+            {
+                "name":"param1",
+                "configFile":"configFile1"
+                "value":"value1",
+                "secure":"0",
+            },
+            {
+                "name":"param2",
+                "configFile":"configFile2"
+                "value":"value2",
+                "secure":"1",
+            }
+        ]
+      }
+      "alerts":[
+        {
+          "level": "success",
+          "text": ""Assign parameters successfully to profile CCR1"
+        }
+      ]
+    }
+
+|
+
+**POST /api/1.2/profiles/id/{:id}/parameters**
+
+    Associate parameters to a profile. If the parameter does not exist, create it and associate to the profile. If the parameter already exists, associate it to the profile. If the parameter already associate the profile, keep the association.
+    If the profile does not exist, the API returns fail.
+
+    Authentication Required: Yes
+
+    Role(s) Required:  admin or oper. If there is parameter's secure equals 1 in the request properties, need admin role. 
+
+	**Request Route Parameters**
+
+	+------------+----------+----------------------------------------------------+
+	| Name       | Required | Description                                        |
+	+============+==========+====================================================+
+	| ``id``     | yes      | profile name.                                      |
+	+------------+----------+----------------------------------------------------+
+
+    **Request Properties**
+    The request properties accept 2 formats, both single paramter and parameters array formats are acceptable.
+
+    single parameter format:
+
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | Name            | Required | Type    | Description                                                                          |
+    +=================+==========+=========+======================================================================================+
+    | ``name``        | yes      | string  | parameter name                                                                       |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``configFile``  | yes      | string  | parameter config_file                                                                |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``value``       | yes      | string  | parameter value                                                                      |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``secure``      | yes      | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+
+    array parameters format:
+
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | Name            | Required | Type    | Description                                                                          |
+    +=================+==========+=========+======================================================================================+
+    |                 | yes      | array   | parameters array                                                                     |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``>name``       | yes      | string  | parameter name                                                                       |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``>configFile`` | yes      | string  | parameter config_file                                                                |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``>value``      | yes      | string  | parameter value                                                                      |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+    | ``>secure``     | yes      | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+    +-----------------+----------+---------+--------------------------------------------------------------------------------------+
+
+  **Request Example** ::
+
+    1. single parameter format exampe:  
+    {
+        "name":"param1", 
+        "configFile":"configFile1",  
+        "value":"value1",   
+        "secure":0,  
+    }
+
+    2. array format example:  
+    [
+      {
+          "name":"param1",
+          "configFile":"configFile1",
+          "value":"value1",
+          "secure":0,
+      },
+      {
+          "name":"param2",
+          "configFile":"configFile2",
+          "value":"value2",
+          "secure":1,
+      }
+    ]
+
+
+  **Response Properties** ::
+
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | Name             | Type    | Description                                                                          |
+    +==================+=========+======================================================================================+
+    | ``response``     |         | Parameters associated with the profile.                                              |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>profileName`` | string  | profile name                                                                         |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>profileId``   | integer | profile index                                                                        |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>parameters``  | array   | parameters array                                                                     |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>id``         | integer | parameter index                                                                      |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>name``       | string  | parameter name                                                                       |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>configFile`` | string  | parameter config_file                                                                |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>value``      | string  | parameter value                                                                      |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>>secure``     | integer | secure flag, when 1, the parameter is accessible only by admin users. Defaults to 0. |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``alerts``       | array   | A collection of alert messages.                                                      |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>level``       | string  | success, info, warning or error.                                                     |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``>text``        | string  | Alert message.                                                                       |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+    | ``version``      | string  |                                                                                      |
+    +------------------+---------+--------------------------------------------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+      "response":{
+        "profileName": "CCR1",
+        "profileId" : "12",
+        "parameters":[
+            {
+                "name":"param1",
+                "configFile":"configFile1"
+                "value":"value1",
+                "secure":"0",
+            },
+            {
+                "name":"param2",
+                "configFile":"configFile2"
+                "value":"value2",
+                "secure":"1",
+            }
+        ]
+      }
+      "alerts":[
+        {
+          "level": "success",
+          "text": ""Assign parameters successfully to profile CCR1"
+        }
+      ]
+    }
+
+|
+

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol-website/blob/91716725/docs/latest/_sources/development/traffic_ops_api/v12/region.txt
----------------------------------------------------------------------
diff --git a/docs/latest/_sources/development/traffic_ops_api/v12/region.txt b/docs/latest/_sources/development/traffic_ops_api/v12/region.txt
index fc1e927..8129854 100644
--- a/docs/latest/_sources/development/traffic_ops_api/v12/region.txt
+++ b/docs/latest/_sources/development/traffic_ops_api/v12/region.txt
@@ -24,7 +24,7 @@ Regions
 /api/1.2/regions
 ++++++++++++++++
 
-**GET /api/1.2/regions.json**
+**GET /api/1.1/regions**
 
   Authentication Required: Yes
 
@@ -35,9 +35,13 @@ Regions
   +----------------------+--------+------------------------------------------------+
   | Parameter            | Type   | Description                                    |
   +======================+========+================================================+
-  |``name``              | string |                                                |
+  |``id``                | string | Region ID.                                     |
   +----------------------+--------+------------------------------------------------+
-  |``id``                | string |                                                |
+  |``name``              | string | Region name.                                   |
+  +----------------------+--------+------------------------------------------------+
+  |``division``          | string | Division ID.                                   |
+  +----------------------+--------+------------------------------------------------+
+  |``divisionName``      | string | Division name.                                 |
   +----------------------+--------+------------------------------------------------+
 
   **Response Example** ::
@@ -45,18 +49,132 @@ Regions
     {
      "response": [
         {
+           "id": "6",
            "name": "Atlanta",
-           "id": "6"
+           "division": "2",
+           "divisionName": "West"
         },
         {
-           "name": "Beltway",
-           "id": "1"
+           "id": "7",
+           "name": "Denver",
+           "division": "2",
+           "divisionName": "West"
+        },
+     ]
+    }
+
+
+**GET /api/1.1/regions/:id**
+
+  Authentication Required: Yes
+
+  Role(s) Required: None
+
+  **Request Route Parameters**
+
+  +-----------+----------+---------------------------------------------+
+  |   Name    | Required |                Description                  |
+  +===========+==========+=============================================+
+  |   ``id``  |   yes    | Region id.                                  |
+  +-----------+----------+---------------------------------------------+
+
+  **Response Properties**
+
+  +----------------------+--------+------------------------------------------------+
+  | Parameter            | Type   | Description                                    |
+  +======================+========+================================================+
+  |``id``                | string | Region ID.                                     |
+  +----------------------+--------+------------------------------------------------+
+  |``name``              | string | Region name.                                   |
+  +----------------------+--------+------------------------------------------------+
+  |``division``          | string | Division ID.                                   |
+  +----------------------+--------+------------------------------------------------+
+  |``divisionName``      | string | Division name.                                 |
+  +----------------------+--------+------------------------------------------------+
+
+  **Response Example** ::
+
+    {
+     "response": [
+        {
+           "id": "6",
+           "name": "Atlanta",
+           "division": "2",
+           "divisionName": "West"
         }
-     ],
+     ]
+    }
+
+
+**PUT /api/1.2/regions/:id**
+  Update a region
+
+  Authentication Required: Yes
+
+  Role(s) Required: admin or oper
+
+  **Request Route Parameters**
+
+  +-------------------+----------+------------------------------------------------+
+  | Name              |   Type   |                 Description                    |
+  +===================+==========+================================================+
+  | ``id``            | int      | Region id.                                     |
+  +-------------------+----------+------------------------------------------------+
+
+  **Request Properties**
+
+  +----------------+----------+--------------------------+
+  | Parameter      | Required | Description              |
+  +================+==========+==========================+
+  | ``name``       | yes      | The name of the region   |
+  +----------------+----------+--------------------------+
+  | ``division``   | yes      | The division Id          |
+  +----------------+----------+--------------------------+
+
+  **Request Example** ::
+
+    {
+        "name": "myregion1",
+        "division": "4"
     }
 
 |
 
+  **Response Properties**
+
+  +----------------------+--------+------------------------------------------------+
+  | Parameter            | Type   | Description                                    |
+  +======================+========+================================================+
+  |``division``          | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``divisionName``      | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``name``              | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``id``                | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  |``lastUpdated``       | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+
+  **Response Example** ::
+
+	{
+		"alerts": [
+			{
+				"level": "success",
+				"text": "Region update was successful."
+			}
+		],
+		"response": {
+			"id": "1",
+			"lastUpdated": "2014-03-18 08:57:39",
+			"name": "myregion1",
+			"division": "4",
+			"divisionName": "mydivision1"
+		}
+	}
+|
+
 **POST /api/1.2/divisions/:division_name/regions**
   Create Region