We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Create log REST API error

Received Response
edited Oct 21, 2020 3:26PM in Oracle Cloud Infrastructure - General 3 comments


oci.logging.models.CreateLogDetails - Invalid Parameter Configuration


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

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!