pyrundeck icon indicating copy to clipboard operation
pyrundeck copied to clipboard

Method to fetch project configuration

Open xavier8854 opened this issue 3 years ago • 2 comments

Hi, Github won't let me open a MR, so here is the code snippet to get all the key/value pairs for a project's configuration :

    def get_project_config(self, project_name, format="xml"):
        url = "{}/project/{}/config".format(self.API_URL, project_name)
        return self.__get(url, format=format)

Cheers, Xavier

xavier8854 avatar Feb 03 '22 14:02 xavier8854

I also need this option, can we contribute?

emersonyh avatar Sep 27 '23 19:09 emersonyh

@xavier8854 I´ve generated the PR https://github.com/pschmitt/pyrundeck/pull/64 for this, can you review/approve please?

emersonyh avatar Aug 20 '24 15:08 emersonyh