nat_docs fix

This commit is contained in:
Rain
2019-09-24 17:52:21 +08:00
parent be416cb75a
commit ef2e19653f
4 changed files with 21 additions and 7 deletions
+4 -4
View File
@@ -252,10 +252,10 @@ paths:
$ref: "./natgateway/natgateways.yaml"
/natgateways/{natgatewayId}:
$ref: "./natgateway/natgateway.yaml"
/natgateways/{natgatewayId}/dnat-eips:
$ref: "./natgateway/dnat-eips.yaml"
/natgateways/{natgatewayId}/snat-eips:
$ref: "./natgateway/snat-eips.yaml"
/natgateways/{natgatewayId}/dnat-resources:
$ref: "./natgateway/dnat-resources.yaml"
/natgateways/{natgatewayId}/snat-resources:
$ref: "./natgateway/snat-resources.yaml"
/natdentries:
$ref: "./natgateway/dnatentries.yaml"
/natdentries/{dnatentryId}:
@@ -6,7 +6,7 @@ post:
200:
description: DNAT规则EIP集合
schema:
- $ref: "../schemas/natgateway.yaml#/EIPAddrs"
- $ref: "../schemas/natgateway.yaml#/DNATResources"
tags:
- natgateway
@@ -6,6 +6,6 @@ post:
200:
description: SNAT规则EIP集合
schema:
- $ref: "../schemas/natgateway.yaml#/EIPAddrs"
- $ref: "../schemas/natgateway.yaml#/SNATResources"
tags:
- natgateway
+15 -1
View File
@@ -347,7 +347,7 @@ SNatEntryCreate:
example: 192.168.1.0/24
description: 映射到公网IP的内网网段(和network_id互斥,只需要传入一个)
EIPAddrs:
DNATResources:
type: object
properties:
eips:
@@ -355,3 +355,17 @@ EIPAddrs:
items:
type: string
example: [34.23.125.45, 23.45.123.56]
SNATResources:
type: object
properties:
eips:
type: array
items:
type: string
example: [34.23.125.45, 23.45.123.56]
networks:
type: array
items:
type: string
example: []