oracle / oracle/oci-cli

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

Open
#337 1 comment 0 reactions 1 assignee View on GitHub

@harshkumar-dev is already working on this.

Since Oct 12, 2020.

Secret Management
Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.