AEM get list of all available instances | Community
Skip to main content
New Participant
October 2, 2021
Solved

AEM get list of all available instances

  • October 2, 2021
  • 3 replies
  • 1439 views

Hi there,

 

I'm trying to build an integration with AEM that allows to manage your assets via HTTP rest api.

I'm wondering if how I can get the list of all available instances via HTTP REST request.

 

For example, I have multiple sites (urls are fake):

1) https://author-p43805-e183442.adobeaemcloud.com
2) https://author-p43805-e183443.adobeaemcloud.com

 
and I want to get that list to allow user to select where he wants to upload his assets.

Is there anyway to do it ?

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

So you want to list the environments to which the user has access? I don't think that this is specific to AEM, but you need to work with the IMS API, which can tell you this information. AEM as a Cloud Service programs are independent of each other, and they don't know if a user is able to access other instances.

 

For a list of APIs provided by Adobe IMS please check https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/Resources/IMS.md

(Unfortunately I am not an expert for IMS)

3 replies

arunpatidar
New Participant
October 3, 2021

Hi,

Instead of creating complex integration just for getting list of instances,I would be creating a osgi configuration based on run mode to expose the instance list. Most of the time the number of instances are constant.

 

Arun Patidar
joerghoh
joerghohAccepted solution
Employee
October 2, 2021

So you want to list the environments to which the user has access? I don't think that this is specific to AEM, but you need to work with the IMS API, which can tell you this information. AEM as a Cloud Service programs are independent of each other, and they don't know if a user is able to access other instances.

 

For a list of APIs provided by Adobe IMS please check https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/Resources/IMS.md

(Unfortunately I am not an expert for IMS)

Kishore_Kumar_
New Participant
October 2, 2021

Hi @alex__canva ,

 

I haven't used it but please check if this helps. We can get the list of environments tagged under a Cloud Manager specific Program using Cloud Manager APIs. PFB link.

 

https://www.adobe.io/experience-cloud/cloud-manager/reference/api/#operation/getEnvironments 

 

PFB Swagger specs for the same.

 

https://raw.githubusercontent.com/AdobeDocs/cloudmanager-api-docs/main/swagger-specs/api.yaml