Skip to content

Commit 3390fed

Browse files
committed
feat: import / export routes for zac
1 parent 8eb3da8 commit 3390fed

25 files changed

+2174
-5
lines changed

client.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ info:
1515
license:
1616
name: Apache 2.0
1717
url: https://www.apache.org/licenses/LICENSE-2.0.html
18-
version: 0.26.42
18+
version: 0.26.43
1919
host: demo.ziti.dev
2020
basePath: /edge/client/v1
2121
paths:

management.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,72 @@ paths:
392392
name: id
393393
in: path
394394
required: true
395+
/ascode/export:
396+
post:
397+
consumes:
398+
- application/json
399+
tags:
400+
- Ascode
401+
summary: Export network bundle
402+
operationId: exportAscode
403+
parameters:
404+
- description: Export options
405+
name: exportRequest
406+
in: body
407+
required: true
408+
schema:
409+
type: object
410+
properties:
411+
format:
412+
type: string
413+
enum:
414+
- yaml
415+
- json
416+
types:
417+
type: string
418+
responses:
419+
"200":
420+
description: Network configuration bundle exported
421+
"401":
422+
description: The supplied session does not have the correct access rights
423+
to request this resource
424+
schema:
425+
$ref: '#/definitions/apiErrorEnvelope'
426+
examples:
427+
application/json:
428+
error:
429+
args:
430+
urlVars: {}
431+
cause: ""
432+
causeMessage: ""
433+
code: UNAUTHORIZED
434+
message: The request could not be completed. The session is not authorized
435+
or the credentials are invalid
436+
requestId: 0bfe7a04-9229-4b7a-812c-9eb3cc0eac0f
437+
meta:
438+
apiEnrollmentVersion: 0.0.1
439+
apiVersion: 0.0.1
440+
/ascode/import:
441+
post:
442+
tags:
443+
- Ascode
444+
summary: Import a network bundle
445+
operationId: importAscode
446+
parameters:
447+
- type: boolean
448+
description: If true, the import is validated but not persisted
449+
name: dryRun
450+
in: query
451+
responses:
452+
"204":
453+
description: Base empty response
454+
schema:
455+
$ref: '#/definitions/empty'
456+
"422":
457+
description: The entity could not be processed due to semantic errors in
458+
the payload
459+
schema:
460+
$ref: '#/definitions/apiErrorEnvelope'
395461
/auth-policies:
396462
get:
397463
security:

rest_client_api_server/doc.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rest_client_api_server/embedded_spec.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rest_management_api_client/ascode/ascode_client.go

Lines changed: 143 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)