mirror of
https://github.com/tribufu/proxmox-ve-openapi
synced 2026-06-01 09:42:38 +00:00
Modified reference/spec.v2.yaml
This commit is contained in:
parent
6f134b17d1
commit
ad9ddd11aa
1 changed files with 94 additions and 2 deletions
|
|
@ -9,13 +9,105 @@ info:
|
||||||
servers:
|
servers:
|
||||||
- url: 'http://cluster.local:8006/api2/json'
|
- url: 'http://cluster.local:8006/api2/json'
|
||||||
description: local
|
description: local
|
||||||
paths: {}
|
paths:
|
||||||
|
/access/ticket:
|
||||||
|
post:
|
||||||
|
summary: createAccessTicket
|
||||||
|
operationId: createAccessTicket
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Ticket'
|
||||||
|
application/xml:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Ticket'
|
||||||
|
description: Create or verify authentication ticket.
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/x-www-form-urlencoded:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties: {}
|
||||||
|
security: []
|
||||||
|
/version:
|
||||||
|
get:
|
||||||
|
summary: getVersion
|
||||||
|
tags: []
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: OK
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Version'
|
||||||
|
operationId: getVersion
|
||||||
|
description: |-
|
||||||
|
Path: /version
|
||||||
|
API version details. The result also includes the global datacenter confguration.
|
||||||
components:
|
components:
|
||||||
schemas: {}
|
schemas:
|
||||||
|
Ticket:
|
||||||
|
title: Ticket
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
username:
|
||||||
|
type: string
|
||||||
|
CSRFPreventionToken:
|
||||||
|
type: string
|
||||||
|
clustername:
|
||||||
|
type: string
|
||||||
|
ticket:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- username
|
||||||
|
TicketRequest:
|
||||||
|
title: TicketRequest
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
password:
|
||||||
|
type: string
|
||||||
|
username:
|
||||||
|
type: string
|
||||||
|
otp:
|
||||||
|
type: string
|
||||||
|
path:
|
||||||
|
type: string
|
||||||
|
privs:
|
||||||
|
type: string
|
||||||
|
realm:
|
||||||
|
type: string
|
||||||
|
required:
|
||||||
|
- password
|
||||||
|
- username
|
||||||
|
Version:
|
||||||
|
title: Version
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
release:
|
||||||
|
type: string
|
||||||
|
repoid:
|
||||||
|
type: string
|
||||||
|
version:
|
||||||
|
type: string
|
||||||
|
description: ''
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
PVEAuthCookie:
|
PVEAuthCookie:
|
||||||
type: apiKey
|
type: apiKey
|
||||||
in: cookie
|
in: cookie
|
||||||
name: PVEAuthCookie
|
name: PVEAuthCookie
|
||||||
|
responses:
|
||||||
|
ticketresponse:
|
||||||
|
description: Example response
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
data:
|
||||||
|
$ref: '#/components/schemas/Ticket'
|
||||||
|
examples: {}
|
||||||
security:
|
security:
|
||||||
- PVEAuthCookie: []
|
- PVEAuthCookie: []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue