OpenAPI Specification
openapi: 3.0.3
info:
title: APISec Management account policy/soft_network API
version: '26.05'
description: Generated from APISec skyview APIView classes.
tags:
- name: policy/soft_network
description: 策略管理/软件联网
paths:
/policy/soft_network:
post:
summary: 添加
deprecated: false
description: ''
tags:
- policy/soft_network
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:
name:
type: string
description:
type: 'null'
period_category:
type: string
period_options:
type: object
properties:
period_value:
type: array
items:
type: string
period_hours_value:
type: array
items:
type: integer
required:
- period_value
- period_hours_value
scope:
type: string
source_scope:
type: string
action_template_id:
type: string
binding_config:
type: object
properties:
source:
type: string
include:
type: object
properties:
device_ids:
type: array
items:
type: string
required:
- device_ids
exclude:
type: object
properties: {}
required:
- source
- include
- exclude
action:
type: string
control_options:
type: object
properties:
whitelist:
type: array
items: {}
required:
- whitelist
required:
- name
- description
- period_category
- period_options
- scope
- source_scope
- action_template_id
- binding_config
- action
- control_options
example:
name: '11112234'
description: null
period_category: period
period_options:
period_value:
- '2024-06-26 00:00:00'
- '2024-06-26 23:59:59'
period_hours_value:
- 0
- 24
scope: common
source_scope: global
action_template_id: 7fc7a92c07674c26b6983da7c97f721d
binding_config:
source: software_network
include:
device_ids:
- 676b7ae5-81b1-4cc3-80d2-3fbaffaf56d1
exclude: {}
action: net_banned
control_options:
whitelist: []
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example: {}
security: []