risotto/messages/v1/messages/old/server.update.yml

50 lines
932 B
YAML

---
uri: server.update
description: |
Modifie un serveur.
public: true
sampleuse: |
zephir-client server.update -s 1 -n toto -d "server description"
pattern: rpc
domain: server-domain
parameters:
serverid:
type: Number
ref: Server.ServerId
description: |
Identifiant du serveur.
shortarg: s
servername:
type: String
description: |
Nouveau nom du serveur.
shortarg: n
serverdescription:
type: String
description: |
Nouvelle description du serveur.
shortarg: d
response:
type: Server
description: Description du serveur mis à jour.
errors:
- uri: server.error.database-not-available
- uri: server.error.db-connection
- uri: server.error.invalid-server-id
- uri: server.error.unknown-server-id
- uri: server.error.servername-not-provided
related:
- servermodel.list
- servermodel.describe
- servermodel.create
- servermodel.delete