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 )...
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/{se...
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 ...
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 = ne...
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" , act...
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 ( ) , nu...
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 )...
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 ( ...
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 ...
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 ...
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...
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 , OvhCapa...
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 > ( ) ; ad...
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 ) ; ...
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 )...
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 = e...
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 = ex...
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 ) ; HashMa...
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 ...
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....
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 =...
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 ...
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." ) ;...
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 )...
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 , service...
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}" ; Strin...
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 = p...
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 thi...
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 DataS...
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 . ...
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 =...
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 . getA...
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 n...
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 , payl...
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 > ( )...
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" ...
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 = e...
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 , ...
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 , servic...
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 = ...
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 ) ; Strin...
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 ( ...
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 )...
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 < Stri...
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 , 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 > ( ) ; ad...
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 = exe...
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 ) ; Str...
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" , stat...
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 , t1...
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...
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...
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" , res...
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}...
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...
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...
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 ( ...
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 ...
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 ...
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 ) ; ...
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 ...
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 | IOExcep...
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 , serviceN...
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 , serviceNa...
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 , ...
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 , "...
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 ,...
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 , "...
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" ; ...
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 , ...
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}" ; Strin...
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 Hash...
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 , inp...
List all network UUID allowed to join input