Hi Geethu,
There is no option to delete organization in the Organizations page.
I managed to accomplish this using PAPI (Portal API).
First you need to get an OAuth token to make PAPI calls using the Client_ID and Shared_Secret for the PAPI App of your tenant.
- Log in to your Tenant using Admin credentials
- Click "Portal API" in your Dashboard (a new window appears, with API explorer for your administrative ("APIM") Tenant.
- Select the API "Portal API (Your_Tenant)" and the "App/Api Key" "Portal API App for Tour_Tenant".
- Take note of the "API Key", "Shared Secret" and Token Endpoint and use them to request the token using the "Client_Credentials" OAuth flow
Once you get the OAuth Token, use it to Authorize PAPI Calls.
To Delete an Organization, first you have to issue a GET request to get the list of all organizations and organization details.
You have two options:
Method GET Request ->
https://apim-ssg.YOUR_DOMAIN:9443/YOUR_TENANT/Organizations
or
Method GET Request -> GET
https://apim-ssg.YOUR_DOMAIN:9443/YOUR_TENANT/tenant-admin/1.0/organizations
The response JSON will provide you with the Organizations UUIDs and NAMEs.
Once you find the UUID belonging to the Organization you want to delete, you can delete It using:
Method DELETE Request ->
https://apim-ssg.YOUR_DOMAIN:9443/YOUR_TENANT/Organizations('a3b68c02-4655-4ca9-be1d-87c1b1411994')
In the example above "
a3b68c02-4655-4ca9-be1d-87c1b1411994" is the UUID of the Organization The documentation states that "
If the organization is associated with any applications, users, private APIs, or account plans, then it cannot be deleted."
PAPI is documented at:
https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/layer7-api-management/api-developer-portal/4-2/publishers/portal-api-papi/papi-swagger-file-4-2-9.htmlRegards,
Marlos Chida
Original Message:
Sent: 11-28-2019 01:20 AM
From: Geethu John
Subject: Delete Organization from API Developer Portal 4.2.9.3
Hi,
We have an api developer portal environment, v 4.2.9.3. We are unable to delete an organization from the organization list? We do not find the delete option at all.
Does any one face this..not being able to delete unwanted organization?
Is there any way to delete from the db?
Geethu
------------------------------
Geethu
------------------------------