External configuration parameter values
An external HTTP endpoint of yours can provide the possible values of a configuration parameter.
Add on the product configuration page, on the configuration parameters tab, the full URL of the endpoint that implements the spec described here.
Request
Your endpoint will receive a POST request with a JSON body content like this:
{
"productId": 123,
"productIdentifier": "your-product",
"productVersionId": 456,
"productVersionIdentifier": "your-product-plan",
"configurationParameter": "CUSTOM_DOMAIN",
"configurationParameters": {
"OTHER_PARAM": "value1",
"ANOTHER_ONE": "value2"
},
"cloudCredentialId": 1011,
"language": "en",
"buyerId": 789
}
configurationParameteris the identifier of the configuration parameter for which to return the valuesconfigurationParametersare the identifier-value pairs for the other configuration parameters being chosen by the userbuyerIdis the ID of the user requesting the configuration parameter valuescloudCredentialIdis the (optional) ID of the customer cloud credential
Response
Send an HTTP response of 200 with a content-type application/json with a
values field containing a list of the configuration parameters value and
description:
{
"values":
[
{
"value": "first",
"description": "First value description"
},
{
"value": "second",
"description": "Second value description"
}
]
}
Ordering will be kept for display to the customer.
An empty response means no values are allowed for the input parameters:
{
"values": []
}
A null response means every value is allowed:
{
"values": null
}
Localization
Use the language field in the request to localize the values' description.
