RecommendationResult

RecommendationResult
Recommendation Result

The result of a recommendation analysis job. Contains the generated security policy infra payload, session information, publication status, and metadata about the recommendation generation process.

Notes:

  • This payload can be published to NSX Policy Manager to apply the recommendations.
AllOf
This class requires all of the following:
JSON Example
{
    "_create_user": "system",
    "_create_time": 1779144952584,
    "_last_modified_user": "system",
    "_last_modified_time": 1779144952584,
    "_revision": 0,
    "_resource_type": "string",
    "_system_owned": false,
    "id": "9e0865d0-9d89-44c7-8cc0-9f96a9b35721",
    "display_name": "REC 260518 03:46:50",
    "description": "Recommendation created on 5/18/26, 3:46 PM",
    "site_ids": [],
    "infra": {
        "resource_type": "Infra",
        "id": "infra",
        "children": [
            {
                "resource_type": "ChildResourceReference",
                "target_type": "Domain",
                "id": "default",
                "children": [
                    {
                        "resource_type": "ChildSecurityPolicy",
                        "SecurityPolicy": {
                            "resource_type": "SecurityPolicy",
                            "id": "Policy-d81c4105-3da3-4cb5-8a08-51f082c175ae-fd0b23f9-7bc6-4f95-9308-ec1d620b9605",
                            "display_name": "Policy-1 (REC 260518 03:46:50)",
                            "connectivity_preference": "NONE",
                            "category": "Application",
                            "scope": [
                                "/infra/domains/default/groups/05604720-dbe9-3b27-a953-3a1de60b8e28"
                            ],
                            "stateful": true,
                            "children": [
                                {
                                    "resource_type": "ChildRule",
                                    "Rule": {
                                        "resource_type": "Rule",
                                        "id": "Rule-d81c4105-3da3-4cb5-8a08-51f082c175ae-7e17cb1b-3099-4111-83dc-b0db36be1923",
                                        "display_name": "Rule-1 (REC 260518 03:46:50)",
                                        "action": "ALLOW",
                                        "direction": "IN_OUT",
                                        "source_groups": [
                                            "/infra/domains/default/groups/05604720-dbe9-3b27-a953-3a1de60b8e28"
                                        ],
                                        "destination_groups": [
                                            "/infra/domains/default/groups/fd2186ce-4129-3567-9a47-e1ec6c3b498a"
                                        ],
                                        "services": [
                                            "/infra/services/SSH"
                                        ],
                                        "sequence_number": 1
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        ]
    },
    "status": {
        "id": "9e0865d0-9d89-44c7-8cc0-9f96a9b35721",
        "site_id": "9e0865d0-9d89-44c7-8cc0-9f96a9b35721",
        "status": "READY_TO_PUBLISH"
    },
    "site_id": "9e0865d0-9d89-44c7-8cc0-9f96a9b35721",
    "job_run_time": 66,
    "infra_generated": true,
    "diff_document_generated": false,
    "checkpoints": [],
    "context_effective_vms": [
        {
            "id": "c29fe908-00d5-48b7-95fb-2fca418a105f",
            "display_name": "Web-VM-1",
            "site_ids": [
                "9e0865d0-9d89-44c7-8cc0-9f96a9b35721"
            ]
        }
    ],
    "context_effective_physical_servers": []
}