fleet/cmd/fleetctl/testdata/expectedGetTeamsJson.json
Victor Lyuboslavsky a5482f6e6a
Team host expiry. (#16188)
Teams can configure their own host expiry setting. If global host expiry
is enabled, teams cannot disable host expiry, but they can set a longer
(or shorter) expiry time (in days).
- Added `host_expiry_settings` to team spec, which can be used via
fleetctl apply.
- Added `host_expiry_settings` to PATH /fleet/teams/:id endpoint.


#15609 (parent)
#15966 (subtask)

TODO: Create PR for API docs change: added parameter to `PATCH
/fleet/teams/:id` endpoint

# Checklist for submitter

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [x] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
- [x] Added/updated tests
- [x] Manual QA for all new/changed functionality
2024-01-22 10:00:02 -06:00

129 lines
2.6 KiB
JSON

{
"kind": "team",
"apiVersion": "v1",
"spec": {
"team": {
"id": 42,
"created_at": "1999-03-10T02:45:06.371Z",
"name": "team1",
"description": "team1 description",
"host_expiry_settings": {
"host_expiry_enabled": false,
"host_expiry_window": 0
},
"webhook_settings": {
"failing_policies_webhook": {
"enable_failing_policies_webhook": false,
"destination_url": "",
"policy_ids": null,
"host_batch_size": 0
}
},
"integrations": {
"jira": null,
"zendesk": null
},
"features": {
"enable_host_users": true,
"enable_software_inventory": true
},
"mdm": {
"enable_disk_encryption": false,
"macos_updates": {
"minimum_version": null,
"deadline": null
},
"windows_updates": {
"deadline_days": null,
"grace_period_days": null
},
"macos_settings": {
"custom_settings": null
},
"macos_setup": {
"bootstrap_package": null,
"enable_end_user_authentication": false,
"macos_setup_assistant": null
},
"windows_settings": {
"custom_settings": null
}
},
"scripts": null,
"user_count": 99,
"host_count": 42
}
}
}
{
"kind": "team",
"apiVersion": "v1",
"spec": {
"team": {
"id": 43,
"created_at": "1999-03-10T02:45:06.371Z",
"name": "team2",
"description": "team2 description",
"agent_options": {
"config": {
"foo": "bar"
},
"overrides": {
"platforms": {
"darwin": {
"foo": "override"
}
}
}
},
"host_expiry_settings": {
"host_expiry_enabled": true,
"host_expiry_window": 15
},
"webhook_settings": {
"failing_policies_webhook": {
"enable_failing_policies_webhook": false,
"destination_url": "",
"policy_ids": null,
"host_batch_size": 0
}
},
"integrations": {
"jira": null,
"zendesk": null
},
"features": {
"enable_host_users": false,
"enable_software_inventory": false,
"additional_queries": {
"foo": "bar"
}
},
"mdm": {
"enable_disk_encryption": false,
"macos_updates": {
"minimum_version": "12.3.1",
"deadline": "2021-12-14"
},
"windows_updates": {
"deadline_days": 7,
"grace_period_days": 3
},
"macos_settings": {
"custom_settings": null
},
"macos_setup": {
"bootstrap_package": null,
"enable_end_user_authentication": false,
"macos_setup_assistant": null
},
"windows_settings": {
"custom_settings": null
}
},
"scripts": null,
"user_count": 87,
"host_count": 43
}
}
}