Assigned
Status Update
Comments
gh...@google.com <gh...@google.com>
gh...@google.com <gh...@google.com> #2
Hello,
Thank you for reaching out to us!
I tried to reproduce this issue at my end. However, I am getting the intended behavior.
Please check the
Please let me know if that helped you with your use case and if there is anything else you would need assistance with.
Thank you
Description
Please provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible please provide a summary of what steps or workarounds you have already tried, and any docs or articles you found (un)helpful.
Problem you have encountered:
The --sort-by flag on the api-configs list command does not function as intended
What you expected to happen:
list the api-configs in the order of the parameter passed in.
Steps to reproduce:
gcloud api-gateway apis list --sort-by=['CREATE_TIME']
Other information (workarounds you have tried, documentation consulted, etc):
I have tried executing the command in the following other formats but to no avail:
- gcloud api-gateway api-configs list --sort-by=[CREATE_TIME]
- gcloud api-gateway api-configs list --sort-by='[CREATE_TIME]'
- gcloud api-gateway api-configs list --sort-by=CREATE_TIME
- gcloud api-gateway api-configs list --sort-by='CREATE_TIME'
The error message is as follows:
ERROR: gcloud crashed (ValidationError): Expected type <class 'str'> for field orderBy, found **insert format** (type <class 'list'>)