Consular Services

THE CONSULAR DESK AT ICBF OFFERS THE FOLLOWING SERVICES

  • Passport submission tokens will be available during official submission hours. (Please note that if the daily token limit is reached, token issuance will be closed for the day). from 12.00 pm to 7.30 pm, Saturday to Thursday, Except Friday Instant photo services available up to 6.00 pm
  • Application for New Born Passport
  • Passport Renewal For Child and Adults.
mikrotik api examples

SPECIAL NOTES:

  • The documents which need attestation by Government Agencies – in India, or in the presence of Embassy Officials are currently not undertaken by ICBF. Please attach a passport copy for all attestation and other services.
  • Original Education Certificates Attestation, Power of Attorney Attestations and Indian Visa services directly at Indian Embassy only.

Mikrotik Api Examples |work| Site

We will use for most examples, as it is the most common automation language in networking.

/ip service enable api /ip service enable api-ssl

user wants a long article about MikroTik API examples. I need to provide comprehensive, practical code examples for various use cases. The search plan is already defined. I'll execute the searches as outlined. search results have provided a variety of resources. I need to open the most relevant ones to gather detailed examples. I'll open the official REST API documentation, the general API page, the authentication page, some GitHub library examples, and forum discussions. user wants a long article. I need to provide comprehensive examples covering multiple programming languages and common use cases. The search results have provided a good starting point. I'll also need to cover the REST API, the legacy API, and various libraries. I'll structure the article with an introduction, sections on REST API, legacy API, language-specific examples, best practices, and a conclusion. I'll cite the sources appropriately. Now I will write the article. The Ultimate Guide to MikroTik API Examples

Starting with RouterOS v7, MikroTik introduced a native REST API. This allows developers to use standard HTTP methods ( GET , POST , PATCH , DELETE ) with JSON payloads instead of custom API socket libraries. Enabling the REST API The REST API runs over the standard www-ssl service. mikrotik api examples

The -k flag allows the connection to proceed even if you haven't installed a trusted SSL certificate on the router. 5. Practical Use Cases

This scenario mimics a billing system that automatically enables a client's internet access once payment is confirmed.

Queries use the format ? = . You can combine filters using built-in logical operators like -and , -or , and -not . Filtering Example (Python) We will use for most examples, as it

: Firewall blocking the API port (8728/8729). Solution : Ensure the API port is allowed in firewall filter rules and any intermediate firewalls.

# Mikrotik device details device_ip = '192.168.1.1' username = 'admin' password = 'password'

This article provides a comprehensive guide to , covering both the traditional RouterOS API and the modern REST API introduced in v7. Whether you are automating user management, monitoring traffic, or updating configurations, these examples will help you get started with Python, PHP, and Bash. The search plan is already defined

const Mikronode = require('mikronode'); const device = new Mikronode('192.168.88.1'); device.connect() .then(([login]) => return login('admin', 'YourSecurePassword'); ) .then((conn) => // Open a channel for streaming data const chan = conn.openChannel('traffic_monitor'); // Execute the monitor traffic command chan.write('/interface/monitor-traffic', 'interface': 'ether1', 'once': '' // Remove this parameter to stream continuously ); chan.on('done', (packet) => const data = packet.data[0]; console.clear(); console.log(`=== Real-time Traffic Monitor: ether1 ===`); console.log(`Rx Bits Per Second: $(parseInt(data['rx-bits-per-second']) / 1000000).toFixed(2) Mbps`); console.log(`Tx Bits Per Second: $(parseInt(data['tx-bits-per-second']) / 1000000).toFixed(2) Mbps`); ); chan.on('trap', (error) => console.error('API Error: ', error); ); ) .catch((err) => console.error('Connection Error: ', err); ); Use code with caution. 6. API Error Handling and Best Practices

torchChannel.on('done', (data) => console.log('Torch data:', data); );

NB:

  • Currently ICBF is accepting passports expiring with in 6 months only. More than 6 months expiring Passports have to submit directly to Embassy.
  • ICBF Service charge is QRS. 10/- for each service
  • The timings for collection of passports are between 3pm to 7.30pm from Saturday to Thursday. For collection, prior appointment is not necessary. Please bring the original receipt given at the time of submission of application. (During Rmadan it might change)

TIMING FOR SUBMISSION OF DOCUMENTS:

  • Passport submission timings 12.00 to 7.30 Saturday to Thursday , Except Friday
  • For any enquiries, please contact @ 7786 7794 - Timings - Saturday to Thursday 12pm to 8pm.
  • Friday: Holiday

RAMADAN TIMING:

  • Consular service: Saturday to Thursaday - Morning 10.00 am to 1.00 pm - Evening 7.00 pm to 10.00 pm. Collection of Passports - Morning 10.00 am to 1.00 pm Evening 7.30 pm to 9.30 pm (During Ramadan Only)
  • Friday: Holiday
CLICK HERE TO DOWNLOAD FORMS