OCI: Stack Monitoring, Database Refresh Fails with Error discoveryDetails.properties must not be null
(Doc ID 2992801.1)
Last updated on DECEMBER 25, 2023
Applies to:
OCI Stack Monitoring - Version N/A and laterInformation in this document applies to any platform.
Symptoms
In OCI Stack Monitoring Service, Database Refresh Operation using Command Line Fails with below error.
$ oci stack-monitoring discovery-job create --compartment-id <COMPARTMENT-OCID> --discovery-type REFRESH --discovery-details file:///$PWD/db_refresh.json
ServiceError:
{
"client_version": "Oracle-PythonSDK/2.116.0, Oracle-PythonCLI/3.36.2",
"code": "InvalidParameter",
"logging_tips": "Please run the OCI CLI command using --debug flag to find more debug information.",
"message": "discoveryDetails.properties must not be null; discoveryDetails.resourceType must not be null; discoveryDetails.resourceName must not be null; discoveryDetails.agentId must not be null",
"opc-request-id": "<OPC-REQUEST-ID>",
"operation_name": "create_discovery_job",
"request_endpoint": "POST https://stack-monitoring.<region>.oci.oraclecloud.com/XXXXXXX/discoveryJobs",
"status": 400,
"target_service": "stack_monitoring",
"timestamp": "<TIMESTAMP>",
"troubleshooting_tips": "See [https://docs.oracle.com/iaas/Content/API/References/apierrors.htm] for more information about resolving this error. If you are unable to resolve this issue, run this CLI command with --debug option and contact Oracle support and provide them the full error message."
}
ServiceError:
{
"client_version": "Oracle-PythonSDK/2.116.0, Oracle-PythonCLI/3.36.2",
"code": "InvalidParameter",
"logging_tips": "Please run the OCI CLI command using --debug flag to find more debug information.",
"message": "discoveryDetails.properties must not be null; discoveryDetails.resourceType must not be null; discoveryDetails.resourceName must not be null; discoveryDetails.agentId must not be null",
"opc-request-id": "<OPC-REQUEST-ID>",
"operation_name": "create_discovery_job",
"request_endpoint": "POST https://stack-monitoring.<region>.oci.oraclecloud.com/XXXXXXX/discoveryJobs",
"status": 400,
"target_service": "stack_monitoring",
"timestamp": "<TIMESTAMP>",
"troubleshooting_tips": "See [https://docs.oracle.com/iaas/Content/API/References/apierrors.htm] for more information about resolving this error. If you are unable to resolve this issue, run this CLI command with --debug option and contact Oracle support and provide them the full error message."
}
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |