5. Verifying Infrastructure Resources

After creating the infrastructure resources, you must verify that all resources have been successfully created and are functioning as expected. This step ensures that all components are properly provisioned and that the necessary connections between them are established. You can verify the infrastructure resources using the /infrastructure API:

  • Method: GET
  • Endpoint: /infrastructure
  • Description: Verifies that the infrastructure resources have been properly provisioned and are running without any issues.
  • Sample API call request:
    GET https://<SCM_instance_IP>:<port_num>/scm/api/v1.0/infrastructure/<infra_id> HTTP/1.1
    Authorization: Basic Auth
  • Sample API call response:
    {
       "data": {
          "infra_details": {
                "components_info": {
                   "git": {
                      "byo_git": {
                         "git_accesstoken": "********",
                         "git_helm_repo_branch": "DEMO_HELM",
                         "git_helm_repo_url": "https://devops.scmservice.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_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"
    }