diff --git a/management/server/http/policies_handler.go b/management/server/http/policies_handler.go index c7b69897a..2a060fb62 100644 --- a/management/server/http/policies_handler.go +++ b/management/server/http/policies_handler.go @@ -338,6 +338,20 @@ func toPolicyResponse(account *server.Account, policy *server.Policy) *api.Polic } ap.Rules = append(ap.Rules, rule) } + + nbVersionCheck := policy.PostureCheck.NBVersionCheck + osVersionCheck := policy.PostureCheck.OSVersionCheck + ap.PostureCheck = api.PostureCheck{ + NbVersionPostureCheck: api.NBVersionPostureCheck{ + Enabled: &nbVersionCheck.Enabled, + MinimumVersionAllowed: &nbVersionCheck.MinimumVersionAllowed, + }, + OsVersionPostureCheck: api.OSVersionPostureCheck{ + Enabled: &osVersionCheck.Enabled, + MinimumVersionAllowed: &osVersionCheck.MinimumVersionAllowed, + }, + } + return ap }