oci-cli
oci-cli copied to clipboard
oci vault secret list fails when limiting lifecycle-state for PENDING_DELETION
Hi there - I can't seem to get the limit on lifecycle state to work for PENDING_DELETION:
$ oci vault secret list --compartment-id ocid1.compartment.oc1..xxx --lifecycle-state PENDING_DELETION --name "NewSecret"
ServiceError:
{
"code": 400,
"message": "query param lifecycleState must be one of [Creating, Active, Updating, Deleting, Deleted, SchedulingDeletion, PendingDeletion, CancellingDeletion, Failed, UnknownEnumValue]",
"opc-request-id": "xxx",
"status": 400
}
Trying the same with PendingDeletion does not work either:
$ oci vault secret list --compartment-id ocid1.compartment.oc1..xxx --lifecycle-state PendingDeletion --name "NewSecret"
Error: Invalid value for "--lifecycle-state": invalid choice: PendingDeletion. (choose from CREATING, ACTIVE, UPDATING, DELETING, DELETED, SCHEDULING_DELETION, PENDING_DELETION, CANCELLING_DELETION, FAILED)
Am I missing something?
hi Harlan, looking into it. Will get back to you soon.