idx
int64
0
165k
question
stringlengths
73
5.81k
target
stringlengths
5
918
12,400
public OvhTask serviceName_requestBoost_POST ( String serviceName , OvhOfferEnum offer ) throws IOException { String qPath = "/hosting/web/{serviceName}/requestBoost" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "offer" , offer ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Allows you to boost your offer .
12,401
public OvhTask serviceName_module_POST ( String serviceName , String adminName , String adminPassword , OvhDependencyType [ ] dependencies , String domain , net . minidev . ovh . api . hosting . web . module . OvhLanguageEnum language , Long moduleId , String path ) throws IOException { String qPath = "/hosting/web/{serviceName}/module" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "adminName" , adminName ) ; addBody ( o , "adminPassword" , adminPassword ) ; addBody ( o , "dependencies" , dependencies ) ; addBody ( o , "domain" , domain ) ; addBody ( o , "language" , language ) ; addBody ( o , "moduleId" , moduleId ) ; addBody ( o , "path" , path ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Install a new module
12,402
public ArrayList < String > serviceName_envVar_GET ( String serviceName , net . minidev . ovh . api . hosting . web . envvar . OvhTypeEnum type ) throws IOException { String qPath = "/hosting/web/{serviceName}/envVar" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "type" , type ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t1 ) ; }
Environment variables set on your webhosting
12,403
public OvhTask serviceName_envVar_POST ( String serviceName , String key , net . minidev . ovh . api . hosting . web . envvar . OvhTypeEnum type , String value ) throws IOException { String qPath = "/hosting/web/{serviceName}/envVar" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "key" , key ) ; addBody ( o , "type" , type ) ; addBody ( o , "value" , value ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Set a variable to this hosting
12,404
public ArrayList < OvhVolumeHistory > serviceName_email_volumes_GET ( String serviceName ) throws IOException { String qPath = "/hosting/web/{serviceName}/email/volumes" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t10 ) ; }
Request the history volume of email sent
12,405
public String serviceName_email_request_POST ( String serviceName , OvhActionEnum action ) throws IOException { String qPath = "/hosting/web/{serviceName}/email/request" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "action" , action ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , String . class ) ; }
Request specific operation for your email
12,406
public ArrayList < OvhBounce > serviceName_email_bounces_GET ( String serviceName , Long limit ) throws IOException { String qPath = "/hosting/web/{serviceName}/email/bounces" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "limit" , limit ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t11 ) ; }
Request the last bounces
12,407
public OvhTask serviceName_attachedDomain_POST ( String serviceName , OvhCdnEnum cdn , String domain , OvhFirewallEnum firewall , String ownLog , String path , Long runtimeId , Boolean ssl ) throws IOException { String qPath = "/hosting/web/{serviceName}/attachedDomain" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "cdn" , cdn ) ; addBody ( o , "domain" , domain ) ; addBody ( o , "firewall" , firewall ) ; addBody ( o , "ownLog" , ownLog ) ; addBody ( o , "path" , path ) ; addBody ( o , "runtimeId" , runtimeId ) ; addBody ( o , "ssl" , ssl ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Link a domain to this hosting
12,408
public ArrayList < OvhCreationDatabaseCapabilities > serviceName_databaseCreationCapabilities_GET ( String serviceName ) throws IOException { String qPath = "/hosting/web/{serviceName}/databaseCreationCapabilities" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t7 ) ; }
List available database you can install
12,409
public OvhTask serviceName_activatePrivateDatabase_POST ( String serviceName , OvhAvailableRamSizeEnum ram , OvhOrderableVersionEnum version ) throws IOException { String qPath = "/hosting/web/{serviceName}/activatePrivateDatabase" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "ram" , ram ) ; addBody ( o , "version" , version ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Activate an included private database on your hosting offer
12,410
public ArrayList < Long > serviceName_cron_GET ( String serviceName , String command , String description , String email , OvhLanguageEnum language ) throws IOException { String qPath = "/hosting/web/{serviceName}/cron" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "command" , command ) ; query ( sb , "description" , description ) ; query ( sb , "email" , email ) ; query ( sb , "language" , language ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t3 ) ; }
Crons on your hosting
12,411
public String serviceName_cron_POST ( String serviceName , String command , String description , String email , String frequency , OvhLanguageEnum language , net . minidev . ovh . api . hosting . web . cron . OvhStatusEnum status ) throws IOException { String qPath = "/hosting/web/{serviceName}/cron" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "command" , command ) ; addBody ( o , "description" , description ) ; addBody ( o , "email" , email ) ; addBody ( o , "frequency" , frequency ) ; addBody ( o , "language" , language ) ; addBody ( o , "status" , status ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , String . class ) ; }
Create new cron
12,412
public OvhCapabilities offerCapabilities_GET ( OvhOfferCapabilitiesEnum offer ) throws IOException { String qPath = "/hosting/web/offerCapabilities" ; StringBuilder sb = path ( qPath ) ; query ( sb , "offer" , offer ) ; String resp = execN ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhCapabilities . class ) ; }
Get offer capabilities
12,413
public OvhVisibilityCheckResponse localSeo_visibilityCheck_POST ( OvhCountryEnum country , String name , String street , String zip ) throws IOException { String qPath = "/hosting/web/localSeo/visibilityCheck" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "country" , country ) ; addBody ( o , "name" , name ) ; addBody ( o , "street" , street ) ; addBody ( o , "zip" , zip ) ; String resp = execN ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhVisibilityCheckResponse . class ) ; }
Check visibility of a location
12,414
public OvhDirectoriesList localSeo_directoriesList_GET ( OvhCountryEnum country , net . minidev . ovh . api . hosting . web . localseo . location . OvhOfferEnum offer ) throws IOException { String qPath = "/hosting/web/localSeo/directoriesList" ; StringBuilder sb = path ( qPath ) ; query ( sb , "country" , country ) ; query ( sb , "offer" , offer ) ; String resp = execN ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhDirectoriesList . class ) ; }
Get list of directories associated to a local SEO offer and a country
12,415
public ArrayList < OvhVisibilityCheckResultResponse > localSeo_visibilityCheckResult_GET ( String directory , Long id , String token ) throws IOException { String qPath = "/hosting/web/localSeo/visibilityCheckResult" ; StringBuilder sb = path ( qPath ) ; query ( sb , "directory" , directory ) ; query ( sb , "id" , id ) ; query ( sb , "token" , token ) ; String resp = execN ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t12 ) ; }
Get the result of a visibility check
12,416
public ArrayList < Long > moduleList_GET ( Boolean active , OvhBranchEnum branch , Boolean latest ) throws IOException { String qPath = "/hosting/web/moduleList" ; StringBuilder sb = path ( qPath ) ; query ( sb , "active" , active ) ; query ( sb , "branch" , branch ) ; query ( sb , "latest" , latest ) ; String resp = execN ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t3 ) ; }
IDs of all modules available
12,417
public ArrayList < OvhSnapshotEnum > serviceName_partition_partitionName_snapshot_GET ( String serviceName , String partitionName ) throws IOException { String qPath = "/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot" ; StringBuilder sb = path ( qPath , serviceName , partitionName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t4 ) ; }
Get scheduled snapshot types for this partition
12,418
public OvhTask serviceName_partition_partitionName_snapshot_POST ( String serviceName , String partitionName , OvhSnapshotEnum snapshotType ) throws IOException { String qPath = "/dedicated/nasha/{serviceName}/partition/{partitionName}/snapshot" ; StringBuilder sb = path ( qPath , serviceName , partitionName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "snapshotType" , snapshotType ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Schedule a new snapshot type
12,419
public OvhUnitAndValue < Double > serviceName_partition_partitionName_use_GET ( String serviceName , String partitionName , OvhPartitionUsageTypeEnum type ) throws IOException { String qPath = "/dedicated/nasha/{serviceName}/partition/{partitionName}/use" ; StringBuilder sb = path ( qPath , serviceName , partitionName ) ; query ( sb , "type" , type ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t5 ) ; }
Return statistics about the partition
12,420
public final void enable ( Option ... options ) { for ( Option o : options ) { optionSet . add ( o ) ; } }
Enable options .
12,421
public void setMaximumBatchUpdateSize ( int size ) { if ( ! batchUpdateSupport ) { throw new InvalidOperationException ( "Batch updates not allowed by database driver." ) ; } if ( ! isEnabled ( DB . Option . BATCH_UPDATES ) ) { throw new InvalidOperationException ( DB . Option . BATCH_UPDATES + " option is not enabled." ) ; } if ( size < 1 ) { throw new InvalidOperationException ( "Invalid batch update size: " + size ) ; } maxBatchUpdateSize = size ; }
Set maximum size for batch updates .
12,422
public void enableFullLogging ( ) { enable ( DB . Option . LOG_ASSERTION_ERRORS , DB . Option . LOG_ASSERTIONS , DB . Option . LOG_SETUP , DB . Option . LOG_QUERIES , DB . Option . LOG_SNAPSHOTS , DB . Option . LOG_DATABASE_EXCEPTIONS ) ; }
Enable all logging options .
12,423
public final void disable ( Option ... options ) { for ( Option o : options ) { optionSet . remove ( o ) ; } }
Disable options .
12,424
WrappedStatement compile ( String sql ) throws SQLException { WrappedStatement ws ; if ( ! isEnabled ( Option . REUSE_STATEMENTS ) ) { ws = new WrappedStatement ( connection . prepareStatement ( sql ) , false ) ; } else { if ( pool == null ) { pool = new IdentityHashMap < > ( ) ; } String sqlI = sql . intern ( ) ; ws = pool . get ( sqlI ) ; if ( ws == null ) { ws = new WrappedStatement ( connection . prepareStatement ( sql ) , true ) ; pool . put ( sqlI , ws ) ; } } return ws ; }
Compile a SQL statement .
12,425
void save ( CallInfo callInfo ) { access ( callInfo , ( ) -> { if ( ! savepointSupport ) { throw new UnsupportedOperationException ( "Savepoints are not supported by the database driver." ) ; } logSetup ( callInfo ) ; clearSavePointIfSet ( ) ; if ( connection . getAutoCommit ( ) ) { throw new InvalidOperationException ( "Auto-commit is set for database connection." ) ; } savepoint = connection . setSavepoint ( ) ; return 0 ; } ) ; }
Set JDBDT save - point .
12,426
void commit ( CallInfo callInfo ) { access ( callInfo , ( ) -> { logSetup ( callInfo ) ; clearSavePointIfSet ( ) ; connection . commit ( ) ; return 0 ; } ) ; }
Commit changes in the current transaction .
12,427
void restore ( CallInfo callInfo ) { access ( callInfo , ( ) -> { logSetup ( callInfo ) ; try { if ( ! savepointSupport ) { throw new UnsupportedOperationException ( "Savepoints are not supported by the database driver." ) ; } if ( savepoint == null ) { throw new InvalidOperationException ( "Save point is not set." ) ; } Savepoint s = savepoint ; savepoint = null ; connection . rollback ( s ) ; return 0 ; } finally { clearSavePointIfSet ( ) ; } } ) ; }
Roll back changes to JDBDT save - point .
12,428
void teardown ( CallInfo callInfo , boolean closeConn ) { logSetup ( callInfo ) ; if ( pool != null ) { for ( WrappedStatement ws : pool . values ( ) ) { ignoreSQLException ( ws . getStatement ( ) :: close ) ; } pool . clear ( ) ; pool = null ; } clearSavePointIfSet ( ) ; log . close ( ) ; log = null ; if ( closeConn ) { ignoreSQLException ( connection :: close ) ; } }
Tear down the database handle freeing any internal resources .
12,429
< T > T access ( CallInfo callInfo , Access < T > op ) { try { return op . execute ( ) ; } catch ( SQLException e ) { if ( isEnabled ( DB . Option . LOG_DATABASE_EXCEPTIONS ) ) { log . write ( callInfo , e ) ; } throw new DBExecutionException ( e ) ; } }
Run a operation .
12,430
void logDataSetOperation ( CallInfo callInfo , DataSet data ) { if ( isEnabled ( Option . LOG_SETUP ) ) { log . write ( callInfo , data ) ; } }
Log insertion .
12,431
void logSetup ( CallInfo callInfo , String sql ) { if ( isEnabled ( Option . LOG_SETUP ) ) { log . writeSQL ( callInfo , sql ) ; } }
Log database setup command .
12,432
public OvhTag serviceName_namespaces_namespaceId_images_imageId_tags_tagId_GET ( String serviceName , String namespaceId , String imageId , String tagId ) throws IOException { String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/tags/{tagId}" ; StringBuilder sb = path ( qPath , serviceName , namespaceId , imageId , tagId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhTag . class ) ; }
Inspect image tag
12,433
public void serviceName_namespaces_namespaceId_images_imageId_permissions_permissionId_DELETE ( String serviceName , String namespaceId , String imageId , String permissionId ) throws IOException { String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/permissions/{permissionId}" ; StringBuilder sb = path ( qPath , serviceName , namespaceId , imageId , permissionId ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; }
Delete image permissions .
12,434
public OvhPermissions serviceName_namespaces_namespaceId_images_imageId_permissions_POST ( String serviceName , String namespaceId , String imageId , OvhInputPermissions body ) throws IOException { String qPath = "/caas/registry/{serviceName}/namespaces/{namespaceId}/images/{imageId}/permissions" ; StringBuilder sb = path ( qPath , serviceName , namespaceId , imageId ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , body ) ; return convertTo ( resp , OvhPermissions . class ) ; }
Create image permissions
12,435
public final DataSet row ( Object ... columnValues ) { checkIfNotReadOnly ( ) ; if ( columnValues . length != source . getColumnCount ( ) ) { throw new InvalidOperationException ( source . getColumnCount ( ) + " columns expected, not " + columnValues . length + "." ) ; } addRow ( new Row ( columnValues ) ) ; return this ; }
Add a row to the data set .
12,436
public final DataSet add ( DataSet other ) { checkIfNotReadOnly ( ) ; if ( other . getSource ( ) != source ) { throw new InvalidOperationException ( "Data source mismatch." ) ; } rows . addAll ( other . rows ) ; return this ; }
Add rows of given data set to this data set .
12,437
public static DataSet subset ( DataSet data , int startIndex , int count ) { if ( data == null ) { throw new InvalidOperationException ( "Null data set" ) ; } if ( startIndex < 0 || count < 0 || startIndex + count > data . size ( ) ) { throw new InvalidOperationException ( "Invalid range." ) ; } DataSet sub = new DataSet ( data . getSource ( ) ) ; int endIndex = startIndex + count ; for ( int i = startIndex ; i < endIndex ; i ++ ) { sub . rows . add ( data . rows . get ( i ) ) ; } return sub ; }
Create a subset of the rows of given data set .
12,438
public static DataSet copyOf ( DataSet data ) { if ( data == null ) { throw new InvalidOperationException ( "Null data set" ) ; } DataSet r = new DataSet ( data . getSource ( ) ) ; r . getRows ( ) . addAll ( data . getRows ( ) ) ; return r ; }
Create data set with the same contents of given data set .
12,439
public static DataSet join ( DataSet ... dataSets ) { if ( dataSets == null || dataSets . length == 0 ) { throw new InvalidOperationException ( "No source data sets given for joining." ) ; } DataSet r = copyOf ( dataSets [ 0 ] ) ; for ( int i = 1 ; i < dataSets . length ; i ++ ) { DataSet d = dataSets [ i ] ; if ( d . getSource ( ) != r . getSource ( ) ) { throw new InvalidOperationException ( "Data source mismatch." ) ; } r . getRows ( ) . addAll ( d . getRows ( ) ) ; } return r ; }
Create data set that results from joining several data sets .
12,440
public void registerHandler ( String method , String url , OphApiHandler handler ) { if ( mtdHandler == null ) mtdHandler = new TreeMap < > ( String . CASE_INSENSITIVE_ORDER ) ; TreeMap < String , OphApiHandler > reg ; if ( method == null ) method = "ALL" ; reg = mtdHandler . get ( method ) ; if ( reg == null ) { reg = new TreeMap < > ( String . CASE_INSENSITIVE_ORDER ) ; mtdHandler . put ( method , reg ) ; } reg . put ( url , handler ) ; }
register and handlet linked to a method
12,441
private void invalidateConsumerKey ( String nic , String currentCK ) throws IOException { config . invalidateConsumerKey ( nic , currentCK ) ; }
Discard a consumerKey from cache
12,442
public static ApiOvhCore getInstance ( ) { ApiOvhCore core = new ApiOvhCore ( ) ; core . _consumerKey = core . getConsumerKeyOrNull ( ) ; if ( core . _consumerKey == null ) { File file = ApiOvhConfigBasic . getOvhConfig ( ) ; String location = ApiOvhConfigBasic . configFiles ; if ( file != null ) location = file . getAbsolutePath ( ) ; String url = "" ; String CK = "" ; try { OvhCredential credential = core . requestToken ( null ) ; url = credential . validationUrl ; CK = credential . consumerKey ; } catch ( Exception e ) { log . error ( "Fail to request a new Credential" , e ) ; } log . error ( "activate the CK {} here: {}" , CK , url ) ; throw new NullPointerException ( "no 'consumer_key' present in " + location + " or environement 'OVH_CONSUMER_KEY', activate the CK '" + CK + "' here: " + url ) ; } return core ; }
Connect to the OVH API using a consumerKey contains in your ovh config file or environment variable
12,443
public static ApiOvhCore getInstance ( String consumerKey ) { ApiOvhCore core = new ApiOvhCore ( ) ; core . _consumerKey = consumerKey ; return core ; }
Connect to the OVH API using a consumerKey
12,444
private void syncTime ( ) { try { Long ovhTime = new ApiOvhAuth ( this ) . time_GET ( ) ; long myTime = System . currentTimeMillis ( ) / 1000L ; timeOffset = myTime - ovhTime ; } catch ( Exception e ) { log . error ( "Failed syncronized Ovh Clock" ) ; timeOffset = 0L ; } }
sync local and remote time
12,445
private String getTimestamp ( ) { if ( timeOffset == null ) syncTime ( ) ; long now = System . currentTimeMillis ( ) / 1000L ; now -= timeOffset ; return Long . toString ( now ) ; }
issue an time syncronized timestamp .
12,446
public void setLoginInfo ( String nic , String password , int timeInSec ) { nic = nic . toLowerCase ( ) ; this . nic = nic ; this . password = password ; this . timeInSec = timeInSec ; }
Store password based credential for an automatic certificate generation
12,447
public OvhCredential requestToken ( String redirection ) throws IOException { OvhAccessRule [ ] accessRules = new OvhAccessRule [ this . accessRules . length ] ; for ( int i = 0 ; i < this . accessRules . length ; i ++ ) { String rule = this . accessRules [ i ] ; int p = rule . indexOf ( " " ) ; if ( p == - 1 ) throw new IOException ( "Invalid rule " + rule ) ; String mtd = rule . substring ( 0 , p ) ; String path = rule . substring ( p + 1 ) ; accessRules [ i ] = new OvhAccessRule ( ) ; accessRules [ i ] . method = OvhMethodEnum . valueOf ( mtd . toUpperCase ( ) ) ; accessRules [ i ] . path = path ; } ApiOvhAuth auth = new ApiOvhAuth ( this ) ; return auth . credential_POST ( accessRules , redirection ) ; }
Request for a new Token with full access
12,448
public String exec ( String apiPath , String method , String query , Object payload , boolean needAuth ) throws IOException { if ( payload == null ) payload = "" ; String responseText = null ; boolean cached = false ; if ( cacheManager != null ) { responseText = cacheManager . getCache ( apiPath , method , query , payload ) ; if ( responseText != null ) cached = true ; } if ( responseText == null ) try { responseText = execInternal ( method , query , payload , needAuth ) ; } catch ( OvhException e0 ) { throw e0 ; } catch ( OvhServiceException e0 ) { throw e0 ; } catch ( SocketTimeoutException e1 ) { log . error ( "calling {} {} Failed by timeout. (ConnectTimeout:{} ReadTimeout:{})" , method , query , config . getConnectTimeout ( ) , config . getReadTimeout ( ) ) ; responseText = execInternal ( method , query , payload , needAuth ) ; } catch ( IOException e2 ) { log . error ( "API OVH IOException" , e2 ) ; throw e2 ; } if ( cacheManager != null && ! cached ) cacheManager . setCache ( apiPath , method , query , payload , responseText ) ; if ( mtdHandler != null ) { for ( String mtd : new String [ ] { method , "ALL" } ) { TreeMap < String , OphApiHandler > handlers = null ; OphApiHandler handler = null ; handlers = mtdHandler . get ( mtd ) ; if ( handlers == null ) continue ; handler = handlers . get ( apiPath ) ; if ( handler == null ) continue ; try { handler . accept ( method , method , payload , responseText ) ; } catch ( Exception e ) { log . warn ( "Handler throw exeption on {} {} : {}" , method , method , e ) ; } } } return responseText ; }
Call REST entry point and handle errors
12,449
public void templateModem_name_DELETE ( String name ) throws IOException { String qPath = "/xdsl/templateModem/{name}" ; StringBuilder sb = path ( qPath , name ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; }
Delete this Modem Template
12,450
public ArrayList < OvhCity > eligibility_cities_GET ( String zipCode ) throws IOException { String qPath = "/xdsl/eligibility/cities" ; StringBuilder sb = path ( qPath ) ; query ( sb , "zipCode" , zipCode ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t2 ) ; }
Get the cities from a zipCode
12,451
public OvhAsyncTaskArray < OvhLine > eligibility_lines_active_POST ( OvhCity city , String contactName , OvhStreet street , String streetNumber ) throws IOException { String qPath = "/xdsl/eligibility/lines/active" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "city" , city ) ; addBody ( o , "contactName" , contactName ) ; addBody ( o , "street" , street ) ; addBody ( o , "streetNumber" , streetNumber ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , t5 ) ; }
Get the active lines at given address
12,452
public ArrayList < OvhStreet > eligibility_streets_GET ( String inseeCode , String partialName ) throws IOException { String qPath = "/xdsl/eligibility/streets" ; StringBuilder sb = path ( qPath ) ; query ( sb , "inseeCode" , inseeCode ) ; query ( sb , "partialName" , partialName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t6 ) ; }
Get the streets from a city inseeCode and partial street name
12,453
public OvhAsyncTask < OvhMeetingSlots > eligibility_meetings_GET ( String eligibilityId , String offerLabel ) throws IOException { String qPath = "/xdsl/eligibility/meetings" ; StringBuilder sb = path ( qPath ) ; query ( sb , "eligibilityId" , eligibilityId ) ; query ( sb , "offerLabel" , offerLabel ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t7 ) ; }
Search for meeting time slot
12,454
public OvhDiagnostic serviceName_lines_number_diagnostic_run_POST ( String serviceName , String number , OvhCustomerActionsEnum [ ] actionsDone , OvhAnswers answers , OvhFaultTypeEnum faultType ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/diagnostic/run" ; StringBuilder sb = path ( qPath , serviceName , number ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "actionsDone" , actionsDone ) ; addBody ( o , "answers" , answers ) ; addBody ( o , "faultType" , faultType ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhDiagnostic . class ) ; }
Update and get advanced diagnostic of the line
12,455
public void serviceName_lines_number_diagnostic_cancel_POST ( String serviceName , String number ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/diagnostic/cancel" ; StringBuilder sb = path ( qPath , serviceName , number ) ; exec ( qPath , "POST" , sb . toString ( ) , null ) ; }
Cancel line diagnostic if possible
12,456
public OvhUnitAndValues < OvhTimestampAndValue > serviceName_lines_number_statistics_GET ( String serviceName , String number , OvhStatisticsPeriodEnum period , OvhLineStatisticsTypeEnum type ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/statistics" ; StringBuilder sb = path ( qPath , serviceName , number ) ; query ( sb , "period" , period ) ; query ( sb , "type" , type ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t12 ) ; }
Get various statistics about the line
12,457
public OvhTask serviceName_lines_number_dslamPort_changeProfile_POST ( String serviceName , String number , Long dslamProfileId ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/changeProfile" ; StringBuilder sb = path ( qPath , serviceName , number ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "dslamProfileId" , dslamProfileId ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Change the profile of the port
12,458
public ArrayList < OvhDslamPortLog > serviceName_lines_number_dslamPort_logs_GET ( String serviceName , String number , Long limit ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/logs" ; StringBuilder sb = path ( qPath , serviceName , number ) ; query ( sb , "limit" , limit ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t13 ) ; }
Get the logs emitted by the DSLAM for this port
12,459
public ArrayList < OvhDslamLineProfile > serviceName_lines_number_dslamPort_availableProfiles_GET ( String serviceName , String number ) throws IOException { String qPath = "/xdsl/{serviceName}/lines/{number}/dslamPort/availableProfiles" ; StringBuilder sb = path ( qPath , serviceName , number ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t14 ) ; }
List all availables profiles for this port
12,460
public OvhUnitAndValues < OvhTimestampAndValue > serviceName_statistics_GET ( String serviceName , OvhStatisticsPeriodEnum period , OvhAccessStatisticsTypeEnum type ) throws IOException { String qPath = "/xdsl/{serviceName}/statistics" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "period" , period ) ; query ( sb , "type" , type ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t12 ) ; }
Get various statistics about this access
12,461
public OvhResiliationFollowUpDetail serviceName_resiliate_POST ( String serviceName , Date resiliationDate , OvhResiliationSurvey resiliationSurvey ) throws IOException { String qPath = "/xdsl/{serviceName}/resiliate" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "resiliationDate" , resiliationDate ) ; addBody ( o , "resiliationSurvey" , resiliationSurvey ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhResiliationFollowUpDetail . class ) ; }
Resiliate the access
12,462
public void serviceName_updateInvalidOrMissingRio_POST ( String serviceName , Boolean relaunchWithoutPortability , String rio ) throws IOException { String qPath = "/xdsl/{serviceName}/updateInvalidOrMissingRio" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "relaunchWithoutPortability" , relaunchWithoutPortability ) ; addBody ( o , "rio" , rio ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; }
Update RIO or disable portability for order in error because of missing or invalid RIO
12,463
public void serviceName_modem_duplicatePortMappingConfig_POST ( String serviceName , String accessName ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/duplicatePortMappingConfig" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "accessName" , accessName ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; }
Remove all the current port mapping rules and set the same config as the access given in parameters
12,464
public ArrayList < Long > serviceName_modem_availableWLANChannel_GET ( String serviceName , OvhWLANFrequencyEnum frequency ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/availableWLANChannel" ; StringBuilder sb = path ( qPath , serviceName ) ; query ( sb , "frequency" , frequency ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t15 ) ; }
List available WLAN channel for this modem
12,465
public OvhTask serviceName_modem_reboot_POST ( String serviceName , Date todoDate ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/reboot" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "todoDate" , todoDate ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Reboot the modem
12,466
public OvhTask serviceName_modem_blocIp_POST ( String serviceName , OvhServiceStatusEnum status ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/blocIp" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "status" , status ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Change the status of the Bloc IP on modem
12,467
public OvhAsyncTask < OvhModemInfo > serviceName_modem_retrieveInfo_POST ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/retrieveInfo" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , null ) ; return convertTo ( resp , t16 ) ; }
get general Modem information
12,468
public OvhDHCPStaticAddress serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_POST ( String serviceName , String lanName , String dhcpName , String IPAddress , String MACAddress , String name ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}/DHCPStaticAddresses" ; StringBuilder sb = path ( qPath , serviceName , lanName , dhcpName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "IPAddress" , IPAddress ) ; addBody ( o , "MACAddress" , MACAddress ) ; addBody ( o , "name" , name ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhDHCPStaticAddress . class ) ; }
Add a DHCP static lease
12,469
public OvhTask serviceName_modem_lan_lanName_dhcp_dhcpName_DHCPStaticAddresses_MACAddress_DELETE ( String serviceName , String lanName , String dhcpName , String MACAddress ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/lan/{lanName}/dhcp/{dhcpName}/DHCPStaticAddresses/{MACAddress}" ; StringBuilder sb = path ( qPath , serviceName , lanName , dhcpName , MACAddress ) ; String resp = exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhTask . class ) ; }
Delete this port mapping
12,470
public OvhTask serviceName_modem_reset_POST ( String serviceName , Boolean resetOvhConfig ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/reset" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "resetOvhConfig" , resetOvhConfig ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Reset the modem to its default configuration
12,471
public OvhPortMapping serviceName_modem_portMappings_POST ( String serviceName , String allowedRemoteIp , String description , Long externalPortEnd , Long externalPortStart , String internalClient , Long internalPort , String name , OvhProtocolTypeEnum protocol ) throws IOException { String qPath = "/xdsl/{serviceName}/modem/portMappings" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "allowedRemoteIp" , allowedRemoteIp ) ; addBody ( o , "description" , description ) ; addBody ( o , "externalPortEnd" , externalPortEnd ) ; addBody ( o , "externalPortStart" , externalPortStart ) ; addBody ( o , "internalClient" , internalClient ) ; addBody ( o , "internalPort" , internalPort ) ; addBody ( o , "name" , name ) ; addBody ( o , "protocol" , protocol ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhPortMapping . class ) ; }
Add a port mapping
12,472
public ArrayList < Long > serviceName_monitoringNotifications_GET ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/monitoringNotifications" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t15 ) ; }
List the notifications for this access
12,473
public OvhMonitoringNotification serviceName_monitoringNotifications_POST ( String serviceName , Boolean allowIncident , Long downThreshold , String email , OvhFrequencyEnum frequency , String phone , String smsAccount , OvhTypeEnum type ) throws IOException { String qPath = "/xdsl/{serviceName}/monitoringNotifications" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "allowIncident" , allowIncident ) ; addBody ( o , "downThreshold" , downThreshold ) ; addBody ( o , "email" , email ) ; addBody ( o , "frequency" , frequency ) ; addBody ( o , "phone" , phone ) ; addBody ( o , "smsAccount" , smsAccount ) ; addBody ( o , "type" , type ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhMonitoringNotification . class ) ; }
Add a notification
12,474
public void serviceName_ips_ip_DELETE ( String serviceName , String ip ) throws IOException { String qPath = "/xdsl/{serviceName}/ips/{ip}" ; StringBuilder sb = path ( qPath , serviceName , ip ) ; exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; }
Stop renewing this extra IPv4 option
12,475
public OvhEvidencesInfo serviceName_antiSpams_ip_evidences_GET ( String serviceName , String ip ) throws IOException { String qPath = "/xdsl/{serviceName}/antiSpams/{ip}/evidences" ; StringBuilder sb = path ( qPath , serviceName , ip ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhEvidencesInfo . class ) ; }
List of evidences stored on PCS for this ip
12,476
public ArrayList < OvhRadiusConnectionLog > serviceName_radiusConnectionLogs_GET ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/radiusConnectionLogs" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t17 ) ; }
List the radius connection logs
12,477
public OvhTask serviceName_requestTotalDeconsolidation_POST ( String serviceName , Boolean noPortability , String rio ) throws IOException { String qPath = "/xdsl/{serviceName}/requestTotalDeconsolidation" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "noPortability" , noPortability ) ; addBody ( o , "rio" , rio ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhTask . class ) ; }
Switch this access to total deconsolidation
12,478
public void serviceName_sendOrderToProvider_POST ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/sendOrderToProvider" ; StringBuilder sb = path ( qPath , serviceName ) ; exec ( qPath , "POST" , sb . toString ( ) , null ) ; }
Unlock order in waitingCustomer status . It only concerns orders whose modem is sent before anything have been forwarded to our provider
12,479
public ArrayList < OvhStep > serviceName_orderFollowup_GET ( String serviceName ) throws IOException { String qPath = "/xdsl/{serviceName}/orderFollowup" ; StringBuilder sb = path ( qPath , serviceName ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t18 ) ; }
Get the status of the order
12,480
public net . minidev . ovh . api . xdsl . email . pro . OvhTask email_pro_email_changePassword_POST ( String email , String password ) throws IOException { String qPath = "/xdsl/email/pro/{email}/changePassword" ; StringBuilder sb = path ( qPath , email ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "password" , password ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , net . minidev . ovh . api . xdsl . email . pro . OvhTask . class ) ; }
Change the email password
12,481
public ArrayList < Long > incidents_GET ( Date creationDate , Date endDate ) throws IOException { String qPath = "/xdsl/incidents" ; StringBuilder sb = path ( qPath ) ; query ( sb , "creationDate" , creationDate ) ; query ( sb , "endDate" , endDate ) ; String resp = execN ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , t15 ) ; }
List of incidents
12,482
public void spare_spare_returnMerchandise_POST ( String spare ) throws IOException { String qPath = "/xdsl/spare/{spare}/returnMerchandise" ; StringBuilder sb = path ( qPath , spare ) ; exec ( qPath , "POST" , sb . toString ( ) , null ) ; }
Return the broken equipment in instantRefund
12,483
static String toHexString ( byte [ ] data ) { char [ ] chArray = new char [ data . length * 2 ] ; int pos = 0 ; for ( byte b : data ) { chArray [ pos ++ ] = HEX_CHARS [ ( b >> 4 ) & 0x0f ] ; chArray [ pos ++ ] = HEX_CHARS [ b & 0x0f ] ; } return new String ( chArray ) ; }
Convert byte array to a hexa - string .
12,484
static byte [ ] fromHexString ( String str ) { if ( str . length ( ) % 2 != 0 ) { throw new InvalidOperationException ( "Hex-string has odd length!" ) ; } byte [ ] data = new byte [ str . length ( ) / 2 ] ; int spos = 0 ; for ( int dpos = 0 ; dpos < data . length ; dpos ++ ) { int d1 = Character . digit ( str . charAt ( spos ++ ) , 16 ) ; int d2 = Character . digit ( str . charAt ( spos ++ ) , 16 ) ; if ( d1 < 0 || d2 < 0 ) { throw new InvalidOperationException ( "Mal-formed hex-string!" ) ; } data [ dpos ] = ( byte ) ( ( d1 << 4 ) | d2 ) ; } return data ; }
Convert a hexa - string to a byte array .
12,485
static byte [ ] sha1 ( InputStream in ) { try { MessageDigest md = MessageDigest . getInstance ( SHA1_DIGEST ) ; byte [ ] buffer = new byte [ 4096 ] ; int bytes ; while ( ( bytes = in . read ( buffer ) ) > 0 ) { md . update ( buffer , 0 , bytes ) ; } return md . digest ( ) ; } catch ( NoSuchAlgorithmException | IOException e ) { throw new InternalErrorException ( e ) ; } }
Compute SHA - 1 hash value for a given input stream .
12,486
static < T > String sqlArgumentList ( T ... values ) { StringBuilder sb = new StringBuilder ( ) ; if ( values . length != 0 ) { sb . append ( values [ 0 ] ) ; for ( int i = 1 ; i < values . length ; i ++ ) { sb . append ( ',' ) . append ( ' ' ) . append ( values [ i ] ) ; } } return sb . toString ( ) ; }
Obtain string for SQL argument list from array .
12,487
public OvhPublicOffer offer_reference_GET ( String reference ) throws IOException { String qPath = "/dbaas/logs/offer/{reference}" ; StringBuilder sb = path ( qPath , reference ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhPublicOffer . class ) ; }
Display specified offer
12,488
public OvhEngine input_engine_engineId_GET ( String engineId ) throws IOException { String qPath = "/dbaas/logs/input/engine/{engineId}" ; StringBuilder sb = path ( qPath , engineId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhEngine . class ) ; }
Returns details of specified input engine
12,489
public OvhOperation serviceName_cluster_clusterId_allowedNetwork_POST ( String serviceName , String clusterId , OvhClusterAllowedNetworkFlowTypeEnum flowType , String network ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork" ; StringBuilder sb = path ( qPath , serviceName , clusterId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "flowType" , flowType ) ; addBody ( o , "network" , network ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Allow an IP to contact cluster
12,490
public OvhOperation serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_DELETE ( String serviceName , String clusterId , String allowedNetworkId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}" ; StringBuilder sb = path ( qPath , serviceName , clusterId , allowedNetworkId ) ; String resp = exec ( qPath , "DELETE" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhOperation . class ) ; }
Remove the specified IP from the list of allowed networks
12,491
public OvhClusterAllowedNetwork serviceName_cluster_clusterId_allowedNetwork_allowedNetworkId_GET ( String serviceName , String clusterId , String allowedNetworkId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/cluster/{clusterId}/allowedNetwork/{allowedNetworkId}" ; StringBuilder sb = path ( qPath , serviceName , clusterId , allowedNetworkId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhClusterAllowedNetwork . class ) ; }
Returns details of an allowed network
12,492
public OvhLogstashConfiguration serviceName_input_inputId_configuration_logstash_GET ( String serviceName , String inputId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhLogstashConfiguration . class ) ; }
Returns the logstash configuration
12,493
public OvhOperation serviceName_input_inputId_configuration_logstash_PUT ( String serviceName , String inputId , String filterSection , String inputSection , String patternSection ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/logstash" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "filterSection" , filterSection ) ; addBody ( o , "inputSection" , inputSection ) ; addBody ( o , "patternSection" , patternSection ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update the logstash configuration
12,494
public OvhFlowggerConfiguration serviceName_input_inputId_configuration_flowgger_GET ( String serviceName , String inputId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhFlowggerConfiguration . class ) ; }
Returns the flowgger configuration
12,495
public OvhOperation serviceName_input_inputId_configuration_flowgger_PUT ( String serviceName , String inputId , OvhFlowggerConfigurationLogFormatEnum logFormat , OvhFlowggerConfigurationLogFramingEnum logFraming ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/configuration/flowgger" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "logFormat" , logFormat ) ; addBody ( o , "logFraming" , logFraming ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update the flowgger configuration
12,496
public OvhInput serviceName_input_inputId_GET ( String serviceName , String inputId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhInput . class ) ; }
Returns details of specified input
12,497
public OvhOperation serviceName_input_inputId_PUT ( String serviceName , String inputId , String description , String engineId , String exposedPort , String optionId , Boolean singleInstanceEnabled , String streamId , String title ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "description" , description ) ; addBody ( o , "engineId" , engineId ) ; addBody ( o , "exposedPort" , exposedPort ) ; addBody ( o , "optionId" , optionId ) ; addBody ( o , "singleInstanceEnabled" , singleInstanceEnabled ) ; addBody ( o , "streamId" , streamId ) ; addBody ( o , "title" , title ) ; String resp = exec ( qPath , "PUT" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Update information of specified input object
12,498
public OvhOperation serviceName_input_inputId_allowedNetwork_POST ( String serviceName , String inputId , String network ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork" ; StringBuilder sb = path ( qPath , serviceName , inputId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "network" , network ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Allow an ip to join input
12,499
public OvhAllowedNetwork serviceName_input_inputId_allowedNetwork_allowedNetworkId_GET ( String serviceName , String inputId , String allowedNetworkId ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/input/{inputId}/allowedNetwork/{allowedNetworkId}" ; StringBuilder sb = path ( qPath , serviceName , inputId , allowedNetworkId ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhAllowedNetwork . class ) ; }
List all network UUID allowed to join input