Created
February 21, 2018 10:09
-
-
Save boina-n/e8c56f8a6db1f2593ba917f543f9e598 to your computer and use it in GitHub Desktop.
How to enfore space quota plan on PCF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cf curl /v2/organizations/854e0b32-9ec7-3859-a59f-a992a1e7850c/spaces | jq -r ".resources[]" | jq '.entity | select(.space_quota_definition_url!="/v2/space_quota_definitions/a992a1e7850c-5f6e-301a-zdt9-954e0b32")' | jq '.name' | tr -d \" | while read p ; do cf set-space-quota $p {$space_quota_plan} ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment