Chaitin Tech policylog/code/stafflist API

日志中心/代码/人员列表

OpenAPI Specification

chaitin-policylog-code-stafflist-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account policylog/code/stafflist API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: policylog/code/stafflist
  description: 日志中心/代码/人员列表
paths:
  /policylog/code/stafflist:
    post:
      summary: 代码管控员工列表信息
      deprecated: false
      description: ''
      tags:
      - policylog/code/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_code_control_logs
                  total: 558
                  search_total: 558
                  results:
                  - staff_id: b96cf657-c2c1-4174-bf67-27b4f303dfac
                    staff_name: hyj
                    console_user: huyajie
                    dept_paths:
                    - 测试公司
                    os_list:
                    - os_icon: macOS
                      os_name: macOS
                    device_list:
                    - device_id: bae4f6c4-249e-44bf-ad7c-0b8c683e385d
                      device_code: PC-000082
                      os_icon: macOS
                      os_name: macOS
                      total: 151
                    - device_id: 3bb3f844-b81c-4f28-b2ec-b24fa667e3f7
                      device_code: PC-000096
                      os_icon: macOS
                      os_name: macOS
                      total: 10
                    - device_id: 9f162d3f-731d-44dc-901b-16a9571ab2df
                      device_code: PC-000075
                      os_icon: macOS
                      os_name: macOS
                      total: 8
                    device_cnt: 3
                  - staff_id: 90534539-028d-40ea-9e8d-68f1a7b1cc88
                    staff_name: qewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewqqewewq
                    console_user: lianb@DESKTOP-A0L03FT@DESKTOP-A0L03FT
                    dept_paths: []
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: a05300b7-7b76-4b54-ad25-a16a9c516c29
                      device_code: PC-000108
                      os_icon: windows
                      os_name: Windows
                      total: 56
                    device_cnt: 1
                  - staff_id: 782560d3-5c5e-446d-94cd-b46ca88a6d3f
                    staff_name: 鹿立学
                    console_user: nanzhi
                    dept_paths:
                    - 测试公司/研发部/macOS终端组
                    os_list:
                    - os_icon: macOS
                      os_name: macOS
                    device_list:
                    - device_id: b33dff9c-6e23-44c6-a914-cc1b1cd04447
                      device_code: PC-000112
                      os_icon: macOS
                      os_name: macOS
                      total: 53
                    device_cnt: 1
                  - staff_id: 064092ab-d2c9-4f1f-b7f7-70c788a6fbb1
                    staff_name: 彭柔
                    console_user: lianb@DESKTOP-A0L03FT
                    dept_paths:
                    - 测试公司/质量保证组
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: a05300b7-7b76-4b54-ad25-a16a9c516c29
                      device_code: PC-000108
                      os_icon: windows
                      os_name: Windows
                      total: 18
                    device_cnt: 1
                  - staff_id: 64381e35-7ecc-4892-8d90-f7b52da3ed2b
                    staff_name: pengrou
                    console_user: lianb@DESKTOP-A0L03FT
                    dept_paths: []
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: a05300b7-7b76-4b54-ad25-a16a9c516c29
                      device_code: PC-000108
                      os_icon: windows
                      os_name: Windows
                      total: 13
                    device_cnt: 1
                  - staff_id: 3b926e09-676c-47ac-95b5-adc5fe7777c4
                    staff_name: 彭柔
                    console_user: lianb@DESKTOP-A0L03FT
                    dept_paths:
                    - 测试公司/质量保证组
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: a05300b7-7b76-4b54-ad25-a16a9c516c29
                      device_code: PC-000108
                      os_icon: windows
                      os_name: Windows
                      total: 12
                    device_cnt: 1
                  - staff_id: 3227c4e3-9afd-475e-aefd-86b1afac7439
                    staff_name: Mercury
                    console_user: mercury
                    dept_paths:
                    - 测试公司/产品部
                    os_list:
                    - os_icon: macOS
                      os_name: macOS
                    device_list:
                    - device_id: d78ac208-0ddb-4793-b826-b34d54c44bb0
                      device_code: PC-000007
                      os_icon: macOS
                      os_name: macOS
                      total: 10
                    device_cnt: 1
                  - staff_id: 7d1f7e9a-4a47-4f3d-9015-99b2852dec49
                    staff_name: 周周
                    console_user: serval-PC\serval
                    dept_paths:
                    - 测试公司/测试部门
                    os_list:
                    - os_icon: UOS
                      os_name: UOS
                    device_list:
                    - device_id: df5f440d-e7c1-4f40-a9ba-21f9af571f5e
                      device_code: PC-000064
                      os_icon: UOS
                      os_name: UOS
                      total: 6
                    - device_id: 6590b381-3a3f-44f9-9e5d-684f2e0670cf
                      device_code: PC-000134
                      os_icon: UOS
                      os_name: UOS
                      total: 1
                    device_cnt: 2
                  - staff_id: 2df26a2d-4b37-4e21-894b-8bf076f175d1
                    staff_name: clb
                    console_user: lianb@DESKTOP-PNED9SM@DESKTOP-PNED9SM
                    dept_paths:
                    - 测试公司/测试部门
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: 5f46677b-d939-4f28-8209-ffdf14d7316c
                      device_code: PC-000045
                      os_icon: windows
                      os_name: Windows
                      total: 6
                    device_cnt: 1
                  - staff_id: 4781671e-4fd6-4702-bdfd-d343c70551e2
                    staff_name: 周紫莹
                    console_user: serval-PC\serval
                    dept_paths:
                    - 测试公司/研发部
                    os_list:
                    - os_icon: UOS
                      os_name: UOS
                    device_list:
                    - device_id: df5f440d-e7c1-4f40-a9ba-21f9af571f5e
                      device_code: PC-000064
                      os_icon: UOS
                      os_name: UOS
                      total: 6
                    device_cnt: 1
                  - staff_id: 83e5499e-d272-40fa-930e-237ce6eac9d2
                    staff_name: 彭柔
                    console_user: lianb@DESKTOP-A0L03FT
                    dept_paths:
                    - 测试公司/cyberserval
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: a05300b7-7b76-4b54-ad25-a16a9c516c29
                      device_code: PC-000108
                      os_icon: windows
                      os_name: Windows
                      total: 4
                    device_cnt: 1
                  - staff_id: 8ccd5a8d-34d9-41d3-b988-f2b0fb9b9cdd
                    staff_name: 周周
                    console_user: serval-PC\serval
                    dept_paths:
                    - 测试公司/测试部门
                    os_list:
                    - os_icon: UOS
                      os_name: UOS
                    device_list:
                    - device_id: 6590b381-3a3f-44f9-9e5d-684f2e0670cf
                      device_code: PC-000134
                      os_icon: UOS
                      os_name: UOS
                      total: 3
                    device_cnt: 1
                  - staff_id: ''
                    staff_name: ''
                    console_user: serval-PC\root
                    dept_paths: []
                    os_list:
                    - os_icon: UOS
                      os_name: UOS
                    - os_icon: macOS
                      os_name: macOS
                    device_list:
                    - device_id: 6590b381-3a3f-44f9-9e5d-684f2e0670cf
                      device_code: PC-000134
                      os_icon: UOS
                      os_name: UOS
                      total: 1
                    - device_id: bae4f6c4-249e-44bf-ad7c-0b8c683e385d
                      device_code: PC-000082
                      os_icon: macOS
                      os_name: macOS
                      total: 1
                    device_cnt: 2
                  - staff_id: 205ec81b-634c-4d58-98df-e77c704b290a
                    staff_name: test test1
                    console_user: lianb@DESKTOP-PNED9SM@DESKTOP-PNED9SM
                    dept_paths:
                    - 测试公司
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: 5f46677b-d939-4f28-8209-ffdf14d7316c
                      device_code: PC-000045
                      os_icon: windows
                      os_name: Windows
                      total: 2
                    device_cnt: 1
                  - staff_id: 62a5e0f8-831b-4ca4-ab18-6760d4773111
                    staff_name: 彭柔
                    console_user: lianb@DESKTOP-A0L03FT
                    dept_paths:
                    - 测试公司/质量保证组
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: a05300b7-7b76-4b54-ad25-a16a9c516c29
                      device_code: PC-000108
                      os_icon: windows
                      os_name: Windows
                      total: 1
                    device_cnt: 1
                  - staff_id: 79ad0694-390b-4378-b1b6-a4ef89ee85c9
                    staff_name: 胡雅杰
                    console_user: huyajie
                    dept_paths:
                    - 测试公司
                    os_list:
                    - os_icon: macOS
                      os_name: macOS
                    device_list:
                    - device_id: bae4f6c4-249e-44bf-ad7c-0b8c683e385d
                      device_code: PC-000082
                      os_icon: macOS
                      os_name: macOS
                      total: 1
                    device_cnt: 1
                  - staff_id: 81f1335c-2f3b-4747-80c7-ef39a075e1bd
                    staff_name: 彭柔
                    console_user: lianb@DESKTOP-A0L03FT
                    dept_paths: []
                    os_list:
                    - os_icon: windows
                      os_name: Windows
                    device_list:
                    - device_id: a05300b7-7b76-4b54-ad25-a16a9c516c29
                      device_code: PC-000108
                      os_icon: windows
                      os_name: Windows
                      total: 1
                    device_cnt: 1
      security: []