createUnifiedLoggingFilter
下面的 createUnifiedLoggingFilter 變動建立了一個新的統一記錄篩選條件,名為 Login Events,它將記錄在 Jamf Protect 中電腦上登入的每個使用者。
mutation createFilter {
createUnifiedLoggingFilter(
input: {
name: "Login Events"
description: "A description of the filter"
filter: "processImagePath contains 'loginwindow` and eventMessage contains `com.apple.sessionDidLogin`"
enabled: true
tags: "Login"
}
) {
uuid
name
description
created
updated
filter
tags
enabled
}
}setComputerPlan
要變更電腦的計劃,請使用 setComputerPlan 變動。下列變動將電腦 (由 UUID 定義) 變更到 ID 為 “1” 的計劃,然後在電腦執行後傳回電腦的目前資訊:
Note:
此範例中傳回的資訊包括電腦的目前計劃。電腦的計劃在它使用 Jamf Protect 簽入之前不會改變。
mutation changePlan {
setComputerPlan(
input: { plan: "1" }
uuid: "ed6553dd-28e7-4ba6-b6e5-2d58b9b37696"
) {
plan {
id
name
created
}
configHash
hostName
serial
uuid
checkin
}
}updateComputer
允許您更新與電腦關聯的標籤或標記。
mutation updateComputerLabelandTags {
updateComputer(
input: { label: "label_1", tags: ["tag_1", "tag_2", "tag_3"]}
uuid: "ed6553dd-28e7-4ba6-b6e5-a12b3c456d78"
) {
hostName
uuid
insightsUpdated
label
tags
}
}