MCPcopy Index your code
hub / github.com/docker/docker-py / inspect_node

Method inspect_node

docker/api/swarm.py:199–214  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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',

Callers 3

test_inspect_nodeMethod · 0.80
test_update_nodeMethod · 0.80
getMethod · 0.80

Calls 3

_urlMethod · 0.80
_resultMethod · 0.80
_getMethod · 0.80

Tested by 2

test_inspect_nodeMethod · 0.64
test_update_nodeMethod · 0.64