Gets configuration properties such that all returned properties contain the property name provided in the input.
get
/config/property/v1
Gets configuration properties such that all returned properties contain the property name provided in the input. If there is no match to the input, then an empty propery array will be present in the output.
Request
Query Parameters
-
locale: string
This optional parameter can be provided in the input, if value of the property is desired in certain locale. If service implementation has value defined for that property in that locale then that value will be returned. If the locale os not provided or if locale specific value is not available for input property value, then property vale in default locale (en_US) will be retuned in the output.
-
propertyName(required): string
Name to search for configuration property. All properties that contain the input name are returned in the response.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/xml
- application/json
200 Response
Success.
Root Schema : ConfigPropertiesResponse
Type:
array
Contains Congfig Properties that are returned from API.
Show Source
-
Array of:
object NameValSource
Name-value and source of the property.
Nested Schema : NameValSource
Type:
object
Name-value and source of the property.
Show Source
-
name(required): string
Property name.
-
source(required): string
Where is property loaded from. This can be file(product files of service implementation), environment(where service is running) or database(persistent store used by the service).
-
value(required): string
Property Value String.
406 Response
Incorrect Data.
Examples
The following example shows a sample request and response for retrieving configuration properties where all returned properties contain the property name specified in the input.
cURL Command to Retrieve the Configuration Property in JSON Format
curl --location --request GET '<OAAService>/policy/config/property/v1?propertyName=bharosa.uio.default.challenge.type.enum.ChallengeEmail.fromAddress' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'
Sample Response in JSON Format
[ { "name": "bharosa.uio.default.challenge.type.enum.ChallengeEmail.fromAddress", "value": "security@example.com", "source": "database" } ]
cURL Command to Retrieve the Configuration Property in XML Format
curl --location --request GET '<OAAService>/policy/config/property/v1?propertyName=bharosa.uio.default.challenge.type.enum.ChallengeEmail.fromAddress' \ --header 'Accept: application/xml' \ --header 'Content-Type: application/xml' \ --header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'
Sample Response in XML Format
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <ConfigPropertiesResponse> <NameValSource> <name>bharosa.uio.default.challenge.type.enum.ChallengeEmail.fromAddress</name> <value>security@example.com</value> <source>database</source> </NameValSource> </ConfigPropertiesResponse>