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

prints info on routes on a given domain #132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

spgreenberg
Copy link
Contributor

Changes proposed in this pull request:

Utility script in support of removing the fr.cloud.gov domain for customer use: https://github.com/cloud-gov/private/issues/171

security considerations

None


domain_guid=$(cf curl "/v3/domains?names=${domain_name}" | jq -r '.resources[].guid')

route_guids=$(cf curl "/v3/routes?domain_guids=${domain_guid}&per_page=5000" | jq -r '.resources[] | .guid')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we implement paging rather than getting 5000 results at once?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could if we want to do the work. There were less than 500 so this was the fastest path for a script with limited use (at least limited use currently).

@markdboyd markdboyd changed the base branch from master to main April 14, 2023 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants