public String hostgroupCreate( String name ) throws IOException
    {
        Request request = RequestBuilder.newBuilder().method( "hostgroup.create" ).paramEntry( "name", name ).build();
        JsonNode response = call( request );
        return response.get( "result" ).get( "groupids" ).get( 0 ).toString();
    }
public String hostgroupCreate ( String name ) throws IOException { Request request = RequestBuilder . newBuilder ( ) . method ( "hostgroup.create" ) . paramEntry ( "name" , name ) . build ( ) ; JsonNode response = call ( request ) ; return response . get ( "result" ) . get ( "groupids" ) . get ( 0 ) . toString ( ) ; }
@param name
@return groupId