mirror of
https://github.com/hanzozt/edge-api.git
synced 2026-10-30 14:44:05 +00:00
* for openziti/ziti#3356 add www-authenticate headers - adds www-authenticate headers to all responses - moves to swagger 0.33.1 - updates readme - updates version checking in powershell and bash
195 lines
4.9 KiB
YAML
195 lines
4.9 KiB
YAML
---
|
|
paths:
|
|
posture-response:
|
|
post:
|
|
summary: Submit a posture response to a posture query
|
|
description: Submits posture responses
|
|
security:
|
|
- ztSession: [ ]
|
|
- oauth2: [ openid ]
|
|
tags:
|
|
- Posture Checks
|
|
operationId: createPostureResponse
|
|
parameters:
|
|
- name: postureResponse
|
|
in: body
|
|
required: true
|
|
description: A Posture Response
|
|
schema:
|
|
$ref: '#/definitions/postureResponseCreate'
|
|
responses:
|
|
'201':
|
|
$ref: '#/responses/postureResponse'
|
|
'400':
|
|
$ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
'429':
|
|
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
|
|
'503':
|
|
$ref: '../shared/standard-responses.yml#/responses/serverUnavailableResponse'
|
|
|
|
posture-response-bulk:
|
|
post:
|
|
summary: Submit multiple posture responses
|
|
description: Submits posture responses
|
|
security:
|
|
- ztSession: [ ]
|
|
- oauth2: [ openid ]
|
|
tags:
|
|
- Posture Checks
|
|
operationId: createPostureResponseBulk
|
|
parameters:
|
|
- name: postureResponse
|
|
in: body
|
|
required: true
|
|
description: A Posture Response
|
|
schema:
|
|
# using a named array definition causes issues w/ code gen
|
|
type: array
|
|
items:
|
|
$ref: "#/definitions/postureResponseCreate"
|
|
responses:
|
|
'200':
|
|
$ref: '#/responses/postureResponse'
|
|
'400':
|
|
$ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
|
|
'401':
|
|
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
|
|
'429':
|
|
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
|
|
'503':
|
|
$ref: '../shared/standard-responses.yml#/responses/serverUnavailableResponse'
|
|
|
|
responses:
|
|
postureResponse:
|
|
description: Contains a list of services that have had their timers altered
|
|
headers:
|
|
WWW-Authenticate:
|
|
description: "Denotes different type of security token related information"
|
|
type: array
|
|
items:
|
|
type: string
|
|
schema:
|
|
$ref: '#/definitions/postureResponseEnvelope'
|
|
|
|
definitions:
|
|
postureResponseEnvelope:
|
|
type: object
|
|
required:
|
|
- meta
|
|
- data
|
|
properties:
|
|
meta:
|
|
$ref: '../shared/standard-responses.yml#/definitions/meta'
|
|
data:
|
|
$ref: '#/definitions/postureResponse'
|
|
postureResponseService:
|
|
type: object
|
|
required:
|
|
- id
|
|
- name
|
|
- postureQueryType
|
|
- timeout
|
|
- timeoutRemaining
|
|
properties:
|
|
id:
|
|
type: string
|
|
name:
|
|
type: string
|
|
postureQueryType:
|
|
type: string
|
|
timeout:
|
|
type: integer
|
|
timeoutRemaining:
|
|
type: integer
|
|
postureResponse:
|
|
type: object
|
|
required:
|
|
- services
|
|
properties:
|
|
services:
|
|
type: array
|
|
items:
|
|
$ref: '#/definitions/postureResponseService'
|
|
postureResponseCreate:
|
|
type: object
|
|
discriminator: typeId
|
|
required:
|
|
- id
|
|
- typeId
|
|
properties:
|
|
id:
|
|
type: string
|
|
typeId:
|
|
$ref: '../shared/posture-checks.yml#/definitions/postureCheckType'
|
|
|
|
postureResponseOperatingSystemCreate:
|
|
allOf:
|
|
- $ref: '#/definitions/postureResponseCreate'
|
|
- type: object
|
|
required:
|
|
- type
|
|
- version
|
|
properties:
|
|
type:
|
|
type: string
|
|
version:
|
|
type: string
|
|
build:
|
|
type: string
|
|
x-class: "OS"
|
|
|
|
postureResponseDomainCreate:
|
|
allOf:
|
|
- $ref: '#/definitions/postureResponseCreate'
|
|
- type: object
|
|
required:
|
|
- domain
|
|
properties:
|
|
domain:
|
|
type: string
|
|
x-class: "DOMAIN"
|
|
|
|
postureResponseMacAddressCreate:
|
|
allOf:
|
|
- $ref: '#/definitions/postureResponseCreate'
|
|
- type: object
|
|
required:
|
|
- macAddresses
|
|
properties:
|
|
macAddresses:
|
|
type: array
|
|
items:
|
|
type: string
|
|
x-class: "MAC"
|
|
|
|
postureResponseProcessCreate:
|
|
allOf:
|
|
- $ref: '#/definitions/postureResponseCreate'
|
|
- type: object
|
|
required:
|
|
- process
|
|
properties:
|
|
path:
|
|
type: string
|
|
isRunning:
|
|
type: boolean
|
|
hash:
|
|
type: string
|
|
signerFingerprints:
|
|
type: array
|
|
items:
|
|
type: string
|
|
x-class: "PROCESS"
|
|
|
|
postureResponseEndpointStateCreate:
|
|
allOf:
|
|
- $ref: '#/definitions/postureResponseCreate'
|
|
- type: object
|
|
properties:
|
|
unlocked:
|
|
type: boolean
|
|
woken:
|
|
type: boolean
|
|
x-class: "ENDPOINT_STATE" |