System attributes of grid node can be fetched via RESTful call.
|This feature is available since QuickBuild 5.1.22|
System attributes can be fetched by accessing below url:
Here <node address> should be replaced with address of the grid node, for instance: agent:8811. The response is of mime type text/xml and the content is XML representation of system attributes for specified grid node.
You will need to use http BASIC authentication to login as user with node attribute access permission to get system attributes of a grid node.
We use curl to demonstrate how to get system attributes:
- Connect a build agent to your grid and get it authorized. Assume the agent address is agent1:8811.
- Run below command:
curl -u admin:admin http://<QB server>:8810/rest/system_attributes/agent1:8811
- If above command succeeds, XML representation of the system attributes map will be printed.