search cancel

List all tenants on portal using curl

book

Article ID: 228399

calendar_today

Updated On:

Products

CA API Developer Portal

Issue/Introduction

How to list all tenants created / running on the Portal server?

Environment

Release : 5.0

Component :

Resolution

You can list the tenants by accessing the "tenant-provisioning-service" container.

1. docker ps | grep tenant-provisioning-service
Note down the containerid.

2. docker exec -it {containerid} sh

3. Run this command.

curl http://localhost:9000/tenants

In the curl output "tenantId" is the name of the tenants created.