Commit 8568fba3 authored by Philippe Caseiro's avatar Philippe Caseiro
Browse files

Merge branch '59_execution_commande' into 'develop'

59 execution commande

See merge request !6
parents 7d39625f fe0f0ac5
......@@ -32,6 +32,23 @@ parameters:
- « local »
- « local_async »
default: local_async
tgt_type:
type: String
description: Type de cible de la commande.
help: |
valeurs possibles :
glob - Bash glob completion - Default
pcre - Perl style regular expression
list - Python list of hosts
grain - Match based on a grain comparison
grain_pcre - Grain comparison with a regex
pillar - Pillar data comparison
pillar_pcre - Pillar data comparison with a regex
nodegroup - Match on nodegroup
range - Use a Range server for matching
compound - Pass a compound match string
ipcidr - Match based on Subnet (CIDR notation) or IPv4 address.
default: glob
response:
type: 'SaltExec'
......
---
uri: serverselection.exec.command
description: |
Transmet une commande à exécuter sur une sélection de serveur.
sampleuse: |
zephir-client serverselection.exec.command '{"serverselection_id":1, "command":"reconfigure"}'
domain: server-domain
pattern: rpc
public: true
parameters:
serverselection_id:
type: Number
description: Identifiant de la sélection de serveurs sur laquelle la commande sera exécutée.
ref: Server.ServerId
command:
type: String
description: Commande à exécuter.
ref: salt.exec.availablecommands
response:
type: '[]ServerExec'
description: Liste des jobs de la commande exécutée sur les serveurs de la sélection.
---
title: ServerSelectionExec
type: object
description: Retour de l'exécution.
properties:
job_id:
type: string
description: Identifiant de la tâche.
ref: Server.JobId
servers_id:
type: array
items:
type: number
description: Identifiants des serveurs.
ref: Server.ServerId
command:
type: string
description: Commande demandée.
automation:
type: string
description: Moteur d'exécution.
ref: Server.automation
required:
- command
- automation
- job_id
- server_id
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment