mirror of
https://github.com/fleetdm/fleet
synced 2026-05-17 05:58:40 +00:00
#16767 To create a manual label: ```sh cat labels.yml --- apiVersion: v1 kind: label spec: name: Manually Managed Example label_membership_type: manual hosts: - lucass-macbook-pro.local ``` To add/delete a manual label to/from a host: ``` curl -k -v -X POST -H "Authorization: Bearer $TEST_TOKEN" https://localhost:8080/api/latest/fleet/hosts/1/labels -d '{"labels": ["Manually Managed Example"]}' curl -k -v -X DELETE -H "Authorization: Bearer $TEST_TOKEN" https://localhost:8080/api/latest/fleet/hosts/1/labels -d '{"labels": ["Manually Managed Example"]}' ``` API draft changes: https://github.com/fleetdm/fleet/pull/16979/files Figma with error strings: https://www.figma.com/file/JiWoAiuHlkt76s3o3Uyz6h/%2316767-API-endpoint-for-updating-a-host's-manual-labels?type=design&node-id=2-130&mode=design&t=pxRPhrn6E1bOCrEd-0 - [X] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [X] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) ~- [ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for new osquery data ingestion features.~ - [X] Added/updated tests - ~[ ] If database migrations are included, checked table schema to confirm autoupdate~ - ~For database migrations:~ - ~[ ] Checked schema for all modified table for columns that will auto-update timestamps during migration.~ - ~[ ] Confirmed that updating the timestamps is acceptable, and will not cause unwanted side effects.~ - ~[ ] Ensured the correct collation is explicitly set for character columns (`COLLATE utf8mb4_unicode_ci`).~ - [x] Manual QA for all new/changed functionality - ~For Orbit and Fleet Desktop changes:~ - ~[ ] Manual QA must be performed in the three main OSs, macOS, Windows and Linux.~ - ~[ ] Auto-update manual QA, from released version of component to new version (see [tools/tuf/test](../tools/tuf/test/README.md)).~ |
||
|---|---|---|
| .. | ||
| Audit-logs.md | ||
| Automations.md | ||
| CIS-Benchmarks.md | ||
| downgrading-fleet.md | ||
| enroll-chromebooks.md | ||
| enroll-hosts.md | ||
| Fleet-desktop.md | ||
| Fleet-UI.md | ||
| fleetctl-CLI.md | ||
| Learn-how-to-use-Fleet.md | ||
| Log-destinations.md | ||
| manage-access.md | ||
| MDM-commands.md | ||
| MDM-custom-OS-settings.md | ||
| MDM-disk-encryption.md | ||
| MDM-macOS-setup-experience.md | ||
| MDM-macOS-setup.md | ||
| MDM-migration-guide.md | ||
| MDM-OS-updates.md | ||
| Osquery-process.md | ||
| Puppet-module.md | ||
| README.md | ||
| Scripts.md | ||
| segment-hosts.md | ||
| Supported-browsers.md | ||
| Supported-host-operating-systems.md | ||
| Understanding-host-vitals.md | ||
| update-agents.md | ||
| Usage-statistics.md | ||
| Vulnerability-Processing.md | ||
Using Fleet
Fleet UI
Provides documentation about running and scheduling queries from within the Fleet UI
fleetctl CLI
Includes resources for setting up and configuring Fleet via the fleetctl CLI
Enroll hosts
Provides resources for enrolling your hosts to Fleet
Log destinations
Includes documentation on the log destinations for sending with osquery logs
Osquery processes
Includes documentation about osquery children processes and under which conditions they are terminated