Перейти к содержанию

Сервисы

Общая информация

В API Нимбиус управление сервисами реализуется через следующие коллекции:

  • /api/services — Сервисы

Информация о сервисах

Список сервисов

Формат запроса

GET /api/services

Запрос

Пример запроса
curl -i 'https://nimbius-portal-admin/api/services\
?limit=10\
&offset=0\
&sort_by=created_at\
&sort_order=desc\
&filter[]=ancestry=null\
&filter[]=display=true\
&filter[]=retired=false\
&filter[]=custom_attributes.name=archive_state\
&attributes=chargeback_report,evm_owner.userid,v_total_vms,power_state,all_service_children,custom_attributes,tags\
&expand=resources' \
    -H 'accept: application/json' \
    -H 'authorization: Basic dXNlck5hbWU6dXNlclBhc3N3b3Jk'

Ответ

Пример ответа
{
    "name": "services",
    "count": 5967,
    "subcount": 1,
    "subquery_count": 1,
    "pages": 1,
    "resources": [
        {
            "href": "https://nimbius-portal-admin/api/services/6663",
            "id": "6663",
            "name": "s-demo-dit010",
            "description": "Создание виртуальной машины в частном облаке",
            "guid": "addfa7e1-5b6a-4205-a6a2-841ca8dc5d67",
            "type": null,
            "service_template_id": "4",
            "options": {
                "dialog": {
                    "dialog_tag_0_environment": "zvirt",
                    "dialog_tag_0_location": "zvengine.lab.local",
                    "dialog_placement_rp_name": null,
                    "dialog_service_name": "s-demo-dit010",
                    "dialog_service_description": null,
                    "dialog_source_id": "10829",
                    "dialog_option_0_cpu_flavor": "1x1",
                    "dialog_vm_memory": "2048",
                    "dialog_base_disks_size": "8",
                    "dialog_tag_0_disk_type": null,
                    "dialog_vlan": "StendCloud-3328 (StendCloud-3328)",
                    "dialog_vm_name": "v-demo-dit010",
                    "dialog_vm_description": "created by Nimbius cloud",
                    "dialog_additional_disk_size": null,
                    "dialog_additional_disk_type": null,
                    "dialog_service_billing": "true",
                    "dialog_rollback_enable": "true",
                    "dialog_cpu_flavor": "1x1",
                    "dialog_owner_email": "keycloak-test@cloud.lab",
                    "dialog_owner_first_name": "keycloak-test",
                    "dialog_owner_last_name": "keycloak-test",
                    "dialog_guid": "13b631ce-e8c6-4721-ad83-b3a2e522c860",
                    "dialog_name": "debian12-cloud-template",
                    "dialog_number_of_vms": 1,
                    "dialog_number_of_sockets": 1,
                    "dialog_cores_per_socket": 1,
                    "dialog_memory_reserve": "2048",
                    "dialog_memory_limit": "2048",
                    "dialog_disk_format": "thick",
                    "dialog_dns_servers": "10.31.137.2",
                    "dialog_addr_mode": "static",
                    "dialog_sysprep_enabled": "fields",
                    "dialog_sysprep_computer_name": "v-demo-dit010",
                    "dialog_sysprep_domain_name": "cloud.lab",
                    "dialog_sysprep_domain": "cloud.lab",
                    "dialog_linux_host_name": "v-demo-dit010",
                    "dialog_linux_domain_name": "cloud.lab",
                    "dialog_dns_suffixes": "cloud.lab",
                    "dialog_sysprep_spec_override": true,
                    "dialog_sysprep_organization": "Jet",
                    "dialog_sysprep_timezone": "145",
                    "dialog_sysprep_full_name": "Jet_infosystems",
                    "dialog_request_type": "template",
                    "dialog_ipam_type": "netbox",
                    "dialog_vm_target_hostname": "v-demo-dit010",
                    "dialog_domain_controller": "dc01",
                    "dialog_domain_name": "cloud.lab",
                    "dialog_custom_ou": "OU=Tenants,OU=Servers,OU=Cloud",
                    "dialog_dns_domain": "cloud.lab",
                    "dialog_pshost": "ps01.cloud.lab",
                    "dialog_service_id": "6663",
                    "dialog_requester_group_name": "NimbiusStend_Admins",
                    "dialog_nimbius_placement_environment": "zvirt",
                    "dialog_nimbius_placement_location": "zvengine.lab.local",
                    "dialog_nimbius_placement_network": "StendCloud-3328 (StendCloud-3328)",
                    "dialog_nimbius_placement_source": "debian12-cloud-template",
                    "dialog_nimbius_placement_addr_mode": "static",
                    "dialog_nimbius_placement_ipam": "netbox",
                    "dialog_nimbius_placement_vlan_id": "3328"
                },
                "power_status": "stop_complete"
            },
            "visible": true,
            "created_at": "2025-09-30T13:17:02Z",
            "updated_at": "2025-12-08T07:56:17Z",
            "evm_owner_id": "119",
            "miq_group_id": "276",
            "retired": false,
            "retires_on": "2026-02-28T20:59:59Z",
            "retirement_warn": null,
            "retirement_last_warn": null,
            "retirement_state": null,
            "retirement_requester": null,
            "tenant_id": "1",
            "ancestry": null,
            "initiator": "user",
            "lifecycle_state": "provisioned",
            "currency_id": null,
            "price": null,
            "picture": null,
            "chargeback_report": {
                "results": [
                    {
                        "start_date": "2025-09-01T00:00:00.000Z",
                        "display_range": "Sep 2025",
                        "vm_id": "11527",
                        "vm_name": "v-demo-dit010",
                        "cpu_allocated_cost": null,
                        "cpu_used_metric": null,
                        "cpu_used_cost": null,
                        "memory_allocated_cost": null,
                        "memory_used_metric": null,
                        "memory_used_cost": null,
                        "disk_io_used_metric": null,
                        "disk_io_used_cost": null,
                        "net_io_used_metric": null,
                        "net_io_used_cost": null,
                        "storage_allocated_metric": null,
                        "storage_allocated_cost": null,
                        "storage_used_metric": null,
                        "storage_used_cost": null,
                        "id": null
                    },
                    {
                        "start_date": "2025-10-01T00:00:00.000Z",
                        "display_range": "Oct 2025",
                        "vm_id": "11527",
                        "vm_name": "v-demo-dit010",
                        "cpu_allocated_cost": null,
                        "cpu_used_metric": null,
                        "cpu_used_cost": null,
                        "memory_allocated_cost": null,
                        "memory_used_metric": null,
                        "memory_used_cost": null,
                        "disk_io_used_metric": null,
                        "disk_io_used_cost": null,
                        "net_io_used_metric": null,
                        "net_io_used_cost": null,
                        "storage_allocated_metric": null,
                        "storage_allocated_cost": null,
                        "storage_used_metric": null,
                        "storage_used_cost": null,
                        "id": null
                    },
                    {
                        "start_date": "2025-11-01T00:00:00.000Z",
                        "display_range": "Nov 2025",
                        "vm_id": "11527",
                        "vm_name": "v-demo-dit010",
                        "cpu_allocated_cost": null,
                        "cpu_used_metric": null,
                        "cpu_used_cost": null,
                        "memory_allocated_cost": null,
                        "memory_used_metric": null,
                        "memory_used_cost": null,
                        "disk_io_used_metric": null,
                        "disk_io_used_cost": null,
                        "net_io_used_metric": null,
                        "net_io_used_cost": null,
                        "storage_allocated_metric": null,
                        "storage_allocated_cost": null,
                        "storage_used_metric": null,
                        "storage_used_cost": null,
                        "id": null
                    },
                    {
                        "start_date": "2025-12-01T00:00:00.000Z",
                        "display_range": "Dec 2025",
                        "vm_id": "11527",
                        "vm_name": "v-demo-dit010",
                        "cpu_allocated_cost": null,
                        "cpu_used_metric": null,
                        "cpu_used_cost": null,
                        "memory_allocated_cost": null,
                        "memory_used_metric": null,
                        "memory_used_cost": null,
                        "disk_io_used_metric": null,
                        "disk_io_used_cost": null,
                        "net_io_used_metric": null,
                        "net_io_used_cost": null,
                        "storage_allocated_metric": null,
                        "storage_allocated_cost": null,
                        "storage_used_metric": null,
                        "storage_used_cost": null,
                        "id": null
                    }
                ]
            },
            "evm_owner": {
                "userid": "keycloak-test"
            },
            "v_total_vms": 1,
            "power_state": "off",
            "all_service_children": [],
            "custom_attributes": [
                {
                    "id": "35645",
                    "section": null,
                    "name": "archive_state",
                    "value": "false",
                    "resource_type": "Service",
                    "resource_id": "6663",
                    "source": "EVM",
                    "description": null,
                    "value_interpolated": null,
                    "unique_name": null,
                    "serialized_value": "false"
                }
            ],
            "tags": [
                {
                    "href": "https://nimbius-portal-admin/api/tags/248",
                    "id": "248",
                    "name": "/managed/environment/zvirt"
                },
                {
                    "href": "https://nimbius-portal-admin/api/tags/50",
                    "id": "50",
                    "name": "/managed/department/support"
                }
            ],
            "actions": [
                {
                    "name": "edit",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "edit",
                    "method": "patch",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "edit",
                    "method": "put",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "retire",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "request_retire",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "set_ownership",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "start",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "stop",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "suspend",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "delete",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "add_resource",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "remove_all_resources",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "remove_resource",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "add_provider_vms",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                },
                {
                    "name": "queue_chargeback_report",
                    "method": "post",
                    "href": "https://nimbius-portal-admin/api/services/6663"
                }
            ]
        }
    ],
    "actions": [
        {
            "name": "query",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "create",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "edit",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "retire",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "request_retire",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "set_ownership",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "delete",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "start",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "stop",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "suspend",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "assign_tags",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "unassign_tags",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "add_resource",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "remove_all_resources",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "remove_resource",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "add_provider_vms",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        },
        {
            "name": "queue_chargeback_report",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services"
        }
    ],
    "links": {
        "self": "https://nimbius-portal-admin/api/services?limit=10\u0026offset=0\u0026sort_by=created_at\u0026sort_order=desc\u0026filter[]=ancestry%3Dnull\u0026filter[]=display%3Dtrue\u0026filter[]=retired%3Dfalse\u0026filter[]=custom_attributes.name%3Darchive_state\u0026attributes=picture,picture.image_href,chargeback_report,evm_owner.userid,v_total_vms,power_state,all_service_children,custom_attributes,tags\u0026expand=resources",
        "first": "https://nimbius-portal-admin/api/services?limit=10\u0026offset=0\u0026sort_by=created_at\u0026sort_order=desc\u0026filter[]=ancestry%3Dnull\u0026filter[]=display%3Dtrue\u0026filter[]=retired%3Dfalse\u0026filter[]=custom_attributes.name%3Darchive_state\u0026attributes=picture,picture.image_href,chargeback_report,evm_owner.userid,v_total_vms,power_state,all_service_children,custom_attributes,tags\u0026expand=resources",
        "last": "https://nimbius-portal-admin/api/services?limit=10\u0026offset=0\u0026sort_by=created_at\u0026sort_order=desc\u0026filter[]=ancestry%3Dnull\u0026filter[]=display%3Dtrue\u0026filter[]=retired%3Dfalse\u0026filter[]=custom_attributes.name%3Darchive_state\u0026attributes=picture,picture.image_href,chargeback_report,evm_owner.userid,v_total_vms,power_state,all_service_children,custom_attributes,tags\u0026expand=resources"
    }
}

Детальная информация о сервисе

Формат запроса

GET /api/services/{service_id}

  • {service_id} - ИД сервиса

Запрос

Пример запроса
curl -i 'https://nimbius-portal-admin/api/services/6663\
?expand=generic_objects,orchestration_stacks,vms\
&filter[]=service_id=nil\
&attributes=actions,\
aggregate_all_vm_disk_count,\
aggregate_all_vm_disk_space_allocated,\
aggregate_all_vm_disk_space_used,\
aggregate_all_vm_memory,\
aggregate_all_vm_memory_on_disk,\
aggregate_all_vm_cpus,\
chargeback_report,\
created_at,\
custom_actions,\
custom_attributes,\
description,\
evm_owner.name,\
generic_object
evm_owner.userid,\s.generic_object_definition,\
generic_objects.picture,\
guid,\
miq_group.description,\
name,\
options,\
parent_service,\
power_state,\
power_status,\
retired,\
retirement_state,\
retirement_warn,\
retires_on,\
service_resources,\
service_template,\
type,\
vms.cpu_usagemhz_rate_average_avg_over_time_period,\
vms.hardware,\
vms.hardware.aggregate_cpu_speed,\
vms.ipaddresses,\
vms.max_mem_usage_absolute_average_avg_over_time_period,\
vms.snapshots,\
vms.supported_consoles,\
vms.v_snapshot_newest_name,\
vms.v_snapshot_newest_timestamp,\
vms.v_total_snapshots,\
vms.host,\
miq_request,\
custom_attributes' \
    -H 'accept: application/json' \
    -H 'authorization: Basic dXNlck5hbWU6dXNlclBhc3N3b3Jk'

Ответ

Пример ответа
{
    "href": "https://nimbius-portal-admin/api/services/6663",
    "created_at": "2025-09-30T13:17:02Z",
    "description": "Создание виртуальной машины в частном облаке",
    "guid": "addfa7e1-5b6a-4205-a6a2-841ca8dc5d67",
    "name": "s-demo-dit010",
    "options": {
        "dialog": {
            "dialog_tag_0_environment": "zvirt",
            "dialog_tag_0_location": "zvengine.lab.local",
            "dialog_placement_rp_name": null,
            "dialog_service_name": "s-demo-dit010",
            "dialog_service_description": null,
            "dialog_source_id": "10829",
            "dialog_option_0_cpu_flavor": "1x1",
            "dialog_vm_memory": "2048",
            "dialog_base_disks_size": "8",
            "dialog_tag_0_disk_type": null,
            "dialog_vlan": "StendCloud-3328 (StendCloud-3328)",
            "dialog_vm_name": "v-demo-dit010",
            "dialog_vm_description": "created by Nimbius cloud",
            "dialog_additional_disk_size": null,
            "dialog_additional_disk_type": null,
            "dialog_service_billing": "true",
            "dialog_rollback_enable": "true",
            "dialog_cpu_flavor": "1x1",
            "dialog_owner_email": "keycloak-test@cloud.lab",
            "dialog_owner_first_name": "keycloak-test",
            "dialog_owner_last_name": "keycloak-test",
            "dialog_guid": "13b631ce-e8c6-4721-ad83-b3a2e522c860",
            "dialog_name": "debian12-cloud-template",
            "dialog_number_of_vms": 1,
            "dialog_number_of_sockets": 1,
            "dialog_cores_per_socket": 1,
            "dialog_memory_reserve": "2048",
            "dialog_memory_limit": "2048",
            "dialog_disk_format": "thick",
            "dialog_dns_servers": "10.31.137.2",
            "dialog_addr_mode": "static",
            "dialog_sysprep_enabled": "fields",
            "dialog_sysprep_computer_name": "v-demo-dit010",
            "dialog_sysprep_domain_name": "cloud.lab",
            "dialog_sysprep_domain": "cloud.lab",
            "dialog_linux_host_name": "v-demo-dit010",
            "dialog_linux_domain_name": "cloud.lab",
            "dialog_dns_suffixes": "cloud.lab",
            "dialog_sysprep_spec_override": true,
            "dialog_sysprep_organization": "Jet",
            "dialog_sysprep_timezone": "145",
            "dialog_sysprep_full_name": "Jet_infosystems",
            "dialog_request_type": "template",
            "dialog_ipam_type": "netbox",
            "dialog_vm_target_hostname": "v-demo-dit010",
            "dialog_domain_controller": "dc01",
            "dialog_domain_name": "cloud.lab",
            "dialog_custom_ou": "OU=Tenants,OU=Servers,OU=Cloud",
            "dialog_dns_domain": "cloud.lab",
            "dialog_pshost": "ps01.cloud.lab",
            "dialog_service_id": "6663",
            "dialog_requester_group_name": "NimbiusStend_Admins",
            "dialog_nimbius_placement_environment": "zvirt",
            "dialog_nimbius_placement_location": "zvengine.lab.local",
            "dialog_nimbius_placement_network": "StendCloud-3328 (StendCloud-3328)",
            "dialog_nimbius_placement_source": "debian12-cloud-template",
            "dialog_nimbius_placement_addr_mode": "static",
            "dialog_nimbius_placement_ipam": "netbox",
            "dialog_nimbius_placement_vlan_id": "3328"
        },
        "power_status": "stop_complete"
    },
    "retired": false,
    "retirement_state": null,
    "retirement_warn": null,
    "retires_on": "2026-02-28T20:59:59Z",
    "type": null,
    "id": "6663",
    "aggregate_all_vm_disk_count": 1,
    "aggregate_all_vm_disk_space_allocated": 8589934592,
    "aggregate_all_vm_disk_space_used": 8590098432,
    "aggregate_all_vm_memory": 2048,
    "aggregate_all_vm_memory_on_disk": 0,
    "aggregate_all_vm_cpus": 2,
    "chargeback_report": {
        "results": [
            {
                "start_date": "2025-09-01T00:00:00.000Z",
                "display_range": "Sep 2025",
                "vm_id": "11527",
                "vm_name": "v-demo-dit010",
                "cpu_allocated_cost": null,
                "cpu_used_metric": null,
                "cpu_used_cost": null,
                "memory_allocated_cost": null,
                "memory_used_metric": null,
                "memory_used_cost": null,
                "disk_io_used_metric": null,
                "disk_io_used_cost": null,
                "net_io_used_metric": null,
                "net_io_used_cost": null,
                "storage_allocated_metric": null,
                "storage_allocated_cost": null,
                "storage_used_metric": null,
                "storage_used_cost": null,
                "id": null
            },
            {
                "start_date": "2025-10-01T00:00:00.000Z",
                "display_range": "Oct 2025",
                "vm_id": "11527",
                "vm_name": "v-demo-dit010",
                "cpu_allocated_cost": null,
                "cpu_used_metric": null,
                "cpu_used_cost": null,
                "memory_allocated_cost": null,
                "memory_used_metric": null,
                "memory_used_cost": null,
                "disk_io_used_metric": null,
                "disk_io_used_cost": null,
                "net_io_used_metric": null,
                "net_io_used_cost": null,
                "storage_allocated_metric": null,
                "storage_allocated_cost": null,
                "storage_used_metric": null,
                "storage_used_cost": null,
                "id": null
            },
            {
                "start_date": "2025-11-01T00:00:00.000Z",
                "display_range": "Nov 2025",
                "vm_id": "11527",
                "vm_name": "v-demo-dit010",
                "cpu_allocated_cost": null,
                "cpu_used_metric": null,
                "cpu_used_cost": null,
                "memory_allocated_cost": null,
                "memory_used_metric": null,
                "memory_used_cost": null,
                "disk_io_used_metric": null,
                "disk_io_used_cost": null,
                "net_io_used_metric": null,
                "net_io_used_cost": null,
                "storage_allocated_metric": null,
                "storage_allocated_cost": null,
                "storage_used_metric": null,
                "storage_used_cost": null,
                "id": null
            },
            {
                "start_date": "2025-12-01T00:00:00.000Z",
                "display_range": "Dec 2025",
                "vm_id": "11527",
                "vm_name": "v-demo-dit010",
                "cpu_allocated_cost": null,
                "cpu_used_metric": null,
                "cpu_used_cost": null,
                "memory_allocated_cost": null,
                "memory_used_metric": null,
                "memory_used_cost": null,
                "disk_io_used_metric": null,
                "disk_io_used_cost": null,
                "net_io_used_metric": null,
                "net_io_used_cost": null,
                "storage_allocated_metric": null,
                "storage_allocated_cost": null,
                "storage_used_metric": null,
                "storage_used_cost": null,
                "id": null
            }
        ]
    },
    "custom_actions": {
        "buttons": [],
        "button_groups": []
    },
    "custom_attributes": [
        {
            "id": "35641",
            "section": null,
            "name": "addr_mode",
            "value": "static",
            "resource_type": "Service",
            "resource_id": "6663",
            "source": "EVM",
            "description": null,
            "value_interpolated": null,
            "unique_name": null,
            "serialized_value": "static"
        },
        {
            "id": "35642",
            "section": null,
            "name": "vm provision requests",
            "value": "21284",
            "resource_type": "Service",
            "resource_id": "6663",
            "source": "EVM",
            "description": null,
            "value_interpolated": null,
            "unique_name": null,
            "serialized_value": "21284"
        },
        {
            "id": "35644",
            "section": null,
            "name": "vms_ip_address",
            "value": "10.31.243.89",
            "resource_type": "Service",
            "resource_id": "6663",
            "source": "EVM",
            "description": null,
            "value_interpolated": null,
            "unique_name": null,
            "serialized_value": "10.31.243.89"
        },
        {
            "id": "35645",
            "section": null,
            "name": "archive_state",
            "value": "false",
            "resource_type": "Service",
            "resource_id": "6663",
            "source": "EVM",
            "description": null,
            "value_interpolated": null,
            "unique_name": null,
            "serialized_value": "false"
        },
        {
            "id": "35646",
            "section": null,
            "name": "archive_date",
            "value": "2025-12-30 23:59:59",
            "resource_type": "Service",
            "resource_id": "6663",
            "source": "EVM",
            "description": null,
            "value_interpolated": null,
            "unique_name": null,
            "serialized_value": "2025-12-30 23:59:59"
        }
    ],
    "evm_owner": {
        "name": "keycloak-test",
        "userid": "keycloak-test"
    },
    "miq_group": {
        "description": "NimbiusStend_Admins"
    },
    "parent_service": null,
    "picture": null,
    "power_state": "off",
    "power_status": "stop_complete",
    "service_resources": [
        {
            "id": "8086",
            "service_template_id": null,
            "resource_id": "11527",
            "resource_type": "VmOrTemplate",
            "group_idx": 0,
            "scaling_min": 1,
            "scaling_max": -1,
            "start_action": null,
            "start_delay": null,
            "stop_action": null,
            "stop_delay": null,
            "created_at": "2025-09-30T13:20:57Z",
            "updated_at": "2025-09-30T13:20:57Z",
            "name": null,
            "service_id": "6663",
            "source_id": null,
            "source_type": null,
            "provision_index": 0,
            "options": {},
            "status": null
        }
    ],
    "service_template": {
        "id": "4",
        "name": "Виртуальная машина",
        "description": "Создание виртуальной машины в частном облаке",
        "guid": "0283f899-2dcf-4a65-8e5e-eee78b0095b5",
        "type": null,
        "service_template_id": null,
        "options": {},
        "created_at": "2024-12-12T22:13:31Z",
        "updated_at": "2024-12-17T08:28:01Z",
        "display": true,
        "evm_owner_id": null,
        "miq_group_id": "2",
        "service_type": "atomic",
        "prov_type": "generic",
        "provision_cost": null,
        "service_template_catalog_id": "2",
        "long_description": null,
        "tenant_id": "1",
        "generic_subtype": "custom",
        "deleted_on": null,
        "internal": false,
        "zone_id": null,
        "currency_id": null,
        "price": null
    },
    "miq_request": {
        "id": "21283",
        "description": "Provisioning Service [Виртуальная машина] from [Виртуальная машина]",
        "approval_state": "approved",
        "type": "ServiceTemplateProvisionRequest",
        "created_on": "2025-09-30T13:15:58Z",
        "updated_on": "2025-09-30T13:24:14Z",
        "fulfilled_on": "2025-09-30T13:24:14Z",
        "requester_id": "119",
        "requester_name": "keycloak-test",
        "request_type": "clone_to_service",
        "request_state": "finished",
        "message": "Nimbius server [EVM] Service [s-demo-dit010] Step [Finished] Status [Processed Finished] Message [[EVM] Service [s-demo-dit010] Provisioned Successfully] Current Retry Number [0].",
        "status": "Ok",
        "options": {
            "dialog": {
                "dialog_tag_0_environment": "zvirt",
                "dialog_tag_0_location": "zvengine.lab.local",
                "dialog_placement_rp_name": null,
                "dialog_service_name": "s-demo-dit010",
                "dialog_service_description": null,
                "dialog_source_id": "10829",
                "dialog_option_0_cpu_flavor": "1x1",
                "dialog_vm_memory": 2,
                "dialog_base_disks_size": "8",
                "dialog_tag_0_disk_type": null,
                "dialog_vlan": "StendCloud-3328 (StendCloud-3328)",
                "dialog_vm_name": "v-demo-dit010",
                "dialog_vm_description": null,
                "dialog_additional_disk_size": null,
                "dialog_additional_disk_type": null,
                "dialog_service_billing": "true",
                "dialog_rollback_enable": "true"
            },
            "workflow_settings": {
                "resource_action_id": "236",
                "dialog_id": "9"
            },
            "initiator": null,
            "src_id": "4",
            "request_options": {
                "submit_workflow": true
            },
            "cart_state": "cart",
            "requester_group": "NimbiusStend_Admins",
            "executed_on_servers": [
                2
            ],
            "delivered_on": "2025-09-30T13:17:02.118Z",
            "user_message": "Nimbius server [EVM] Service [s-demo-dit010] Step [Finished] Status [Processed Finished] Message [[EVM] Service [s-demo-dit010] Provisioned Successfully] Current Retry Number [0]."
        },
        "userid": "keycloak-test",
        "source_id": "4",
        "source_type": "ServiceTemplate",
        "destination_id": null,
        "destination_type": null,
        "tenant_id": "1",
        "service_order_id": "6543",
        "process": true,
        "cancelation_status": null,
        "initiated_by": "user",
        "parent_id": null
    },
    "vms": [
        {
            "href": "https://nimbius-portal-admin/api/services/6663/vms/11527",
            "id": "11527",
            "vendor": "ovirt",
            "format": null,
            "version": null,
            "name": "v-demo-dit010",
            "description": "Owner: keycloak-test keycloak-test, \nEmail: keycloak-test@cloud.lab, \nSource Template: debian12-cloud-template, \nCustom Description: created by Nimbius cloud, \nEVM server name: EVM",
            "location": "f30e18b0-d142-4b2f-ad27-ca14324b427d.ovf",
            "config_xml": null,
            "autostart": null,
            "host_id": "19",
            "last_sync_on": null,
            "created_on": "2025-09-30T13:20:10.780Z",
            "updated_on": "2025-12-08T07:56:15.789Z",
            "storage_id": "60",
            "guid": "a5b9112a-bfa2-4301-b2b6-2071e96623ee",
            "ems_id": "31",
            "last_scan_on": null,
            "last_scan_attempt_on": null,
            "uid_ems": "f30e18b0-d142-4b2f-ad27-ca14324b427d",
            "retires_on": null,
            "retired": null,
            "boot_time": "2025-11-24T08:18:34.408Z",
            "tools_status": "installed",
            "standby_action": null,
            "power_state": "off",
            "state_changed_on": "2025-12-08T07:56:15.781Z",
            "previous_state": "up",
            "connection_state": "connected",
            "last_perf_capture_on": "2025-12-08T07:28:19.000Z",
            "registered": null,
            "busy": null,
            "smart": null,
            "memory_reserve": 2048,
            "memory_reserve_expand": null,
            "memory_limit": 2048,
            "memory_shares": null,
            "memory_shares_level": null,
            "cpu_reserve": null,
            "cpu_reserve_expand": null,
            "cpu_limit": null,
            "cpu_shares": null,
            "cpu_shares_level": null,
            "cpu_affinity": null,
            "ems_created_on": null,
            "template": false,
            "evm_owner_id": "119",
            "miq_group_id": "276",
            "linked_clone": null,
            "fault_tolerance": null,
            "ems_ref": "/api/vms/f30e18b0-d142-4b2f-ad27-ca14324b427d",
            "ems_cluster_id": "21",
            "retirement_warn": null,
            "retirement_last_warn": null,
            "vnc_port": null,
            "flavor_id": null,
            "availability_zone_id": null,
            "cloud": false,
            "retirement_state": null,
            "cloud_network_id": null,
            "cloud_subnet_id": null,
            "cloud_tenant_id": null,
            "raw_power_state": "down",
            "publicly_available": null,
            "orchestration_stack_id": null,
            "retirement_requester": null,
            "tenant_id": "1",
            "resource_group_id": null,
            "deprecated": null,
            "storage_profile_id": null,
            "cpu_hot_add_enabled": null,
            "cpu_hot_remove_enabled": null,
            "memory_hot_add_enabled": null,
            "memory_hot_add_limit": null,
            "memory_hot_add_increment": null,
            "hostname": null,
            "ems_ref_type": null,
            "restart_needed": false,
            "ancestry": "10829",
            "placement_group_id": null,
            "cpu_usagemhz_rate_average_avg_over_time_period": 0.1450062348693547,
            "hardware": {
                "id": "11549",
                "config_version": null,
                "virtual_hw_version": null,
                "guest_os": "other_linux",
                "cpu_sockets": 1,
                "bios": null,
                "bios_location": null,
                "time_sync": null,
                "annotation": "Owner: keycloak-test keycloak-test, \nEmail: keycloak-test@cloud.lab, \nSource Template: debian12-cloud-template, \nCustom Description: created by Nimbius cloud, \nEVM server name: EVM",
                "vm_or_template_id": "11527",
                "memory_mb": 2048,
                "host_id": null,
                "cpu_speed": null,
                "cpu_type": null,
                "size_on_disk": null,
                "manufacturer": "",
                "model": "",
                "number_of_nics": null,
                "cpu_usage": null,
                "memory_usage": null,
                "cpu_cores_per_socket": 2,
                "cpu_total_cores": 2,
                "vmotion_enabled": null,
                "disk_free_space": null,
                "disk_capacity": null,
                "guest_os_full_name": null,
                "memory_console": null,
                "bitness": null,
                "virtualization_type": null,
                "root_device_type": null,
                "computer_system_id": null,
                "disk_size_minimum": null,
                "memory_mb_minimum": null,
                "introspected": null,
                "provision_state": null,
                "serial_number": null,
                "switch_id": null,
                "firmware_type": null,
                "canister_id": null
            },
            "ipaddresses": [
                "10.31.243.89"
            ],
            "max_mem_usage_absolute_average_avg_over_time_period": 10.909090909090908,
            "snapshots": [
                {
                    "id": "6153",
                    "uid": "0e8e1e9e-34bf-47a8-930b-f74ee36c30e1",
                    "parent_uid": null,
                    "name": "Active VM",
                    "description": "Active VM",
                    "current": 1,
                    "total_size": null,
                    "filename": null,
                    "create_time": "2025-09-30T13:18:47Z",
                    "disks": [],
                    "created_on": "2025-09-30T13:20:10Z",
                    "updated_on": "2025-12-15T21:01:16Z",
                    "parent_id": null,
                    "vm_or_template_id": "11527",
                    "uid_ems": "0e8e1e9e-34bf-47a8-930b-f74ee36c30e1",
                    "ems_ref": null,
                    "ems_ref_type": null,
                    "type": "ManageIQ::Providers::Ovirt::InfraManager::Snapshot"
                }
            ],
            "supported_consoles": {
                "html5": {
                    "visible": false,
                    "enabled": false,
                    "message": "The web-based HTML5 Console is not available because the VM is not powered on"
                },
                "vmrc": {
                    "visible": false,
                    "enabled": false,
                    "message": "VM VMRC Console error: VMRC remote console is not supported on ovirt."
                },
                "native": {
                    "visible": true,
                    "enabled": false,
                    "message": "VM NATIVE Console error: Remote viewer requires the vm to be running."
                }
            },
            "v_snapshot_newest_name": "Active VM",
            "v_snapshot_newest_timestamp": "2025-09-30T13:18:47.520Z",
            "v_total_snapshots": 1,
            "host": {
                "id": "19",
                "name": "zv03.lab.local",
                "hostname": "zv03.lab.local",
                "ipaddress": "10.31.137.25",
                "vmm_vendor": "ovirt",
                "vmm_version": "8.6",
                "vmm_product": "rhel",
                "vmm_buildnumber": null,
                "created_on": "2024-12-13T07:45:33Z",
                "updated_on": "2025-12-17T05:27:17Z",
                "guid": "e64d2dd2-2609-4ba8-a3fc-e48f57b62948",
                "ems_id": "31",
                "user_assigned_os": null,
                "power_state": "non_operational",
                "smart": 1,
                "settings": {},
                "last_perf_capture_on": "2025-12-17T05:26:56Z",
                "uid_ems": "0e7b75f5-2108-403e-98c7-959ee2922206",
                "connection_state": "disconnected",
                "ssh_permit_root_login": null,
                "admin_disabled": null,
                "service_tag": null,
                "asset_tag": null,
                "ipmi_address": null,
                "mac_address": null,
                "type": "ManageIQ::Providers::Ovirt::InfraManager::Host",
                "failover": null,
                "ems_ref": "/api/hosts/0e7b75f5-2108-403e-98c7-959ee2922206",
                "hyperthreading": null,
                "ems_cluster_id": "21",
                "next_available_vnc_port": null,
                "hypervisor_hostname": null,
                "availability_zone_id": null,
                "maintenance": false,
                "maintenance_reason": null,
                "physical_server_id": null,
                "ems_ref_type": null
            }
        }
    ],
    "actions": [
        {
            "name": "edit",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "edit",
            "method": "patch",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "edit",
            "method": "put",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "retire",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "request_retire",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "set_ownership",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "start",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "stop",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "suspend",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "delete",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "add_resource",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "remove_all_resources",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "remove_resource",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "add_provider_vms",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        },
        {
            "name": "queue_chargeback_report",
            "method": "post",
            "href": "https://nimbius-portal-admin/api/services/6663"
        }
    ]
}