Settings

Get all of the settings from pb.settings (or equivalent). Each setting has one of 4 distinct types:

  • String
  • Boolean
  • List of Strings
  • altsubmitmasters: Has a special list of Privilege Management for Unix and Linux objects.
GET https://pbuild:24351/REST/settings?appid=<appid>&timestamp=<timestamp>&hmac=<hmac
RESPONSE {"status":0,"settings":[{"values":["8da3e912","83099374","52adfcae","27825f05"],
	"description":"Validation","name":"validation","type":3},
{"description":"Licensing Data to Save","name":"licensedata","value":"datenodename","type":2}, ...

Gets an individual setting as specified on the URL.

GET https://pbuild:24351/REST/setting/submitmasters?appid=<appid>&timestamp=
<timestamp>&hmac=<hmac>
RESPONSE {"setting":[{"values":["pbuild","pbuild2","pbuild3"],"description":"Submit
	Masters","name":"submitmasters","type":3}],"status":0}

Put (modify) a setting into the pb.settings file. The type needs to correspond to the original setting type.

PUT https://pbuild:24351/REST/setting/warnuseronerror?appid=<appid>&timestamp
=<timestamp>&hmac=<hmac>
REQUEST {"setting":{"name":"warnuseronerror","value":"no","type":1}}
RESPONSE {"status":0}

Retrieves the whole pb.settings file as a binary attachment.

GET https://pbuild:24351/REST/settingsfile?appid=<appid>&timestamp=
<timestamp>&hmac=<hmac>&file=%2Fetc%2Fpb.settings <binary attachment>