mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-08 05:58:39 +00:00
add example of exporting jobs to file
This commit is contained in:
parent
1594773a79
commit
0487b209f1
3 changed files with 27 additions and 0 deletions
|
@ -77,6 +77,15 @@ execution = rundeck.triggerAdhocCommand("my-project", "uptime")
|
|||
execution = rundeck.runAdhocCommand("my-project", "uptime", new Properties(os-family: "unix"))
|
||||
{code}
|
||||
|
||||
h2. Exporting jobs
|
||||
|
||||
{code}
|
||||
import org.rundeck.api.RundeckClient
|
||||
rundeck = new RundeckClient("http://localhost:4440", "admin", "admin")
|
||||
|
||||
rundeck.exportJobsToFile("/tmp/jobs.xml", "my-project")
|
||||
{code}
|
||||
|
||||
h2. And more...
|
||||
|
||||
See the API documentation of the [RundeckClient|./apidocs/org/rundeck/api/RundeckClient.html] class for more interactions with your RunDeck instance...
|
||||
|
|
|
@ -78,6 +78,15 @@ execution = rundeck.triggerAdhocCommand("my-project", "uptime")
|
|||
execution = rundeck.runAdhocCommand("my-project", "uptime", NodeFiltersBuilder.new().osFamily("unix").toProperties())
|
||||
{code}
|
||||
|
||||
h2. Exporting jobs
|
||||
|
||||
{code}
|
||||
import org.rundeck.api.RundeckClient
|
||||
rundeck = RundeckClient.new("http://localhost:4440", "admin", "admin")
|
||||
|
||||
rundeck.exportJobsToFile("/tmp/jobs.xml", "my-project")
|
||||
{code}
|
||||
|
||||
h2. And more...
|
||||
|
||||
See the API documentation of the [RundeckClient|./apidocs/org/rundeck/api/RundeckClient.html] class for more interactions with your RunDeck instance...
|
||||
|
|
|
@ -63,6 +63,15 @@ execution = rundeck.triggerAdhocCommand("my-project", "uptime")
|
|||
execution = rundeck.runAdhocCommand("my-project", "uptime", NodeFiltersBuilder().osFamily("unix").toProperties())
|
||||
{code}
|
||||
|
||||
h2. Exporting jobs
|
||||
|
||||
{code}
|
||||
from org.rundeck.api import RundeckClient
|
||||
rundeck = RundeckClient("http://localhost:4440", "admin", "admin")
|
||||
|
||||
rundeck.exportJobsToFile("/tmp/jobs.xml", "my-project")
|
||||
{code}
|
||||
|
||||
h2. And more...
|
||||
|
||||
See the API documentation of the [RundeckClient|./apidocs/org/rundeck/api/RundeckClient.html] class for more interactions with your RunDeck instance...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue