Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs v4.64.0 #26393

Merged
merged 19 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
0c52178
#23235 API docs: Add certificates to host vitals for macOS, iOS, iPad…
rachaelshaw Jan 10, 2025
9decc30
Merge branch 'main' into docs-v4.64.0
rachaelshaw Jan 10, 2025
44a0c32
Merge branch 'main' into docs-v4.64.0
rachaelshaw Jan 13, 2025
ff26e32
REST Docs: Add "platform" to app store app + software package API res…
iansltx Jan 13, 2025
18219d0
REST API Docs: Add exclude_fleet_maintained_apps parameter to list so…
eashaw Jan 15, 2025
18fd92f
Merge branch 'main' into docs-v4.64.0
rachaelshaw Jan 17, 2025
5cbdd50
Merge branch 'main' into docs-v4.64.0
rachaelshaw Jan 17, 2025
9519964
Merge branch 'main' into docs-v4.64.0
rachaelshaw Jan 29, 2025
af9b5e0
Add API design for including host status and pending action in lock/u…
iansltx Jan 30, 2025
bfaf9a5
Merge branch 'main' into docs-v4.64.0
rachaelshaw Feb 6, 2025
294813b
Merge branch 'main' into docs-v4.64.0
rachaelshaw Feb 12, 2025
4cb80e1
Add back doc changes for #23116 (#26293)
rachaelshaw Feb 12, 2025
387c885
Add back doc changes for #24195 (Modify script) (#26294)
rachaelshaw Feb 12, 2025
152f3c4
Add back doc changes for #24609 (Scope App Store apps via labels) (#2…
rachaelshaw Feb 12, 2025
57adc43
Remove docs for #23235 (certificates in host vitals)
rachaelshaw Feb 12, 2025
d6fba78
Merge branch 'main' into docs-v4.64.0
noahtalerman Feb 17, 2025
ffc6464
Add changes for 22464
noahtalerman Feb 18, 2025
4fe545a
Merge branch 'docs-v4.64.0' of github.com:fleetdm/fleet into docs-v4.…
noahtalerman Feb 18, 2025
61e35a1
Merge branch 'main' into docs-v4.64.0
noahtalerman Feb 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/Configuration/yaml-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ software:
- Customer Support
app_store_apps:
- app_store_id: '1091189122'
labels_include_any:
- Product
- Marketing
```

Use `labels_include_any` to target hosts that have any label in the array or `labels_exclude_any` to target hosts that don't have any label in the array. Only one of `labels_include_any` or `labels_exclude_any` can be specified. If neither are specified, all hosts are targeted.
Expand Down
182 changes: 177 additions & 5 deletions docs/REST API/rest-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3933,6 +3933,7 @@ Resends a configuration profile for the specified host.
"name": "Google Chrome.app",
"software_package": {
"name": "GoogleChrome.pkg",
"platform": "darwin",
"version": "125.12.0.3",
"self_service": true,
"last_install": {
Expand Down Expand Up @@ -3964,6 +3965,7 @@ Resends a configuration profile for the specified host.
"name": "Falcon.app",
"software_package": {
"name": "FalconSensor-6.44.pkg",
"platform": "darwin",
"self_service": false,
"last_install": null,
"last_uninstall": {
Expand All @@ -3982,6 +3984,7 @@ Resends a configuration profile for the specified host.
"software_package": null,
"app_store_app": {
"app_store_id": "1091189122",
"platform": "darwin",
"icon_url": "https://is1-ssl.mzstatic.com/image/thumb/Purple221/v4/f4/25/1f/f4251f60-e27a-6f05-daa7-9f3a63aac929/AppIcon-0-0-85-220-0-0-4-0-0-2x-0-0-0-0-0.png/512x512bb.png",
"version": "2.04",
"self_service": false,
Expand Down Expand Up @@ -4166,8 +4169,14 @@ To lock a macOS host, the host must have MDM turned on. To lock a Windows or Lin

##### Default response

`Status: 204`
`Status: 200`

```json
{
"device_status": "unlocked",
"pending_action": "lock"
}
```

#### Example

Expand All @@ -4179,10 +4188,14 @@ To lock a macOS host, the host must have MDM turned on. To lock a Windows or Lin

```json
{
"unlock_pin": "123456"
"unlock_pin": "123456",
"device_status": "unlocked",
"pending_action": "lock"
}
```

> To verify the host successfully locked, you can use the [Get host](https://fleetdm.com/docs/rest-api/rest-api#get-host) endpoint to retrieve the host's `mdm.device_status`.

### Unlock host

_Available in Fleet Premium_
Expand All @@ -4205,8 +4218,15 @@ To unlock a Windows or Linux host, the host must have [scripts enabled](https://

##### Default response (Windows or Linux hosts)

`Status: 204`
`Status: 200`

```json
{
"host_id": 8,
"device_status": "locked",
"pending_action": "unlock"
}
```

##### Default response (macOS hosts)

Expand All @@ -4215,10 +4235,14 @@ To unlock a Windows or Linux host, the host must have [scripts enabled](https://
```json
{
"host_id": 8,
"unlock_pin": "123456"
"unlock_pin": "123456",
"device_status": "locked",
"pending_action": "unlock"
}
```

> To verify the host successfully unlocked, you can use the [Get host](https://fleetdm.com/docs/rest-api/rest-api#get-host) endpoint to retrieve the host's `mdm.device_status`. macOS hosts require entering `unlock_pin` to unlock.

### Wipe host

Sends a command to wipe the specified macOS, iOS, iPadOS, Windows, or Linux host. The host is wiped once it comes online.
Expand All @@ -4239,8 +4263,16 @@ To wipe a macOS, iOS, iPadOS, or Windows host, the host must have MDM turned on.

##### Default response

`Status: 204`
`Status: 200`

```json
{
"device_status": "unlocked",
"pending_action": "wipe"
}
```

> To verify the host was successfully wiped, you can use the [Get host](https://fleetdm.com/docs/rest-api/rest-api#get-host) endpoint to retrieve the host's `mdm.device_status`.

### Get host's past activity

Expand Down Expand Up @@ -5988,6 +6020,7 @@ List software that can or will be automatically installed during macOS setup. If
"name": "Firefox.app",
"software_package": {
"name": "FirefoxInsall.pkg",
"platform": "darwin",
"version": "125.6",
"self_service": true,
"install_during_setup": true
Expand Down Expand Up @@ -8368,6 +8401,7 @@ This allows you to easily configure scheduled queries that will impact a whole t
- [Run script](#run-script)
- [Get script result](#get-script-result)
- [Add script](#add-script)
- [Modify script](#modify-script)
- [Delete script](#delete-script)
- [List scripts](#list-scripts)
- [Get or download script](#get-or-download-script)
Expand Down Expand Up @@ -8502,6 +8536,57 @@ echo "hello"
}
```

### Modify script

Modifies an existing script.

`PATCH /api/v1/fleet/scripts/:id`


#### Parameters

| Name | Type | In | Description |
| ---- | ------- | ---- | -------------------------------------------- |
| id | integer | path | **Required**. The ID of the script to modify. |
| script | file | form | **Required**. The file containing the script. Filename will be ignored. |

#### Example

`PATCH /api/v1/fleet/scripts/1`


##### Request headers

```http
Content-Length: 306
Content-Type: multipart/form-data; boundary=------------------------f02md47480und42y
```

##### Request body

```http
--------------------------f02md47480und42y
Content-Disposition: form-data; name="script"; filename="myscript.sh"
Content-Type: application/octet-stream
echo "hello"
--------------------------f02md47480und42y--
```

##### Default response

`Status: 200`

```json
{
"id": 1,
"team_id": null,
"name": "script_1.sh",
"created_at": "2023-07-30T13:41:07Z",
"updated_at": "2023-07-30T13:41:07Z"
}
```


### Delete script

Deletes an existing script.
Expand Down Expand Up @@ -8686,6 +8771,7 @@ Deletes the session specified by ID. When the user associated with the session n
- [Modify package](#modify-package)
- [List App Store apps](#list-app-store-apps)
- [Add App Store app](#add-app-store-app)
- [Modify App Store app](#modify-app-store-app)
- [List Fleet-maintained apps](#list-fleet-maintained-apps)
- [Get Fleet-maintained app](#get-fleet-maintained-app)
- [Add Fleet-maintained app](#add-fleet-maintained-app)
Expand Down Expand Up @@ -8720,6 +8806,8 @@ Get a list of all software.
| max_cvss_score | integer | query | _Available in Fleet Premium_. Filters to only include software with vulnerabilities that have a CVSS version 3.x base score lower than what's specified. |
| exploit | boolean | query | _Available in Fleet Premium_. If `true`, filters to only include software with vulnerabilities that have been actively exploited in the wild (`cisa_known_exploit: true`). Default is `false`. |
| platform | string | query | Filter software titles by platforms. Options are: `"macos"` (alias of `"darwin"`), `"darwin"` `"windows"`, `"linux"`, `"chrome"`, `"ios"`, `"ipados"`. To show titles from multiple platforms, separate the platforms with commas (e.g. `?platform=darwin,windows`). |
| exclude_fleet_maintained_apps | boolean | query | If `true` or `1`, Fleet maintained apps will not be included in the list of `software_titles`. Default is `false` |


#### Example

Expand All @@ -8738,6 +8826,7 @@ Get a list of all software.
"id": 12,
"name": "Firefox.app",
"software_package": {
"platform": "darwin",
"name": "FirefoxInsall.pkg",
"version": "125.6",
"self_service": true,
Expand Down Expand Up @@ -9012,6 +9101,7 @@ Returns information about the specified software. By default, `versions` are sor
"software_package": {
"name": "FalconSensor-6.44.pkg",
"version": "6.44",
"platform": "darwin",
"installer_id": 23,
"team_id": 3,
"uploaded_at": "2024-04-01T14:22:58Z",
Expand Down Expand Up @@ -9087,6 +9177,7 @@ Returns information about the specified software. By default, `versions` are sor
"app_store_app": {
"name": "Logic Pro",
"app_store_id": 1091189122,
"platform": "darwin",
"latest_version": "2.04",
"icon_url": "https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/f1/65/1e/a4844ccd-486d-455f-bb31-67336fe46b14/AppIcon-1x_U007emarketing-0-7-0-85-220-0.png/512x512bb.jpg",
"self_service": true,
Expand Down Expand Up @@ -9375,6 +9466,7 @@ Content-Type: application/octet-stream
"software_package": {
"name": "FalconSensor-6.44.pkg",
"version": "6.44",
"platform": "darwin",
"installer_id": 23,
"team_id": 3,
"uploaded_at": "2024-04-01T14:22:58Z",
Expand Down Expand Up @@ -9459,6 +9551,10 @@ Add App Store (VPP) app purchased in Apple Business Manager.
| team_id | integer | body | **Required**. The team ID. Adds VPP software to the specified team. |
| platform | string | body | The platform of the app (`darwin`, `ios`, or `ipados`). Default is `darwin`. |
| self_service | boolean | body | Self-service software is optional and can be installed by the end user. |
| labels_include_any | array | form | Target hosts that have any label in the array. |
| labels_exclude_any | array | form | Target hosts that don't have any label in the array. |

Only one of `labels_include_any` or `labels_exclude_any` can be specified. If neither are specified, all hosts are targeted.

#### Example

Expand All @@ -9480,6 +9576,81 @@ Add App Store (VPP) app purchased in Apple Business Manager.
`Status: 200`


### Modify App Store app

> **Experimental feature**. This feature is undergoing rapid improvement, which may result in breaking changes to the API or configuration surface. It is not recommended for use in automated workflows.
_Available in Fleet Premium._

Modify App Store (VPP) app's options.

`PATCH /api/v1/fleet/software/titles/:title_id/app_store_app`

#### Parameters

| Name | Type | In | Description |
| ---- | ---- | -- | ----------- |
| team_id | integer | body | **Required**. The team ID. Edits App Store apps from the specified team. |
| self_service | boolean | body | Self-service software is optional and can be installed by the end user. |
| labels_include_any | array | form | Target hosts that have any label in the array. |
| labels_exclude_any | array | form | Target hosts that don't have any label in the array. |

Only one of `labels_include_any` or `labels_exclude_any` can be specified. If neither are specified, all hosts are targeted.

#### Example

`PATCH /api/v1/fleet/software/titles/3467/app_store_app`

##### Request body

```json
{
"team_id": 2,
"self_service": true,
"labels_include_any": [
"Product",
"Marketing"
]
}
```

##### Default response

`Status: 200`

```json
{
"app_store_app": {
"name": "Logic Pro",
"app_store_id": 1091189122,
"latest_version": "2.04",
"icon_url": "https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/f1/65/1e/a4844ccd-486d-455f-bb31-67336fe46b14/AppIcon-1x_U007emarketing-0-7-0-85-220-0.png/512x512bb.jpg",
"self_service": true,
"labels_include_any": [
{
"name": "Product",
"id": 12
},
{
"name": "Marketing",
"id": 17
}
],
"automatic_install_policies": [
{
"id": 345,
"name": "[Install software] Logic Pro",
}
],
"status": {
"installed": 3,
"pending": 1,
"failed": 2,
}
}
}
```


### List Fleet-maintained apps

> **Experimental feature**. This feature is undergoing rapid improvement, which may result in breaking changes to the API or configuration surface. It is not recommended for use in automated workflows.
Expand Down Expand Up @@ -9563,6 +9734,7 @@ Returns information about the specified Fleet-maintained app.
"filename": "1Password-8.10.50-aarch64.zip",
"version": "8.10.50",
"platform": "darwin",
"url": "https://downloads.1password.com/mac/1Password-8.10.50-aarch64.zip",
"install_script": "#!/bin/sh\ninstaller -pkg \"$INSTALLER_PATH\" -target /",
"uninstall_script": "#!/bin/sh\npkg_ids=$PACKAGE_ID\nfor pkg_id in '${pkg_ids[@]}'...",
}
Expand Down
Loading