initial commit
This commit is contained in:
parent
bab6717459
commit
f5f3017731
5 changed files with 45 additions and 0 deletions
7
portainer/containers.py
Normal file
7
portainer/containers.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from .base import ApiBase
|
||||
|
||||
|
||||
class ContainersApi(ApiBase):
|
||||
def list_containers_by_endpoint(self, endpoint):
|
||||
url = f"{self.base_url}/docker/{endpoint}/snapshot/containers"
|
||||
return self.request("GET", url).json()
|
Loading…
Add table
Add a link
Reference in a new issue