API 기능에 대한 자세한 내용은 Chrome Management Security Insights API를 참고하세요.
아래 표시된 모든 요청은 다음 변수를 사용합니다.
$TOKEN- OAuth 2 토큰$CUSTOMER- 고객 ID 또는 리터럴my_customer
도메인의 인사이트 사용 설정 상태 확인
도메인의 인사이트 사용 설정 상태를 확인하려면 checkEnablementStatus 메서드를 사용합니다.
요청
curl -X GET \
-H "Authorization: Bearer $TOKEN" \
"https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/enterprise/securityInsights:checkEnablementStatus"
응답
{
"insightsState": "INSIGHTS_ENABLED"
}
도메인에 인사이트 사용 설정
도메인에 인사이트를 사용 설정하려면 enable 메서드를 사용합니다. 선택적으로 targetOus를 제공하여 특정 OU 집합에 대해 Chrome 커넥터를 구성할 수 있습니다.
targetOus가 설정되지 않은 경우 Chrome 커넥터는 루트 OU에서 구성됩니다.
요청
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"targetOus": [
"/corp/sales",
"/eng"
]
}' \
"https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/enterprise/securityInsights:enable"
응답
{
"insightsState": "INSIGHTS_ENABLED"
}
도메인에 인사이트 사용 중지
도메인에 인사이트를 사용 중지하려면 disable 메서드를 사용합니다.
요청
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{}' \
"https://chromemanagement.googleapis.com/v1/customers/$CUSTOMER/enterprise/securityInsights:disable"
응답
{
"insightsState": "INSIGHTS_DISABLED"
}