Chaitin Tech policy/email/{uid}/detail API

策略管理/邮件/uid 参数/详情

OpenAPI Specification

chaitin-policy-email-uid-detail-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account policy/email/{uid}/detail API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: policy/email/{uid}/detail
  description: 策略管理/邮件/uid 参数/详情
paths:
  /policy/email/{uid}/detail:
    post:
      summary: 详情
      deprecated: false
      description: ''
      tags:
      - policy/email/{uid}/detail
      parameters:
      - name: uid
        in: path
        description: ''
        required: true
        example: string
        schema:
          type: string
      - 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: Accept
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      create_by:
                        type: object
                        properties:
                          uid:
                            type: string
                          name:
                            type: string
                          username:
                            type: string
                          email:
                            type: string
                        required:
                        - uid
                        - name
                        - username
                        - email
                      expression:
                        type: string
                      description:
                        type: string
                      scope:
                        type: string
                      name:
                        type: string
                      expression_relation:
                        type: string
                      create_time:
                        type: string
                      action_template_id:
                        type: 'null'
                      action:
                        type: string
                      update_time:
                        type: string
                      company_id:
                        type: string
                      update_by:
                        type: object
                        properties:
                          uid:
                            type: string
                          name:
                            type: string
                          username:
                            type: string
                          email:
                            type: string
                        required:
                        - uid
                        - name
                        - username
                        - email
                      expression_fields:
                        type: array
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                            value:
                              type: array
                              items:
                                type: object
                                properties:
                                  uid:
                                    type: string
                                  name:
                                    type: string
                                  display_name:
                                    type: string
                                  source:
                                    type: string
                                  channel_family:
                                    type: string
                                  windows_config_enabled:
                                    type: boolean
                                  macos_config_enabled:
                                    type: boolean
                                  webapp_config_enabled:
                                    type: boolean
                                  linux_config_enabled:
                                    type: boolean
                                  kylin_config_enabled:
                                    type: boolean
                                  uos_config_enabled:
                                    type: boolean
                                  detect_method:
                                    type: string
                                  code:
                                    type: string
                                  scheme_id:
                                    type: string
                                  hub_id:
                                    type: string
                                  data_level:
                                    type: integer
                                  data_level_name:
                                    type: string
                                required:
                                - uid
                                - name
                                - detect_method
                                - code
                                - scheme_id
                                - hub_id
                                - data_level
                                - data_level_name
                            operator:
                              type: string
                          required:
                          - field
                          - value
                          - operator
                      status:
                        type: string
                      source:
                        type: string
                      uid:
                        type: string
                      binding_config:
                        type: object
                        properties:
                          include:
                            type: object
                            properties:
                              devices:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    name:
                                      type: string
                                    code:
                                      type: string
                              device_tags:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    name:
                                      type: string
                              staffs:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    name:
                                      type: string
                              staff_tags:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    name:
                                      type: string
                              depts:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    uid:
                                      type: string
                                    name:
                                      type: string
                            required:
                            - devices
                            - device_tags
                            - staffs
                            - staff_tags
                            - depts
                          exclude:
                            type: object
                            properties:
                              depts:
                                type: array
                                items: {}
                              staffs:
                                type: array
                                items: {}
                              staff_tags:
                                type: array
                                items: {}
                              devices:
                                type: array
                                items: {}
                              device_tags:
                                type: array
                                items: {}
                            required:
                            - depts
                            - staffs
                            - staff_tags
                            - devices
                            - device_tags
                        required:
                        - include
                        - exclude
                    required:
                    - create_by
                    - expression
                    - description
                    - scope
                    - name
                    - expression_relation
                    - create_time
                    - action_template_id
                    - action
                    - update_time
                    - company_id
                    - update_by
                    - expression_fields
                    - status
                    - source
                    - uid
                    - binding_config
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: success
                data:
                  create_by:
                    uid: b1c9536d-95af-482e-adb8-03b19677a467
                    name: xieqing
                    username: xieqing
                    email: 123@123123.com
                  expression: N/A
                  description: 策略描述
                  scope: common
                  name: 落盘策略
                  expression_relation: all
                  create_time: '2024-07-29T01:36:38.718298Z'
                  action_template_id: null
                  action: notify
                  update_time: '2024-07-29T01:36:38.718357Z'
                  company_id: eeff7c64-5070-4582-8b93-fbcc57db7771
                  update_by:
                    uid: b1c9536d-95af-482e-adb8-03b19677a467
                    name: xieqing
                    username: xieqing
                    email: 123@123123.com
                  expression_fields:
                  - field: channel
                    value:
                    - uid: a5b60b18-c079-4cbf-accb-e94011a4a680
                      name: feishu
                      display_name: 飞书
                      source: default
                      channel_family: application
                      windows_config_enabled: true
                      macos_config_enabled: true
                      webapp_config_enabled: false
                      linux_config_enabled: true
                      kylin_config_enabled: true
                      uos_config_enabled: false
                    operator: contains
                  - field: classification
                    value:
                    - uid: 87b1d4f1-cedf-471a-bf6e-59da4c8e6af7
                      name: hu加密
                      detect_method: keywords
                      code: 58d5010d7b27cdf9
                      scheme_id: 2fba9d88-4c45-493d-ae40-bf9573278dbe
                      hub_id: 81cbd7d0-85d2-400d-a1e8-ba9ce263395c
                      data_level: 4
                      data_level_name: 机密数据
                    - uid: 1ac42ef2-1906-4459-9273-aabffa2a50ee
                      name: hu隐藏
                      detect_method: keywords
                      code: 13cacf3dd692999f
                      scheme_id: 2fba9d88-4c45-493d-ae40-bf9573278dbe
                      hub_id: 81cbd7d0-85d2-400d-a1e8-ba9ce263395c
                      data_level: 4
                      data_level_name: 机密数据
                    operator: contains
                  status: deactivated
                  source: added
                  uid: 51adf540-a499-40b2-951a-eac56fd85f77
                  binding_config:
                    include:
                      devices:
                      - uid: 8464a3c6-c805-4423-acbb-c0c9cadb273a
                        name: DNAMEae305f533d4295cc
                        code: PC-000004
                      device_tags:
                      - uid: ef87e984-d10e-494c-96a5-7f41dbfbd710
                        name: rwww
                      staffs:
                      - uid: 100faf26-d362-4ca2-befb-3ac8c22673eb
                        name: 何睿
                      staff_tags:
                      - uid: 4ca4e3ce-aebe-46f6-ac67-f2d7acbf0a37
                        name: 待离职
                      depts:
                      - uid: 43a3e1a1-b931-4a82-9480-da8de16047db
                        name: 何睿测试名称更新名称
                    exclude:
                      depts: []
                      staffs: []
                      staff_tags: []
                      devices: []
                      device_tags: []
      security: []