認証

Jamf Protect ドキュメント

Solution
Application
Content Type
テクニカル資料
Utilities & Services
ft:locale
ja-JP

Jamf Protect API リクエストを完了するには、それぞれの GraphQL クエリにアクセストークンを持つ認証ヘッダが含まれている必要があります。

Jamf Protect API リクエストの認証ヘッダに含めるアクセストークンを取得するには、API クライアントの構成情報を使用して以下のコマンドを実行します。

curl --request POST \
--header 'content-type: application/json' \
--url "https://your-tenant.protect.jamfcloud.com/token" \
--data '{"client_id": "<CLIENT-ID>",
"password": "<API-CLIENT-PASSWORD>"}'

アクセストークンは以下の curl コマンドのように API リクエストに含めることができます。

curl -H "Content-Type: application/json" \ -H "Authorization: YOUR-ACCESS-TOKEN" \ -X POST "https://your-tenant.protect.jamfcloud.com/graphql" \ -d '{"query": "query {listComputers {items {hostName, uuid, checkin}}}"}'