public static void main ( String [ ] args ) throws IOException { ApiOvhCore core = new ApiOvhCore ( ) ; ApiOvhCloud cloud = new ApiOvhCloud ( core ) ; ArrayList < String > projects = cloud . project_GET ( ) ; for ( String project : projects ) { System . out . println ( project ) ; ArrayList < OvhNetwork > networds = cloud . project_serviceName_network_private_GET ( project ) ; List < String > debug = networds . stream ( ) . map ( ApiOvhUtils :: objectJsonBody ) . collect ( Collectors . toList ( ) ) ; //String txt = ApiOvhUtils.objectJsonBody(payload); System . out . println ( debug ) ; } // project_serviceName_network_private_GET }
Login using ovh . conf