Skip to main content

Services

A service is an entity that represents a connection point enabling integration between your system and other components of the InCountry platform or SaaS services (such as Salesforce).

note

Please note that you can create only one service of each type per country. This means you cannot create multiple Salesforce, resident functions, or REST API services for the same country within the same environment.

Creating new services

The InCountry Portal does not automatically create a default service when you create a default environment. You can manually create one of the four types of services as follows:

  1. Salesforce service is used for the operation of the InCountry Data Residency for Salesforce package.
  2. Resident Functions service is used for the management and execution of resident functions on the target Point-of-Presence (PoP).
  3. REST API service is used for data communication with REST API (for server-to-server connection). For the details on how to use it, please check the REST API documentation.
  4. Web Services service is used for data communication through Border and redaction / unredaction of regulated data processed by Border.

Creating a new Salesforce service

  1. Expand the environment and country in the left sidebar where you wish to create a new service, then click on the Services menu item. image-20230807-131305.png
  2. Click the Add service button. image-20230807-131542.png
  3. On the Add Service page, select the Salesforce service.
  4. Click the Create button. image-20230807-131818.png
  5. On the page with the created Salesforce service, save the Environment ID, Client ID, Client Secret, Rest API address, and Subject Claim. To download a text file with all these credentials, click the Download button. To copy these credentials to the clipboard, click the Copy to clipboard button.
  6. When complete, click the Close button.
tip

Use the received credentials to establish a connection to the InCountry platform in the InCountry Data Residency for Salesforce package and to configure endpoints. Please do not forget to save the subject claim as it is used as a unique identifier of the tenant on the InCountry platform.

Uploading the public certificate

note

Before uploading a public certificate to InCountry Portal, please configure OAuth2 authorization in Salesforce as described in our documentation.

Once you have created the Salesforce service and registered a self-signed certificate in Salesforce, you need to upload the public certificate in the CRT format to the InCountry Portal.

  1. Expand the environment and country in the left sidebar where you wish to create a new service, then click on the Services menu item. managing-services-rest-api-create-service-0.png
  2. On the list of services, locate the Salesforce service. image-20230807-131915.png
  3. Click the Upload certificate icon. image-20230807-132051.png
  4. On the Select certificate page, click the Select certificate button and select the public certificate you downloaded from Salesforce.
  5. Click the Upload button.
note

Salesforce generates a certificate for one year, after this period you need to re-generate the certificate and upload its new version on the InCountry Portal. Click the Replace Certificate icon and upload a new version of the certificate. The procedure is quite similar to certificate upload.

Creating a new Resident Functions service

  1. Expand the environment and country in the left sidebar where you wish to create a new service, then click on the Services menu item. managing-services-rest-api-create-service-0.png
  2. Click the Add service button. image-20230807-132422.png
  3. On the Add Service page, select the Resident Functions service.
  4. Click the Create button. image-20230807-132601.png
  5. On the page with the created Resident Functions service, save the Environment ID, Client ID, Client Secret, and Rest API address. To download a text file with all these credentials, click the Download button. To copy these credentials to the clipboard, click the Copy to clipboard button.
  6. When complete, click the Close button.

For the details on managing resident functions, please refer to our documentation.

A new service of the Resident Functions type will appear on the list with other services within the current environment and country. Having created such a service, you can proceed with the publication of resident functions.

Creating a new REST API service

info

This service type is used for server-to-server communication (backend requests only).

  1. Expand the environment and country in the left sidebar where you wish to create a new service, then click on the Services menu item. managing-services-rest-api-create-service-0.png
  2. Click the Add service button. image-20230807-132848.png
  3. On the Add Service page, select the REST API service.
  4. Click the Create button. managing-services-rest-api-create-service-1.png
  5. On the page with the created service, save the Environment ID, Client ID, Client Secret, and REST API address. To download a text file with all these credentials, click the Download button. To copy these credentials to the clipboard, click the Copy to clipboard button.
  6. When complete, click the Close button.

A new REST API service will appear on the list with other services within the current environment and country. Once you have created a REST API service, you need to manage its credentials.

Managing REST API service credentials

  1. Expand the environment and country in the left sidebar where you wish to create a new service, then click on the Services menu item. managing-services-rest-api-create-service-0.png
  2. In the list of services, locate the REST API service.
  3. In the actions column, click the Manage credentials icon. managing-services-rest-api-manage-creds-1.png
  4. On the Manage REST API credentials page, you will see Full access credentials created for you by default. Here, you can create new credentials, assign access policies to them, or edit/remove existing credentials. managing-services-rest-api-manage-creds-2.png
  5. Click Create new credentials. On the new page, enter Name and optionally select Access Policy for the new credentials. managing-services-rest-api-manage-creds-3.png
  6. Click the Create button.
  7. On the page with the created REST API credentials, save the Environment ID, Name, Client ID and Client Secret. To download a text file with all these credentials, click the Download button. To copy these credentials to the clipboard, click the Copy to clipboard button. Click the Close button. managing-services-rest-api-manage-creds-4.png
  8. The newly created credentials will appear in the credentials list of the REST API service. managing-services-rest-api-manage-creds-5.png

Creating a new Web Services service

  1. Expand the environment and country in the left sidebar where you wish to create a new service, then click on the Services menu item. managing-services-rest-api-create-service-0.png
  2. Click the Add service button. image-20230807-134315.png
  3. On the Add Service page, select the Web Services service.
  4. Click the Create button. image-20230807-134401.png
  5. On the page with the created Web Services service, save the Environment ID, Client ID, Client Secret, and Proxy address. To download a text file with all these credentials, click the Download button. To copy these credentials to the clipboard, click the Copy to clipboard button.
  6. When complete, click the Close button.

A new Web Services service will appear on the list with other services within the current environment and country. You can proceed with defining the Border configuration.

Renewing the service

You can renew the Client ID and Client Secret used within a particular service. This may be necessary if you lose the client secret but prefer not to create a new service.

  1. Expand the environment and country in the left sidebar where you wish to renew the existing service credentials, then click on the Services menu item. managing-services-rest-api-create-service-0.png
  2. On the list of services, locate the service you want to renew.
  3. Click the Renew service icon.
  4. On the Renew service page, click the Renew button.
  5. On the page with the renewed service credentials, save the Environment ID, Client ID, Client Secret, and REST API address. To download a text file with all these credentials, click the Download button. To copy these credentials to the clipboard, click the Copy to clipboard button.
  6. When complete, click the Close button.

Deleting the service

If you no longer need a service, you can delete it. After deletion, the credentials issued for the service will become invalid, preventing further use for data management on the InCountry platform.

  1. Expand the environment and country in the left sidebar where you wish to delete the existing service, then click on the Services menu item. managing-services-rest-api-create-service-0.png
  2. On the list of services, locate the service you want to delete.
  3. Click the Delete service icon.
  4. On the Delete service page, click the Delete button.