Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

edited Oct 21, 2020 3:26PM in OCI - General 3 comments

Summary

oci.logging.models.CreateLogDetails - Invalid Parameter Configuration

Content

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.

Register

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