55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
|
---
|
||
|
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
|