2025-03-21 17:47:09 +03:00
|
|
|
import dynamix_sdk.base as _base
|
|
|
|
|
import dynamix_sdk.api._nested as _nested
|
|
|
|
|
|
|
|
|
|
|
2026-10-30 17:01:06 +03:00
|
|
|
class CloudapiComputeListResultModel(_base.ResultModel):
|
2025-03-21 17:47:09 +03:00
|
|
|
data: list[_nested.VMAPIResultNM]
|
|
|
|
|
entry_count: int
|
|
|
|
|
|
|
|
|
|
|
2026-09-18 16:06:25 +07:00
|
|
|
class CloudapiComputeListImpl(_base.APIFunctionImpl):
|
|
|
|
|
http_method = _base.HTTPMethod.POST
|
|
|
|
|
|
|
|
|
|
def __call__(
|
2025-03-21 17:47:09 +03:00
|
|
|
self,
|
|
|
|
|
*,
|
|
|
|
|
account_id: int | None = None,
|
|
|
|
|
ext_net_id: int | None = None,
|
|
|
|
|
ext_net_name: str | None = None,
|
|
|
|
|
id: int | None = None,
|
2026-10-30 17:01:06 +03:00
|
|
|
include_descendants: bool = False,
|
2025-03-21 17:47:09 +03:00
|
|
|
include_deleted: bool = False,
|
|
|
|
|
ip_addr: str | None = None,
|
|
|
|
|
name: str | None = None,
|
2025-11-25 18:09:46 +03:00
|
|
|
zone_id: int | None = None,
|
2026-09-18 16:06:25 +07:00
|
|
|
page_number: int = 1,
|
|
|
|
|
page_size: int = 100,
|
2026-10-30 17:01:06 +03:00
|
|
|
folder_id: int | None = None,
|
2025-03-21 17:47:09 +03:00
|
|
|
rg_id: int | None = None,
|
|
|
|
|
rg_name: str | None = None,
|
|
|
|
|
sort_by: str | None = None,
|
|
|
|
|
status: _nested.VMStatus | None = None,
|
|
|
|
|
tech_status: _nested.VMTechStatus | None = None,
|
|
|
|
|
) -> CloudapiComputeListResultModel:
|
2026-09-18 16:06:25 +07:00
|
|
|
raise NotImplementedError
|