You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param image: :class:`BoundImage <hcloud.images.client.BoundImage>` or :class:`Image <hcloud.images.domain.Image>`
99
+
:param status: List[str] (optional)
100
+
Response will have only actions with specified statuses. Choices: `running` `success` `error`
94
101
:param sort: List[str] (optional)
95
102
Specify how the results are sorted. Choices: `id` `id:asc` `id:desc` `command` `command:asc` `command:desc` `status` `status:asc` `status:desc` `progress` `progress:asc` `progress:desc` `started` `started:asc` `started:desc` `finished` `finished:asc` `finished:desc`
96
103
:param page: int (optional)
@@ -102,6 +109,8 @@ def get_actions_list(self,
102
109
params= {}
103
110
ifsortisnotNone:
104
111
params["sort"] =sort
112
+
ifstatusisnotNone:
113
+
params["status"] =status
105
114
ifpageisnotNone:
106
115
params["page"] =page
107
116
ifper_pageisnotNone:
@@ -112,17 +121,20 @@ def get_actions_list(self,
112
121
113
122
defget_actions(self,
114
123
image, # type: Image
115
-
sort=None, # type: Optional[List[str]]
124
+
sort=None, # type: Optional[List[str]]
125
+
status=None, # type: Optional[List[str]]
116
126
):
117
127
# type: (...) -> List[BoundAction]
118
128
"""Returns all action objects for an image.
119
129
120
130
:param image: :class:`BoundImage <hcloud.images.client.BoundImage>` or :class:`Image <hcloud.images.domain.Image>`
131
+
:param status: List[str] (optional)
132
+
Response will have only actions with specified statuses. Choices: `running` `success` `error`
121
133
:param sort: List[str] (optional)
122
134
Specify how the results are sorted. Choices: `id` `command` `status` `progress` `started` `finished` . You can add one of ":asc", ":desc" to modify sort order. ( ":asc" is default)
0 commit comments