Create log REST API error
Summary
oci.logging.models.CreateLogDetails - Invalid Parameter ConfigurationContent
The class oci.logging.models.CreateLogDetails has an attribute "configuration" which in the documentation when clicked redirects to oci.cloud_guard.models.Configuration.
My code looks like this:
client= oci.logging.LoggingManagementClient(self.config)
configuration= oci.cloud_guard.models.Configuration(reporting_region= 'US-ASHBURN-1')
logDetails= oci.logging.models.CreateLogDetails(log_type='SERVICE', display_name="abc", configuration=configuration)
response= client.create_log(log_group_id="ocid1.loggroup.oc1.iad.amaaaaaaxxxxxxxxxxxxxxxxxxxxxxxxxx", create_log_details=logDetails)
This is the error message i got:
{
"reporting_region": "US-ASHBURN-1",
"self_manage_resources": null,
"status": null
} was expected to be of type Configuration but was of type Configuration