XML Schema to Discover Oracle E-Business Suite Using EM CLI

XML Schema to Discover Oracle E-Business Suite Using EM CLI

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
           xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="EBSDiscovery">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="DefaultDiscParams" minOccurs="0" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="NamedCreds" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="AppsNamedCreds" minOccurs="0" maxOccurs="1"/>
                    <xs:element type="xs:string" name="WlsAdminNamedCreds" minOccurs="0" maxOccurs="1"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="CustomerGroupDetails" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="GroupName" minOccurs="0" maxOccurs="1"/>
                    <xs:element type="xs:string" name="InstanceGroupName" minOccurs="0" maxOccurs="1"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="DiscCustomization" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                  <xs:all>
                    <xs:element name="DiscoverWorkflow" minOccurs="0" maxOccurs="1">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="Y|N"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="DiscoverSSA" minOccurs="0" maxOccurs="1">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="Y|N"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="DiscoverCustomeObjects" minOccurs="0" maxOccurs="1">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="Y|N"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="DiscoverPatching" minOccurs="0" maxOccurs="1">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="Y|N"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="DiscoverJFF" minOccurs="0" maxOccurs="1">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="Y|N"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="DiscoverFormsService" minOccurs="0" maxOccurs="1">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="Y|N"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="DiscoverWorkflowService" minOccurs="0" maxOccurs="1">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="Y|N"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="DiscoverConcurrentManagers" minOccurs="0" maxOccurs="1">
                      <xs:complexType>
                        <xs:all>
                          <xs:element name="DiscoverAll" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="ExcludeConcurrentManagers" minOccurs="0" maxOccurs="1">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="ConcurrentManager" minOccurs="0" maxOccurs="unbounded"/>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:all>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="DeleteRemovedTargets" minOccurs="0" maxOccurs="1">
                      <xs:simpleType>
                        <xs:restriction base="xs:string">
                          <xs:pattern value="Y|N"/>
                        </xs:restriction>
                      </xs:simpleType>
                    </xs:element>
                    <xs:element name="AppNodeCustomization" minOccurs="0" maxOccurs="1">
                      <xs:complexType>
                        <xs:all>
                          <xs:element name="DiscoverForms" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DiscoverMWA" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DiscoverJVMUsage" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                        </xs:all>
                      </xs:complexType>
                    </xs:element>
                  </xs:all>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Databases" minOccurs="1" maxOccurs="1">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Database" maxOccurs="unbounded" minOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="Name" minOccurs="1" maxOccurs="1"/>
                    <xs:element name="NamedCreds" minOccurs="0" maxOccurs="1">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="AppsNamedCreds" minOccurs="0" maxOccurs="1"/>
                          <xs:element type="xs:string" name="WlsAdminNamedCreds" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="CustomerGroupDetails" minOccurs="0" maxOccurs="1">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="GroupName" minOccurs="0" maxOccurs="1"/>
                          <xs:element type="xs:string" name="InstanceGroupName" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="DiscCustomization" minOccurs="0" maxOccurs="1">
                      <xs:complexType>
                        <xs:all>
                          <xs:element name="DiscoverWorkflow" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DiscoverSSA" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DiscoverCustomeObjects" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DiscoverPatching" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DiscoverJFF" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DiscoverFormsService" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DiscoverWorkflowService" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="DeleteRemovedTragets" minOccurs="0" maxOccurs="1">
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:pattern value="Y|N"/>
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:element>
                          <xs:element name="Hosts" minOccurs="0" maxOccurs="1">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="Host" minOccurs="1" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:sequence>
                                      <xs:element type="xs:string" name="HostName" minOccurs="1" maxOccurs="1"/>
                                      <xs:element type="xs:string" name="AliasedHost" minOccurs="0" maxOccurs="1"/>
                                      <xs:element name="AppNodeCustomization" minOccurs="0" maxOccurs="1">
                                        <xs:complexType>
                                          <xs:all>
                                            <xs:element name="ExcludeContext" minOccurs="0" maxOccurs="1">
                                              <xs:simpleType>
                                                <xs:restriction base="xs:string">
                                                  <xs:pattern value="Y|N"/>
                                                </xs:restriction>
                                              </xs:simpleType>
                                            </xs:element>
                                            <xs:element name="DiscoverForms" minOccurs="0" maxOccurs="1">
                                              <xs:simpleType>
                                                <xs:restriction base="xs:string">
                                                  <xs:pattern value="Y|N"/>
                                                </xs:restriction>
                                              </xs:simpleType>
                                            </xs:element>
                                            <xs:element name="DiscoverMWA" minOccurs="0" maxOccurs="1">
                                              <xs:simpleType>
                                                <xs:restriction base="xs:string">
                                                  <xs:pattern value="Y|N"/>
                                                </xs:restriction>
                                              </xs:simpleType>
                                            </xs:element>
                                            <xs:element name="DiscoverJVMUsage" minOccurs="0" maxOccurs="1">
                                              <xs:simpleType>
                                                <xs:restriction base="xs:string">
                                                  <xs:pattern value="Y|N"/>
                                                </xs:restriction>
                                              </xs:simpleType>
                                            </xs:element>
                                          </xs:all>
                                        </xs:complexType>
                                      </xs:element>
                                    </xs:sequence>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:all>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Sample XML to Discover Oracle E-Business Suite Instances Using EM CLI

<!--Required elements are marked with Required. All other elements are optional.-->
<!--Required. Root element-->
<EBSDiscovery>
  <!--Default discovery parameters. These parameters will be applied to all instances if not overridden.
    Predefined discovery parameters will be used if default discovery parameters are not provided-->
  <DefaultDiscParams>
    <!-- Monitoring and Weblogic Admin named credential-->
    <NamedCreds>
      <!--Monitoring named credential for database-->
      <AppsNamedCreds></AppsNamedCreds>
      <!-- Weblogic Admin named credential. Required for EBS Release 12.2 and above-->
      <WlsAdminNamedCreds></WlsAdminNamedCreds>
    </NamedCreds>
    <!--Customer Group Details-->
    <CustomerGroupDetails>
      <!--All targets discovered for this instance will be grouped under this group. This group will be added to Group: Customer Group Name.-->
      <GroupName></GroupName>
      <!--If the Customer Instance Group Name is provided, then all the targets discovered for this instance and the Customer Instance Group Name will be added to this group.-->
      <InstanceGroupName></InstanceGroupName>
    </CustomerGroupDetails>
    <!--Discovery Customization. Elements can occur in any order-->
    <DiscCustomization>
      <!--Disable/Enable discovery of the Oracle Workflow components. Possible values: {Y, N}, Default Value: Y-->
      <DiscoverWorkflow></DiscoverWorkflow>
      <!--Disable/Enable creation of the Self-Service Applications (SSA) Service. Possible values: {Y, N}, Default Value: Y-->
      <DiscoverSSA></DiscoverSSA>
      <!--Disable/Enable discovery of custom objects configuration. Possible values: {Y, N}, Default Value: Y-->
      <DiscoverCustomeObjects></DiscoverCustomeObjects>
      <!--Disable/Enable discovery of the Patching Information Object. This target is essential for any Oracle E-Business Suite patching application and should be enabled if any patching applications are used with this instance.
			Applicable for EBS Release 12 and above. Possible values: {Y, N}, Default Value: Y-->
      <DiscoverPatching></DiscoverPatching>
      <!--Disable/Enable discovery of the Java fulfillment. Possible values: {Y, N}, Default Value: Y-->
      <DiscoverJFF></DiscoverJFF>
      <!--Disable/Enable creation of the Oracle Forms service. 
			Applicable for EBS Release 12 and above. Possible values: {Y, N}, Default Value: Y-->
      <DiscoverFormsService></DiscoverFormsService>
      <!--Disable/Enable creation of the Oracle Workflow service. If you do not discover workflow targets, then the workflow service will not be discovered. 
			Applicable for EBS Release 12 and above. Possible values: {Y, N}, Default Value: Y-->
      <DiscoverWorkflowService></DiscoverWorkflowService>
      <!--Discovery customization of concurrent managers-->
      <DiscoverConcurrentManagers>
        <!--To Discover All concurrent managers. Possible values: {Y, N}, Default Value: N. 
				If set to N, only core concurrent managers will be discovered-->
        <DiscoverAll></DiscoverAll>
        <!-- Provision to exclude a few concurrent managers from discovery even if DiscoverAll set to Y-->
        <ExcludeConcurrentManagers>
          <!--List of concurrent managers to exclude from discovery-->
          <ConcurrentManager></ConcurrentManager>
        </ExcludeConcurrentManagers>
      </DiscoverConcurrentManagers>
      <!--Whether to delete an Oracle E-Business Suite member target from OMS which was originally discovered and later detached from the Oracle E-Business Suite target hierarchy with a rediscovery.
        For example, say you have discovered an Oracle E-Business Suite instance with five nodes. Later you customize the discovery and exclude two nodes. When you perform rediscovery, the two excluded nodes become orphan nodes. If this option is set to Yes, then the orphan targets will be deleted during rediscovery.
			Possible values: {Y, N}, Default Value: N.-->
      <DeleteRemovedTragets></DeleteRemovedTragets>
      <!--Context level customization for application node. Applied to all the application context targets of an EBS-->
      <AppNodeCustomization>
        <!--Discovery of Forms. Possible values: {Y, N}, Default Value: Y. -->
        <DiscoverForms></DiscoverForms>
        <!--Discovery of Mobile Web Applications. Possible values: {Y, N}, Default Value: Y.-->
        <DiscoverMWA></DiscoverMWA>
        <!--Discovery of JVM Usage. Possible values: {Y, N}, Default Value: Y.-->
        <DiscoverJVMUsage></DiscoverJVMUsage>
      </AppNodeCustomization>
    </DiscCustomization>
  </DefaultDiscParams>
  <!-- Required. List of database targets to be discovered-->
  <Databases>
    <!--Required, can repeat 1 to N times. Database target details. At least one occurrence is required-->
    <Database>
      <!-- Required. Name of database target. This database does not have any customization-->
      <Name></Name>
    </Database>
    <!--Another database. This database has customization-->
    <Database>
      <Name></Name>
      <!--Required if default credentials are not set. This will override default credential for given database target if provided-->
      <NamedCreds>
        <!--Monitoring named credential for database-->
        <AppsNamedCreds></AppsNamedCreds>
        <!-- Weblogic Admin named credential. Required for EBS Release 12.2 and above-->
        <WlsAdminNamedCreds></WlsAdminNamedCreds>
      </NamedCreds>
      <!--Customer Group Details-->
      <CustomerGroupDetails>
        <!--All targets discovered for this instance will be grouped under this group. This group will be added to Group: Customer Group Name.-->
        <GroupName></GroupName>
        <!--If the Customer Instance Group Name is provided, then all the targets discovered for this instance and the Customer Instance Group Name will be added to this group.-->
        <InstanceGroupName></InstanceGroupName>
      </CustomerGroupDetails>
      <!--Customization of specific EBS. Any combination of customizations can occur here-->
      <DiscCustomization>
        <!--Disable/Enable creation of the Self-Service Applications (SSA) Service. Possible values: {Y, N}, Default Value: Y-->
        <DiscoverSSA></DiscoverSSA>
        <!--To list all the hosts of an EBS-->
        <Hosts>
          <!-- Host details. It can have more than one occurrence in case of multinode EBS. If a host is not customized, default customizations will be applied-->
          <Host>
            <!--Name of the host-->
            <HostName></HostName>
            <!--Aliased hostname, needed only if the host name is aliased-->
            <AliasedHost></AliasedHost>
            <!--Context level customization for application node-->
            <AppNodeCustomization>
              <!--Discovery of Forms. Possible values: {Y, N}, Default Value: Y. -->
              <DiscoverForms></DiscoverForms>
              <!--Discovery of JVM Usage. Possible values: {Y, N}, Default Value: Y.-->
              <DiscoverJVMUsage></DiscoverJVMUsage>
              <!--Exclude a node from being discovered . Possible values: {Y, N}, Default Value: N.
                This element is not supported in default customization. At least one application node must be selected for successful discovery. Discovery can happen even if you do not select any database node. For Oracle E-Business Suite Release 12.2, you cannot exclude a node if the WebLogic Administration Server is running on that node.-->
              <ExcludeContext></ExcludeContext>
            </AppNodeCustomization>
          </Host>
        </Hosts>
      </DiscCustomization>
    </Database>
  </Databases>
</EBSDiscovery>