Retrieve low-level information about a swarm node Args: node_id (string): ID of the node to be inspected. Returns: A dictionary containing data about this node. Raises: :py:class:`docker.errors.APIError` If the s
(self, node_id)
| 197 | @utils.check_resource('node_id') |
| 198 | @utils.minimum_version('1.24') |
| 199 | def inspect_node(self, node_id): |
| 200 | """ |
| 201 | Retrieve low-level information about a swarm node |
| 202 | |
| 203 | Args: |
| 204 | node_id (string): ID of the node to be inspected. |
| 205 | |
| 206 | Returns: |
| 207 | A dictionary containing data about this node. |
| 208 | |
| 209 | Raises: |
| 210 | :py:class:`docker.errors.APIError` |
| 211 | If the server returns an error. |
| 212 | """ |
| 213 | url = self._url('/nodes/{0}', node_id) |
| 214 | return self._result(self._get(url), True) |
| 215 | |
| 216 | @utils.minimum_version('1.24') |
| 217 | def join_swarm(self, remote_addrs, join_token, listen_addr='0.0.0.0:2377', |