Shared Flows Management API to get deployment environments shows same environment twice

Not applicable

Hi,

When i am using the Shared Flows management API (https://docs-apis.apigee.io/#/Shared flows/Get_deployment_environments_for_shared_flows) to get the deployment environment of shared flows, it shows the same environment twice. The values of both <environment> tags are exactly same which seems to be like an error. Is that happening to someone else?

Solved Solved
0 2 360
1 ACCEPTED SOLUTION

@abhimat varma ,

I tried the API curl -v https://api.enterprise.apigee.com/v1/organizations/<org-name>/sharedflows/Authenticate/

revisions/2/deployments -u <username>:<password>

and got the output as follows:

{
  "environment" : [ {
    "name" : "prod",
    "server" : [ {
      "status" : "deployed",
      "type" : [ "message-processor" ],
      "uUID" : "459f3a2c-44fc-48e9-8779-e06edf26594a"
    }, {
      "status" : "deployed",
      "type" : [ "message-processor" ],
      "uUID" : "195b4a9c-c656-48da-b65f-2cd02aa0c35b"
    } ],
    "state" : "deployed"
  }, {
    "name" : "test",
    "server" : [ {
      "status" : "deployed",
      "type" : [ "message-processor" ],
      "uUID" : "459f3a2c-44fc-48e9-8779-e06edf26594a"
    }, {
      "status" : "deployed",
      "type" : [ "message-processor" ],
      "uUID" : "195b4a9c-c656-48da-b65f-2cd02aa0c35b"
    } ],
    "state" : "deployed"
  },
  "name" : "2",
  "organization" : "<org-name>",
  "sharedFlow" : "Authenticate"
}

The deployment status shows up for each for the Message Processors in each of the environments. It is working as expected for me.

Can you please verify if you are getting a similar output ?

If not, please share the output and also the org name, shared flow name so that I can investigate if there's an error.

View solution in original post

2 REPLIES 2

@abhimat varma ,

I tried the API curl -v https://api.enterprise.apigee.com/v1/organizations/<org-name>/sharedflows/Authenticate/

revisions/2/deployments -u <username>:<password>

and got the output as follows:

{
  "environment" : [ {
    "name" : "prod",
    "server" : [ {
      "status" : "deployed",
      "type" : [ "message-processor" ],
      "uUID" : "459f3a2c-44fc-48e9-8779-e06edf26594a"
    }, {
      "status" : "deployed",
      "type" : [ "message-processor" ],
      "uUID" : "195b4a9c-c656-48da-b65f-2cd02aa0c35b"
    } ],
    "state" : "deployed"
  }, {
    "name" : "test",
    "server" : [ {
      "status" : "deployed",
      "type" : [ "message-processor" ],
      "uUID" : "459f3a2c-44fc-48e9-8779-e06edf26594a"
    }, {
      "status" : "deployed",
      "type" : [ "message-processor" ],
      "uUID" : "195b4a9c-c656-48da-b65f-2cd02aa0c35b"
    } ],
    "state" : "deployed"
  },
  "name" : "2",
  "organization" : "<org-name>",
  "sharedFlow" : "Authenticate"
}

The deployment status shows up for each for the Message Processors in each of the environments. It is working as expected for me.

Can you please verify if you are getting a similar output ?

If not, please share the output and also the org name, shared flow name so that I can investigate if there's an error.

@AMAR DEVEGOWDA Thanks for the reply Amar. I was hitting the URL directly in my browser where it is showing me 2 deployment status'(both of which are same), but when i hit it through curl/postman i get 1 environment status as expected.