NAS autorizados
https://host/webservice/v1/radauth_nas
🟢Listar
{
"qtype" : "radauth_nas.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" : "radauth_nas.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/radauth_nas' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"qtype" : "radauth_nas.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20",
"sortname" : "radauth_nas.id",
"sortorder" : "desc"
}'🟠Inserir
Nenhum campo é obrigatório!{
"shortname": "",//Descrição
"nasname": "",//IP
"secret": "",//Senha radius
"ports": "",//Porta de autenticação
"type": "",//Type (oculto)
"server": "",//Server (oculto)
"community": "",//Community (oculto)
"description": ""//Description (oculto)
}curl --location 'https://host/webservice/v1/auth_usuarios' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"shortname": "",
"nasname": "",
"secret": "",
"ports": "",
"type": "",
"server": "",
"community": "",
"description": ""
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/radauth_nas/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"shortname": "",
"nasname": "",
"secret": "",
"ports": "",
"type": "",
"server": "",
"community": "",
"description": ""
}curl --location --request PUT 'https://host/webservice/v1/radauth_nas/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data '{
"shortname": "",
"nasname": "",
"secret": "",
"ports": "",
"type": "",
"server": "",
"community": "",
"description": ""
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/radauth_nas/5
curl --location --request DELETE 'https://host/webservice/v1/radauth_nas/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--data ''Last updated