Files
edge-api/source/management/posture-check-types.yml
Andrew MartinezandGitHub 2a12985526 Fix.openziti.ziti.3356.www.authenticate.headers (#169)
* 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
2026-02-12 13:41:23 -05:00

119 lines
3.5 KiB
YAML

---
paths:
posture-check-types:
get:
summary: List a subset of posture check types
description: |
Retrieves a list of posture check types
security:
- ztSession: [ ]
- oauth2: [ openid ]
tags:
- Posture Checks
operationId: listPostureCheckTypes
produces:
- application/json; charset=utf-8
parameters:
- $ref: '../shared/parameters.yml#/limit'
- $ref: '../shared/parameters.yml#/offset'
- $ref: '../shared/parameters.yml#/filter'
responses:
'200':
$ref: '#/responses/listPostureCheckTypes'
'401':
$ref: '../shared/standard-responses.yml#/responses/unauthorizedResponse'
'400':
$ref: '../shared/standard-responses.yml#/responses/badRequestResponse'
'429':
$ref: '../shared/standard-responses.yml#/responses/rateLimitedResponse'
'503':
$ref: '../shared/standard-responses.yml#/responses/serverUnavailableResponse'
posture-check-types-id:
parameters:
- $ref: '../shared/parameters.yml#/id'
get:
summary: Retrieves a single posture check type
description: Retrieves a single posture check type by id
security:
- ztSession: [ ]
- oauth2: [ openid ]
tags:
- Posture Checks
operationId: detailPostureCheckType
responses:
'200':
$ref: '#/responses/detailPostureCheckType'
'404':
$ref: '../shared/standard-responses.yml#/responses/notFoundResponse'
'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:
listPostureCheckTypes:
description: A list of posture check types
headers:
WWW-Authenticate:
description: "Denotes different type of security token related information"
type: array
items:
type: string
schema:
$ref: '#/definitions/listPostureCheckTypesEnvelope'
detailPostureCheckType:
description: Retrieves a singular posture check type by id
headers:
WWW-Authenticate:
description: "Denotes different type of security token related information"
type: array
items:
type: string
schema:
$ref: '#/definitions/detailPostureCheckTypeEnvelope'
definitions:
listPostureCheckTypesEnvelope:
type: object
required:
- meta
- data
properties:
meta:
$ref: '../shared/standard-responses.yml#/definitions/meta'
data:
$ref: '#/definitions/postureCheckTypeList'
detailPostureCheckTypeEnvelope:
type: object
required:
- meta
- data
properties:
meta:
$ref: '../shared/standard-responses.yml#/definitions/meta'
data:
$ref: '#/definitions/postureCheckTypeDetail'
postureCheckTypeList:
type: array
items:
$ref: '#/definitions/postureCheckTypeDetail'
postureCheckTypeDetail:
allOf:
- $ref: '../shared/base-entity.yml#/definitions/baseEntity'
- type: object
required:
- name
- operatingSystems
- version
properties:
name:
type: string
operatingSystems:
type: array
items:
$ref: 'posture-checks.yml#/definitions/operatingSystem'
version:
type: string