...
Code Block |
---|
title | vDNS Push Policies API call |
---|
linenumbers | true |
---|
collapse | true |
---|
|
curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
"pdpGroup": "default",
"policyName": "com.BRMSParamvDNS",
"policyType": "BRMS_Param"
}' 'http://pdp:8081/pdp/api/pushPolicy'
curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
"pdpGroup": "default",
"policyName": "com.vDNS.MinMax",
"policyType": "DECISION"
}' 'http://pdp:8081/pdp/api/pushPolicy'
curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
"pdpGroup": "default",
"policyName": "com.vDNS.Frequency",
"policyType": "DECISION"
}' 'http://pdp:8081/pdp/api/pushPolicy'
curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
"pdpGroup": "default",
"policyName": "com.MicroServicevDNS",
"policyType": "MicroService"
}' 'http://pdp:8081/pdp/api/pushPolicy'
|
Events/API interactionsDCAE Events and A&AI Enrichment (if necessary)
Code Block |
---|
title | vDNS - DCAE Control Loop Event (TCA) - vDNS (NOT Enriched with A&AI) |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
"closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
"policyVersion": "1.0.0.5",
"policyName": "vLoadBalancer",
"policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop",
"target_type": "VM",
"AAI": {
"vserver.vserver-name": "dfw1lb01lb01"
},
"closedLoopAlarmStart": 1484677482204798,
"closedLoopEventStatus": "ONSET",
"closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
"version": "1.0.2",
"target": "vserver.vserver-name",
"requestID": "97964e10-686e-4790-8c45-bdfa61df770f",
"from": "DCAE"
} |
Code Block |
---|
title | vDNS DCAE Control Loop Event - Enriched A&AI |
---|
| {
vserver query | linenumbers | true |
---|
collapse | true |
---|
|
#PLD find the vserver version
"closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
https://{aai}/aai/v11/nodes/vservers?vserver-name=dfw1lb01lb01
|
Code Block |
---|
title | vDNS - A&AI vserver query response |
---|
linenumbers | true |
---|
collapse | true |
---|
|
|
Code Block |
---|
title | vDNS DCAE Control Loop Event - Enriched A&AI |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
"closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
"policyVersion": "1.0.0.5",
"policyName": "vLoadBalancer",
"policyScope": "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop",
"target_type": "VM",
"AAI": {
"vserver.vserver-name": "dfw1lb01lb01"
# TODO - add in the enriched A&AI
},
"closedLoopAlarmStart": 1484677482204798,
"closedLoopEventStatus": "ONSET",
"closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
"version": "1.0.2",
"target": "vserver.vserver-name",
"requestID": "97964e10-686e-4790-8c45-bdfa61df770f",
"from": "DCAE"
} |
SO API Interaction
Code Block |
---|
title | vDNS - A&AI vserver querySO Request |
---|
linenumbers | true |
---|
collapse | true |
---|
| #PLD find the vserver version
https://{aai}/aai/v11/nodes/vservers?vserver-name=dfw1lb01lb01
|
Code Block |
---|
title | vDNS - SO Response ACCEPTED |
---|
linenumbers | true |
---|
collapse | true |
---|
|
|
Code Block |
---|
title | vDNS - A&AI vserver query responseSO Response SUCCESS |
---|
linenumbers | true |
---|
collapse | true |
---|
|
|
...