You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, when OCI CLI is used in interactive mode, these default values are not being honored or considered - which is resulting in error Error: Missing required parameters ['--compartment-id']
For example with api-gateway.compartment-id default value specified in configuration:
Command oci api-gateway deployment list --lifecycle-state ACTIVE works and returns list of ACTIVE deployments in the default compartment.
Command oci api-gateway deployment list works fine in interactive mode, and returns list of all deployments in default compartment.
Command oci api-gateway deployment list --lifecycle-state ACTIVE doesn't work in interactive mode, and returns error Error: Missing required parameters ['--compartment-id']
Expected:
Command oci api-gateway deployment list --lifecycle-state ACTIVE should return list of all deployments in the default compartment.
The text was updated successfully, but these errors were encountered:
As per https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/cliconfigure.htm#Specifying_Default_Values, We can store default values for options in oci_cli_rc file which works fine when we run the commands in non-interactive mode.
But, when OCI CLI is used in interactive mode, these default values are not being honored or considered - which is resulting in error
Error: Missing required parameters ['--compartment-id']
For example with api-gateway.compartment-id default value specified in configuration:
oci api-gateway deployment list --lifecycle-state ACTIVE
works and returns list of ACTIVE deployments in the default compartment.oci api-gateway deployment list
works fine in interactive mode, and returns list of all deployments in default compartment.oci api-gateway deployment list --lifecycle-state ACTIVE
doesn't work in interactive mode, and returns errorError: Missing required parameters ['--compartment-id']
Expected:
oci api-gateway deployment list --lifecycle-state ACTIVE
should return list of all deployments in the default compartment.The text was updated successfully, but these errors were encountered: