How to get repository ID from Cloud Manager GIT (Backend) | Community
Skip to main content
Level 2
January 28, 2022
Solved

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

  • January 28, 2022
  • 2 replies
  • 2759 views

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.  

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 Kishore_Kumar_

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
      }
   }
]

2 replies

Kishore_Kumar_
Kishore_Kumar_Accepted solution
Level 9
January 28, 2022

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
      }
   }
]
Level 2
January 28, 2022

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.

Himanshu_Singhal
Community Advisor
Community Advisor
January 28, 2022

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

kautuk_sahni
Community Manager
Community Manager
May 30, 2022

@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