> For the complete documentation index, see [llms.txt](https://openapi-docs.exosp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openapi-docs.exosp.com/guide/logs/device-control-connection-block.md).

# 매체 제어 > 디바이스 연결 차단 내역

<mark style="background-color:green;">GET</mark> `https://openapi.exosp.com/logs/v1/device-control/connection-block`

매체 제어 > 디바이스 연결 차단 내역을 조회하는 API 입니다.

### Query Parameters

<table><thead><tr><th width="167">항목</th><th width="112">타입</th><th>설명</th></tr></thead><tbody><tr><td>offset<mark style="color:red;">*</mark></td><td>int</td><td><strong>((현재 페이지 번호 -1)*tableSize)</strong><br>현재 페이지의 첫 번째 데이터가 위치한 인덱스를 나타냅니다.</td></tr><tr><td>tableSize<mark style="color:red;">*</mark></td><td>int</td><td><strong>페이지 사이즈</strong></td></tr><tr><td>startTimeUTC<mark style="color:red;">*</mark></td><td>string</td><td><p><strong>응답 데이터 시작 시각</strong></p><p>UTC 기준, ISO 8601포맷<br><span data-gb-custom-inline data-tag="emoji" data-code="2705">✅</span> 최신 3개월 이내의 시각만 입력해주세요.</p></td></tr><tr><td>endTimeUTC<mark style="color:red;">*</mark></td><td>string</td><td><strong>응답 데이터 종료 시각</strong><br>UTC 기준, ISO 8601포맷</td></tr><tr><td>sortType<mark style="color:red;">*</mark></td><td>string</td><td><strong>응답 데이터 정렬 유형 (제어 시각 기준)</strong><br>ASC : 오름차순, DESC : 내림차순</td></tr><tr><td>timezone</td><td>string</td><td><p><strong>응답 데이터 타임존</strong><a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a> 에서 TZ identifier 참고</p><p>기본값 : UTC</p></td></tr><tr><td>search</td><td>string</td><td><p><strong>검색어</strong></p><p>검색 대상 : 사용자 이름, 그룹 이름, 컴퓨터 이름</p><p>기본값 : 빈값</p></td></tr></tbody></table>

### Response Schema

<table><thead><tr><th width="162">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>code</td><td>int</td><td><p><strong>응답 처리 결과 코드</strong> </p><p>0 : 성공, 1 : 실패</p></td></tr><tr><td>message</td><td>string</td><td><p><strong>응답 처리 결과 메세지</strong></p><p>success : 성공, 그 외 : 실패</p></td></tr><tr><td>body</td><td>object</td><td><a data-mention href="#body">#body</a></td></tr></tbody></table>

#### **body 상세**

<table><thead><tr><th width="164">항목</th><th width="115">타입</th><th>설명</th></tr></thead><tbody><tr><td>total</td><td>int</td><td><strong>전체 레코드 수</strong></td></tr><tr><td>data</td><td>array</td><td><a data-mention href="#data">#data</a></td></tr></tbody></table>

#### data **상세**

<table><thead><tr><th width="181">항목</th><th width="110">타입</th><th>설명</th></tr></thead><tbody><tr><td>name</td><td>string</td><td><strong>사용자 이름</strong></td></tr><tr><td>departmentName</td><td>string</td><td><strong>그룹 이름</strong></td></tr><tr><td>departmentFull</td><td>string</td><td><strong>그룹 전체 경로</strong></td></tr><tr><td>osType</td><td>string</td><td><strong>os 유형</strong><br>windows : 윈도우 , macos : 맥</td></tr><tr><td>osUserName</td><td>string</td><td><strong>os 계정</strong></td></tr><tr><td>computerName</td><td>string</td><td><strong>컴퓨터 이름</strong></td></tr><tr><td>category</td><td>string</td><td><p><strong>디바이스 카테고리</strong><br>Others : 미분류, </p><p>CD-ROM/DVD/BD : CD-ROM/DVD, </p><p>Mobile Devices : 휴대용 장치, </p><p>Wireless LAN : 무선랜, </p><p>Bluetooth : 블루투스, </p><p>USB Tethering : USB 테더링, </p><p>USB LAN Adapter: USB 랜카드, <br>Ethernet Adapter: 유선랜카드,</p><p>Infrared Ports : 적외선 포트, </p><p>1394 Port : 1394 포트, </p><p>Modem : 모뎀, </p><p>PCMCIA Port : PCMCIA, </p><p>Image Capture Devices : 이미지 캡처 장치, </p><p>Serial/Parallel Port : Serial/Parallel 포트, </p><p>USB Port : USB 포트, </p><p>Removable Disk : 이동식 디스크</p></td></tr><tr><td>deviceDescription</td><td>string</td><td><strong>디바이스 설명</strong></td></tr><tr><td>deviceSerial</td><td>string</td><td><strong>디바이스 시리얼</strong></td></tr><tr><td>deviceHardwareId</td><td>string</td><td><strong>디바이스 하드웨어 ID</strong></td></tr><tr><td>deviceInstanceId</td><td>string</td><td><strong>디바이스 인스턴스 경로</strong></td></tr><tr><td>deviceClassGuid</td><td>string</td><td><strong>디바이스 클래스 GUID</strong></td></tr><tr><td>deviceClassName</td><td>string</td><td><strong>디바이스 클래스</strong></td></tr><tr><td>volumeUUID</td><td>string</td><td><strong>볼륨 UUID(macos)</strong></td></tr><tr><td>volumeName</td><td>string</td><td><strong>볼륨 이름(macos)</strong></td></tr><tr><td>volumeSize</td><td>string</td><td><strong>볼륨 용량(macos)</strong></td></tr><tr><td>dateOfEntryUTC</td><td>string</td><td><p><strong>제어 시각</strong></p><p>UTC 기준,  ISO 8601포맷</p></td></tr><tr><td>dateOfEntry</td><td>string</td><td><p><strong>제어 시각</strong></p><p>요청 타임존 기준,  ISO 8601포맷</p></td></tr></tbody></table>

### Example

{% tabs %}
{% tab title="200 Success" %}

```javascript
curl -X 'GET' \
  'https://openapi.exosp.com/logs/v1/device-control/connection-block?offset=0&tableSize=1&startTimeUTC=2024-05-01T15%3A00%3A00%2B00%3A00&endTimeUTC=2024-08-01T15%3A00%3A00%2B00%3A00&timezone=Asia%2FSeoul&sortType=DESC' \
  -H 'accept: application/json' \
  -H 'x-exosp-access: YOUR_ACCESS_KEY' \
  -H 'x-exosp-secret: YOUR_ACCESS_SECRET' 
  
{
  "code": 0,
  "message": "success",
  "body": {
    "total": 18,
    "data": [
      {
            "name": "이나영",
            "departmentName": "이나영",
            "departmentFull": "어벤져스 > 제품 > CX > 이나영",
            "osType": "windows",
            "osUserName": "nayoung",
            "computerName": "DESKTOP-NAYOUNG",
            "category": "Bluetooth",
            "deviceDescription": "인텔(R) 무선 Bluetooth(R)",
            "deviceSerial": "USB\\ROOT_HUB30\\4&11FD050C&0&0",
            "deviceHardwareId": "USB\\VID_8087&PID_0033&REV_0000",
            "deviceInstanceId": "USB\\VID_8087&PID_0033\\5&2AF8BBA2&0&14",
            "deviceClassGuid": "{e0cbf06c-cd8b-4647-bb8a-263b43f0f974}",
            "deviceClassName": "Bluetooth",
            "volumeUUID": "-",
            "volumeName": "-",
            "volumeSize": "-",
            "dateOfEntryUTC": "2024-11-28T13:36:12+00:00",
            "dateOfEntry": "2024-11-28T22:36:12+09:00"
      }
    ]
  }
}
```

{% endtab %}
{% endtabs %}
