You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ra...@apache.org on 2018/08/09 18:54:22 UTC

[trafficcontrol] 09/10: Changed Version

This is an automated email from the ASF dual-hosted git repository.

rawlin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit 143d3b7b4fba75e4decb4edb82ad057e0dde57a1
Author: moltzaum <ma...@moltzau.net>
AuthorDate: Wed Aug 1 09:46:39 2018 -0600

    Changed Version
---
 docs/source/api/v12/federation.rst | 119 +++++-----
 docs/source/api/v13/federation.rst | 449 -------------------------------------
 2 files changed, 67 insertions(+), 501 deletions(-)

diff --git a/docs/source/api/v12/federation.rst b/docs/source/api/v12/federation.rst
index 84ef4c8..248b972 100644
--- a/docs/source/api/v12/federation.rst
+++ b/docs/source/api/v12/federation.rst
@@ -173,21 +173,24 @@ Federation
   +---------------------+--------+----------------------------------------------------+
   | ``>>xmlId``         | string | Delivery service xml id                            |
   +---------------------+--------+----------------------------------------------------+
+  | ``lastUpdated``     | string |                                                    | 
+  +---------------------+--------+----------------------------------------------------+
 
   **Response Example** ::
 
     {
      "response": [
         {
-			"id": 41
-			"cname": "booya.com.",
-			"ttl": 34,
-			"description": "fooya",
-			"deliveryService": {
-				"id": 61,
-				"xmlId": "the-xml-id"
-			}
-		}
+            "id": 41
+            "cname": "booya.com.",
+            "ttl": 34,
+            "description": "fooya",
+            "deliveryService": {
+                "id": 61,
+                "xmlId": "the-xml-id"
+            }
+            "lastUpdated": "2018-08-01 14:41:48+00"
+        }
       ]
     }
 
@@ -226,21 +229,25 @@ Federation
   +---------------------+--------+----------------------------------------------------+
   | ``>>xmlId``         | string | Delivery service xml id                            |
   +---------------------+--------+----------------------------------------------------+
+  | ``lastUpdated``     | string |                                                    | 
+  +---------------------+--------+----------------------------------------------------+
+
 
   **Response Example** ::
 
     {
      "response": [
         {
-			"id": 41
-			"cname": "booya.com.",
-			"ttl": 34,
-			"description": "fooya",
-			"deliveryService": {
-				"id": 61,
-				"xmlId": "the-xml-id"
-			}
-		}
+            "id": 41
+            "cname": "booya.com.",
+            "ttl": 34,
+            "description": "fooya",
+            "deliveryService": {
+                "id": 61,
+                "xmlId": "the-xml-id"
+            }
+            "lastUpdated": "2018-08-01 14:41:48+00"
+        }
       ]
     }
 
@@ -288,29 +295,33 @@ Federation
   +----------------------+--------+------------------------------------------------+
   | Parameter            | Type   | Description                                    |
   +======================+========+================================================+
-  |``cname``             | string |                                                |
+  | ``cname``            | string |                                                |
+  +----------------------+--------+------------------------------------------------+
+  | ``ttl``              | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``ttl``               | string |                                                |
+  | ``description``      | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``description``       | string |                                                |
+  | ``lastUpdated``      | string |                                                |
   +----------------------+--------+------------------------------------------------+
 
+
   **Response Example** ::
 
-	{
-		"alerts": [
-			{
-				"level": "success",
-				"text": "Federation created [ cname = the.cname. ] with id: 26."
-			}
-		],
-		"response": {
-			"id": 26,
-			"cname": "the.cname.com.",
-			"ttl": 48,
-			"description": "the description",
-		}
-	}
+    {
+        "alerts": [
+            {
+                "level": "success",
+                "text": "Federation created [ cname = the.cname. ] with id: 26."
+            }
+        ],
+        "response": {
+            "id": 26,
+            "cname": "the.cname.com.",
+            "ttl": 48,
+            "description": "the description",
+            "lastUpdated": "2018-08-01 14:41:48+00"
+        }
+    }
 
 |
 
@@ -358,29 +369,33 @@ Federation
   +----------------------+--------+------------------------------------------------+
   | Parameter            | Type   | Description                                    |
   +======================+========+================================================+
-  |``cname``             | string |                                                |
+  | ``cname``            | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``ttl``               | string |                                                |
+  | ``ttl``              | string |                                                |
   +----------------------+--------+------------------------------------------------+
-  |``description``       | string |                                                |
+  | ``description``      | string |                                                |
+  +----------------------+--------+------------------------------------------------+ 
+  | ``lastUpdated``      | string |                                                |
   +----------------------+--------+------------------------------------------------+
 
+
   **Response Example** ::
 
-	{
-		"alerts": [
-			{
-				"level": "success",
-				"text": "Federation updated [ cname = the.cname. ] with id: 26."
-			}
-		],
-		"response": {
-			"id": 26,
-			"cname": "the.cname.com.",
-			"ttl": 48,
-			"description": "the description",
-		}
-	}
+    {
+        "alerts": [
+            {
+                "level": "success",
+                "text": "Federation updated [ cname = the.cname. ] with id: 26."
+            }
+        ],
+        "response": {
+            "id": 26,
+            "cname": "the.cname.com.",
+            "ttl": 48,
+            "description": "the description",
+            "lastUpdated": "2018-08-01 14:41:48+00"
+        }
+    }
 
 |
 
diff --git a/docs/source/api/v13/federation.rst b/docs/source/api/v13/federation.rst
deleted file mode 100644
index 4fe08fa..0000000
--- a/docs/source/api/v13/federation.rst
+++ /dev/null
@@ -1,449 +0,0 @@
-.. 
-.. 
-.. 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-federation:
-
-Federation 
-==========
-
-.. _to-api-v12-federation-route:
-
-/api/1.3/federations
-++++++++++++++++++++
-
-**GET /api/1.3/federations.json**
-
-  Retrieves a list of federation mappings (aka federation resolvers) for a the current user.
-
-  Authentication Required: Yes
-
-  Role(s) Required: Federation
-
-  **Response Properties**
-
-  +---------------------+--------+----------------------------------------------------+
-  |    Parameter        |  Type  |                   Description                      |
-  +=====================+========+====================================================+
-  | ``cname``           | string |                                                    |
-  +---------------------+--------+----------------------------------------------------+
-  | ``ttl``             |  int   | Time to live for the cname.                        |
-  +---------------------+--------+----------------------------------------------------+
-  | ``deliveryService`` | string | Unique string that describes the deliveryservice.  |
-  +---------------------+--------+----------------------------------------------------+
-
-  **Response Example** ::
-
-    {
-     "response": [
-        {
-          "mappings": [
-            "cname": "cname-01.",
-            "ttl": 8865,
-          ]
-          "deliveryService": "ds-01",
-        }
-      ]
-    }
-
-|
-
-**POST /api/1.3/federations.json**
-
-  Allows a user to add federations for their delivery service(s).
-
-  Authentication Required: Yes
-
-  Role(s) Required: Federation
-
-  **Request Properties**
-
-  +---------------------+--------+----------------------------------------------------+
-  |    Parameter        |  Type  |                   Description                      |
-  +=====================+========+====================================================+
-  | ``deliveryService`` | string | Unique string that describes the deliveryservice.  |
-  +---------------------+--------+----------------------------------------------------+
-  | ``resolve4``        | array  | Array of IPv4 Addresses.                           |
-  +---------------------+--------+----------------------------------------------------+
-  | ``resolve6``        | array  | Array of IPv6 Addresses.                           |
-  +---------------------+--------+----------------------------------------------------+
-
-  **Request Example** ::
-
-    {
-      "federations": [
-        {
-          "deliveryService": "ccp-omg-01",
-          "mappings": {
-            "resolve4": [
-              "255.255.255.255"
-            ],
-            "resolve6": [
-              "FE80::0202:B3FF:FE1E:8329",
-            ]
-          }
-        }
-      ]
-    }
-
-|
-
-**DELETE /api/1.3/federations.json**
-
-  Deletes **all** federations associated with a user's delivery service(s).
-
-  Authentication Required: Yes
-
-  Role(s) Required: Federation
-
-|
-
-
-**PUT /api/1.3/federations.json**
-
-  Deletes **all** federations associated with a user's delivery service(s) then adds the new federations.
-
-  Authentication Required: Yes
-
-  Role(s) Required: Federation
-
-  **Request Properties**
-
-  +---------------------+--------+----------------------------------------------------+
-  |    Parameter        |  Type  |                   Description                      |
-  +=====================+========+====================================================+
-  | ``deliveryService`` | string | Unique string that describes the deliveryservice.  |
-  +---------------------+--------+----------------------------------------------------+
-  | ``resolve4``        | array  | Array of IPv4 Addresses.                           |
-  +---------------------+--------+----------------------------------------------------+
-  | ``resolve6``        | array  | Array of IPv6 Addresses.                           |
-  +---------------------+--------+----------------------------------------------------+
-
-  **Request Example** ::
-
-    {
-      "federations": [
-        {
-          "deliveryService": "ccp-omg-01",
-          "mappings": {
-            "resolve4": [
-              "255.255.255.255"
-            ],
-            "resolve6": [
-              "FE80::0202:B3FF:FE1E:8329",
-            ]
-          }
-        }
-      ]
-    }
-
-|
-
-**GET /api/1.3/cdns/:name/federations**
-
-  Retrieves a list of federations for a cdn.
-
-  Authentication Required: Yes
-
-  Role(s) Required: None
-
-  **Response Properties**
-
-  +---------------------+--------+----------------------------------------------------+
-  |    Parameter        |  Type  |                   Description                      |
-  +=====================+========+====================================================+
-  | ``cname``           | string |                                                    |
-  +---------------------+--------+----------------------------------------------------+
-  | ``ttl``             |  int   | Time to live for the cname.                        |
-  +---------------------+--------+----------------------------------------------------+
-  | ``deliveryService`` |  hash  |                                                    |
-  +---------------------+--------+----------------------------------------------------+
-  | ``>>id``            |  int   | Delivery service ID                                |
-  +---------------------+--------+----------------------------------------------------+
-  | ``>>xmlId``         | string | Delivery service xml id                            |
-  +---------------------+--------+----------------------------------------------------+
-  | ``lastUpdated``     | string |                                                    | 
-  +---------------------+--------+----------------------------------------------------+
-
-  **Response Example** ::
-
-    {
-     "response": [
-        {
-            "id": 41
-            "cname": "booya.com.",
-            "ttl": 34,
-            "description": "fooya",
-            "deliveryService": {
-                "id": 61,
-                "xmlId": "the-xml-id"
-            }
-            "lastUpdated": "2018-08-01 14:41:48+00"
-        }
-      ]
-    }
-
-|
-
-**GET /api/1.3/cdns/:name/federations/:id**
-
-  Retrieves a federation for a cdn.
-
-  Authentication Required: Yes
-
-  Role(s) Required: None
-
-  **Request Route Parameters**
-
-  +-------------------+----------+------------------------------------------------+
-  | Name              |   Type   |                 Description                    |
-  +===================+==========+================================================+
-  | ``cdn``           | string   | CDN name.                                      |
-  +-------------------+----------+------------------------------------------------+
-  | ``federation``    | string   | Federation ID.                                 |
-  +-------------------+----------+------------------------------------------------+
-
-  **Response Properties**
-
-  +---------------------+--------+----------------------------------------------------+
-  |    Parameter        |  Type  |                   Description                      |
-  +=====================+========+====================================================+
-  | ``cname``           | string |                                                    |
-  +---------------------+--------+----------------------------------------------------+
-  | ``ttl``             |  int   | Time to live for the cname.                        |
-  +---------------------+--------+----------------------------------------------------+
-  | ``deliveryService`` |  hash  |                                                    |
-  +---------------------+--------+----------------------------------------------------+
-  | ``>>id``            |  int   | Delivery service ID                                |
-  +---------------------+--------+----------------------------------------------------+
-  | ``>>xmlId``         | string | Delivery service xml id                            |
-  +---------------------+--------+----------------------------------------------------+
-  | ``lastUpdated``     | string |                                                    | 
-  +---------------------+--------+----------------------------------------------------+
-
-
-  **Response Example** ::
-
-    {
-     "response": [
-        {
-            "id": 41
-            "cname": "booya.com.",
-            "ttl": 34,
-            "description": "fooya",
-            "deliveryService": {
-                "id": 61,
-                "xmlId": "the-xml-id"
-            }
-            "lastUpdated": "2018-08-01 14:41:48+00"
-        }
-      ]
-    }
-
-|
-
-**POST /api/1.3/cdns/:name/federations**
-  Create a federation
-
-  Authentication Required: Yes
-
-  Role(s) Required: Admin
-
-  **Request Route Parameters**
-
-  +-------------------+----------+------------------------------------------------+
-  | Name              |   Type   |                 Description                    |
-  +===================+==========+================================================+
-  | ``cdn``           | string   | CDN name.                                      |
-  +-------------------+----------+------------------------------------------------+
-
-  **Request Properties**
-
-  +----------------------+----------+--------------------------+
-  | Parameter            | Required | Description              |
-  +======================+==========+==========================+
-  | ``cname``            | yes      | CNAME ending with a dot  |
-  +----------------------+----------+--------------------------+
-  | ``ttl``              | yes      | TTL                      |
-  +----------------------+----------+--------------------------+
-  | ``description``      | no       | Description              |
-  +----------------------+----------+--------------------------+
-
-  **Request Example** ::
-
-    {
-        "cname": "the.cname.com.",
-        "ttl": 48,
-        "description": "the description"
-    }
-
-|
-
-  **Response Properties**
-
-  +----------------------+--------+------------------------------------------------+
-  | Parameter            | Type   | Description                                    |
-  +======================+========+================================================+
-  | ``cname``            | string |                                                |
-  +----------------------+--------+------------------------------------------------+
-  | ``ttl``              | string |                                                |
-  +----------------------+--------+------------------------------------------------+
-  | ``description``      | string |                                                |
-  +----------------------+--------+------------------------------------------------+
-  | ``lastUpdated``      | string |                                                |
-  +----------------------+--------+------------------------------------------------+
-
-
-  **Response Example** ::
-
-    {
-        "alerts": [
-            {
-                "level": "success",
-                "text": "Federation created [ cname = the.cname. ] with id: 26."
-            }
-        ],
-        "response": {
-            "id": 26,
-            "cname": "the.cname.com.",
-            "ttl": 48,
-            "description": "the description",
-            "lastUpdated": "2018-08-01 14:41:48+00"
-        }
-    }
-
-|
-
-**PUT /api/1.3/cdns/:name/federations/:id**
-  Update a federation
-
-  Authentication Required: Yes
-
-  Role(s) Required: Admin
-
-  **Request Route Parameters**
-
-  +-------------------+----------+------------------------------------------------+
-  | Name              |   Type   |                 Description                    |
-  +===================+==========+================================================+
-  | ``cdn``           | string   | CDN name.                                      |
-  +-------------------+----------+------------------------------------------------+
-  | ``federation``    | string   | Federation ID.                                 |
-  +-------------------+----------+------------------------------------------------+
-
-  **Request Properties**
-
-  +----------------------+----------+--------------------------+
-  | Parameter            | Required | Description              |
-  +======================+==========+==========================+
-  | ``cname``            | yes      | CNAME ending with a dot  |
-  +----------------------+----------+--------------------------+
-  | ``ttl``              | yes      | TTL                      |
-  +----------------------+----------+--------------------------+
-  | ``description``      | no       | Description              |
-  +----------------------+----------+--------------------------+
-
-  **Request Example** ::
-
-    {
-        "cname": "the.cname.com.",
-        "ttl": 48,
-        "description": "the description"
-    }
-
-|
-
-  **Response Properties**
-
-  +----------------------+--------+------------------------------------------------+
-  | Parameter            | Type   | Description                                    |
-  +======================+========+================================================+
-  | ``cname``            | string |                                                |
-  +----------------------+--------+------------------------------------------------+
-  | ``ttl``              | string |                                                |
-  +----------------------+--------+------------------------------------------------+
-  | ``description``      | string |                                                |
-  +----------------------+--------+------------------------------------------------+ 
-  | ``lastUpdated``      | string |                                                |
-  +----------------------+--------+------------------------------------------------+
-
-
-  **Response Example** ::
-
-    {
-        "alerts": [
-            {
-                "level": "success",
-                "text": "Federation updated [ cname = the.cname. ] with id: 26."
-            }
-        ],
-        "response": {
-            "id": 26,
-            "cname": "the.cname.com.",
-            "ttl": 48,
-            "description": "the description",
-            "lastUpdated": "2018-08-01 14:41:48+00"
-        }
-    }
-
-|
-
-**DELETE /api/1.3/cdns/:name/federations/{:id}**
-
-  Allow user to delete a federation.
-
-  Authentication Required: Yes
-
-  Role(s) Required: Admin
-
-  **Request Route Parameters**
-
-  +-------------------+----------+------------------------------------------------+
-  | Name              |   Type   |                 Description                    |
-  +===================+==========+================================================+
-  | ``cdn``           | string   | CDN name.                                      |
-  +-------------------+----------+------------------------------------------------+
-  | ``federation``    | string   | Federation 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": "Federation deleted [ cname = the.cname. ] with id: 26."
-                    }
-            ],
-    }
-
-|
-
-
-
-