Chaitin Tech policylog/clipboard/stafflist API

日志中心/剪贴板/人员列表

OpenAPI Specification

chaitin-policylog-clipboard-stafflist-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account policylog/clipboard/stafflist API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: policylog/clipboard/stafflist
  description: 日志中心/剪贴板/人员列表
paths:
  /policylog/clipboard/stafflist:
    post:
      summary: 剪切板管控员工列表信息
      deprecated: false
      description: ''
      tags:
      - policylog/clipboard/stafflist
      parameters:
      - name: X-CS-Header-App
        in: header
        description: 应用id
        required: true
        example: '{{app}}'
        schema:
          type: string
      - name: X-CS-Header-Company
        in: header
        description: 公司id
        required: true
        example: '{{company_id}}'
        schema:
          type: string
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: true
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: true
        example: string
        schema:
          type: string
      - name: X-CS-Header-Debug
        in: header
        description: ''
        required: true
        example: '{{debug}}'
        schema:
          type: string
      - name: Accept-Language
        in: header
        description: ''
        required: true
        example: zh
        schema:
          type: string
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: true
        example: Asia/Shanghai
        schema:
          type: string
      - name: Content-Type
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                time_range:
                  type: object
                  properties:
                    begin:
                      type: string
                    end:
                      type: string
                  required:
                  - begin
                  - end
                search:
                  type: string
                queries:
                  type: array
                  items:
                    type: object
                    properties:
                      field:
                        type: string
                      operator:
                        type: string
                      value:
                        type: string
              required:
              - time_range
              - search
              - queries
            example:
              time_range:
                begin: '2023-11-14 10:55:38'
                end: '2023-11-14 11:55:38'
              search: ''
              queries:
              - field: staff_name
                operator: is
                value: 吴贝宁
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      index:
                        type: array
                        items:
                          type: string
                      total:
                        type: integer
                      search_total:
                        type: integer
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            staff_id:
                              type: string
                            staff_name:
                              type: string
                            console_user:
                              type: string
                            dept_paths:
                              type: array
                              items:
                                type: string
                            os_list:
                              type: array
                              items:
                                type: object
                                properties:
                                  os_icon:
                                    type: string
                                  os_name:
                                    type: string
                                required:
                                - os_icon
                                - os_name
                            device_list:
                              type: array
                              items:
                                type: object
                                properties:
                                  device_id:
                                    type: string
                                  device_code:
                                    type: string
                                  os_icon:
                                    type: string
                                  os_name:
                                    type: string
                                  total:
                                    type: integer
                                required:
                                - device_id
                                - device_code
                                - os_icon
                                - os_name
                                - total
                            device_cnt:
                              type: integer
                          required:
                          - staff_id
                          - staff_name
                          - console_user
                          - dept_paths
                          - os_list
                          - device_list
                          - device_cnt
                    required:
                    - index
                    - total
                    - search_total
                    - results
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: success
                data:
                  index:
                  - qzhddr_policy_clipboard_logs
                  total: 4
                  search_total: 4
                  results:
                  - staff_id: ''
                    staff_name: ''
                    console_user: pengy@TEST1111
                    dept_paths: []
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    - os_icon: macOS
                      os_name: macOS
                    device_list:
                    - device_id: 4f56fd8f-411f-4d96-b01f-122fa4a98b97
                      device_code: PC-000126
                      os_icon: windows
                      os_name: Windows
                      total: 1
                    - device_id: c20a94bd-9b23-4f22-bf82-1fa4e20a1242
                      device_code: PC-000030
                      os_icon: macOS
                      os_name: macOS
                      total: 1
                    device_cnt: 2
                  - staff_id: f454e8c5-fb39-4047-8e9f-baf139994962
                    staff_name: wbnwbn
                    console_user: soumao-ZhaoYangN4620Z\soumao
                    dept_paths:
                    - 测试公司/测试部门
                    os_list:
                    - os_icon: Kylin
                      os_name: Kylin
                    device_list:
                    - device_id: 2b358f78-bd4c-4380-8163-985f82081211
                      device_code: PC-000059
                      os_icon: Kylin
                      os_name: Kylin
                      total: 2
                    device_cnt: 1
      security: []