Gets configuration properties.

get

/policy/config/property/v1

Gets configuration properties whose name contains the input property name. If there is no match, an empty property array will be returned.

Request

Query Parameters
  • This optional parameter can be provided, 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 is not provided or if locale specific value is not available for input property value, then property value in default locale (en_US) will be retuned.
  • Property name to search. All properties that contain the input name are returned in the response.

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Success.
Body ()
Root Schema : ConfigPropertiesResponse
Type: array
Contains configuration properties returned from API.
Show Source
Nested Schema : NameValSource
Type: object
Name-value and source of the property.
Show Source

401 Response

Unauthorized

406 Response

Incorrect Data.
Body ()
Root Schema : ConfigAPIResponse
Type: object
Show Source
Back to Top

Examples

The following example shows a sample request and response for retrieving configuration properties.

cURL Command to Retrieve Configuration Property in JSON Format

curl --location --request GET '<PolicyUrl>/policy/config/property/v1?propertyName=bharosa.uio.default.challenge.type.enum.ChallengeEmail.fromAddress' \
--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 Configuration Property in XML Format

curl --location --request GET '<PolicyUrl>/policy/config/property/v1?propertyName=bharosa.uio.default.challenge.type.enum.ChallengeEmail.fromAddress' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>'

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <ConfigPropertiesResponse>
      <name>bharosa.uio.default.challenge.type.enum.ChallengeEmail.fromAddress</name>
         <value>security@example.com</value>
         <source>database</source>
  </ConfigPropertiesResponse>
Back to Top