-
Notifications
You must be signed in to change notification settings - Fork 366
Description
Filtering by name behaves differently. eg. apps endpoint isn't case sensitive while it matters for service instances.
cf curl "/v3/apps?space_guids=$(cf space main --guid)&names=main" | jq -c '.resources[] | [.guid, .name]'
["8675049b-7bec-4730-a97e-f4e215ae5d04","main"]
cf curl "/v3/apps?space_guids=$(cf space main --guid)&names=MAIN" | jq -c '.resources[] | [.guid, .name]'
["8675049b-7bec-4730-a97e-f4e215ae5d04","main"]
cf curl "/v3/service_instances?space_guids=$(cf space main --guid)&names=SHOVEL_MGMT" | jq -c '.resources[] | [.guid, .name]'
["e0ffd76e-0e5c-4384-bbed-63f717eb9ab5","SHOVEL_MGMT"]
cf curl "/v3/service_instances?space_guids=$(cf space main --guid)&names=shovel_mgmt" | jq -c '.pagination.total_results'
0
edit: it's not just the filter/param, case sensitivity matters for services in any aspect.
cf services | grep -i shovel
SHOVEL_MGMT rabbitmqent usage create succeeded rabbitmq-broker no
shovel_mgmt rabbitmqent usage create succeeded rabbitmq-broker no