oci-cli icon indicating copy to clipboard operation
oci-cli copied to clipboard

oci vault secret list fails when limiting lifecycle-state for PENDING_DELETION

Open harlanbarnes opened this issue 5 years ago • 1 comments

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?

harlanbarnes avatar Oct 12 '20 13:10 harlanbarnes

hi Harlan, looking into it. Will get back to you soon.

harshkumar-dev avatar Oct 12 '20 21:10 harshkumar-dev