Module: RegApi2::Service
Overview
REG.API service category
Instance Method Summary (collapse)
-
- (Hash(descr, service_id, ...)) create(opts = {})
Use the function to order new services.
-
- (void) delete(opts = {})
Removes the service.
-
- (Hash) get_bills(opts = {})
Use this function to get a list of invoices associated with the defined services.
-
- (Array<Hash>) get_dedicated_server_list(opts = {})
Get the dedicated server list.
-
- (Object) get_depreciated_period(opts = {})
Use this function to calculate the number of periods till the service expiration date.
-
- (Object) get_details(opts = {})
Use this function to get detailed information about the service, including contact data for domains.
-
- (Object) get_folders(opts = {})
Use this function to get the list of folders the service is associated with.
-
- (Object) get_info(opts = {})
Use this function to obtain information about all services.
-
- (Array<Hash>) get_list(opts = {})
Use this function to obtain a list of active services.
-
- (Hash(currency, price_group, show_renew_data, prices)) get_prices(opts = {})
Get services registration/renewal prices.
-
- (Array(Hash(commonname, ...))) get_servtype_details(opts = {})
Use this function to get prices for services and general data.
-
- (Array<Hash>) nop(opts = {})
Return list of specified services with its stats if specified.
-
- (Object) partcontrol_grant(opts = {})
You can use this function to grant a part of service management rights to other users.
-
- (Object) partcontrol_revoke(opts = {})
Use this function to stop granting service management rights to other.
-
- (Hash(service_id, bill_id etc.)) refill(opts = {})
You can use this function to refill balance of you service.
-
- (Object) renew(opts = {})
Domain or service renewal.
-
- (Hash(service_id, dname)) resend_mail(opts = {})
Resend mail to user.
-
- (void) resume(opts = {})
Use this function to resume services (for domains – resume domain delegation).
-
- (Object) service_get_details(opts = {})
deprecated
Deprecated.
Use #get_info instead.
-
- (void) set_autorenew_flag(opts = {})
Enables or disables automatic service renewal.
-
- (void) suspend(opts = {})
Use this function to suspend services (for domains – suspend delegation).
-
- (Object) update(opts = {})
Service configuration.
-
- (Object) upgrade(opts = {})
This function upgrades service subtypes (rate plans).
Methods included from Builder
Instance Method Details
- (Hash(descr, service_id, ...)) create(opts = {})
Accessibility: everyone
Support of service lists: no
Use the function to order new services. TODO: specific options.
95 |
# File 'lib/reg_api2/service.rb', line 95 define :create, required: %w[ servtype ] |
- (void) delete(opts = {})
Accessibility: clients
Support of service lists: no
This method returns an undefined value.
Removes the service.
121 |
# File 'lib/reg_api2/service.rb', line 121 define :delete, required: %w[ servtype ] |
- (Hash) get_bills(opts = {})
Accessibility: partners
Support of service lists: yes
Use this function to get a list of invoices associated with the defined services.
223 |
# File 'lib/reg_api2/service.rb', line 223 define :get_bills |
- (Array<Hash>) get_dedicated_server_list(opts = {})
Accessibility: clients
Support of service lists: no
Get the dedicated server list.
197 |
# File 'lib/reg_api2/service.rb', line 197 define :get_dedicated_server_list, field: :server_list |
- (Object) get_depreciated_period(opts = {})
Accessibility: clients
Support of service lists: no
Use this function to calculate the number of periods till the service expiration date.
254 |
# File 'lib/reg_api2/service.rb', line 254 define :get_depreciated_period |
- (Object) get_details(opts = {})
Use this function to get detailed information about the service, including contact data for domains.
165 |
# File 'lib/reg_api2/service.rb', line 165 define :get_details |
- (Object) get_folders(opts = {})
Use this function to get the list of folders the service is associated with.
160 |
# File 'lib/reg_api2/service.rb', line 160 define :get_folders |
- (Object) get_info(opts = {})
Accessibility: clients
Support of service lists: yes
Use this function to obtain information about all services.
128 |
# File 'lib/reg_api2/service.rb', line 128 define :get_info |
- (Array<Hash>) get_list(opts = {})
Accessibility: clients
Use this function to obtain a list of active services.
155 |
# File 'lib/reg_api2/service.rb', line 155 define :get_list, field: :services |
- (Hash(currency, price_group, show_renew_data, prices)) get_prices(opts = {})
Accessibility: everyone
Support of service lists: no
Get services registration/renewal prices.
37 |
# File 'lib/reg_api2/service.rb', line 37 define :get_prices |
- (Array(Hash(commonname, ...))) get_servtype_details(opts = {})
To obtain prices for several service types, you can define them in the servtype field delimiting them with commas or include several servtype fields into the request. In this case the field subtype is ignored.
Accessibility: everyone
Use this function to get prices for services and general data.
50 |
# File 'lib/reg_api2/service.rb', line 50 define :get_servtype_details |
- (Array<Hash>) nop(opts = {})
Accessibility: clients
Support of service lists: yes
Return list of specified services with its stats if specified.
25 |
# File 'lib/reg_api2/service.rb', line 25 define :nop, field: :services |
- (Object) partcontrol_grant(opts = {})
Accessibility: clients
Support of service lists: no
You can use this function to grant a part of service management rights to other users.
268 |
# File 'lib/reg_api2/service.rb', line 268 define :partcontrol_grant |
- (Object) partcontrol_revoke(opts = {})
Accessibility: clients
Support of service lists: no
Use this function to stop granting service management rights to other.
275 |
# File 'lib/reg_api2/service.rb', line 275 define :partcontrol_revoke |
- (Hash(service_id, bill_id etc.)) refill(opts = {})
Accessibility: clients
Support of service lists: no
You can use this function to refill balance of you service. Only Jelastic (srv_jelastic) is supported at the moment.
300 |
# File 'lib/reg_api2/service.rb', line 300 define :refill |
- (Object) renew(opts = {})
Domain or service renewal.
207 |
# File 'lib/reg_api2/service.rb', line 207 define :renew |
- (Hash(service_id, dname)) resend_mail(opts = {})
Accessibility: clients
Support of service lists: no
Resend mail to user.
286 |
# File 'lib/reg_api2/service.rb', line 286 define :resend_mail |
- (void) resume(opts = {})
Accessibility: clients
Support of service lists: no
This method returns an undefined value.
Use this function to resume services (for domains – resume domain delegation).
247 |
# File 'lib/reg_api2/service.rb', line 247 define :resume |
- (Object) service_get_details(opts = {})
Use #get_info instead.
You can use this function to obtain general information about the ordered service, as well as additional data about the hosting and web forwarding services. It is an obsolete function. For the major part of service it is advisable to use the #get_info function instead.
171 |
# File 'lib/reg_api2/service.rb', line 171 define :service_get_details |
- (void) set_autorenew_flag(opts = {})
Accessibility: clients
Support of service lists: no
This method returns an undefined value.
Enables or disables automatic service renewal.
231 |
# File 'lib/reg_api2/service.rb', line 231 define :set_autorenew_flag |
- (void) suspend(opts = {})
Accessibility: clients
Support of service lists: no
This method returns an undefined value.
Use this function to suspend services (for domains – suspend delegation).
239 |
# File 'lib/reg_api2/service.rb', line 239 define :suspend |
- (Object) update(opts = {})
Service configuration.
202 |
# File 'lib/reg_api2/service.rb', line 202 define :update |
- (Object) upgrade(opts = {})
Accessibility: clients
Support of service lists: no
This function upgrades service subtypes (rate plans). It can be used for changes of rate plans for virtual hosting ("srv_hosting_ispmgr"), VPS servers("srv_vps") and Additional Disk Space for VPS ("srv_disk_space").
261 |
# File 'lib/reg_api2/service.rb', line 261 define :upgrade |