Parcourir la source

add 403 for endpoint network create

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud il y a 8 ans
Parent
commit
0d21e24b9f
2 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 4 0
      api/swagger.yaml
  2. 1 0
      docs/api/v1.24.md

+ 4 - 0
api/swagger.yaml

@@ -6119,6 +6119,10 @@ paths:
             example:
               Id: "22be93d5babb089c5aab8dbc369042fad48ff791584ca2da2100db837a1c7c30"
               Warning: ""
+        403:
+          description: "operation not supported for pre-defined networks"
+          schema:
+            $ref: "#/definitions/ErrorResponse"
         404:
           description: "plugin not found"
           schema:

+ 1 - 0
docs/api/v1.24.md

@@ -3319,6 +3319,7 @@ Content-Type: application/json
 **Status codes**:
 
 - **201** - no error
+- **403** - operation not supported for pre-defined networks
 - **404** - plugin not found
 - **500** - server error