diff --git a/shared/management/http/api/openapi.yml b/shared/management/http/api/openapi.yml index b4c84f7a4..6d64c002b 100644 --- a/shared/management/http/api/openapi.yml +++ b/shared/management/http/api/openapi.yml @@ -4203,7 +4203,7 @@ components: FleetDMMatchAttributes: type: object - description: Attribute conditions to match when approving FleetDM hosts + description: Attribute conditions to match when approving FleetDM hosts. Most attributes work with FleetDM's free/open-source version. Premium-only attributes are marked accordingly additionalProperties: false properties: disk_encryption_enabled: @@ -4231,6 +4231,12 @@ components: status_online: type: boolean description: Whether the host must be online (recently seen by Fleet) + required_policies: + type: array + description: List of FleetDM policy IDs that must be passing on the host. If any of these policies is failing, the host is non-compliant + items: + type: integer + example: [1, 5, 12] CreateScimIntegrationRequest: type: object diff --git a/shared/management/http/api/types.gen.go b/shared/management/http/api/types.gen.go index 7ede040ee..d485d765c 100644 --- a/shared/management/http/api/types.gen.go +++ b/shared/management/http/api/types.gen.go @@ -1664,7 +1664,7 @@ type EDRFleetDMRequest struct { // LastSyncedInterval The devices last sync requirement interval in hours. Minimum value is 24 hours LastSyncedInterval int `json:"last_synced_interval"` - // MatchAttributes Attribute conditions to match when approving FleetDM hosts + // MatchAttributes Attribute conditions to match when approving FleetDM hosts. Most attributes work with FleetDM's free/open-source version. Premium-only attributes are marked accordingly MatchAttributes FleetDMMatchAttributes `json:"match_attributes"` } @@ -1697,7 +1697,7 @@ type EDRFleetDMResponse struct { // LastSyncedInterval The devices last sync requirement interval in hours. LastSyncedInterval int `json:"last_synced_interval"` - // MatchAttributes Attribute conditions to match when approving FleetDM hosts + // MatchAttributes Attribute conditions to match when approving FleetDM hosts. Most attributes work with FleetDM's free/open-source version. Premium-only attributes are marked accordingly MatchAttributes FleetDMMatchAttributes `json:"match_attributes"` // UpdatedAt Timestamp of when the integration was last updated. @@ -1911,7 +1911,7 @@ type Event struct { // EventActivityCode The string code of the activity that occurred during the event type EventActivityCode string -// FleetDMMatchAttributes Attribute conditions to match when approving FleetDM hosts +// FleetDMMatchAttributes Attribute conditions to match when approving FleetDM hosts. Most attributes work with FleetDM's free/open-source version. Premium-only attributes are marked accordingly type FleetDMMatchAttributes struct { // DiskEncryptionEnabled Whether disk encryption (FileVault/BitLocker) must be enabled on the host DiskEncryptionEnabled *bool `json:"disk_encryption_enabled,omitempty"` @@ -1925,6 +1925,9 @@ type FleetDMMatchAttributes struct { // OsVersionMin Minimum OS version required (e.g. "14.0", "22H2") OsVersionMin *string `json:"os_version_min,omitempty"` + // RequiredPolicies List of FleetDM policy IDs that must be passing on the host. If any of these policies is failing, the host is non-compliant + RequiredPolicies *[]int `json:"required_policies,omitempty"` + // StatusOnline Whether the host must be online (recently seen by Fleet) StatusOnline *bool `json:"status_online,omitempty"`