blob: 4238fc7100b41e11465a0e24bd3abf246819dbbf [file] [log] [blame]
..
.. 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-type:
Types
=====
.. _to-api-v12-types-route:
/api/1.2/types
++++++++++++++
**GET /api/1.1/types**
Authentication Required: Yes
Role(s) Required: None
**Request Query Parameters**
+----------------+----------+----------------------------------------------------+
| Name | Required | Description |
+================+==========+====================================================+
| ``useInTable`` | no | Filter types by the table in which they apply |
+----------------+----------+----------------------------------------------------+
**Response Properties**
+----------------------+--------+------------------------------------------------+
| Parameter | Type | Description |
+======================+========+================================================+
|``id`` | string | |
+----------------------+--------+------------------------------------------------+
|``name`` | string | |
+----------------------+--------+------------------------------------------------+
|``description`` | string | |
+----------------------+--------+------------------------------------------------+
|``useInTable`` | string | |
+----------------------+--------+------------------------------------------------+
|``lastUpdated`` | string | |
+----------------------+--------+------------------------------------------------+
**Response Example** ::
{
"response": [
{
"id": "22",
"name": "AAAA_RECORD",
"description": "Static DNS AAAA entry",
"useInTable": "staticdnsentry",
"lastUpdated": "2013-10-23 15:28:31"
}
]
}
|
**GET /api/1.1/types/trimmed**
Authentication Required: Yes
Role(s) Required: None
**Response Properties**
+----------------------+--------+------------------------------------------------+
| Parameter | Type | Description |
+======================+========+================================================+
|``name`` | string | |
+----------------------+--------+------------------------------------------------+
**Response Example** ::
{
"response": [
{
"name": "AAAA_RECORD"
},
{
"name": "ACTIVE_DIRECTORY"
},
{
"name": "A_RECORD"
},
{
"name": "CCR"
}
],
}
**GET /api/1.1/types/:id**
Authentication Required: Yes
Role(s) Required: None
**Request Route Parameters**
+----------------+----------+----------------------------------------------------+
| Name | Required | Description |
+================+==========+====================================================+
| ``id`` | yes | Type ID. |
+----------------+----------+----------------------------------------------------+
**Response Properties**
+----------------------+--------+------------------------------------------------+
| Parameter | Type | Description |
+======================+========+================================================+
|``id`` | string | |
+----------------------+--------+------------------------------------------------+
|``name`` | string | |
+----------------------+--------+------------------------------------------------+
|``description`` | string | |
+----------------------+--------+------------------------------------------------+
|``useInTable`` | string | |
+----------------------+--------+------------------------------------------------+
|``lastUpdated`` | string | |
+----------------------+--------+------------------------------------------------+
**Response Example** ::
{
"response": [
{
"id": "22",
"name": "AAAA_RECORD",
"description": "Static DNS AAAA entry",
"useInTable": "staticdnsentry",
"lastUpdated": "2013-10-23 15:28:31"
}
]
}
|