2023-09-05 12:51:27 +02:00
|
|
|
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
2022-03-28 14:30:04 +02:00
|
|
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
2023-08-31 11:25:01 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
---
|
2021-11-18 12:10:36 +01:00
|
|
|
post:
|
|
|
|
operationId: restart
|
|
|
|
summary: Restart the VILLASnode instance.
|
|
|
|
tags:
|
|
|
|
- super-node
|
|
|
|
requestBody:
|
|
|
|
required: false
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
config:
|
|
|
|
oneOf:
|
2022-03-28 14:30:04 +02:00
|
|
|
- type: string
|
|
|
|
example: 'http://example.com/path/to/config.json'
|
|
|
|
title: URL
|
|
|
|
description: |
|
|
|
|
An optional path or URI to a new configuration file which
|
|
|
|
should be loaded after restarting the node.
|
2024-02-28 00:12:39 +01:00
|
|
|
|
2022-03-28 14:30:04 +02:00
|
|
|
The file referenced by the URL must be a [VILLASnode configuration file](#tag/config)
|
|
|
|
- $ref: ../components/schemas/config.yaml
|
2021-11-18 12:10:36 +01:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: Success. The instance has been restarted.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
examples:
|
|
|
|
example1:
|
|
|
|
value:
|
|
|
|
restarts: 5
|
|
|
|
config: 'http://example.com/path/to/config.json'
|
|
|
|
|
|
|
|
'400':
|
|
|
|
description: Failure
|