execution.salt.exec¶
Planifier l’exécution d’une commande sur des minions.
Exemple d’utilisation via l’API HTTP¶
zephir-client execution.salt.exec '{"minion_pattern":"*", "command":"cmd.run", "arg": "ls /tmp"}'
Type de message: | |
---|---|
rpc | |
Utilisable via l’API Gateway: | |
non | |
Domaine fonctionnel: | |
execution-domain |
Paramètres¶
- command
Description: Commande SaltStack à exécuter. Type: String Requis: non - arg
Description: Arguments de la commande SaltStack. Type: String Requis: non - minion_pattern
Description: Patron de sélection des minions. Type: String Requis: non - client_mode
Description: Mode d’exécution des commandes SaltStack. Type: String Requis: non
Réponse¶
Paramètres nommés¶
- jid
Description: ID de la tâche Salt. Type: String Server.JobId - minions
Description: Minions devant exécuter la tâche. Type: []String