added beta-10 swagger
parent
c696aa3ff8
commit
bc08f1a133
|
@ -4375,6 +4375,84 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$ref: "#/components/schemas/Error"
|
||||||
/packages/stacks:
|
/packages/stacks:
|
||||||
|
get:
|
||||||
|
operationId: ListStacks
|
||||||
|
tags:
|
||||||
|
- InfluxPackages
|
||||||
|
summary: Grab a list of installed Influx packages
|
||||||
|
parameters:
|
||||||
|
- in: query
|
||||||
|
name: orgID
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: The organization id of the stacks
|
||||||
|
- in: query
|
||||||
|
name: name
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: A collection of names to filter the list by.
|
||||||
|
- in: query
|
||||||
|
name: stackID
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: A collection of stackIDs to filter the list by.
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Influx stacks found
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
orgID:
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
urls:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
createdAt:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
readOnly: true
|
||||||
|
updatedAt:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
readOnly: true
|
||||||
|
resources:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
apiVersion:
|
||||||
|
type: string
|
||||||
|
resourceID:
|
||||||
|
type: string
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
pkgName:
|
||||||
|
type: string
|
||||||
|
associations:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
kind:
|
||||||
|
type: string
|
||||||
|
pkgName:
|
||||||
|
type: string
|
||||||
|
default:
|
||||||
|
description: Unexpected error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/Error"
|
||||||
post:
|
post:
|
||||||
operationId: CreateStack
|
operationId: CreateStack
|
||||||
tags:
|
tags:
|
||||||
|
@ -4432,6 +4510,34 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$ref: "#/components/schemas/Error"
|
||||||
|
/packages/stacks/{stack_id}:
|
||||||
|
delete:
|
||||||
|
operationId: DeleteStack
|
||||||
|
tags:
|
||||||
|
- InfluxPackages
|
||||||
|
summary: Delete a stack and remove all its associated resources
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: stack_id
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: The stack id to be removed
|
||||||
|
- in: query
|
||||||
|
name: orgID
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
description: The organization id of the user
|
||||||
|
responses:
|
||||||
|
'204':
|
||||||
|
description: Stack and all its associated resources are deleted
|
||||||
|
default:
|
||||||
|
description: Unexpected error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/Error"
|
||||||
/tasks:
|
/tasks:
|
||||||
get:
|
get:
|
||||||
operationId: GetTasks
|
operationId: GetTasks
|
||||||
|
@ -4936,6 +5042,27 @@ paths:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Error"
|
$ref: "#/components/schemas/Error"
|
||||||
|
/flags:
|
||||||
|
get:
|
||||||
|
operationId: GetFlags
|
||||||
|
tags:
|
||||||
|
- Users
|
||||||
|
summary: Return the feature flags for the currently authenticated user
|
||||||
|
parameters:
|
||||||
|
- $ref: '#/components/parameters/TraceSpan'
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Feature flags for the currently authenticated user
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/Flags"
|
||||||
|
default:
|
||||||
|
description: Unexpected error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: "#/components/schemas/Error"
|
||||||
/me:
|
/me:
|
||||||
get:
|
get:
|
||||||
operationId: GetMe
|
operationId: GetMe
|
||||||
|
@ -8138,6 +8265,9 @@ components:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: "#/components/schemas/User"
|
$ref: "#/components/schemas/User"
|
||||||
|
Flags:
|
||||||
|
type: object
|
||||||
|
additionalProperties: true
|
||||||
ResourceMember:
|
ResourceMember:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "#/components/schemas/User"
|
- $ref: "#/components/schemas/User"
|
||||||
|
@ -8223,6 +8353,9 @@ components:
|
||||||
me:
|
me:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
flags:
|
||||||
|
type: string
|
||||||
|
format: uri
|
||||||
orgs:
|
orgs:
|
||||||
type: string
|
type: string
|
||||||
format: uri
|
format: uri
|
||||||
|
|
Loading…
Reference in New Issue