AEM get list of all available instances | Community
Skip to main content
Level 2
Oct 2, 2021 7:06 AM UTC
Solved

AEM get list of all available instances

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.
joerghoh
joerghohAccepted solution
Employee
Oct 2, 2021 2:52 PM UTC

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
Oct 3, 2021 8:44 PM UTC

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.

 

Translate
Arun Patidar
joerghoh
joerghohAccepted solution
Employee
Oct 2, 2021 2:52 PM UTC

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)

Translate
Kishore_Kumar_
Level 9
Oct 2, 2021 8:20 AM UTC

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 

 

 

Translate