Assigning organizations to a domain
Assign a domain to one or more organizations from the Organizations tab (Manage > Domains > your domain name > Organizations).
Procedure
-
Click API Program Domains on the Get Started page or navigate to Manage > Domains. This opens the View and manage domains for APIs page.
-
In the Domain Suffix column, click the domain link or Settings icon next to the domain you want to assign to one or more organizations. This opens the Domain Settings page.
-
Navigate to Organizations. By default, Area Wide (All Organizations) is selected. All approved allowlisted domains in Cloud API Management are available to all organizations in an area by default.
-
Choose Area Wide (All Organizations) to keep area-wide access.
-
Choose Assign to specific organization to restrict the domain to specific organizations.
-
Click Add Organizations. This opens the Add Organizations dialog.
-
Optional: In the Search box, enter text to find the organizations you want to assign.
-
Select the checkbox next to each organization. If a selected organization has sub-organizations, the domain is automatically mapped to them as well.
-
Click Add. The selected organizations appear in the Mapped organizations section.
To remove an organization, click the Remove icon (x) next to the organization you want to unmap.
noteYou cannot remove an organization mapping if any API endpoint within that organization is actively using it. To remove such a mapping, first update the resource endpoint to use a different public endpoint domain.
-
-
-
-
Click Save.
Adding mapped organization domain to a public endpoint
After assigning organizations to a domain, add the mapped organization to your API Definition resource endpoint so that only the mapped organization can use it. Create a resource endpoint on the Endpoints: <your api definition name> page and configure the public endpoint address on the Endpoint Create: New Endpoint Definition page to use your organization's mapped domain.
Procedure
-
Navigate to Design > APIs. This opens the Manage your APIs with API Definitions page.
-
In the Name column, click the API definition link or Settings icon for the API definition whose organization you want to update. This opens the API Definition Settings:
<your api definition>page.- In Select one organization or group to own this API, select the organization you mapped on the Organizations (Manage > Domains > your domain name > Organizations) page.
-
Navigate to the Endpoints tab to create a new endpoint and configure its public endpoint address.
-
Click New Endpoint. This opens the Endpoint Create: New Endpoint Definition page.
-
In Name for your Endpoint, enter the endpoint name.
-
In Customize your Public Endpoint Address:
-
In the first field, enter the domain name mapped to your organization. You can find this on the Domain Settings:
<your domain name>page.noteOnly a domain mapped to your organization or set to Area Wide (All Organizations) can be configured with the public endpoint. If you enter a domain that is not mapped to your organization, an error message is displayed.
-
In the second field, enter the endpoint path.
-
-
Click Create.
-