remove-network-policy - Cloud Foundry CLI Reference Guide


NAME

remove-network-policy - Remove network traffic policy of an app

SYNTAXE

cf remove-network-policy SOURCE_APP DESTINATION_APP [-s DESTINATION_SPACE_NAME [-o DESTINATION_ORG_NAME]] --protocol (tcp | udp) --port RANGE

EXAMPLES

cf remove-network-policy frontend backend --protocol tcp --port 8081 cf remove-network-policy frontend backend -s backend-space -o backend-org --protocol tcp --port 8080-8090

OPTIONS

--port

Port or range of ports that destination app is connected with

--protocol

Protocol that apps are connected with

-o

The org of the destination app (Default: targeted org)

-s

The space of the destination app (Default: targeted space)

SEE ALSO

add-network-policy, apps, network-policies