How to differentiate between custom and Cumulocity microservices

How to differentiate between custom and Cumulocity microservice. Is there any specific tag or information via any API call can get this information ?

It depends how you define “custom” and “Cumulocity microservice”:

The easiest way would be check if the Microservice has been uploaded directly into your tenant (custom) or is subscribed/owned by another tenant (potentially Cumulocity). There is a fragment owner in the applications API where you can check the tenant where the microservice is originally uploaded to. If it is management it could mean that this is a cumulocity microservice. For private instances this could also of course be custom micorservices which are uploaded to management tenant and subscribed to sub tenants.

Also there is a provider fragment in the manifest of each microservice which could contain a string Cumulocity GmbH but be aware that this can be used by all possible microservices. So if you use an open-source microservice that is also using “Cumulocity GmbH” it doesn’t mean in the end that it is a official cumulocity microservice.

In the end the question still stands: What do you want to achieve? Why do you want to differentiate between “custom” and “Cumulocity microservic”?

1 Like

application/applicationsByTenant/?pageSize=2000&withTotalPages=true

Look for type MICROSERVICE.

Any owned by …/management are c8y microservices, any not owned by management are custom ones.

Correct but as mentioned: That’s true for Cumulocity hosted cloud instances but might not be the case for edges or private instances where custom microservice could be uploaded to a management tenant.

1 Like