...
Code Block |
---|
language | js |
---|
title | Decision Response - Single Policy ID query |
---|
linenumbers | true |
---|
|
{
"onap.scaleout.tca": {
"type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
"version": "1.0.0",
"metadata": {
"policy-id": "onap.scaleout.tca",
"policy-version": 1
},
"properties": {
"domain": "measurementsForVfScaling"
}
}
} |
This example below shows the JSON body of a query for a multiple policy-id's
Code Block |
---|
title | Decision API Call - Policy ID |
---|
linenumbers | true |
---|
|
{
"ONAPName": "DCAE",
"ONAPInstance": "policy-handler-0",
"action": "configure",
"resource": {
"policy-id": [
"onap.scaleout",
"onap.modifyconfig",
"onap.restart"
]
}
} |
Code Block |
---|
language | js |
---|
title | Decision Response - Single Policy ID query |
---|
linenumbers | true |
---|
|
{
"onap.scaleout.tca": {
"type": "onap.policies.monitoring.cdap.tca.hi.lo.app",
"version": "1.0.0",
"metadata": {
"policy-id": "onap.scaleout.tca",
"policy-version": 1
},
"properties": {
"domain": "measurementsForVfScaling"
}
}
} |
T
The simple draft example below shows the JSON body of a query in which all the deployed policies for a specific policy type are returned.
...