OCI SDK for Python: working with 'InvalidParameter' scenarios While Creating a Volume
I've searched everywhere and can't find a clear answer. I'm trying to create a block volume in Oracle Cloud Infrastructure (OCI) using the OCI SDK for Python (version 2.38.0). Despite following the documentation, I'm running into an 'InvalidParameter' behavior when executing the code. Here's the snippet I am using: ```python import oci config = oci.config.from_file() # Loads config from ~/.oci/config blockstorage_client = oci.core.BlockstorageClient(config) compartment_id = 'your_compartment_id' volume_details = oci.core.models.CreateVolumeDetails( availability_domain='YOUR_AD', compartment_id=compartment_id, display_name='MyVolume', size_in_gbs=50 ) try: response = blockstorage_client.create_volume(volume_details) print(f'Volume created with ID: {response.data.id}') except oci.exceptions.ServiceError as e: print(f'behavior: {e}') ``` When I run this code, I receive the following behavior message: ``` oci.exceptions.ServiceError: (400, 'InvalidParameter', 'The request contains an invalid parameter.') ``` I have verified that the compartment ID is correct and that the availability domain exists. I've also double-checked the size and display name parameters. I suspect the scenario might be related to the availability domain string or some required parameters that I might have overlooked. I've tried different availability domain values, but the behavior continues. Can someone guide to identify what could be causing this 'InvalidParameter' behavior, or if there are any parameters that are mandatory but missing in my request?