Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Rundeck resources.xml endpoint #19

Closed
icot opened this issue May 27, 2016 · 2 comments
Closed

Create Rundeck resources.xml endpoint #19

icot opened this issue May 27, 2016 · 2 comments
Assignees

Comments

@icot
Copy link
Member

icot commented May 27, 2016

  • This API endpoint needs to return a valid resources.xml file to use in the Rundeck
@icot
Copy link
Member Author

icot commented May 30, 2016

Early example:

pcitdb46:sandbox (master*) $ httpu https://localhost:5443/api/v1/rundeck/resources.xml                                                                           
HTTP/1.1 200 OK
Content-Length: 2824
Content-Type: text/html; charset=UTF-8
Date: Mon, 30 May 2016 08:57:20 GMT
Etag: "4d288efeadfee26a261cc2357b5c34537d07b892"
Server: TornadoServer/4.2

<?xml version="1.0" encoding="UTF-8"?>
<project>
<node name="mytst" description="" hostname="mytst" username="dbod" type="TEST" subcategory="MYSQL" port="port" tags="MYSQL,TEST"/>
type="TEST" subcategory="MYSQL" port="port" tags="MYSQL,TEST"/>
<node name="test" description="" hostname="test" username="dbod" type="PROD" subcategory="MYSQL" port="port" tags="MYSQL,PROD"/>
<node name="test1" description="" hostname="test" username="dbod" type="TEST" subcategory="MYSQL" port="port" tags="MYSQL,TEST"/>
<node name="test123" description="" hostname="test123" username="dbod" type="TEST" subcategory="MYSQL" port="port" tags="MYSQL,TEST"/>
<node name="testdelm" description="" hostname="testdelm" username="dbod" type="TEST" subcategory="MYSQL" port="port" tags="MYSQL,TEST"/>
<node name="toto" description="" hostname="toto" username="dbod" type="PROD" subcategory="MYSQL" port="port" tags="MYSQL,PROD"/>
</project>

@icot icot closed this as completed May 30, 2016
@icot icot reopened this May 30, 2016
@icot
Copy link
Member Author

icot commented May 31, 2016

The endpoint has been tested and works.
The content type needed to be set as text/xml
We will change to the JSON format for resources, but that will be tracked in a new Issue.

@icot icot closed this as completed May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant