--- title: OCI sub account pattern-based discovery description: Discovery and Service Mapping Patterns finds sub accounts \(compartments\) in your OCI environment. Discovering some of these resources might require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-operations-management/discovery-and-service-mapping-patterns/oracle-sub-account-pattern.html release: australia product: Discovery and Service Mapping Patterns classification: discovery-and-service-mapping-patterns topic_type: reference last_updated: "2026-10-29" reading_time_minutes: 3 keywords: [Oracle OCI - Sub Account \(LP\), sub account, compartment, OCI discovery, Oracle patterns] breadcrumb: [OCI discovery, Available cloud discovery patterns, Discovery patterns used by ITOM Visibility, ITOM Visibility, IT Operations Management] --- # OCI sub account pattern-based discovery Discovery and Service Mapping Patterns finds sub accounts \(compartments\) in your OCI environment. Discovering some of these resources might require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store. ## Pattern-based discovery and mapping requirements - **Verify the REST API permissions** Download the [Cloud Discovery patterns spreadsheet](https://downloads.docs.servicenow.com/resource/enus/api/servicenow-discovery-patterns-api-details.xlsx) so you can grant user permissions required for running the Discovery patterns. In addition to permissions, the spreadsheet also includes useful information such as pattern names, types, CI Classes, and links to vendor documentation. New patterns are available quarterly, so check periodically to be sure you have the latest version of the spreadsheet. - **Verify the OCI discovery prerequisites** For more information, see the prerequisites section in [Oracle Cloud Infrastructure \(OCI\) discovery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery-and-service-mapping-patterns/oracle-cloud-infrastructure-discovery.md). - **Configure the Discovery schedule to support GovCloud** Discovering OCI GovCloud accounts requires using a datacenter URL when setting up an OCI service account. For more information, see [Create OCI service accounts](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/create-oci-service-accounts.md). ## Data collected by Discovery during horizontal discovery Discovery populates the data in the CMDB when running the Oracle OCI - Sub Account \(LP\) pattern.
| Field | Description |
|---|---|
| Name \[name\] | Name of the compartment. |
| Object ID \[object\_id\] | Oracle Cloud Identifier \(OCID\) of the compartment. |
| Account Id \[account\_id\] | Unique identifier of the account. - For sub accounts: the value is the OCID of the compartment - For the management account: the value is the account ID of the tenancy that you entered when you added the account |
| Datacenter Type \[datacenter\_type\] | Type of datacenter that the account belongs to. The value is set to OCI Datacenter \[cmdb\_ci\_oci\_datacenter\]. |
| Datacenter URL \[datacenter\_url\] | URL of the datacenter. The value is inherited from the management account. |
| Organization Id \[organization\_id\] | Organization ID. The value is inherited from the management account. |
| Is management account \[is\_master\_account\] | Indicator of whether the account is the management account.- For sub accounts: the value is false - For the management account: the value is true |
| Parent account \[parent\_account\] | Reference to the Cloud Service Account \[cmdb\_ci\_cloud\_service\_account\] table. |
| Install Status \[install\_status\] | Install status of the resource. Default value is Installed. |
| Operational status \[operational\_status\] | Operational status of the resource. Default value is Operational. |