formations/algo/algorithmique/cours/code/server.create.yml

55 lines
1.1 KiB
YAML
Raw Normal View History

2018-08-20 21:01:30 +02:00
---
uri: server.create
description: |
Créer un serveur.
sampleuse: |
zephir-client server.create '{"servername":"MonJoliServeur", "serverdescription": "un bien joli serveur", "servermodelid":1, "serverpassphrase": "MyPassPhrase"}'
pattern: rpc
public: true
domain: server-domain
parameters:
servername:
type: String
description: |
Nom du serveur.
serverdescription:
type: String
description: |
Description du serveur.
servermodelid:
type: Number
ref: Servermodel.ServermodelId
description: |
ID du modèle de serveur.
serverpassphrase:
type: String
description: |
Phrase secrète de la clef privé.
response:
parameters:
serverid:
type: Number
ref: Server.ServerId
description: |
ID du serveur.
errors:
- uri: server.error.database-not-available
- uri: server.error.db-connection
- uri: server.error.invalid-servermodel-id
- uri: server.error.unknown-servermodel-id
- uri: server.error.servername-not-provided
related:
- server.list
- server.describe
- server.update
- server.delete