Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a network list jq issue #31

Open
sfennessey opened this issue Dec 8, 2023 · 1 comment
Open

Getting a network list jq issue #31

sfennessey opened this issue Dec 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sfennessey
Copy link

When trying to use the example for getting a network list I was continually running into an issue with the jq statement and could not get just the list of IPs back. After some research I found the below command works.

akamai netlist get by-name --name some_list_name --includeElements | jq -r '.list[],[]'

To Reproduce
original command in documentation and error I was receiving:

akamai netlist get by-name --name some_list_name --includeElements | jq -r '.[].list'
jq: error (at :164): Cannot index string with string "list"

Expected behavior
Updated command:
akamai netlist get by-name --name some_list_name --includeElements | jq -r '.list[],[]'

Software (please complete the following information):
akamai version 1.5.5

@sfennessey sfennessey added the bug Something isn't working label Dec 8, 2023
@RafPe
Copy link
Collaborator

RafPe commented Dec 9, 2023

Thanks for opening the issue @sfennessey . Will try to take a look next week into this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants