Suppose I have created new shared flow and attached to proxy . While integration testing how can I ensure share flow also deployed .Will it catch in Static code analysis tool?
You could use following Management API for this purpose:
curl -i -u ${username}:${password} [https://api.enterprise.apigee.com/v1/organizations/{organization}/apis/{shared-flow}/revisions/{revision}/deployments](https://api.enterprise.apigee.com/v1/organizations/{organization}/apis/{shared-flow}/revisions/{revision}/deployments)
{
"aPIProxy": "{shared-flow}",
"environment": [
{
"configuration": {
"basePath": "/",
"configVersion": "SHA-512:{sha-value}",
"steps": []
},
"name": "prod",
"server": [
{
"pod": {
"name": "{message-processor-pod-name}",
"region": "us-central1"
},
"status": "deployed",
"type": [
"message-processor"
],
"uUID": "{uuid}"
},
...
{
"pod": {
"name": "{router-pod-name}",
"region": "us-central1"
},
"status": "deployed",
"type": [
"router"
],
"uUID": "{uuid}"
},
...
],
"state": "deployed"
}
],
"name": "{revision}",
"organization": "{organization}"
}
Management API Reference: