remove-network-policy - Cloud Foundry CLI Reference Guide


名称

remove-network-policy - 除去应用程序的网络通信策略

用法

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

EXAMPLES

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

选项

--destination-app

要连接到的应用程序的名称

--port

用于连接目标应用程序的端口或端口范围

--protocol

用于连接应用程序的协议

-o

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

-s

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

另请参阅

add-network-policy, apps, network-policies