4. Creating Infrastructure Resources

You must now create the infrastructure resources required for deploying Open Integration. This includes setting up infrastructure resources such as the Kubernetes cluster, Git repository, registry, Coherence Operator, and so on. This step initiates the creation of the infrastructure resources on which Open Integration will run. You can initiate the creation of infrastructure resources using the /infrastructure API:

  • Method: POST
  • Endpoint: /infrastructure
  • Description: Initiates the creation of the required infrastructure resources based on the input payload and returns an infrastructure ID, which will be used during the Open Integration deployment.
  • Sample API call request:
    POST https://<SCM_instance_IP>:<port_num>/scm/api/v1.0/infrastructure
    Authorization: Basic Auth
    Content-Type: application/json
  • Sample payload:
    {
       "kubernetes": {
          "kubernetes_type": "BYO_OKE",
          "namespace": "sample",
          "byo_oke": {
             "oke_cluster_id": "ocid1.cluster.xxx.xxxxx.aaaaaa..",
             "oke_endpoint": "PRIVATE"
          }
       },
       "git":
       {
       "git": {
          "git_type": "byo_git",
          "byo_git": {
             "git_protocol_type": "http",
             "git_scm_repo_url": "https://devops.scmservice.xxxxx.oci.oraclecloud.com/namespaces/siebeldev/projects/DEMO/repositories/DEMO_SCM",
             "git_scm_repo_branch": "DEMO_SCM",
             "git_scm_flux_folder": "flux1",
             "git_helm_repo_url": "https://devops.scmservice. xxxxx.oraclecloud.com/namespaces/siebeldev/projects/DEMO/repositories/DEMO_HELM",
             "git_helm_repo_branch": "DEMO_HELM",
             "git_user": "siebeldev/xxxxx@oracle.com",
             "git_accesstoken": "*******"
          }
       }},
       "registry": {
          "registry_url": "lhr.ocir.io",
          "registry_prefix": "siebel_openint",
          "registry_user": "******",
          "registry_password": "******"
       }
    }
  • Sample response:
    {
       "data": {
          "infra_details": {
             "components_info": {
             "git": {
                "byo_git": {
                   "git_accesstoken": "********",
                   "git_helm_repo_branch": "DEMO_HELM",
                   "git_helm_repo_url": "https://devops. xxxxx.oci.oraclecloud.com/namespaces/siebeldev/projects/DEMO/repositories/DEMO_HELM",
                   "git_protocol_type": "http",
                   "git_scm_flux_folder": "flux1",
                   "git_scm_repo_branch": "DEMO_SCM",
                   "git_scm_repo_url": "https://devops.scmservice.xxxxx.oci.oraclecloud.com/namespaces/siebeldev/projects/DEMO/repositories/DEMO_SCM",
                   "git_user": "**********",
                   "skip_flux_bootstrap": false
                },
             "git_type": "byo_git"
             },
                "kubernetes": {
                   "byo_oke": {
                      "oke_cluster_id": "ocid1.cluster.oc1.xxxxx......",
                      "oke_endpoint": "PRIVATE"
                   },
                   "kubernetes_type": "BYO_OKE"
                },
                "registry": {
                   "registry_password": "********",
                   "registry_url": "iad.ocir.io",
                   "registry_prefix": "siebel_openint",
                   "registry_user": "******"
                }
             },
             "infra_id": "7OZMKQ",
             "infra_status": "creation-in-progress",
             "resource_status": {
                "git": "not-validated",
                "kubernetes": "not-validated",
                "registry": "not-validated"
             },
             "stages_info": [
             {
                "end_time": "Thu, 22 May 2025 06:54:38 GMT",
                "log_api_link": "",
                "log_location": "/home/opc/siebel/infrastructures/7OZMKQ/helm_setup.log",
                "name": "Setup Helm Chart for validation",
                "previous_status": "",
                "stage_name": "setup_validation_helmchart",
                "start_time": "Thu, 22 May 2025 06:54:27 GMT",
                "status": "passed"
             },
             {
                "end_time": "Thu, 22 May 2025 06:54:38 GMT",
                "log_api_link": "",
                "log_location": "/home/opc/siebel/infrastructures/7OZMKQ/helm_setup.log",
                "name": "Check Job status",
                "previous_status": "",
                "stage_name": "check_job_status_helmchart",
                "start_time": "Thu, 22 May 2025 06:54:27 GMT",
                "status": "in-progress"
             },
             {
                "end_time": "Thu, 22 May 2025 06:54:38 GMT",
                "log_api_link": "",
                "log_location": "",
                "name": "Collect Infra artifacts",
                "previous_status": "",
                "stage_name": "collect_infra_artifacts",
                "start_time": "Thu, 22 May 2025 06:54:27 GMT",
                "status": ""
             }
             ],
             "updated_values": {}
          }
          },
       "message": "Infrastructure details retrieved successfully.",
       "status": "success"
    }