The Event Endpoint Management Admin API provides a set of APIs you can use to access the features of Event Endpoint Management programmatically without depending on the browser-based UI.
The following features are available by using the Admin API:
- Clusters (Create, Read, Update, Delete)
- Event sources (Create, Read, Update, Delete)
- Option lifecycle states (Publish, Unpublish, Archive)
- Subscriptions (Create, Read, Update, Delete)
- Gateways (Read gateway list)
Note: After you create an event source for Kafka topics and clusters that you’ve added manually, you must wait for the event source and its associated cluster to pass the connection tests against your gateways. Only after these tests successfully pass can you proceed to publish any options that you create for the event source.
A dedicated Event Endpoint Management Admin API endpoint is provided for each organization upon provisioning of an Event Endpoint Management service. To make API requests to this endpoint, you require an API token.
API tokens
To make API requests to Event Endpoint Management, you require an API token. You can create and manage tokens in the Profile page. The Profile page displays the current Event Endpoint Management organization that you are a member of, and the list of any previously created tokens in the Tokens table.
Note: The API token is only displayed in the Event Endpoint Management UI when it is generated. You cannot retrieve it later in the UI or through any API. If you forget the token, you need to delete it from the Tokens table and create a new one.
A maximum of 10 API tokens can be created per user. If you reach this limit, the Create token button is disabled. You need to delete old API tokens before you can create new ones.
API tokens are valid for 90 days after which they expire. API requests that use an expired token are rejected by Event Endpoint Management.
An expired token should be deleted and a new token created and used in its place.
Creating a token
To create an API token, complete the following steps:
- Log in to your Event Endpoint Management UI from a supported web browser.
- Click the user icon
in the header, and then click Profile to open the Profile page.
- Switch to the Access tokens tab.
- Within the Profile page, click Create token to open the dialog.
- Read the message and note that API tokens expire.
- Provide a token description that can be used to identify your token and then click Create.
-
A new token is generated.
- To view the token, click Show token within the Token field.
- To copy the token, click Copy token.
Note: The API token is displayed once and you cannot retrieve it later. For this reason, ensure that you copy and save the token. If you forget the token, you need to delete it from the list of tokens and create a new token to access the API.
- Click Close to exit the dialog.
The created token is added to the Tokens table.
Note: You can also create API tokens in the Multi-cloud Saas Platform (MCSP) user console. Tokens that are created in the MCSP console are visible in the Tokens table when the page is displayed or refreshed. The 10 token limit applies whether they are created in the Profile page or the MCSP console.
There might be a small interval between creating a token in the MSCP console and it being displayed in the Tokens table. Tokens that are created in the Event Endpoint Management Profile page might fail if the 10-token limit is reached in the MCSP console. To avoid this, ensure that you refresh the Profile page in Event Endpoint Management before you create a new token.
Removing a token
Token entries are displayed in the Tokens table on the Profile page until they are deleted. You can delete expired tokens or tokens that are no longer required.
Note: API requests that use an expired token are rejected by Event Endpoint Management.
To delete a token, complete the following steps:
- Log in to your Event Endpoint Management UI from a supported web browser.
- Click the user icon
in the header, and then click Profile to open the Profile page.
- Switch to the Access tokens tab.
- Click Delete
in the row of the token you want to remove.
- Read the Delete token warning, and provide confirmation by entering the token description in the field exactly as it is displayed in the message.
-
Click Delete.
Important: Deleting a token is permanent and cannot be reversed.