|
1 | 1 | Basic Concepts |
2 | 2 | ============== |
3 | 3 |
|
4 | | -Familiarizing yourself with the following underlying basic concepts will help you get up and running with the SDK. |
| 4 | +Familiarizing yourself with the following underlying basic concepts will help you get up |
| 5 | +and running with the SDK. |
5 | 6 |
|
6 | 7 | .. include:: SDK_plural_note.rst |
7 | 8 |
|
@@ -61,63 +62,78 @@ A set of basic REST endpoints can be derived from the object's URI and ``kind`` |
61 | 62 | Dynamic Attributes |
62 | 63 | ------------------ |
63 | 64 |
|
64 | | -The python object's attribute can be created dynamically based on the JSON returned when querying the REST API. |
| 65 | +The python object's attribute can be created dynamically based on the JSON returned when |
| 66 | +querying the REST API. |
65 | 67 |
|
66 | 68 | .. _kind_params_section: |
67 | 69 |
|
68 | 70 | iControl® REST ``kind`` Parameters |
69 | 71 | ---------------------------------- |
70 | 72 |
|
71 | | -Almost all iControl® REST API entries contain a parameter named ``kind``. This parameter provides information about the object that lets you know what you should expect to follow it. The iControl® REST API uses three types of ``kind``: ``collectionstate``, ``state``, and ``stats``. |
| 73 | +Almost all iControl® REST API entries contain a parameter named ``kind``. This parameter |
| 74 | +provides information about the object that lets you know what you should expect to follow |
| 75 | +it. The iControl® REST API uses three types of ``kind``: ``collectionstate``, ``state``, |
| 76 | +and ``stats``. |
72 | 77 |
|
73 | 78 | .. table:: |
74 | 79 |
|
75 | | - +---------------------+--------------------------+-------------------------------------------------+ |
76 | | - | ``kind`` | Associated Objects | Methods | |
77 | | - +=====================+==========================+=================================================+ |
78 | | - | ``collectionstate`` | |Organizing Collection|, | |exists| | |
79 | | - | | |Collection| | | |
80 | | - +---------------------+--------------------------+-------------------------------------------------+ |
81 | | - | ``state`` | |Resource| | |create|, |update|, |refresh|, |delete|, | |
82 | | - | | | |load|, |exists| | |
83 | | - +---------------------+--------------------------+-------------------------------------------------| |
84 | | - | ``state`` | |Unnamed Resource| | |update|, |refresh|, |load|, |exists| |
85 | | - +---------------------+--------------------------+-------------------------------------------------+ |
86 | | - | ``stats`` | |Resource| | |refresh|, |load|, |exists| | |
87 | | - +---------------------+--------------------------+-------------------------------------------------+ |
| 80 | + +---------------------+---------------------------+------------------------------------------+ |
| 81 | + | Kind | Associated Objects | Methods | |
| 82 | + +=====================+===========================+==========================================+ |
| 83 | + | ``collectionstate`` | * |Organizing Collection| | |exists| | |
| 84 | + | | * |Collection| | | |
| 85 | + +---------------------+---------------------------+------------------------------------------+ |
| 86 | + | ``state`` | |Resource| | * |create| | |
| 87 | + | | | * |update| | |
| 88 | + | | | * |refresh| | |
| 89 | + | | | * |delete| | |
| 90 | + | | | * |load| | |
| 91 | + | | | * |exists| | |
| 92 | + +---------------------+---------------------------+------------------------------------------+ |
| 93 | + | ``state`` | |Unnamed Resource| | * |update| | |
| 94 | + | | | * |refresh| | |
| 95 | + | | | * |load| | |
| 96 | + | | | * |exists| | |
| 97 | + +---------------------+---------------------------+------------------------------------------+ |
| 98 | + | ``stats`` | |Resource| | * |refresh| | |
| 99 | + | | | * |load| | |
| 100 | + | | | * |exists| | |
| 101 | + +---------------------+---------------------------+------------------------------------------+ |
88 | 102 |
|
89 | 103 |
|
90 | 104 | .. _methods_section: |
91 | 105 |
|
92 | 106 | Methods |
93 | 107 | ------- |
94 | 108 |
|
95 | | -+-----------+---------------+-------------------------------------------------------------------+ |
96 | | -| Method | HTTP Command | Action(s) | |
97 | | -+===========+===============+===================================================================+ |
98 | | -| |create| | POST | | creates a new resource on the device with its own URI | |
99 | | -+-----------+---------------+-------------------------------------------------------------------+ |
100 | | -| |exec_cmd|| POST | | executes commands on applicable unnamed resources | |
101 | | -+-----------+---------------+-------------------------------------------------------------------+ |
102 | | -| |update| | PUT | | submits a new configuration to the device resource; sets the | |
103 | | -| | | | Resource attributes to the state reported by the device | |
104 | | -+-----------+---------------+-------------------------------------------------------------------+ |
105 | | -| |modify| | PATCH | | submits a new configuration to the device resource; sets only | |
106 | | -| | | | the attributes specified in `modify` method. This is different | |
107 | | -| | | | from `update` because update will change all the attributes, not| |
108 | | -| | | | only the ones that you specify. | |
109 | | -+-----------+---------------+-------------------------------------------------------------------+ |
110 | | -| |refresh| | GET | | obtains the state of a device resource; sets the representing | |
111 | | -| | | | Python Resource Object; tracks device state via its attributes | |
112 | | -+-----------+---------------+-------------------------------------------------------------------+ |
113 | | -| |delete| | DELETE | | removes the resource from the device, sets ``self.__dict__`` | |
114 | | -| | | | to ``{'deleted': True}`` | |
115 | | -+-----------+---------------+-------------------------------------------------------------------+ |
116 | | -| |load| | GET | | obtains the state of an existing resource on the device; sets | |
117 | | -| | | | the Resource attributes to match that state | |
118 | | -+-----------+---------------+-------------------------------------------------------------------+ |
119 | | -| |exists| | GET | | checks for the existence of an object on the BIG-IP® | |
120 | | -+-----------+---------------+-------------------------------------------------------------------+ |
| 109 | +.. table:: |
| 110 | + |
| 111 | + +-----------+---------------+-------------------------------------------------------------------+ |
| 112 | + | Method | HTTP Command | Action(s) | |
| 113 | + +===========+===============+===================================================================+ |
| 114 | + | |create| | POST | | creates a new resource on the device with its own URI | |
| 115 | + +-----------+---------------+-------------------------------------------------------------------+ |
| 116 | + | |exec_cmd|| POST | | executes commands on applicable unnamed resources | |
| 117 | + +-----------+---------------+-------------------------------------------------------------------+ |
| 118 | + | |update| | PUT | | submits a new configuration to the device resource; sets the | |
| 119 | + | | | | Resource attributes to the state reported by the device | |
| 120 | + +-----------+---------------+-------------------------------------------------------------------+ |
| 121 | + | |modify| | PATCH | | submits a new configuration to the device resource; sets only | |
| 122 | + | | | | the attributes specified in `modify` method. This is different | |
| 123 | + | | | | from `update` because update will change all the attributes, not| |
| 124 | + | | | | only the ones that you specify. | |
| 125 | + +-----------+---------------+-------------------------------------------------------------------+ |
| 126 | + | |refresh| | GET | | obtains the state of a device resource; sets the representing | |
| 127 | + | | | | Python Resource Object; tracks device state via its attributes | |
| 128 | + +-----------+---------------+-------------------------------------------------------------------+ |
| 129 | + | |delete| | DELETE | | removes the resource from the device, sets ``self.__dict__`` | |
| 130 | + | | | | to ``{'deleted': True}`` | |
| 131 | + +-----------+---------------+-------------------------------------------------------------------+ |
| 132 | + | |load| | GET | | obtains the state of an existing resource on the device; sets | |
| 133 | + | | | | the Resource attributes to match that state | |
| 134 | + +-----------+---------------+-------------------------------------------------------------------+ |
| 135 | + | |exists| | GET | | checks for the existence of an object on the BIG-IP® | |
| 136 | + +-----------+---------------+-------------------------------------------------------------------+ |
121 | 137 |
|
122 | 138 | .. note:: |
123 | 139 |
|
|
0 commit comments