Directory API의 mobiledevices.list 메서드를 사용하여 특정 속성과 일치하는 기기를 검색할 수 있습니다. 이 메서드는 하나 이상의 검색 절을 결합한 검색어인 query 매개변수를 허용합니다. 각 검색 조건은 다음 세 부분으로 구성됩니다.
필드
검색되는 기기 속성입니다. 예를 들면 serial입니다.
연산자
데이터에서 일치를 제공하기 위해 실행되는 테스트입니다. 예를 들어 : 연산자는 텍스트 속성이 값과 일치하는지 테스트합니다.
값
테스트되는 속성의 콘텐츠입니다. 예를 들면 serialNumber입니다.
여러 절은 공백으로 구분되며 암시적으로 AND 연산자로 연결됩니다.
예
모든 쿼리는 다음과 유사한 HTTP 요청이 있는 mobiledevices.list 메서드를 사용합니다 (가독성을 위해 줄바꿈 포함).
GET https://admin.googleapis.com/admin/directory/v1/customer/customerId/devices/mobile
?query=query parameters
query 매개변수는 URL로 인코딩되어야 합니다. 예를 들어 쿼리 query=brand:goo*는 query=brand%3goo*로 URL 인코딩됩니다.
이 페이지의 모든 예시에는 인코딩되지 않은 query 매개변수가 표시됩니다.
클라이언트 라이브러리는 이 URL 인코딩을 자동으로 처리합니다.
[null,null,["최종 업데이트: 2025-01-27(UTC)"],[[["The `mobiledevices.list` method allows you to search for devices with specific attributes using a `query` parameter."],["A search query is built with clauses consisting of a field, operator, and value, separated by whitespace and implicitly joined by `AND`."],["Queries can use wildcards like `*` for partial matches and multiple clauses can be combined for more refined searches."],["It's important to note that data updates can take up to 36 hours to be reflected in search results."],["Refer to the \"Personal device search fields\" documentation for a complete list of searchable device attributes."]]],[]]