Configure API Service Graph Connector for Apigee X using SGC Central
Set up scheduled import jobs to pull in Apigee X data into your CMDB.
Before you begin
Role required: The following table shows the roles required for each stage of the playbook.
| Stage | Role |
|---|---|
| Prerequisites | admin |
| Setup | cmdb_inst_admin or admin |
About this task
The playbook experience for onboarding connectors is activated with SGC Central in the CMDB Workspace. To configure the SGC Central application, see Configuring SGC Central and for more information on how to interact with a playbook, see Interact with Playbook.
Procedure
- Navigate to Workspaces > CMDB Workspace.
- In the CMDB Workspace, select SGC Central.
-
On the Overview page, select Create connection.
Tip:Alternatively, you can select Create connection on the All connections page.
- On the Create connection window, select the Apigee X connector type, and then select Create connection.
-
Complete the initial prerequisites when setting up a connection for the first time using a connector.
Note:This step is required only during the first-time setup. See Perform initial setup tasks when creating a connection in SGC Central.
-
Complete the prerequisites for setting up the Apigee X environment.
-
Set up the Apigee X environment and create a Java KeyStore (JKS) certificate to encrypt the security certificates obtained from an Apigee X application.
- In the Prerequisites stage of the playbook, select the Review setup instructions activity.
- Review and complete the setup instructions on the API Service Graph connector for Apigee X - Setup Instructions [KBB0010364] article in the Now Support Knowledge Base.
You must create a service account, assign roles, bind roles to the service account, enable APIs, create a P12 file, and register it in your ServiceNow instance.
Make a note of the destination keystore password. You need to specify this password while importing the JKS certificate into the API Service Graph Connector for Apigee X application.
- Select the I have read the setup instructions check box to confirm that you have set up the Apigee X environment according to the instructions.
- Select Continue.
-
Create an X.509 certificate to associate the Java KeyStore (JKS) certificate for the Apigee X application with the connector.
Note:You can skip this step if you're reusing a previously created certificate.
- In the Prerequisites stage of the playbook, select the Create X.509 certificate activity.
- On the form, fill in the fields.
Table 2. X.509 Certificate form Field Description Name Name of the X.509 certificate. For example, SGA-ApigeeX-509Certificate.Key store password Password to access the JKS certificate as noted down in the previous step. Short description Description of the X.509 certificate. - In the Attachments section, select Add File.
- Browse and select the P12 file for the JKS certificate you created in the previous step.
- On the Upload a file dialog box, select Upload.
- Select Continue.
-
Set up the Apigee X environment and create a Java KeyStore (JKS) certificate to encrypt the security certificates obtained from an Apigee X application.
-
Enter connection details and test the API connection for importing Apigee X data.
- In the Setup stage of the playbook, select the Create and test connection activity.
-
On the form, fill in the fields.
Table 3. Configure and test connection form Field Description Connection name Name to identify the Apigee X connection record. Service account email Email address associated with the ServiceNow service account used for authentication with Apigee X as noted in the previous step. X.509 certificate Name of the X.509 certificate as noted in the previous step. Keystore password Password associated with the keystore as noted in the previous step. - Select Create and test connection.
- Once the connection test is complete, select Continue.
-
Set the configuration properties for the connection.
- In the Setup stage of the playbook, select the Set configuration properties activity.
-
Enter the properties.
Table 4. Service Graph Connection Properties Property Description Apigee identification Organization id Organization within the Apigee X system to which the projects belong. Project id Project identifier within the Apigee X environment that the connection will be linked to. For multiple project IDs, separate them with commas.
Data retrieval configuration Discovery scope Discovery scope of the Apigee X application. The available options are: - Organization
- Select Organization when the ServiceNow service account has access to data within the Apigee X organization.
- Projects
- Select Projects when the ServiceNow service account has access to data within Apigee X projects only.
Include environments Apigee X environments to include in the connection. For multiple environments, separate them with commas. Only API proxies in the environments listed in the Include environments property are imported.
If you leave this field empty, the data sources within the connector import API proxies from all environments.
Collection period (in days) Duration in days for collecting API usage data. Collect usage data Option to enable usage data collection to retrieve API usage data over a specified duration. Expand HTTP method types Method types to consider for routes that allow all HTTP methods ( GET,POST,PUT,PATCH,DELETE,OPTIONS,HEAD,CONNECT,TRACE).For multiple methods, separate them with commas. All methods listed are considered for route handling.
Performance configuration Page size Number of records per page. Default is 100, minimum is2.Partition size Partition size for Apigee X managed APIs if parallel loading is enabled. Accepts a numeric value greater than zero. If left empty, the value is automatically calculated.
- Select Continue.
-
Configure the import schedule to import data at regular intervals.
- In the Setup stage of the playbook, select the Configure import schedule activity.
- Select Configure import schedule.
- In the Configure import schedule dialog box, in the Name field, enter the Organization import schedule.
-
Select the Active check box, and then fill in the run schedule and time details.
For more information, see Schedule a data import.
- Select Save.
- For the Configure import schedule activity, select Continue.
- In the Setup stage of the playbook, select the Confirm connection creation activity to verify whether the connection was created.
What to do next
Select View all connections to review the connection details. The configured connection appears in the Installed connections list.