Files
influx-cli/api/contract/overrides/paths/stacks_stack_id.yml
2021-06-30 15:24:53 -04:00

85 lines
1.9 KiB
YAML

get:
operationId: ReadStack
tags:
- Stacks
summary: Retrieve a stack
parameters:
- in: path
name: stack_id
required: true
schema:
type: string
description: The identifier of the stack.
responses:
"200":
description: The InfluxDB stack
content:
application/json:
schema:
$ref: "../schemas/Stack.yml"
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "../../openapi/src/common/schemas/Error.yml"
patch:
operationId: UpdateStack
tags:
- Stacks
summary: Update an InfluxDB Stack
parameters:
- in: path
name: stack_id
required: true
schema:
type: string
description: The identifier of the stack.
requestBody:
description: Influx stack to update.
required: true
content:
application/json:
schema:
$ref: "../schemas/StackPatchRequest.yml"
responses:
"200":
description: Influx stack updated
content:
application/json:
schema:
$ref: "../schemas/Stack.yml"
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "../../openapi/src/common/schemas/Error.yml"
delete:
operationId: DeleteStack
tags:
- Stacks
summary: Delete a stack and associated resources
parameters:
- in: path
name: stack_id
required: true
schema:
type: string
description: The identifier of the stack.
- in: query
name: orgID
required: true
schema:
type: string
description: The identifier of the organization.
responses:
"204":
description: The stack and its associated resources are deleted
default:
description: Unexpected error
content:
application/json:
schema:
$ref: "../../openapi/src/common/schemas/Error.yml"