MJ Hartman Trusted Contributor.
Trusted Contributor.
457 views

How can I iterate through system properties?

Jump to solution

I have a folder within my system properties, and I want to iterate through the properties defined in that folder. I do not know up front which properties are defined, so I have to be able to extract each property's name and its value.

How can I accomplish that?

0 Likes
1 Solution

Accepted Solutions
HockeyGoonNorm Valued Contributor.
Valued Contributor.

Re: How can I iterate through system properties?

Jump to solution

Check the Configuration Items section of the API guide. It explains how to get a list of system props. 

Bascially, issue a HTTP GET call to https://<oo_server>:<oo_port>/oo/rest/v2/config-items/system-properties/

 

2 Replies
HockeyGoonNorm Valued Contributor.
Valued Contributor.

Re: How can I iterate through system properties?

Jump to solution

Check the Configuration Items section of the API guide. It explains how to get a list of system props. 

Bascially, issue a HTTP GET call to https://<oo_server>:<oo_port>/oo/rest/v2/config-items/system-properties/

 

MJ Hartman Trusted Contributor.
Trusted Contributor.

Re: How can I iterate through system properties?

Jump to solution

Didn't think of that. Thanks!

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.