⚪Transmissores (OLT)
https://host/webservice/v1/radpop_radio
🟢Listar
{
"qtype" : "radpop_radio.id",//campo de filtro
"query" : "1",//valor para consultar
"oper" : ">=",//operador da consulta
"page" : "1",//página a ser mostrada
"rp" : "20",//quantidade de registros por página
"sortname" : "radpop_radio.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/radpop_radio' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=44437aokk9ou9dgoplc2d38ibp' \
--data '{
"qtype" : "radpop_radio.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "radpop_radio.id",
"sortorder" : "desc"
}'🟠Inserir
{
"fabricante_modelo":"",
"descricao":"",
"id_pop":"",
"login":"",
"senha":"",
"ativo":"S",//S ou N
"usa_vpn":"N"//S ou N
}{
"login_hw": "",
"senha_hw": "3faVqRtY1NlA9boAA37QV1/4Q0b2==",
"usa_smart": "N",
"id_pv_grupo_backup": "0",
"id_olt": "",
"id_servidor_unms": "0",
"id_olt_unms": "",
"id_olt_conscius": "0",
"perfil_fibra_padrao": "0",
"id_olt_externo": "0",
"usa_vpn": "0",
"id_padrao_cores": "0",
"operador_neutro": "0",
"busca_potencia": "N",
"perfil_neutro_bridge": "",
"perfil_neutro_router": "",
"timeout": "",
"ativo": "S",
"descricao": "TL-01",
"cor_mapa": "#000000",
"fwversion": "",
"id_pop": "5",
"conexoes_ultima": "0",
"ip": "192.168.0.1",
"login": "teste@testixc.com.br",
"senha": "bb7RiJPQ0hk3LQy1Q+zfe0geAed4==",
"porta_ssh": "22",
"fabricante_modelo": "M",
"uptime": "",
"time": "0000-00-00 00:00:00",
"speed_lan": "0.000",
"conexoes_ulltima_data": "0000-00-00 00:00:00",
"speed_wlan": "0.000",
"modelo": "",
"cpu_load": "",
"total_memory": "",
"txrate": "0.000",
"free_memory": "",
"rxrate": "0.000",
"temperatura": "",
"voltagem": "",
"autosave": "",
"httpd_port": "0",
"current_firmware": "",
"upgrade_firmware": "",
"porta_telnet": "23",
"porta_api": "0",
"ip_anm": "",
"gabinete": "0",
"subrack": "0",
"porta_telnet_tl1": "3337",
"login_anm": "",
"senha_anm": "f39J+Npt/Ta1sTbH1WXMWr6ow278==",
"id_prov_snmp": "0"
}curl --location 'https://host/webservice/v1/radpop_radio' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=44437aokk9ou9dgoplc2d38ibp' \
--data-raw '{
"login_hw": "",
"senha_hw": "3faVqRtY1NlA9boAA37QV1/4Q0b2==",
"usa_smart": "N",
"id_pv_grupo_backup": "0",
"id_olt": "",
"id_servidor_unms": "0",
"id_olt_unms": "",
"id_olt_conscius": "0",
"perfil_fibra_padrao": "0",
"id_olt_externo": "0",
"usa_vpn": "0",
"id_padrao_cores": "0",
"operador_neutro": "0",
"busca_potencia": "N",
"perfil_neutro_bridge": "",
"perfil_neutro_router": "",
"timeout": "",
"ativo": "S",
"descricao": "TL-01",
"cor_mapa": "#000000",
"fwversion": "",
"id_pop": "5",
"conexoes_ultima": "0",
"ip": "192.168.0.1",
"login": "teste@testixc.com.br",
"senha": "bb7RiJPQ0hk3LQy1Q+zfe0geAed4==",
"porta_ssh": "22",
"fabricante_modelo": "M",
"uptime": "",
"time": "0000-00-00 00:00:00",
"speed_lan": "0.000",
"conexoes_ulltima_data": "0000-00-00 00:00:00",
"speed_wlan": "0.000",
"modelo": "",
"cpu_load": "",
"total_memory": "",
"txrate": "0.000",
"free_memory": "",
"rxrate": "0.000",
"temperatura": "",
"voltagem": "",
"autosave": "",
"httpd_port": "0",
"current_firmware": "",
"upgrade_firmware": "",
"porta_telnet": "23",
"porta_api": "0",
"ip_anm": "",
"gabinete": "0",
"subrack": "0",
"porta_telnet_tl1": "3337",
"login_anm": "",
"senha_anm": "f39J+Npt/Ta1sTbH1WXMWr6ow278==",
"id_prov_snmp": "0"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/radpop_radio/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"login_hw": "",
"senha_hw": "3faVqRtY1NlA9boAA37QV1/4Q0b2==",
"usa_smart": "N",
"id_pv_grupo_backup": "0",
"id_olt": "",
"id_servidor_unms": "0",
"id_olt_unms": "",
"id_olt_conscius": "0",
"perfil_fibra_padrao": "0",
"id_olt_externo": "0",
"usa_vpn": "0",
"id_padrao_cores": "0",
"operador_neutro": "0",
"busca_potencia": "N",
"perfil_neutro_bridge": "",
"perfil_neutro_router": "",
"timeout": "",
"ativo": "S",
"descricao": "TL-01",
"cor_mapa": "#000000",
"fwversion": "",
"id_pop": "5",
"conexoes_ultima": "0",
"ip": "192.168.0.1",
"login": "teste@testixc.com.br",
"senha": "bb7RiJPQ0hk3LQy1Q+zfe0geAed4==",
"porta_ssh": "22",
"fabricante_modelo": "M",
"uptime": "",
"time": "0000-00-00 00:00:00",
"speed_lan": "0.000",
"conexoes_ulltima_data": "0000-00-00 00:00:00",
"speed_wlan": "0.000",
"modelo": "",
"cpu_load": "",
"total_memory": "",
"txrate": "0.000",
"free_memory": "",
"rxrate": "0.000",
"temperatura": "",
"voltagem": "",
"autosave": "",
"httpd_port": "0",
"current_firmware": "",
"upgrade_firmware": "",
"porta_telnet": "23",
"porta_api": "0",
"ip_anm": "",
"gabinete": "0",
"subrack": "0",
"porta_telnet_tl1": "3337",
"login_anm": "",
"senha_anm": "f39J+Npt/Ta1sTbH1WXMWr6ow278==",
"id_prov_snmp": "0"
}curl --location --request PUT 'https://host/webservice/v1/radpop_radio/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=44437aokk9ou9dgoplc2d38ibp' \
--data-raw '{
"login_hw": "",
"senha_hw": "3faVqRtY1NlA9boAA37QV1/4Q0b2==",
"usa_smart": "N",
"id_pv_grupo_backup": "0",
"id_olt": "",
"id_servidor_unms": "0",
"id_olt_unms": "",
"id_olt_conscius": "0",
"perfil_fibra_padrao": "0",
"id_olt_externo": "0",
"usa_vpn": "0",
"id_padrao_cores": "0",
"operador_neutro": "0",
"busca_potencia": "N",
"perfil_neutro_bridge": "",
"perfil_neutro_router": "",
"timeout": "",
"ativo": "S",
"descricao": "TL-01",
"cor_mapa": "#000000",
"fwversion": "",
"id_pop": "5",
"conexoes_ultima": "0",
"ip": "192.168.0.1",
"login": "teste@testixc.com.br",
"senha": "bb7RiJPQ0hk3LQy1Q+zfe0geAed4==",
"porta_ssh": "22",
"fabricante_modelo": "M",
"uptime": "",
"time": "0000-00-00 00:00:00",
"speed_lan": "0.000",
"conexoes_ulltima_data": "0000-00-00 00:00:00",
"speed_wlan": "0.000",
"modelo": "",
"cpu_load": "",
"total_memory": "",
"txrate": "0.000",
"free_memory": "",
"rxrate": "0.000",
"temperatura": "",
"voltagem": "",
"autosave": "",
"httpd_port": "0",
"current_firmware": "",
"upgrade_firmware": "",
"porta_telnet": "23",
"porta_api": "0",
"ip_anm": "",
"gabinete": "0",
"subrack": "0",
"porta_telnet_tl1": "3337",
"login_anm": "",
"senha_anm": "f39J+Npt/Ta1sTbH1WXMWr6ow278==",
"id_prov_snmp": "0"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/radpop_radio/5
curl --location --request DELETE 'https://host/webservice/v1/radpop_radio/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=44437aokk9ou9dgoplc2d38ibp' \Last updated