Expand my Community achievements bar.

SOLVED

AEM get list of all available instances

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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.m...

(Unfortunately I am not an expert for IMS)

View solution in original post

3 Replies

Avatar

Community Advisor

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 

 

 

Avatar

Correct answer by
Employee Advisor

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.m...

(Unfortunately I am not an expert for IMS)

Avatar

Community Advisor

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