Skip to content

Commit

Permalink
add device_tunnel_port to create tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
jasontwong committed May 17, 2024
1 parent 87312a5 commit e70e2c9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
25 changes: 19 additions & 6 deletions src/openapi/peridio-admin-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ tags:
id: devices
- name: Products
id: products
- name: Bundles
id: bundles
- name: Releases
id: releases
- name: Tunnels
Expand Down Expand Up @@ -339,14 +337,17 @@ paths:
$ref: "#/components/schemas/device-prn"
description: |
Identifies which device to create a tunnel for.
device_tunnel_port:
$ref: "#/components/schemas/device-tunnel-port"
ttl:
type: integer
type: number
default: 3600
description: The amount of time in seconds that the tunnel is available for.
minimum: 0
maximum: 3600
required:
- device_prn
- device_tunnel_port
responses:
"201":
description: Ok.
Expand Down Expand Up @@ -3817,6 +3818,10 @@ components:
enum:
- on
- off
device-tunnel-port:
type: number
examples: [22]
description: The port on which the device is listening for service traffic (e.g. ssh).
event-prn:
allOf:
- $ref: "#/components/schemas/prn"
Expand Down Expand Up @@ -4633,9 +4638,7 @@ components:
description: The device's public key for wireguard.
examples: [Y4nCIXdpb+f3WgPi0377FDPCAfP+st82s98lTRepHEk=]
device_tunnel_port:
type: number
examples: [22]
description: The port on which the device is listening for service traffic (e.g. ssh).
$ref: "#/components/schemas/device-tunnel-port"
server_proxy_ip_address:
type: string
examples: [10.0.0.1]
Expand Down Expand Up @@ -4665,8 +4668,18 @@ components:
- "requested"
- "open"
- "closed"
device_prn:
$ref: "#/components/schemas/device-prn"
organization_prn:
$ref: "#/components/schemas/prn"
prn:
$ref: "#/components/schemas/tunnel-prn"
inserted_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
tunnel-prn:
allOf:
- $ref: "#/components/schemas/prn"
Expand Down
7 changes: 1 addition & 6 deletions src/openapi/peridio-device-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,7 @@ paths:
device_proxy_port:
type: number
description: The port on which the device is listening for wireguard UDP traffic.
examples: [530000]
device_tunnel_port:
type: number
description: The port to which wireguard will forward traffic to on the device.
examples: [22]
examples: [53000]
device_public_key:
type: string
examples: [Y4nCIXdpb+f3WgPi0377FDPCAfP+st82s98lTRepHEk=]
Expand All @@ -367,7 +363,6 @@ paths:
- cidr_blocks
- device_proxy_port
- device_public_key
- device_tunnel_port
- port_ranges
- tunnel_prn
responses:
Expand Down

0 comments on commit e70e2c9

Please sign in to comment.