API access
You can enable API access for other applications that need to communicate with OpenText Core Software Delivery Platform.
Overview
For applications to access OpenText Core SDP, you must grant them registered access keys. These applications use the access keys for authentication when communicating as clients.
Applications that need authentication include:
-
The Application Automation Tools and CI plugins. For details, see CI server integration.
-
The interactive API client.
-
Other 3rd-party applications and APIs that need to communicate through integration, such as those located behind a firewall.
-
Auto actions within a release process. For details, see Auto actions.
Note: For details on creating API access keys through the REST API, see Working with API access keys (technical preview).
Integration types
When providing API access to applications, integration types are automatically assigned to each application. The default integration type is 3rd-party integration. Other integration types can be assigned, based on the roles you assign to the application.
When viewing the list of applications that have been granted API access in the grid, you can see each application's integration type, but you cannot modify the type. You can access the grid here: Settings > Spaces > API Access.
Note: Most roles can be customized. Roles and their permissions might be different for your organization.
Integration type | Description | Role |
---|---|---|
CI/CD Integration |
This enables integration with CI/CD servers such as Jenkins and TeamCity. This integration connects on the shared space level. It can access any workspace on which the CI/CD Integration role is assigned. |
CI/CD Integration |
3rd-party Integration |
This enables 3rd-party applications to integrate freely. You can use this integration type as a default, and define roles, to get exactly the access the application needs. This integration operates on any workspace or space. |
Any role can be assigned |
Create an API access key
This section describes how to create an API access key.
If the new key is replacing a previous one, you should revoke the previous key. For details, see Revoke API access.
To create an API access key:
-
Open the Settings menu , click Spaces, and select a space.
-
In the API Access tab, click the API Access button .
-
Provide a name for the access key.
Note: The name of the API access key can include only English characters.
-
(Optional) Set an expiration date for the API key, and enter a description if needed. This can be useful if you want to provide a third-party with API access for a limited time.
-
Select the roles for the applications to use when accessing OpenText Core SDP. For a description of the predefined roles, see Predefined roles.
For each role, select all of the relevant workspaces. If additional relevant workspaces are created later, you will need to manually assign them.
You can select more than one role by clicking Add role to assign.
Note:
-
For API access keys used for release process auto actions with authentication, you must assign the Release Manager role. For details, Auto actions.
-
For API access keys used for CI server integration, you must assign the CI/CD Integration role. These keys are used by the plugins that support CI integration, and when using the REST API to manage pipelines.
-
-
Click Add.
A dialog box opens with a Client ID and a Client secret. Click Copy to save the keys to the clipboard. This is the only time that the newly-generated key will be visible. You must either use it immediately, or save it somewhere for later use.
-
Click OK. The access ID is added to the grid with an Active status.
Modify API access keys
This section describes how to modify API access keys.
-
Open the Settings menu , click Spaces, and select a space.
-
In the API Access tab, select the access that you want to modify.
-
You can modify the name, expiration date, and description of the access.
Note: The name of the API access key can include only English characters.
You can also modify the list of roles and workspaces that a set of keys can access.
Revoke API access
This section describes how to revoke API access keys.
-
Open the Settings menu , click Spaces, and select a space.
-
In the API Access tab, select the row with the access you want to revoke.
You cannot revoke or delete access for service access keys. You can, however, regenerate service access keys.
-
Click Revoke access. The access is revoked immediately and a Removed icon is displayed in the Active column.
If necessary, you can regenerate access. For details, Regenerate API access.
Regenerate API access
This section describes how to regenerate API access keys.
-
Open the Settings menu , click Spaces, and select a space.
-
In the API Access tab, select the row of the access that was revoked or needs to be regenerated.
-
Click Regenerate access.
-
A dialog displays with a newly-registered Client secret for the selected Client ID.
Click Copy to copy the keys to the clipboard.
Click OK.
-
The access ID is added to the grid with an Active status.
-
Set an email address for API access
If an integration using an API access key sends emails, you can define the email address that should be used for this purpose. Set the value of the SMTP_NOTIFICATION_SENDER_EMAIL configuration parameter to the email address. For details, see SMTP_NOTIFICATION_SENDER_EMAIL.
See also: