Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to get repository ID from Cloud Manager GIT (Backend)

Avatar

Level 2

Hi All,

 

We have created repository "test" from dashboard and then deleted it. Eventually we tried creating "test" repository again from Cloud manger dashboard and we received error as repository name should be unique which shows that repository was only soft-deleted and its till has reference in backend.   

 

We raised case with Adobe support and Adobe support requested for repository id toget the same deleted, Is there a way to get the repository id using CLI ?

 

Please provide any sample commands to get such details.  

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @praveen_goplani_accenture ,

 

Try using 'Cloud Manager API Playground'. Replace the program id in below url and check if it works.

 

https://www.adobe.io/experience-cloud/cloud-manager/reference/playground/#/api/program/{program id}/repositories

 

In output check in repositories array.

"repositories": [
{
 "_links": {
     "http://ns.adobe.com/adobecloud/rel/branches": {
        "href": "/api/program/{program-id}/repository/{repository-id}/branches",
        "templated": false
      }
   }
]

View solution in original post

5 Replies

Avatar

Correct answer by
Community Advisor

Hi @praveen_goplani_accenture ,

 

Try using 'Cloud Manager API Playground'. Replace the program id in below url and check if it works.

 

https://www.adobe.io/experience-cloud/cloud-manager/reference/playground/#/api/program/{program id}/repositories

 

In output check in repositories array.

"repositories": [
{
 "_links": {
     "http://ns.adobe.com/adobecloud/rel/branches": {
        "href": "/api/program/{program-id}/repository/{repository-id}/branches",
        "templated": false
      }
   }
]

Your are awesome Kishore  

 

Yes I can see that it retrieve the repositories which exists on ACM dashboard but it doesn't showcase soft-deleted repo's [which are deleted from dashboard but still they have references in backend for recovery (if needed by user)]  .

 

I am looking for deleted repo's details.

Avatar

Community Advisor

@praveen_goplani_accenture Could you please let me know how can I do soft-deletion of repo? AFAIK, repo deletion is irreversible.  

In Azure infrastructure, if we delete a repo from ACM dashboard it gets deleted from dashboard but in backend it reside for 60 days,  in case if someone want to retrieve it back. I have requested in past to Adobe support and they have deleted that permanently. Hence I was bale to create a repo with same name again else its not possible as it holds reference in backend.   

Avatar

Administrator

@praveen_goplani_accenture 

[Webinar | AEM GEMs] Looking under the hood - Cloud Manager 2022 | Register: https://adobe.ly/3t4jfgp  & Ask Questions related to this Webinar: https://adobe.ly/3O0rdzd 

Date &Time: Wednesday, June 15, 2022 - 8 am PDT OR 5 pm CET OR 8.30 pm IST
Speakers: Remus Stratulat & Shankari Panchapakesan

Share this within your Organisation and with your AEM peers!!



Kautuk Sahni