Chaitin Tech policy/soft_network/{policy_id} API

策略管理/软件联网/policy_id 参数

OpenAPI Specification

chaitin-policy-soft-network-policy-id-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account policy/soft_network/{policy_id} API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: policy/soft_network/{policy_id}
  description: 策略管理/软件联网/policy_id 参数
paths:
  /policy/soft_network/{policy_id}:
    post:
      summary: 更新策略
      deprecated: false
      description: ''
      tags:
      - policy/soft_network/{policy_id}
      parameters:
      - name: policy_id
        in: path
        description: ''
        required: true
        example: 1867af24-34de-42b6-8db8-eb31d29188c4
        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: 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:
                name:
                  type: string
                description:
                  type: 'null'
                scope:
                  type: string
                period_category:
                  type: string
                source_scope:
                  type: string
                binding_config:
                  type: object
                  properties:
                    source:
                      type: string
                    include:
                      type: object
                      properties: {}
                    exclude:
                      type: object
                      properties: {}
                  required:
                  - source
                  - include
                  - exclude
                action:
                  type: string
                period_options:
                  type: object
                  properties:
                    period_hours_value:
                      type: array
                      items:
                        type: object
                        properties:
                          begin:
                            type: string
                          end:
                            type: string
                          week:
                            type: integer
                        required:
                        - begin
                        - end
                        - week
                  required:
                  - period_hours_value
                control_options:
                  type: object
                  properties:
                    whitelist:
                      type: array
                      items: {}
                  required:
                  - whitelist
              required:
              - name
              - description
              - scope
              - period_category
              - source_scope
              - binding_config
              - action
              - period_options
              - control_options
            example:
              name: '666667'
              description: null
              scope: global
              period_category: permanent
              source_scope: global
              binding_config:
                source: software_network
                include: {}
                exclude: {}
              action: net_allowed
              period_options:
                period_hours_value:
                - begin: 00:00
                  end: '23:59'
                  week: 1
                - begin: 00:00
                  end: '23:59'
                  week: 2
                - begin: 00:00
                  end: '23:59'
                  week: 3
                - begin: 00:00
                  end: '23:59'
                  week: 4
                - begin: 00:00
                  end: '23:59'
                  week: 5
                - begin: 00:00
                  end: '23:59'
                  week: 6
                - begin: 00:00
                  end: '23:59'
                  week: 7
              control_options:
                whitelist: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example: {}
      security: []