API to create network policy between application is different space and organization
There is no API similar to CLI to create network policy between application across space and organization.
Below is an example of the CLI to do the same: cf add-network-policy TestApplication --destination-app Gateway-test -s A.02_Test -o CloudIoT --protocol tcp --port 8080
This request is being opened after discussion on the java-client slack channel.
Thanks for raising this up. This is acknowledged as a gap presently. I cannot commit to a time frame for adding this functionality, but if anyone is interested in submitting a PR I can give priority to merging it. If you have questions or would like some pointers on how to get started with this issue, just let me know. Thanks