Getting list of all R-MPs with their IPs, UUIDs

How can i get a list of all the R-MPs( their IPs and UUIDs) associated with an environment in an org.?

Is there an API for this?

Regards,

Rajeev S

Solved Solved
2 2 1,003
2 ACCEPTED SOLUTIONS

Not applicable

Hi @Rajeev S

Run API curl -u adminEmail:pword http://<ms_IP>:8080/v1/servers?pod=$gateway

which will give you the routers and MPs associated with that pod. The above API will give you the IPs and UUIDs.

Routers are associated with pod whereas MPs are at environment level.

Run, <br>curl -u adminEmail:pword http://<ms_IP>:8080/v1/o/$orgname/e/$envname/servers<br>;

to know the MPs that are associated with an environment.

Ref http://docs.apigee.com/private-cloud/latest/about-planets-regions-pods-organizations-environments-an... this for more info.

View solution in original post

Not applicable

@Rajeev S expanding on @Maruti Chand's feedback.

As mentioned by Maruti you can use the Management API to obtain server registration on Pod and Env. If required you can apply pod, region and type query parameters to /v1/servers criteria.

Example using Management API via Curl:

curl -v -u <system-admin-user>:<password> "http://<ms-host>:8080/v1/servers?pod=<gateway-pod-name>&region=<region-name>&type=message-processor"

Edge 16XX and 17XX provide a command line wrapper for the Management API. The above API is equivalent to this command:

/opt/apigee/apigee-adminapi/bin/apigee-adminapi.sh servers list -p <gateway-pod-name> -r <region-name> -t  message-processor --host <ms-host> --port 8080 --admin <system-admin-user> --pwd <password>

The Management API is documented here:

http://docs.apigee.com/api-services/content/apigee-reference


View solution in original post

2 REPLIES 2

Not applicable

Hi @Rajeev S

Run API curl -u adminEmail:pword http://<ms_IP>:8080/v1/servers?pod=$gateway

which will give you the routers and MPs associated with that pod. The above API will give you the IPs and UUIDs.

Routers are associated with pod whereas MPs are at environment level.

Run, <br>curl -u adminEmail:pword http://<ms_IP>:8080/v1/o/$orgname/e/$envname/servers<br>;

to know the MPs that are associated with an environment.

Ref http://docs.apigee.com/private-cloud/latest/about-planets-regions-pods-organizations-environments-an... this for more info.

Not applicable

@Rajeev S expanding on @Maruti Chand's feedback.

As mentioned by Maruti you can use the Management API to obtain server registration on Pod and Env. If required you can apply pod, region and type query parameters to /v1/servers criteria.

Example using Management API via Curl:

curl -v -u <system-admin-user>:<password> "http://<ms-host>:8080/v1/servers?pod=<gateway-pod-name>&region=<region-name>&type=message-processor"

Edge 16XX and 17XX provide a command line wrapper for the Management API. The above API is equivalent to this command:

/opt/apigee/apigee-adminapi/bin/apigee-adminapi.sh servers list -p <gateway-pod-name> -r <region-name> -t  message-processor --host <ms-host> --port 8080 --admin <system-admin-user> --pwd <password>

The Management API is documented here:

http://docs.apigee.com/api-services/content/apigee-reference