Documentation ¶
Index ¶
- func RespondError(w http.ResponseWriter, r *http.Request, code int, message string)
- func RespondJSON(w http.ResponseWriter, r *http.Request, code int, payload interface{})
- func VersionSwagger()
- type CountResponse
- type Handler
- func (h *Handler) CountArchivedInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountArchivedSubinterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountConCapacities(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountConClasses(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountConProviders(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountConTypes(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountConnections(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountCountries(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountCredentials(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountCustomEntities(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountDeviceClasses(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountDeviceCredentials(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountDeviceDomains(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountDeviceLicenses(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountDeviceTypes(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountDevices(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountEntities(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountIntBwStats(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountIpInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountOspfNbrs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountRlNbrs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountSites(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountSnmpCredentials(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountSubinterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountUserAuthzs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountUserGraphs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountUsers(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountVars(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountVlans(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CountXconnects(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateArchivedInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateArchivedSubinterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateConCapacity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateConClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateConProvider(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateConType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateConnection(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateCountry(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateCustomEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateDeviceClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateDeviceCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateDeviceDomain(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateDeviceLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateDeviceType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateIntBwStat(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateIpInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateOspfNbr(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateRlNbr(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateSite(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateSnmpCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateSubinterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateUser(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateUserAuthz(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateUserGraph(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateVar(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateVlan(w http.ResponseWriter, r *http.Request)
- func (h *Handler) CreateXconnect(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteArchivedInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteArchivedSubinterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteConCapacity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteConClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteConProvider(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteConType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteConnection(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteCountry(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteCustomEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteDeviceClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteDeviceCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteDeviceDomain(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteDeviceLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteDeviceType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteIntBwStat(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteIpInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteOspfNbr(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteRlNbr(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteSite(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteSnmpCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteSubinterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteUserAuthz(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteUserGraph(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteVar(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteVlan(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteXconnect(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetArchivedInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetArchivedInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetArchivedSubinterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetArchivedSubinterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConCapacities(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConCapacity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConCapacityConnections(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConClassConnections(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConClasses(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConProvider(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConProviderConnections(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConProviders(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConTypeConnections(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConTypes(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConnection(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConnectionConCapacitiy(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConnectionConClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConnectionConProvider(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConnectionConType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConnectionInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConnectionSite(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetConnections(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCountries(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCountry(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCountrySites(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCredentials(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCustomEntities(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCustomEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceChilds(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceClassTypes(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceClasses(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceCredentials(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDeviceCredentials(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDeviceDomain(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDeviceExtensions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDeviceLicenses(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDeviceState(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDeviceType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDomain(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDomainDevices(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceDomains(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceEntities(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceIpInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceLicenseDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceLicenses(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceOspfNbrs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceParent(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDevicePeerXconnects(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceRlNbrs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceSite(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceSnmpCredentialsMain(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceSnmpCredentialsRo(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceTypeClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceTypeDevices(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceTypes(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceVlans(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDeviceXconnects(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDevices(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEntities(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEntityChilds(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEntityDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEntityEntityPhyIndexes(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEntityInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEntityParent(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetEntityRlfNbrs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetIntBwStat(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetIntBwStatInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetIntBwStats(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceChilds(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceConnection(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceIntBwStats(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceInterfaceRelationsHigherFor(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceInterfaceRelationsLowerFor(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceOtnIf(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceParent(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceSubinterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceVlans(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaceXconnects(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetIpInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetIpInterfaceDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetIpInterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetOspfNbr(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetOspfNbrDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetOspfNbrs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRlNbr(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRlNbrDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRlNbrEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetRlNbrs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSite(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSiteConCountry(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSiteConnections(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSiteDevices(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSites(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSnmpCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSnmpCredentials(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSnmpCredentialsMainDevices(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSnmpCredentialsRoDevices(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSubinterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSubinterfaceInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetSubinterfaces(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUser(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserAuthz(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserAuthzDeviceDomain(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserAuthzs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserGraph(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserGraphs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserUserAuthzs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUserUserGraphs(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetUsers(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetVar(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetVars(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetVlan(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetVlanDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetVlans(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetXconnect(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetXconnectDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetXconnectInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetXconnectPeerDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetXconnects(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Hello(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Initialize(dbURL, s string) error
- func (h *Handler) UpdateArchivedInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateArchivedSubinterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateConCapacity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateConClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateConProvider(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateConType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateConnection(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateCountry(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateCustomEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateDevice(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateDeviceClass(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateDeviceCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateDeviceDomain(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateDeviceLicense(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateDeviceType(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateEntity(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateIntBwStat(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateIpInterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateOspfNbr(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateRlNbr(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateSite(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateSnmpCredential(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateSubinterface(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateUser(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateUserAuthz(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateUserGraph(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateVar(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateVlan(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateXconnect(w http.ResponseWriter, r *http.Request)
- type StatusResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondError ¶
Error response
func RespondJSON ¶
func RespondJSON(w http.ResponseWriter, r *http.Request, code int, payload interface{})
Regular response
func VersionSwagger ¶
func VersionSwagger()
Version - dummy function to generate swagger doc Endpoint is actually implemented in github.com/aretaja/godevmanapi/app.initializeRoutes() @Summary Version @Description Return API version info @Tags information @ID version @Success 200 {object} StatusResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Router /version [GET]
Types ¶
type CountResponse ¶
type CountResponse struct {
Count int64 `json:"count"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CountArchivedInterfaces ¶
func (h *Handler) CountArchivedInterfaces(w http.ResponseWriter, r *http.Request)
Count ArchivedInterfaces @Summary Count archived_interfaces @Description Count number of archived interfaces @Tags archived @ID count-archived_interfaces @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/interfaces/count [GET]
func (*Handler) CountArchivedSubinterfaces ¶
func (h *Handler) CountArchivedSubinterfaces(w http.ResponseWriter, r *http.Request)
Count ArchivedSubinterfaces @Summary Count archived_subinterfaces @Description Count number of archived subinterfaces @Tags archived @ID count-archived_subinterfaces @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/subinterfaces/count [GET]
func (*Handler) CountConCapacities ¶
func (h *Handler) CountConCapacities(w http.ResponseWriter, r *http.Request)
Count ConCapacities @Summary Count con_capacities @Description Count number of connection capacities @Tags connections @ID count-con_capacities @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/capacities/count [GET]
func (*Handler) CountConClasses ¶
func (h *Handler) CountConClasses(w http.ResponseWriter, r *http.Request)
Count ConClasses @Summary Count con_classes @Description Count number of connection classes @Tags connections @ID count-con_classes @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/classes/count [GET]
func (*Handler) CountConProviders ¶
func (h *Handler) CountConProviders(w http.ResponseWriter, r *http.Request)
Count ConProviders @Summary Count con_providers @Description Count number of connection providers @Tags connections @ID count-con_providers @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/providers/count [GET]
func (*Handler) CountConTypes ¶
func (h *Handler) CountConTypes(w http.ResponseWriter, r *http.Request)
Count ConTypes @Summary Count con_types @Description Count number of connection types @Tags connections @ID count-con_types @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/types/count [GET]
func (*Handler) CountConnections ¶
func (h *Handler) CountConnections(w http.ResponseWriter, r *http.Request)
Count Connections @Summary Count connections @Description Count number of connections @Tags connections @ID count-connections @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/count [GET]
func (*Handler) CountCountries ¶
func (h *Handler) CountCountries(w http.ResponseWriter, r *http.Request)
Count Countries @Summary Count countries @Description Count number of countries @Tags sites @ID count-countries @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/countries/count [GET]
func (*Handler) CountCredentials ¶
func (h *Handler) CountCredentials(w http.ResponseWriter, r *http.Request)
Count Credentials @Summary Count credentials @Description Count number of credentials @Tags config @ID count-credentials @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/credentials/count [GET]
func (*Handler) CountCustomEntities ¶
func (h *Handler) CountCustomEntities(w http.ResponseWriter, r *http.Request)
Count CustomEntities @Summary Count custom_entities @Description Count number of custom_entities @Tags entities @ID count-custom_entities @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/custom_entities/count [GET]
func (*Handler) CountDeviceClasses ¶
func (h *Handler) CountDeviceClasses(w http.ResponseWriter, r *http.Request)
Count DeviceClasses @Summary Count device_classes @Description Count number of device classes @Tags devices @ID count-device_classes @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/classes/count [GET]
func (*Handler) CountDeviceCredentials ¶
func (h *Handler) CountDeviceCredentials(w http.ResponseWriter, r *http.Request)
Count DeviceCredentials @Summary Count credentials @Description Count number of credentials @Tags devices @ID count-device_credentials @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/credentials/count [GET]
func (*Handler) CountDeviceDomains ¶
func (h *Handler) CountDeviceDomains(w http.ResponseWriter, r *http.Request)
Count DeviceDomains @Summary Count device_domains @Description Count number of device domains @Tags devices @ID count-device_domains @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/domains/count [GET]
func (*Handler) CountDeviceLicenses ¶
func (h *Handler) CountDeviceLicenses(w http.ResponseWriter, r *http.Request)
Count DeviceLicenses @Summary Count device_licenses @Description Count number of device_licenses @Tags devices @ID count-device_licenses @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/licenses/count [GET]
func (*Handler) CountDeviceTypes ¶
func (h *Handler) CountDeviceTypes(w http.ResponseWriter, r *http.Request)
Count DeviceTypes @Summary Count device_types @Description Count number of device types @Tags devices @ID count-device_types @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/types/count [GET]
func (*Handler) CountDevices ¶
func (h *Handler) CountDevices(w http.ResponseWriter, r *http.Request)
Count Devices @Summary Count devices @Description Count number of devices @Tags devices @ID count-devices @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/count [GET]
func (*Handler) CountEntities ¶
func (h *Handler) CountEntities(w http.ResponseWriter, r *http.Request)
Count Entities @Summary Count entities @Description Count number of entities @Tags entities @ID count-entities @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/count [GET]
func (*Handler) CountIntBwStats ¶
func (h *Handler) CountIntBwStats(w http.ResponseWriter, r *http.Request)
Count Int Bw Stats @Summary Count int bw stats @Description Count number of int bw stats @Tags interfaces @ID count-bw_stats @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/bw_stats/count [GET]
func (*Handler) CountInterfaces ¶
func (h *Handler) CountInterfaces(w http.ResponseWriter, r *http.Request)
Count Interfaces @Summary Count interfaces @Description Count number of interfaces @Tags interfaces @ID count-interfaces @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/count [GET]
func (*Handler) CountIpInterfaces ¶
func (h *Handler) CountIpInterfaces(w http.ResponseWriter, r *http.Request)
Count IpInterfaces @Summary Count ip_interfaces @Description Count number of ip_interfaces @Tags ip_interfaces @ID count-ip_interfaces @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /ip_interfaces/count [GET]
func (*Handler) CountOspfNbrs ¶
func (h *Handler) CountOspfNbrs(w http.ResponseWriter, r *http.Request)
Count OspfNbrs @Summary Count ospf_nbrs @Description Count number of ospf_nbrs @Tags devices @ID count-ospf_nbrs @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/ospf_nbrs/count [GET]
func (*Handler) CountRlNbrs ¶
func (h *Handler) CountRlNbrs(w http.ResponseWriter, r *http.Request)
Count RlNbrs @Summary Count rl_nbrs @Description Count number of radio link neighbors @Tags devices @ID count-rl_nbrs @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/rl_nbrs/count [GET]
func (*Handler) CountSites ¶
func (h *Handler) CountSites(w http.ResponseWriter, r *http.Request)
Count Sites @Summary Count sites @Description Count number of sites @Tags sites @ID count-sites @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/count [GET]
func (*Handler) CountSnmpCredentials ¶
func (h *Handler) CountSnmpCredentials(w http.ResponseWriter, r *http.Request)
Count SnmpCredentials @Summary Count snmp_credentials @Description Count number of snmp credentials @Tags config @ID count-snmp_credentials @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/snmp_credentials/count [GET]
func (*Handler) CountSubinterfaces ¶
func (h *Handler) CountSubinterfaces(w http.ResponseWriter, r *http.Request)
Count Subinterfaces @Summary Count subinterfaces @Description Count number of subinterfaces @Tags interfaces @ID count-subinterfaces @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/subinterfaces/count [GET]
func (*Handler) CountUserAuthzs ¶
func (h *Handler) CountUserAuthzs(w http.ResponseWriter, r *http.Request)
Count UserAuthzs @Summary Count user_authzs @Description Count number of user_authzs @Tags users @ID count-user_authzs @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/authzs/count [GET]
func (*Handler) CountUserGraphs ¶
func (h *Handler) CountUserGraphs(w http.ResponseWriter, r *http.Request)
Count UserGraphs @Summary Count user_graphs @Description Count number of user graphs @Tags users @ID count-user_graphs @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/graphs/count [GET]
func (*Handler) CountUsers ¶
func (h *Handler) CountUsers(w http.ResponseWriter, r *http.Request)
Count Users @Summary Count users @Description Count number of users @Tags users @ID count-users @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/count [GET]
func (*Handler) CountVars ¶
func (h *Handler) CountVars(w http.ResponseWriter, r *http.Request)
Count Vars @Summary Count vars @Description Count number of vars @Tags config @ID count-vars @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/vars/count [GET]
func (*Handler) CountVlans ¶
func (h *Handler) CountVlans(w http.ResponseWriter, r *http.Request)
Count Vlans @Summary Count vlans @Description Count number of vlans @Tags devices @ID count-vlans @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/vlans/count [GET]
func (*Handler) CountXconnects ¶
func (h *Handler) CountXconnects(w http.ResponseWriter, r *http.Request)
Count Xconnects @Summary Count xconnects @Description Count number of xconnects @Tags devices @ID count-xconnects @Success 200 {object} CountResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects/count [GET]
func (*Handler) CreateArchivedInterface ¶
func (h *Handler) CreateArchivedInterface(w http.ResponseWriter, r *http.Request)
Create ArchivedInterface @Summary Create archived_interface @Description Create archived interface @Tags archived @ID create-archived_interface @Param Body body archivedInterface true "JSON object of archivedInterface.<br />Ignored fields:<ul><li>ifa_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} archivedInterface @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/interfaces [POST]
func (*Handler) CreateArchivedSubinterface ¶
func (h *Handler) CreateArchivedSubinterface(w http.ResponseWriter, r *http.Request)
Create ArchivedSubinterface @Summary Create archived_subinterface @Description Create archived subinterface @Tags archived @ID create-archived_subinterface @Param Body body archivedSubinterface true "JSON object of archivedSubinterface.<br />Ignored fields:<ul><li>sifa_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} archivedSubinterface @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/subinterfaces [POST]
func (*Handler) CreateConCapacity ¶
func (h *Handler) CreateConCapacity(w http.ResponseWriter, r *http.Request)
Create ConCapacity @Summary Create capacity @Description Create connection capacity @Tags connections @ID create-capacity @Param Body body godevmandb.CreateConCapacityParams true "JSON object of godevmandb.CreateConCapacityParams" @Success 201 {object} godevmandb.ConCapacity @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/capacities [POST]
func (*Handler) CreateConClass ¶
func (h *Handler) CreateConClass(w http.ResponseWriter, r *http.Request)
Create ConClass @Summary Create con_class @Description Create connection class @Tags connections @ID create-con_class @Param Body body godevmandb.CreateConClassParams true "JSON object of godevmandb.CreateConClassParams" @Success 201 {object} godevmandb.ConClass @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/classes [POST]
func (*Handler) CreateConProvider ¶
func (h *Handler) CreateConProvider(w http.ResponseWriter, r *http.Request)
Create ConProvider @Summary Create con_provider @Description Create connection provider @Tags connections @ID create-con_provider @Param Body body godevmandb.CreateConProviderParams true "JSON object of godevmandb.CreateConProviderParams" @Success 201 {object} godevmandb.ConProvider @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/providers [POST]
func (*Handler) CreateConType ¶
func (h *Handler) CreateConType(w http.ResponseWriter, r *http.Request)
Create ConType @Summary Create con_type @Description Create connection type @Tags connections @ID create-con_type @Param Body body godevmandb.CreateConTypeParams true "JSON object of godevmandb.CreateConTypeParams" @Success 201 {object} godevmandb.ConType @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/types [POST]
func (*Handler) CreateConnection ¶
func (h *Handler) CreateConnection(w http.ResponseWriter, r *http.Request)
Create Connection @Summary Create connection @Description Create connection @Tags connections @ID create-connection @Param Body body godevmandb.CreateConnectionParams true "JSON object of godevmandb.CreateConnectionParams" @Success 201 {object} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections [POST]
func (*Handler) CreateCountry ¶
func (h *Handler) CreateCountry(w http.ResponseWriter, r *http.Request)
Create Country @Summary Create country @Description Create country @Tags sites @ID create-country @Param Body body godevmandb.CreateCountryParams true "JSON object of godevmandb.CreateCountryParams" @Success 201 {object} godevmandb.Country @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/countries [POST]
func (*Handler) CreateCredential ¶
func (h *Handler) CreateCredential(w http.ResponseWriter, r *http.Request)
Create Credential @Summary Create credential @Description Create credential @Tags config @ID create-credential @Param Body body godevmandb.CreateCredentialParams true "JSON object of godevmandb.CreateCredentialParams" @Success 201 {object} godevmandb.Credential @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/credentials [POST]
func (*Handler) CreateCustomEntity ¶
func (h *Handler) CreateCustomEntity(w http.ResponseWriter, r *http.Request)
Create CustomEntity @Summary Create customEntity @Description Create customEntity @Tags entities @ID create-customEntity @Param Body body godevmandb.CreateCustomEntityParams true "JSON object of godevmandb.CreateCustomEntityParams" @Success 201 {object} godevmandb.CustomEntity @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/custom_entities [POST]
func (*Handler) CreateDevice ¶
func (h *Handler) CreateDevice(w http.ResponseWriter, r *http.Request)
Create Device @Summary Create device @Description Create device @Tags devices @ID create-device @Param Body body device true "JSON object of device.<br />Ignored fields:<ul><li>dev_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} device @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices [POST]
func (*Handler) CreateDeviceClass ¶
func (h *Handler) CreateDeviceClass(w http.ResponseWriter, r *http.Request)
Create DeviceClass @Summary Create device_class @Description Create device class @Tags devices @ID create-device_class @Param Body body string true "Device class description "string"" @Success 201 {object} godevmandb.DeviceClass @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/classes [POST]
func (*Handler) CreateDeviceCredential ¶
func (h *Handler) CreateDeviceCredential(w http.ResponseWriter, r *http.Request)
Create DeviceCredential @Summary Create device_credential @Description Create device credential @Tags devices @ID create-device_credential @Param Body body godevmandb.CreateDeviceCredentialParams true "JSON object of godevmandb.CreateDeviceCredentialParams" @Success 201 {object} godevmandb.DeviceCredential @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/credentials [POST]
func (*Handler) CreateDeviceDomain ¶
func (h *Handler) CreateDeviceDomain(w http.ResponseWriter, r *http.Request)
Create DeviceDomain @Summary Create device_domain @Description Create device domain @Tags devices @ID create-device_domain @Param Body body string true "Device domain "string"" @Success 201 {object} godevmandb.DeviceDomain @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/domains [POST]
func (*Handler) CreateDeviceLicense ¶
func (h *Handler) CreateDeviceLicense(w http.ResponseWriter, r *http.Request)
Create DeviceLicense @Summary Create device_license @Description Create device_license @Tags devices @ID create-device_license @Param Body body godevmandb.CreateDeviceLicenseParams true "JSON object of godevmandb.DeviceLicenseParams" @Success 201 {object} godevmandb.DeviceLicense @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/licenses [POST]
func (*Handler) CreateDeviceType ¶
func (h *Handler) CreateDeviceType(w http.ResponseWriter, r *http.Request)
Create DeviceType @Summary Create device_type @Description Create device type @Tags devices @ID create-device_type @Param Body body godevmandb.CreateDeviceTypeParams true "JSON object of godevmandb.CreateDeviceTypeParams<br />sys_id must match ^[\w-\.]+$ regex" @Success 201 {object} godevmandb.DeviceType @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/types [POST]
func (*Handler) CreateEntity ¶
func (h *Handler) CreateEntity(w http.ResponseWriter, r *http.Request)
Create Entity @Summary Create Entity @Description Create Entity @Tags entities @ID create-Entity @Param Body body godevmandb.CreateEntityParams true "JSON object of godevmandb.CreateEntityParams" @Success 201 {object} godevmandb.Entity @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities [POST]
func (*Handler) CreateIntBwStat ¶
func (h *Handler) CreateIntBwStat(w http.ResponseWriter, r *http.Request)
Create IntBwStat @Summary Create IntBwStat @Description Create IntBwStat @Tags interfaces @ID create-int_bw_stat @Param Body body godevmandb.CreateIntBwStatParams true "JSON object of godevmandb.CreateIntBwStatParams" @Success 201 {object} godevmandb.IntBwStat @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/bw_stats [POST]
func (*Handler) CreateInterface ¶
func (h *Handler) CreateInterface(w http.ResponseWriter, r *http.Request)
Create Interface @Summary Create interface @Description Create interface @Tags interfaces @ID create-interface @Param Body body iface true "JSON object of iface.<br />Ignored fields:<ul><li>if_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} iface @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces [POST]
func (*Handler) CreateIpInterface ¶
func (h *Handler) CreateIpInterface(w http.ResponseWriter, r *http.Request)
Create IpInterface @Summary Create ip_interface @Description Create ip_interface @Tags ip_interfaces @ID create-ip_interface @Param Body body ipInterface true "JSON object of ipInterface.<br />Ignored fields:<ul><li>ip_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} ipInterface @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /ip_interfaces [POST]
func (*Handler) CreateOspfNbr ¶
func (h *Handler) CreateOspfNbr(w http.ResponseWriter, r *http.Request)
Create OspfNbr @Summary Create ospf_nbr @Description Create ospf_nbr @Tags devices @ID create-ospf_nbr @Param Body body ospfNbr true "JSON object of ospfNbr.<br />Ignored fields:<ul><li>nbr_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} ospfNbr @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/ospf_nbrs [POST]
func (*Handler) CreateRlNbr ¶
func (h *Handler) CreateRlNbr(w http.ResponseWriter, r *http.Request)
Create RlNbr @Summary Create rl_nbr @Description Create radio link neighbor @Tags devices @ID create-rl_nbr @Param Body body godevmandb.CreateRlNbrParams true "JSON object of godevmandb.RlNbrParams" @Success 201 {object} godevmandb.RlNbr @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/rl_nbrs [POST]
func (*Handler) CreateSite ¶
func (h *Handler) CreateSite(w http.ResponseWriter, r *http.Request)
Create Site @Summary Create site @Description Create site @Tags sites @ID create-site @Param Body body godevmandb.CreateSiteParams true "JSON object of godevmandb.CreateSiteParams" @Success 201 {object} godevmandb.Site @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites [POST]
func (*Handler) CreateSnmpCredential ¶
func (h *Handler) CreateSnmpCredential(w http.ResponseWriter, r *http.Request)
Create SnmpCredential @Summary Create snmp_credential @Description Create snmp credential @Tags config @ID create-snmp_credential @Param Body body snmpCredential true "JSON object of credential.<br />Ignored fields:<ul><li>snmp_cred_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} snmpCredential @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/snmp_credentials [POST]
func (*Handler) CreateSubinterface ¶
func (h *Handler) CreateSubinterface(w http.ResponseWriter, r *http.Request)
Create Subinterface @Summary Create subinterface @Description Create subinterface @Tags interfaces @ID create-subinterface @Param Body body subinterface true "JSON object of subinterface.<br />Ignored fields:<ul><li>sif_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} subinterface @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/subinterfaces [POST]
func (*Handler) CreateUser ¶
func (h *Handler) CreateUser(w http.ResponseWriter, r *http.Request)
Create User @Summary Create user @Description Create user @Tags users @ID create-user @Param Body body godevmandb.CreateUserParams true "JSON object of godevmandb.CreateUserParams" @Success 201 {object} godevmandb.User @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users [POST]
func (*Handler) CreateUserAuthz ¶
func (h *Handler) CreateUserAuthz(w http.ResponseWriter, r *http.Request)
Create UserAuthz @Summary Create user_authz @Description Create user_authz @Tags users @ID create-user_authz @Param Body body godevmandb.CreateUserAuthzParams true "JSON object of godevmandb.CreateUserAuthzParams" @Success 201 {object} godevmandb.UserAuthz @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/authzs [POST]
func (*Handler) CreateUserGraph ¶
func (h *Handler) CreateUserGraph(w http.ResponseWriter, r *http.Request)
Create UserGraph @Summary Create user_graph @Description Create user graph @Tags users @ID create-user_graph @Param Body body godevmandb.CreateUserGraphParams true "JSON object of godevmandb.CreateUserGraphParams" @Success 201 {object} godevmandb.UserGraph @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/graphs [POST]
func (*Handler) CreateVar ¶
func (h *Handler) CreateVar(w http.ResponseWriter, r *http.Request)
Create Var @Summary Create var @Description Create var @Tags config @ID create-var @Param Body body godevmandb.CreateVarParams true "JSON object of godevmandb.CreateVarParams" @Success 201 {object} godevmandb.Var @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/vars [POST]
func (*Handler) CreateVlan ¶
func (h *Handler) CreateVlan(w http.ResponseWriter, r *http.Request)
Create Vlan @Summary Create vlan @Description Create vlan @Tags devices @ID create-vlan @Param Body body godevmandb.CreateVlanParams true "JSON object of godevmandb.VlanParams" @Success 201 {object} godevmandb.Vlan @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/vlans [POST]
func (*Handler) CreateXconnect ¶
func (h *Handler) CreateXconnect(w http.ResponseWriter, r *http.Request)
Create Xconnect @Summary Create xconnect @Description Create xconnect @Tags devices @ID create-xconnect @Param Body body xconnect true "JSON object of xconnect.<br />Ignored fields:<ul><li>xc_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 201 {object} xconnect @Failure 400 {object} StatusResponse "Invalid request payload" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects [POST]
func (*Handler) DeleteArchivedInterface ¶
func (h *Handler) DeleteArchivedInterface(w http.ResponseWriter, r *http.Request)
Delete ArchivedInterface @Summary Delete archived_interface @Description Delete archived interface @Tags archived @ID delete-archived_interface @Param ifa_id path string true "ifa_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid ifa_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/interfaces/{ifa_id} [DELETE]
func (*Handler) DeleteArchivedSubinterface ¶
func (h *Handler) DeleteArchivedSubinterface(w http.ResponseWriter, r *http.Request)
Delete ArchivedSubinterface @Summary Delete archived_subinterface @Description Delete archived subinterface @Tags archived @ID delete-archived_subinterface @Param sifa_id path string true "sifa_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid sifa_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/subinterfaces/{sifa_id} [DELETE]
func (*Handler) DeleteConCapacity ¶
func (h *Handler) DeleteConCapacity(w http.ResponseWriter, r *http.Request)
Delete ConCapacity @Summary Delete capacity @Description Delete connection capacity @Tags connections @ID delete-capacity @Param con_cap_id path string true "con_cap_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid con_cap_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/capacities/{con_cap_id} [DELETE]
func (*Handler) DeleteConClass ¶
func (h *Handler) DeleteConClass(w http.ResponseWriter, r *http.Request)
Delete ConClass @Summary Delete con_class @Description Delete connection class @Tags connections @ID delete-con_class @Param con_class_id path string true "con_class_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid con_class_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/classes/{con_class_id} [DELETE]
func (*Handler) DeleteConProvider ¶
func (h *Handler) DeleteConProvider(w http.ResponseWriter, r *http.Request)
Delete ConProvider @Summary Delete con_provider @Description Delete connection provider @Tags connections @ID delete-con_provider @Param con_prov_id path string true "con_prov_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid con_prov_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/providers/{con_prov_id} [DELETE]
func (*Handler) DeleteConType ¶
func (h *Handler) DeleteConType(w http.ResponseWriter, r *http.Request)
Delete ConType @Summary Delete con_type @Description Delete connection type @Tags connections @ID delete-con_type @Param con_type_id path string true "con_type_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid con_type_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/types/{con_type_id} [DELETE]
func (*Handler) DeleteConnection ¶
func (h *Handler) DeleteConnection(w http.ResponseWriter, r *http.Request)
Delete Connection @Summary Delete connection @Description Delete connection @Tags connections @ID delete-connection @Param con_id path string true "con_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid con_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id} [DELETE]
func (*Handler) DeleteCountry ¶
func (h *Handler) DeleteCountry(w http.ResponseWriter, r *http.Request)
Delete Country @Summary Delete country @Description Delete country @Tags sites @ID delete-country @Param country_id path string true "country_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid country_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/countries/{country_id} [DELETE]
func (*Handler) DeleteCredential ¶
func (h *Handler) DeleteCredential(w http.ResponseWriter, r *http.Request)
Delete Credential @Summary Delete credential @Description Delete credential @Tags config @ID delete-credential @Param cred_id path string true "cred_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid cred_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/credentials/{cred_id} [DELETE]
func (*Handler) DeleteCustomEntity ¶
func (h *Handler) DeleteCustomEntity(w http.ResponseWriter, r *http.Request)
Delete CustomEntity @Summary Delete customEntity @Description Delete customEntity @Tags entities @ID delete-customEntity @Param cent_id path string true "cent_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid cent_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/custom_entities/{cent_id} [DELETE]
func (*Handler) DeleteDevice ¶
func (h *Handler) DeleteDevice(w http.ResponseWriter, r *http.Request)
Delete Device @Summary Delete device @Description Delete device @Tags devices @ID delete-device @Param dev_id path string true "dev_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id} [DELETE]
func (*Handler) DeleteDeviceClass ¶
func (h *Handler) DeleteDeviceClass(w http.ResponseWriter, r *http.Request)
Delete DeviceClass @Summary Delete device_class @Description Delete device class @Tags devices @ID delete-device_class @Param class_id path string true "class_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid class_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/classes/{class_id} [DELETE]
func (*Handler) DeleteDeviceCredential ¶
func (h *Handler) DeleteDeviceCredential(w http.ResponseWriter, r *http.Request)
Delete DeviceCredential @Summary Delete device_credential @Description Delete device credential @Tags devices @ID delete-device_credential @Param cred_id path string true "cred_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid cred_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/credentials/{cred_id} [DELETE]
func (*Handler) DeleteDeviceDomain ¶
func (h *Handler) DeleteDeviceDomain(w http.ResponseWriter, r *http.Request)
Delete DeviceDomain @Summary Delete device_domain @Description Delete device domain @Tags devices @ID delete-device_domain @Param dom_id path string true "dom_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid dom_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/domains/{dom_id} [DELETE]
func (*Handler) DeleteDeviceLicense ¶
func (h *Handler) DeleteDeviceLicense(w http.ResponseWriter, r *http.Request)
Delete DeviceLicense @Summary Delete device_license @Description Delete device_license @Tags devices @ID delete-device_license @Param lic_id path string true "lic_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid lic_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/licenses/{lic_id} [DELETE]
func (*Handler) DeleteDeviceType ¶
func (h *Handler) DeleteDeviceType(w http.ResponseWriter, r *http.Request)
Delete DeviceType @Summary Delete device_type @Description Delete device type @Tags devices @ID delete-device_type @Param sys_id path string true "sys_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid sys_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/types/{sys_id} [DELETE]
func (*Handler) DeleteEntity ¶
func (h *Handler) DeleteEntity(w http.ResponseWriter, r *http.Request)
Delete Entity @Summary Delete Entity @Description Delete Entity @Tags entities @ID delete-Entity @Param ent_id path string true "ent_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid ent_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id} [DELETE]
func (*Handler) DeleteIntBwStat ¶
func (h *Handler) DeleteIntBwStat(w http.ResponseWriter, r *http.Request)
Delete IntBwStat @Summary Delete IntBwStat @Description Delete IntBwStat @Tags interfaces @ID delete-int_bw_stat @Param bw_id path string true "bw_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid bw_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/bw_stats/{bw_id} [DELETE]
func (*Handler) DeleteInterface ¶
func (h *Handler) DeleteInterface(w http.ResponseWriter, r *http.Request)
Delete Interface @Summary Delete interface @Description Delete interface @Tags interfaces @ID delete-interface @Param if_id path string true "if_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id} [DELETE]
func (*Handler) DeleteIpInterface ¶
func (h *Handler) DeleteIpInterface(w http.ResponseWriter, r *http.Request)
Delete IpInterface @Summary Delete ip_interface @Description Delete ip_interface @Tags ip_interfaces @ID delete-ip_interface @Param ip_id path string true "ip_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid ip_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /ip_interfaces/{ip_id} [DELETE]
func (*Handler) DeleteOspfNbr ¶
func (h *Handler) DeleteOspfNbr(w http.ResponseWriter, r *http.Request)
Delete OspfNbr @Summary Delete ospf_nbr @Description Delete ospf_nbr @Tags devices @ID delete-ospf_nbr @Param nbr_id path string true "nbr_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid nbr_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/ospf_nbrs/{nbr_id} [DELETE]
func (*Handler) DeleteRlNbr ¶
func (h *Handler) DeleteRlNbr(w http.ResponseWriter, r *http.Request)
Delete RlNbr @Summary Delete rl_nbr @Description Delete radio link neighbor @Tags devices @ID delete-rl_nbr @Param nbr_id path string true "nbr_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid nbr_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/rl_nbrs/{nbr_id} [DELETE]
func (*Handler) DeleteSite ¶
func (h *Handler) DeleteSite(w http.ResponseWriter, r *http.Request)
Delete Site @Summary Delete site @Description Delete site @Tags sites @ID delete-site @Param site_id path string true "site_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid site_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/{site_id} [DELETE]
func (*Handler) DeleteSnmpCredential ¶
func (h *Handler) DeleteSnmpCredential(w http.ResponseWriter, r *http.Request)
Delete SnmpCredential @Summary Delete snmp_credential @Description Delete snmp credential @Tags config @ID delete-snmp_credential @Param snmp_cred_id path string true "snmp_cred_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid snmp_cred_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/snmp_credentials/{snmp_cred_id} [DELETE]
func (*Handler) DeleteSubinterface ¶
func (h *Handler) DeleteSubinterface(w http.ResponseWriter, r *http.Request)
Delete Subinterface @Summary Delete subinterface @Description Delete subinterface @Tags interfaces @ID delete-subinterface @Param sif_id path string true "sif_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid sif_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/subinterfaces/{sif_id} [DELETE]
func (*Handler) DeleteUser ¶
func (h *Handler) DeleteUser(w http.ResponseWriter, r *http.Request)
Delete User @Summary Delete user @Description Delete user @Tags users @ID delete-user @Param username path string true "username" @Success 204 @Failure 400 {object} StatusResponse "Invalid username" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/{username} [DELETE]
func (*Handler) DeleteUserAuthz ¶
func (h *Handler) DeleteUserAuthz(w http.ResponseWriter, r *http.Request)
Delete UserAuthz @Summary Delete user_authz @Description Delete user_authz @Tags users @ID delete-user_authz @Param username path string true "username" @Param dom_id path string true "dom_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid username/dom_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/authzs/{username}/{dom_id} [DELETE]
func (*Handler) DeleteUserGraph ¶
func (h *Handler) DeleteUserGraph(w http.ResponseWriter, r *http.Request)
Delete UserGraph @Summary Delete user_graph @Description Delete user graph @Tags users @ID delete-user_graph @Param graph_id path string true "graph_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid graph_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/graphs/{graph_id} [DELETE]
func (*Handler) DeleteVar ¶
func (h *Handler) DeleteVar(w http.ResponseWriter, r *http.Request)
Delete Var @Summary Delete var @Description Delete var @Tags config @ID delete-var @Param descr path string true "descr" @Success 204 @Failure 400 {object} StatusResponse "Invalid descr" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/vars/{descr} [DELETE]
func (*Handler) DeleteVlan ¶
func (h *Handler) DeleteVlan(w http.ResponseWriter, r *http.Request)
Delete Vlan @Summary Delete vlan @Description Delete vlan @Tags devices @ID delete-vlan @Param v_id path string true "v_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid v_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/vlans/{v_id} [DELETE]
func (*Handler) DeleteXconnect ¶
func (h *Handler) DeleteXconnect(w http.ResponseWriter, r *http.Request)
Delete Xconnect @Summary Delete xconnect @Description Delete xconnect @Tags devices @ID delete-xconnect @Param xc_id path string true "xc_id" @Success 204 @Failure 400 {object} StatusResponse "Invalid xc_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects/{xc_id} [DELETE]
func (*Handler) GetArchivedInterface ¶
func (h *Handler) GetArchivedInterface(w http.ResponseWriter, r *http.Request)
Get ArchivedInterface @Summary Get archived_interface @Description Get archived interface info @Tags archived @ID get-archived_interface @Param ifa_id path string true "ifa_id" @Success 200 {object} archivedInterface @Failure 400 {object} StatusResponse "Invalid ifa_id" @Failure 404 {object} StatusResponse "Archived interface not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/interfaces/{ifa_id} [GET]
func (*Handler) GetArchivedInterfaces ¶
func (h *Handler) GetArchivedInterfaces(w http.ResponseWriter, r *http.Request)
List archived_interfaces @Summary List archived_interfaces @Description List archived interfaces info @Tags archived @ID list-archived_interfaces @Param ifindex_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param otn_if_id_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param cisco_opt_power_index_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param hostname_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param host_ip4_f query string false "ip or containing net in CIDR notation" @Param host_ip6_f query string false "ip or containing net in CIDR notation" @Param manufacturer_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param model_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param alias_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param type_enum_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param mac_f query string false "SQL '=' operator value (MAC address)" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} archivedInterface @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/interfaces [GET]
func (*Handler) GetArchivedSubinterface ¶
func (h *Handler) GetArchivedSubinterface(w http.ResponseWriter, r *http.Request)
Get ArchivedSubinterface @Summary Get archived_subinterface @Description Get archived subinterface info @Tags archived @ID get-archived_subinterface @Param sifa_id path string true "sifa_id" @Success 200 {object} archivedSubinterface @Failure 400 {object} StatusResponse "Invalid sifa_id" @Failure 404 {object} StatusResponse "Archived subinterface not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/subinterfaces/{sifa_id} [GET]
func (*Handler) GetArchivedSubinterfaces ¶
func (h *Handler) GetArchivedSubinterfaces(w http.ResponseWriter, r *http.Request)
List archived_subinterfaces @Summary List archived_subinterfaces @Description List archived subinterfaces info @Tags archived @ID list-archived_subinterfaces @Param ifindex_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param parent_descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param alias_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param type_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param mac_f query string false "SQL '=' operator value (MAC address)" @Param hostname_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param host_ip4_f query string false "ip or containing net in CIDR notation" @Param host_ip6_f query string false "ip or containing net in CIDR notation" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} archivedSubinterface @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/subinterfaces [GET]
func (*Handler) GetConCapacities ¶
func (h *Handler) GetConCapacities(w http.ResponseWriter, r *http.Request)
List con_capacities @Summary List con_capacities @Description List connection capacities info @Tags connections @ID list-con_capacities @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.ConCapacity @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/capacities [GET]
func (*Handler) GetConCapacity ¶
func (h *Handler) GetConCapacity(w http.ResponseWriter, r *http.Request)
Get ConCapacity @Summary Get capacity @Description Get connection capacity info @Tags connections @ID get-capacity @Param con_cap_id path string true "con_cap_id" @Success 200 {object} godevmandb.ConCapacity @Failure 400 {object} StatusResponse "Invalid con_cap_id" @Failure 404 {object} StatusResponse "Capacity not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/capacities/{con_cap_id} [GET]
func (*Handler) GetConCapacityConnections ¶
func (h *Handler) GetConCapacityConnections(w http.ResponseWriter, r *http.Request)
Relations List ConCapacity Connections @Summary List capacity connections @Description List connection capacity connections info @Tags connections @ID list-capacity-connections @Param con_cap_id path string true "con_cap_id" @Success 200 {array} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid con_cap_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/capacities/{con_cap_id}/connections [GET]
func (*Handler) GetConClass ¶
func (h *Handler) GetConClass(w http.ResponseWriter, r *http.Request)
Get ConClass @Summary Get con_class @Description Get connection class info @Tags connections @ID get-con_class @Param con_class_id path string true "con_class_id" @Success 200 {object} godevmandb.ConClass @Failure 400 {object} StatusResponse "Invalid con_class_id" @Failure 404 {object} StatusResponse "Class not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/classes/{con_class_id} [GET]
func (*Handler) GetConClassConnections ¶
func (h *Handler) GetConClassConnections(w http.ResponseWriter, r *http.Request)
Relations List ConClass Connections @Summary List con_class connections @Description List connection class connections info @Tags connections @ID list-con_class-connections @Param con_class_id path string true "con_class_id" @Success 200 {array} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid con_class_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/classes/{con_class_id}/connections [GET]
func (*Handler) GetConClasses ¶
func (h *Handler) GetConClasses(w http.ResponseWriter, r *http.Request)
List con_classes @Summary List con_classes @Description List connection classes info @Tags connections @ID list-con_classes @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.ConClass @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/classes [GET]
func (*Handler) GetConProvider ¶
func (h *Handler) GetConProvider(w http.ResponseWriter, r *http.Request)
Get ConProvider @Summary Get con_provider @Description Get connection provider info @Tags connections @ID get-con_provider @Param con_prov_id path string true "con_prov_id" @Success 200 {object} godevmandb.ConProvider @Failure 400 {object} StatusResponse "Invalid con_prov_id" @Failure 404 {object} StatusResponse "Provider not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/providers/{con_prov_id} [GET]
func (*Handler) GetConProviderConnections ¶
func (h *Handler) GetConProviderConnections(w http.ResponseWriter, r *http.Request)
Relations List ConProvider Connections @Summary List con_provider connections @Description List connection provider connections info @Tags connections @ID list-con_provider-connections @Param con_prov_id path string true "con_prov_id" @Success 200 {array} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid con_prov_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/providers/{con_prov_id}/connections [GET]
func (*Handler) GetConProviders ¶
func (h *Handler) GetConProviders(w http.ResponseWriter, r *http.Request)
List con_providers @Summary List con_providers @Description List connection providers info @Tags connections @ID list-con_providers @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.ConProvider @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/providers [GET]
func (*Handler) GetConType ¶
func (h *Handler) GetConType(w http.ResponseWriter, r *http.Request)
Get ConType @Summary Get con_type @Description Get connection type info @Tags connections @ID get-con_type @Param con_type_id path string true "con_type_id" @Success 200 {object} godevmandb.ConType @Failure 400 {object} StatusResponse "Invalid con_type_id" @Failure 404 {object} StatusResponse "Type not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/types/{con_type_id} [GET]
func (*Handler) GetConTypeConnections ¶
func (h *Handler) GetConTypeConnections(w http.ResponseWriter, r *http.Request)
Relations List ConType Connections @Summary List con_type connections @Description List connection type connections info @Tags connections @ID list-con_type-connections @Param con_type_id path string true "con_type_id" @Success 200 {array} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid con_type_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/types/{con_type_id}/connections [GET]
func (*Handler) GetConTypes ¶
func (h *Handler) GetConTypes(w http.ResponseWriter, r *http.Request)
List con_types @Summary List con_types @Description List connection types info @Tags connections @ID list-con_types @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.ConType @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/types [GET]
func (*Handler) GetConnection ¶
func (h *Handler) GetConnection(w http.ResponseWriter, r *http.Request)
Get Connection @Summary Get connection @Description Get connection info @Tags connections @ID get-connection @Param con_id path string true "con_id" @Success 200 {object} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid con_id" @Failure 404 {object} StatusResponse "Connection not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id} [GET]
func (*Handler) GetConnectionConCapacitiy ¶
func (h *Handler) GetConnectionConCapacitiy(w http.ResponseWriter, r *http.Request)
Foreign key Get Connection Capacitiy @Summary Get connection capacity @Description Get connection capacity info @Tags connections @ID get-connection-capacity @Param con_id path string true "con_id" @Success 200 {object} godevmandb.ConCapacity @Failure 400 {object} StatusResponse "Invalid con_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id}/capacity [GET]
func (*Handler) GetConnectionConClass ¶
func (h *Handler) GetConnectionConClass(w http.ResponseWriter, r *http.Request)
Foreign key Get Connection Class @Summary Get connection class @Description Get connection class info @Tags connections @ID get-connection-class @Param con_id path string true "con_id" @Success 200 {object} godevmandb.ConClass @Failure 400 {object} StatusResponse "Invalid con_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id}/class [GET]
func (*Handler) GetConnectionConProvider ¶
func (h *Handler) GetConnectionConProvider(w http.ResponseWriter, r *http.Request)
Foreign key Get Connection Provider @Summary Get connection provider @Description Get connection provider info @Tags connections @ID get-connection-provider @Param con_id path string true "con_id" @Success 200 {object} godevmandb.ConProvider @Failure 400 {object} StatusResponse "Invalid con_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id}/provider [GET]
func (*Handler) GetConnectionConType ¶
func (h *Handler) GetConnectionConType(w http.ResponseWriter, r *http.Request)
Foreign key Get Connection Type @Summary Get connection type @Description Get connection type info @Tags connections @ID get-connection-type @Param con_id path string true "con_id" @Success 200 {object} godevmandb.ConType @Failure 400 {object} StatusResponse "Invalid con_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id}/type [GET]
func (*Handler) GetConnectionInterfaces ¶
func (h *Handler) GetConnectionInterfaces(w http.ResponseWriter, r *http.Request)
Relations List Connection Interfaces @Summary List connection interfaces @Description List connection interfaces info @Tags connections @ID list-connection-interfaces @Param con_id path string true "con_id" @Success 200 {array} iface @Failure 400 {object} StatusResponse "Invalid con_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id}/interfaces [GET]
func (*Handler) GetConnectionSite ¶
func (h *Handler) GetConnectionSite(w http.ResponseWriter, r *http.Request)
Foreign key Get Connection Site @Summary Get connection site @Description Get connection site info @Tags connections @ID get-connection-site @Param con_id path string true "con_id" @Success 200 {object} godevmandb.Site @Failure 400 {object} StatusResponse "Invalid con_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id}/site [GET]
func (*Handler) GetConnections ¶
func (h *Handler) GetConnections(w http.ResponseWriter, r *http.Request)
List connections @Summary List connections @Description List connection info @Tags connections @ID list-connections @Param hint_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param in_use_f query bool false "values 'true', 'false'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.Connection @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections [GET]
func (*Handler) GetCountries ¶
func (h *Handler) GetCountries(w http.ResponseWriter, r *http.Request)
List countries @Summary List countries @Description List countries info @Tags sites @ID list-countries @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param code_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.Country @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/countries [GET]
func (*Handler) GetCountry ¶
func (h *Handler) GetCountry(w http.ResponseWriter, r *http.Request)
Get Country @Summary Get country @Description Get country info @Tags sites @ID get-country @Param country_id path string true "country_id" @Success 200 {object} godevmandb.Country @Failure 400 {object} StatusResponse "Invalid country_id" @Failure 404 {object} StatusResponse "Country not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/countries/{country_id} [GET]
func (*Handler) GetCountrySites ¶
func (h *Handler) GetCountrySites(w http.ResponseWriter, r *http.Request)
Relations List Country Sites @Summary List country sites @Description List country sites info @Tags sites @ID list-country-sites @Param country_id path string true "country_id" @Success 200 {array} godevmandb.Site @Failure 400 {object} StatusResponse "Invalid country_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/countries/{country_id}/sites [GET]
func (*Handler) GetCredential ¶
func (h *Handler) GetCredential(w http.ResponseWriter, r *http.Request)
Get Credential @Summary Get credential @Description Get credential info @Tags config @ID get-credential @Param cred_id path string true "cred_id" @Success 200 {object} godevmandb.Credential @Failure 400 {object} StatusResponse "Invalid cred_id" @Failure 404 {object} StatusResponse "Credential not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/credentials/{cred_id} [GET]
func (*Handler) GetCredentials ¶
func (h *Handler) GetCredentials(w http.ResponseWriter, r *http.Request)
List credentials @Summary List credentials @Description List credentials info @Tags config @ID list-credentials @Param label_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.Credential @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/credentials [GET]
func (*Handler) GetCustomEntities ¶
func (h *Handler) GetCustomEntities(w http.ResponseWriter, r *http.Request)
List custom_entities @Summary List custom_entities @Description List custom_entities info @Tags entities @ID list-custom_entities @Param serial_nr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param manufacturer_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param part_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param descr_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.CustomEntity @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/custom_entities [GET]
func (*Handler) GetCustomEntity ¶
func (h *Handler) GetCustomEntity(w http.ResponseWriter, r *http.Request)
Get CustomEntity @Summary Get customEntity @Description Get customEntity info @Tags entities @ID get-customEntity @Param cent_id path string true "cent_id" @Success 200 {object} godevmandb.CustomEntity @Failure 400 {object} StatusResponse "Invalid cent_id" @Failure 404 {object} StatusResponse "CustomEntity not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/custom_entities/{cent_id} [GET]
func (*Handler) GetDevice ¶
func (h *Handler) GetDevice(w http.ResponseWriter, r *http.Request)
Get Device @Summary Get device @Description Get device info @Tags devices @ID get-device @Param dev_id path string true "dev_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Device not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id} [GET]
func (*Handler) GetDeviceChilds ¶
func (h *Handler) GetDeviceChilds(w http.ResponseWriter, r *http.Request)
Relations List Device Childs @Summary List device childs @Description List device childs info @Tags devices @ID list-device-childs @Param dev_id path string true "dev_id" @Success 200 {array} device @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/childs [GET]
func (*Handler) GetDeviceClass ¶
func (h *Handler) GetDeviceClass(w http.ResponseWriter, r *http.Request)
Get DeviceClass @Summary Get device_class @Description Get device class info @Tags devices @ID get-device_class @Param class_id path string true "class_id" @Success 200 {object} godevmandb.DeviceClass @Failure 400 {object} StatusResponse "Invalid class_id" @Failure 404 {object} StatusResponse "Class not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/classes/{class_id} [GET]
func (*Handler) GetDeviceClassTypes ¶
func (h *Handler) GetDeviceClassTypes(w http.ResponseWriter, r *http.Request)
Relations List Device Class Device Types @Summary List device_class device_types @Description List device class device types info @Tags devices @ID list-device_class-device_types @Param class_id path string true "class_id" @Success 200 {array} godevmandb.DeviceType @Failure 400 {object} StatusResponse "Invalid class_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/classes/{class_id}/types [GET]
func (*Handler) GetDeviceClasses ¶
func (h *Handler) GetDeviceClasses(w http.ResponseWriter, r *http.Request)
List device_classes @Summary List device_classes @Description List device classes info @Tags devices @ID list-device_classes @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.DeviceClass @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/classes [GET]
func (*Handler) GetDeviceCredential ¶
func (h *Handler) GetDeviceCredential(w http.ResponseWriter, r *http.Request)
Get DeviceCredential @Summary Get device_credential @Description Get device credential info @Tags devices @ID get-device_credential @Param cred_id path string true "cred_id" @Success 200 {object} godevmandb.DeviceCredential @Failure 400 {object} StatusResponse "Invalid cred_id" @Failure 404 {object} StatusResponse "Credential not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/credentials/{cred_id} [GET]
func (*Handler) GetDeviceCredentials ¶
func (h *Handler) GetDeviceCredentials(w http.ResponseWriter, r *http.Request)
List DeviceCredentials @Summary List device_credentials @Description List device credentials info @Tags devices @ID list-device_credentials @Param username_f query string false "url encoded SQL 'LIKE' operator pattern" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.DeviceCredential @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/credentials [GET]
func (*Handler) GetDeviceDeviceCredentials ¶
func (h *Handler) GetDeviceDeviceCredentials(w http.ResponseWriter, r *http.Request)
Relations List Device Credentials @Summary List device credentials @Description List device credentials info @Tags devices @ID list-device-credentials @Param dev_id path string true "dev_id" @Success 200 {array} godevmandb.DeviceCredential @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/credentials [GET]
func (*Handler) GetDeviceDeviceDomain ¶
func (h *Handler) GetDeviceDeviceDomain(w http.ResponseWriter, r *http.Request)
Foreign key Get Device DeviceDomain @Summary Get device device_domain @Description Get device device_domain info @Tags devices @ID get-device-device-domain @Param dev_id path string true "dev_id" @Success 200 {object} godevmandb.DeviceDomain @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/domain [GET]
func (*Handler) GetDeviceDeviceExtensions ¶
func (h *Handler) GetDeviceDeviceExtensions(w http.ResponseWriter, r *http.Request)
Relations List Device Extensions @Summary List device extensions @Description List device extensions info @Tags devices @ID list-device-extensions @Param dev_id path string true "dev_id" @Success 200 {array} godevmandb.DeviceExtension @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/extensions [GET]
func (*Handler) GetDeviceDeviceLicenses ¶
func (h *Handler) GetDeviceDeviceLicenses(w http.ResponseWriter, r *http.Request)
Relations List Device Licenses @Summary List device licenses @Description List device licenses info @Tags devices @ID list-device-licenses @Param dev_id path string true "dev_id" @Success 200 {array} godevmandb.DeviceLicense @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/licenses [GET]
func (*Handler) GetDeviceDeviceState ¶
func (h *Handler) GetDeviceDeviceState(w http.ResponseWriter, r *http.Request)
Relations List Device State @Summary List device state @Description List device state info @Tags devices @ID list-device-state @Param dev_id path string true "dev_id" @Success 200 {array} godevmandb.DeviceState @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/state [GET]
func (*Handler) GetDeviceDeviceType ¶
func (h *Handler) GetDeviceDeviceType(w http.ResponseWriter, r *http.Request)
Foreign key Get Device DeviceType @Summary Get device device_type @Description Get device device_type info @Tags devices @ID get-device-device-type @Param dev_id path string true "dev_id" @Success 200 {object} godevmandb.DeviceType @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/type [GET]
func (*Handler) GetDeviceDomain ¶
func (h *Handler) GetDeviceDomain(w http.ResponseWriter, r *http.Request)
Get DeviceDomain @Summary Get device_domain @Description Get device domain info @Tags devices @ID get-device_domain @Param dom_id path string true "dom_id" @Success 200 {object} godevmandb.DeviceDomain @Failure 400 {object} StatusResponse "Invalid dom_id" @Failure 404 {object} StatusResponse "Domain not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/domains/{dom_id} [GET]
func (*Handler) GetDeviceDomainDevices ¶
func (h *Handler) GetDeviceDomainDevices(w http.ResponseWriter, r *http.Request)
Relations List DeviceDomain Devices @Summary List device_domain devices @Description List device domain devices info @Tags devices @ID list-device_domain-devices @Param dom_id path string true "dom_id" @Success 200 {array} device @Failure 400 {object} StatusResponse "Invalid dom_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/domains/{dom_id}/devices [GET]
func (*Handler) GetDeviceDomains ¶
func (h *Handler) GetDeviceDomains(w http.ResponseWriter, r *http.Request)
List device_domains @Summary List device_domains @Description List device domains info @Tags devices @ID list-device_domains @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.DeviceDomain @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/domains [GET]
func (*Handler) GetDeviceEntities ¶
func (h *Handler) GetDeviceEntities(w http.ResponseWriter, r *http.Request)
Relations List Device Entities @Summary List device entities @Description List device entities info @Tags devices @ID list-device-entities @Param dev_id path string true "dev_id" @Success 200 {array} godevmandb.Entity @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/entities [GET]
func (*Handler) GetDeviceInterfaces ¶
func (h *Handler) GetDeviceInterfaces(w http.ResponseWriter, r *http.Request)
Relations List Device Interfaces @Summary List device interfaces @Description List device interfaces info @Tags devices @ID list-device-interfaces @Param dev_id path string true "dev_id" @Success 200 {array} iface @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/interfaces [GET]
func (*Handler) GetDeviceIpInterfaces ¶
func (h *Handler) GetDeviceIpInterfaces(w http.ResponseWriter, r *http.Request)
Relations List Device Ip Interfaces @Summary List device ip interfaces @Description List device ip interfaces info @Tags devices @ID list-device-ip-interfaces @Param dev_id path string true "dev_id" @Success 200 {array} ipInterface @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/ip_interfaces [GET]
func (*Handler) GetDeviceLicense ¶
func (h *Handler) GetDeviceLicense(w http.ResponseWriter, r *http.Request)
Get DeviceLicense @Summary Get device_license @Description Get device_license info @Tags devices @ID get-device_license @Param lic_id path string true "lic_id" @Success 200 {object} godevmandb.DeviceLicense @Failure 400 {object} StatusResponse "Invalid lic_id" @Failure 404 {object} StatusResponse "DeviceLicense not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/licenses/{lic_id} [GET]
func (*Handler) GetDeviceLicenseDevice ¶
func (h *Handler) GetDeviceLicenseDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get DeviceLicense Device @Summary Get device_license device @Description Get device_license device info @Tags devices @ID get-device_license-device @Param lic_id path string true "lic_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid lic_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/licenses/{lic_id}/device [GET]
func (*Handler) GetDeviceLicenses ¶
func (h *Handler) GetDeviceLicenses(w http.ResponseWriter, r *http.Request)
List device_licenses @Summary List device_licenses @Description List device_licenses info @Tags devices @ID list-device_licenses @Param product_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param condition_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param installed_le query int false "SQL '<=' operator value" @Param installed_ge query int false "SQL '>=' operator value" @Param unlocked_le query int false "SQL '<=' operator value" @Param unlocked_ge query int false "SQL '>=' operator value" @Param tot_inst_le query int false "SQL '<=' operator value" @Param tot_inst_ge query int false "SQL '>=' operator value" @Param used_le query int false "SQL '<=' operator value" @Param used_ge query int false "SQL '>=' operator value" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.DeviceLicense @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/licenses [GET]
func (*Handler) GetDeviceOspfNbrs ¶
func (h *Handler) GetDeviceOspfNbrs(w http.ResponseWriter, r *http.Request)
Relations List Device Ospf Neighbors @Summary List device ospf nbrs @Description List device ospf nbrs info @Tags devices @ID list-device-ospf-nbrs @Param dev_id path string true "dev_id" @Success 200 {array} ospfNbr @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/ospf_nbrs [GET]
func (*Handler) GetDeviceParent ¶
func (h *Handler) GetDeviceParent(w http.ResponseWriter, r *http.Request)
Foreign key Get Device Parent @Summary Get device parent @Description Get device parent info @Tags devices @ID get-device-parent @Param dev_id path string true "dev_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/parent [GET]
func (*Handler) GetDevicePeerXconnects ¶
func (h *Handler) GetDevicePeerXconnects(w http.ResponseWriter, r *http.Request)
Relations List Device Peer Xconnects @Summary List device peer xconnects @Description List device peer xconnects info @Tags devices @ID list-device-peer-xconnects @Param dev_id path string true "dev_id" @Success 200 {array} xconnect @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/peer_xconnects [GET]
func (*Handler) GetDeviceRlNbrs ¶
func (h *Handler) GetDeviceRlNbrs(w http.ResponseWriter, r *http.Request)
Relations List Device Radio Link Neighbors @Summary List device rl nbrs @Description List device rl nbrs info @Tags devices @ID list-device-rl-nbrs @Param dev_id path string true "dev_id" @Success 200 {array} godevmandb.RlNbr @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/rl_nbrs [GET]
func (*Handler) GetDeviceSite ¶
func (h *Handler) GetDeviceSite(w http.ResponseWriter, r *http.Request)
Foreign key Get Device Site @Summary Get device site @Description Get device site info @Tags devices @ID get-device-site @Param dev_id path string true "dev_id" @Success 200 {object} godevmandb.Site @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/site [GET]
func (*Handler) GetDeviceSnmpCredentialsMain ¶
func (h *Handler) GetDeviceSnmpCredentialsMain(w http.ResponseWriter, r *http.Request)
Foreign key Get Device SnmpCredentialsMain @Summary Get device snmp_credentials_main @Description Get device snmp_credentials_main info @Tags devices @ID get-device-snmp-credentials-main @Param dev_id path string true "dev_id" @Success 200 {object} snmpCredential @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/snmp_credentials_main [GET]
func (*Handler) GetDeviceSnmpCredentialsRo ¶
func (h *Handler) GetDeviceSnmpCredentialsRo(w http.ResponseWriter, r *http.Request)
Foreign key Get Device SnmpCredentialsRo @Summary Get device snmp_credentials_ro @Description Get device snmp_credentials_ro info @Tags devices @ID get-device-snmp-credentials-ro @Param dev_id path string true "dev_id" @Success 200 {object} snmpCredential @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/snmp_credentials_ro [GET]
func (*Handler) GetDeviceType ¶
func (h *Handler) GetDeviceType(w http.ResponseWriter, r *http.Request)
Get DeviceType @Summary Get device_type @Description Get device type info @Tags devices @ID get-device_type @Param sys_id path string true "sys_id" @Success 200 {object} godevmandb.DeviceType @Failure 400 {object} StatusResponse "Invalid sys_id" @Failure 404 {object} StatusResponse "Domain not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/types/{sys_id} [GET]
func (*Handler) GetDeviceTypeClass ¶
func (h *Handler) GetDeviceTypeClass(w http.ResponseWriter, r *http.Request)
Foreign key Get Device Type Class @Summary Get device type class @Description Get device type class info @Tags devices @ID get-device-type-class @Param sys_id path string true "sys_id" @Success 200 {object} godevmandb.DeviceClass @Failure 400 {object} StatusResponse "Invalid sys_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/types/{sys_id}/class [GET]
func (*Handler) GetDeviceTypeDevices ¶
func (h *Handler) GetDeviceTypeDevices(w http.ResponseWriter, r *http.Request)
Relations List DeviceType Devices @Summary List device_type devices @Description List device type devices info @Tags devices @ID list-device_type-devices @Param sys_id path string true "sys_id" @Success 200 {array} device @Failure 400 {object} StatusResponse "Invalid sys_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/types/{sys_id}/devices [GET]
func (*Handler) GetDeviceTypes ¶
func (h *Handler) GetDeviceTypes(w http.ResponseWriter, r *http.Request)
List device_types @Summary List device_types @Description List device types info @Tags devices @ID list-device_types @Param sys_id_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param manufacturer_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param model_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param hc_f query bool false "values 'true', 'false'" @Param snmp_ver_f query string false "0|1|2|3" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.DeviceType @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/types [GET]
func (*Handler) GetDeviceVlans ¶
func (h *Handler) GetDeviceVlans(w http.ResponseWriter, r *http.Request)
Relations List Device Vlans @Summary List device vlans @Description List device vlans info @Tags devices @ID list-device-vlans @Param dev_id path string true "dev_id" @Success 200 {array} godevmandb.Vlan @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/vlans [GET]
func (*Handler) GetDeviceXconnects ¶
func (h *Handler) GetDeviceXconnects(w http.ResponseWriter, r *http.Request)
Relations List Device Xconnects @Summary List device xconnects @Description List device xconnects info @Tags devices @ID list-device-xconnects @Param dev_id path string true "dev_id" @Success 200 {array} xconnect @Failure 400 {object} StatusResponse "Invalid dev_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id}/xconnects [GET]
func (*Handler) GetDevices ¶
func (h *Handler) GetDevices(w http.ResponseWriter, r *http.Request)
List devices @Summary List devices @Description List devices info @Tags devices @ID list-devices @Param sys_id_f query string false "url encoded SQL 'LIKE' operator pattern" @Param host_name_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param source_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param sys_name_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param sw_version_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param ext_model_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param ip4_addr_f query string false "ip or containing net in CIDR notation" @Param ip6_addr_f query string false "ip or containing net in CIDR notation" @Param installed_f query bool false "values 'true', 'false'" @Param monitor_f query bool false "values 'true', 'false'" @Param graph_f query bool false "values 'true', 'false'" @Param backup_f query bool false "values 'true', 'false'" @Param type_changed_f query bool false "values 'true', 'false'" @Param backup_failed_f query bool false "values 'true', 'false'" @Param validation_failed_f query bool false "values 'true', 'false'" @Param unresponsive_f query bool false "values 'true', 'false'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} device @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices [GET]
func (*Handler) GetEntities ¶
func (h *Handler) GetEntities(w http.ResponseWriter, r *http.Request)
List entities @Summary List entities @Description List entities info @Tags entities @ID list-entities @Param sys_name_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull'" @Param slot_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param model_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param w_product_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param hw_revision_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param serial_nr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param sw_product_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param sw_revision_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param manufacturer_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param physical_f query bool false "values 'true', 'false'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.Entity @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities [GET]
func (*Handler) GetEntity ¶
func (h *Handler) GetEntity(w http.ResponseWriter, r *http.Request)
Get Entity @Summary Get Entity @Description Get Entity info @Tags entities @ID get-Entity @Param ent_id path string true "ent_id" @Success 200 {object} godevmandb.Entity @Failure 400 {object} StatusResponse "Invalid ent_id" @Failure 404 {object} StatusResponse "Entity not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id} [GET]
func (*Handler) GetEntityChilds ¶
func (h *Handler) GetEntityChilds(w http.ResponseWriter, r *http.Request)
Relations List Entity Childs @Summary List entity childs @Description List connection entity childs info @Tags entities @ID list-entity-childs @Param ent_id path string true "ent_id" @Success 200 {array} godevmandb.Entity @Failure 400 {object} StatusResponse "Invalid ent_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id}/childs [GET]
func (*Handler) GetEntityDevice ¶
func (h *Handler) GetEntityDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get Entity Device @Summary Get entity device @Description Get entity device info @Tags entities @ID get-entity-device @Param ent_id path string true "ent_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid ent_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id}/device [GET]
func (*Handler) GetEntityEntityPhyIndexes ¶
func (h *Handler) GetEntityEntityPhyIndexes(w http.ResponseWriter, r *http.Request)
Relations List Entity PhyIndexes @Summary List entity phy indexes @Description List connection entity phy indexes info @Tags entities @ID list-entity-phy-indexes @Param ent_id path string true "ent_id" @Success 200 {array} godevmandb.EntityPhyIndex @Failure 400 {object} StatusResponse "Invalid ent_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id}/entity_phy_indexes [GET]
func (*Handler) GetEntityInterfaces ¶
func (h *Handler) GetEntityInterfaces(w http.ResponseWriter, r *http.Request)
Relations List Entity Interfaces @Summary List entity interfaces @Description List connection entity interfaces info @Tags entities @ID list-entity-interfaces @Param ent_id path string true "ent_id" @Success 200 {array} iface @Failure 400 {object} StatusResponse "Invalid ent_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id}/interfaces [GET]
func (*Handler) GetEntityParent ¶
func (h *Handler) GetEntityParent(w http.ResponseWriter, r *http.Request)
Foreign key Get Entity Parent @Summary Get entity parent @Description Get entity parent info @Tags entities @ID get-entity-parent @Param ent_id path string true "ent_id" @Success 200 {object} godevmandb.Entity @Failure 400 {object} StatusResponse "Invalid ent_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id}/parent [GET]
func (*Handler) GetEntityRlfNbrs ¶
func (h *Handler) GetEntityRlfNbrs(w http.ResponseWriter, r *http.Request)
Relations List Entity RlfNbrs @Summary List entity rl_nbrs @Description List connection entity rl_nbrs info @Tags entities @ID list-entity-rl_nbrs @Param ent_id path string true "ent_id" @Success 200 {array} godevmandb.RlNbr @Failure 400 {object} StatusResponse "Invalid ent_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id}/rl_nbrs [GET]
func (*Handler) GetIntBwStat ¶
func (h *Handler) GetIntBwStat(w http.ResponseWriter, r *http.Request)
Get IntBwStat @Summary Get IntBwStat @Description Get IntBwStat info @Tags interfaces @ID get-int_bw_stat @Param bw_id path string true "bw_id" @Success 200 {object} godevmandb.IntBwStat @Failure 400 {object} StatusResponse "Invalid bw_id" @Failure 404 {object} StatusResponse "Stat not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/bw_stats/{bw_id} [GET]
func (*Handler) GetIntBwStatInterface ¶
func (h *Handler) GetIntBwStatInterface(w http.ResponseWriter, r *http.Request)
Foreign key Get Int Bw Stat Interface @Summary Get bw_stats interface @Description Get bw_stats interface info @Tags interfaces @ID get-bw_stats-interface @Param bw_id path string true "bw_id" @Success 200 {object} iface @Failure 400 {object} StatusResponse "Invalid bw_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/bw_stats/{bw_id}/interface [GET]
func (*Handler) GetIntBwStats ¶
func (h *Handler) GetIntBwStats(w http.ResponseWriter, r *http.Request)
List int bw stats @Summary List int bw stats @Description List int bw stats info @Tags interfaces @ID list-bw_stats @Param if_group_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param to50in_le query int false "SQL '<=' operator value" @Param to50in_ge query int false "SQL '>=' operator value" @Param to75in_le query int false "SQL '<=' operator value" @Param to75in_ge query int false "SQL '>=' operator value" @Param to90in_le query int false "SQL '<=' operator value" @Param to90in_ge query int false "SQL '>=' operator value" @Param to100in_le query int false "SQL '<=' operator value" @Param to100in_ge query int false "SQL '>=' operator value" @Param to50out_le query int false "SQL '<=' operator value" @Param to50out_ge query int false "SQL '>=' operator value" @Param to75out_le query int false "SQL '<=' operator value" @Param to75out_ge query int false "SQL '>=' operator value" @Param to90out_le query int false "SQL '<=' operator value" @Param to90out_ge query int false "SQL '>=' operator value" @Param to100out_le query int false "SQL '<=' operator value" @Param to100out_ge query int false "SQL '>=' operator value" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.IntBwStat @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/bw_stats [GET]
func (*Handler) GetInterface ¶
func (h *Handler) GetInterface(w http.ResponseWriter, r *http.Request)
Get Interface @Summary Get interface @Description Get interface info @Tags interfaces @ID get-interface @Param if_id path string true "if_id" @Success 200 {object} iface @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Interface not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id} [GET]
func (*Handler) GetInterfaceChilds ¶
func (h *Handler) GetInterfaceChilds(w http.ResponseWriter, r *http.Request)
Relations List Interface Childs @Summary List interface childs @Description List interface childs info @Tags interfaces @ID list-interface-childs @Param if_id path string true "if_id" @Success 200 {array} iface @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/childs [GET]
func (*Handler) GetInterfaceConnection ¶
func (h *Handler) GetInterfaceConnection(w http.ResponseWriter, r *http.Request)
Foreign key Get Interface Connection @Summary Get interface connection @Description Get interface connection info @Tags interfaces @ID get-interface-connection @Param if_id path string true "if_id" @Success 200 {object} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/connection [GET]
func (*Handler) GetInterfaceDevice ¶
func (h *Handler) GetInterfaceDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get Interface Device @Summary Get interface device @Description Get interface device info @Tags interfaces @ID get-interface-device @Param if_id path string true "if_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/device [GET]
func (*Handler) GetInterfaceEntity ¶
func (h *Handler) GetInterfaceEntity(w http.ResponseWriter, r *http.Request)
Foreign key Get Interface Entity @Summary Get interface entity @Description Get interface entity info @Tags interfaces @ID get-interface-entity @Param if_id path string true "if_id" @Success 200 {object} godevmandb.Entity @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/entity [GET]
func (*Handler) GetInterfaceIntBwStats ¶
func (h *Handler) GetInterfaceIntBwStats(w http.ResponseWriter, r *http.Request)
Relations List Interface BwStats @Summary List interface bw_stats @Description List interface int_bw_stats info @Tags interfaces @ID list-interface-int_bw_stats @Param if_id path string true "if_id" @Success 200 {array} godevmandb.IntBwStat @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/bw_stats [GET]
func (*Handler) GetInterfaceInterfaceRelationsHigherFor ¶
func (h *Handler) GetInterfaceInterfaceRelationsHigherFor(w http.ResponseWriter, r *http.Request)
Relations List Lower Related Interfaces @Summary List lower related interfaces @Description List lower related interfaces info @Tags interfaces @ID list-interface-lower-related @Param if_id path string true "if_id" @Success 200 {array} iface @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/related_lower [GET]
func (*Handler) GetInterfaceInterfaceRelationsLowerFor ¶
func (h *Handler) GetInterfaceInterfaceRelationsLowerFor(w http.ResponseWriter, r *http.Request)
Relations List Higher Related Interfaces @Summary List higher related interfaces @Description List higher related interfaces info @Tags interfaces @ID list-interface-higher-related @Param if_id path string true "if_id" @Success 200 {array} iface @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/related_higher [GET]
func (*Handler) GetInterfaceOtnIf ¶
func (h *Handler) GetInterfaceOtnIf(w http.ResponseWriter, r *http.Request)
Foreign key Get Interface Otn Interface @Summary Get interface related otn interface @Description Get interface otn_if info @Tags interfaces @ID get-interface-otn_if @Param if_id path string true "if_id" @Success 200 {object} iface @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/otn_if [GET]
func (*Handler) GetInterfaceParent ¶
func (h *Handler) GetInterfaceParent(w http.ResponseWriter, r *http.Request)
Foreign key Get Interface Parent @Summary Get interface parent @Description Get interface parent info @Tags interfaces @ID get-interface-parent @Param if_id path string true "if_id" @Success 200 {object} iface @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/parent [GET]
func (*Handler) GetInterfaceSubinterfaces ¶
func (h *Handler) GetInterfaceSubinterfaces(w http.ResponseWriter, r *http.Request)
Relations List Interface Subinterfaces @Summary List interface subinterfaces @Description List interface subinterfaces info @Tags interfaces @ID list-interface-subinterfaces @Param if_id path string true "if_id" @Success 200 {array} subinterface @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/subinterfaces [GET]
func (*Handler) GetInterfaceVlans ¶
func (h *Handler) GetInterfaceVlans(w http.ResponseWriter, r *http.Request)
Relations List Interface Vlans @Summary List interface vlans @Description List interface vlans info @Tags interfaces @ID list-interface-vlans @Param if_id path string true "if_id" @Success 200 {array} godevmandb.Vlan @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/vlans [GET]
func (*Handler) GetInterfaceXconnects ¶
func (h *Handler) GetInterfaceXconnects(w http.ResponseWriter, r *http.Request)
Relations List Interface Xconnects @Summary List interface xconnects @Description List interface xconnects info @Tags interfaces @ID list-interface-xconnects @Param if_id path string true "if_id" @Success 200 {array} xconnect @Failure 400 {object} StatusResponse "Invalid if_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id}/xconnects [GET]
func (*Handler) GetInterfaces ¶
func (h *Handler) GetInterfaces(w http.ResponseWriter, r *http.Request)
List interfaces @Summary List interfaces @Description List interfaces info @Tags interfaces @ID list-interfaces @Param ifindex_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param alias_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param oper_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param adm_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param speed_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param minspeed_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param type_enum_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param mac_f query string false "SQL '=' operator value (MAC address)" @Param monstatus_f query bool false "values 'true', 'false'" @Param monerrors_f query bool false "values 'true', 'false'" @Param monload_f query bool false "values 'true', 'false'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} iface @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces [GET]
func (*Handler) GetIpInterface ¶
func (h *Handler) GetIpInterface(w http.ResponseWriter, r *http.Request)
Get IpInterface @Summary Get ip_interface @Description Get ip_interface info @Tags ip_interfaces @ID get-ip_interface @Param ip_id path string true "ip_id" @Success 200 {object} ipInterface @Failure 400 {object} StatusResponse "Invalid ip_id" @Failure 404 {object} StatusResponse "IpInterface not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /ip_interfaces/{ip_id} [GET]
func (*Handler) GetIpInterfaceDevice ¶
func (h *Handler) GetIpInterfaceDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get IpInterface Device @Summary Get ip_interface device @Description Get ip_interface device info @Tags ip_interfaces @ID get-ip_interface-device @Param ip_id path string true "ip_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid ip_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /ip_interfaces/{ip_id}/device [GET]
func (*Handler) GetIpInterfaces ¶
func (h *Handler) GetIpInterfaces(w http.ResponseWriter, r *http.Request)
List ip_interfaces @Summary List ip_interfaces @Description List ip_interfaces info @Tags ip_interfaces @ID list-ip_interfaces @Param ifindex_f query string false "url encoded SQL 'LIKE' operator pattern + special value 'isnull', 'isempty'" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param alias_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param ip_addr_f query string false "ip or containing net in CIDR notation" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} ipInterface @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /ip_interfaces [GET]
func (*Handler) GetOspfNbr ¶
func (h *Handler) GetOspfNbr(w http.ResponseWriter, r *http.Request)
Get OspfNbr @Summary Get ospf_nbr @Description Get ospf_nbr info @Tags devices @ID get-ospf_nbr @Param nbr_id path string true "nbr_id" @Success 200 {object} ospfNbr @Failure 400 {object} StatusResponse "Invalid nbr_id" @Failure 404 {object} StatusResponse "OspfNbr not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/ospf_nbrs/{nbr_id} [GET]
func (*Handler) GetOspfNbrDevice ¶
func (h *Handler) GetOspfNbrDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get OspfNbr Device @Summary Get ospf_nbr device @Description Get ospf_nbr device info @Tags devices @ID get-ospf_nbr-device @Param nbr_id path string true "nbr_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid nbr_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/ospf_nbrs/{nbr_id}/device [GET]
func (*Handler) GetOspfNbrs ¶
func (h *Handler) GetOspfNbrs(w http.ResponseWriter, r *http.Request)
List ospf_nbrs @Summary List ospf_nbrs @Description List ospf_nbrs info @Tags devices @ID list-ospf_nbrs @Param condition_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param nbr_ip_f query string false "ip or containing net in CIDR notation" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} ospfNbr @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/ospf_nbrs [GET]
func (*Handler) GetRlNbr ¶
func (h *Handler) GetRlNbr(w http.ResponseWriter, r *http.Request)
Get RlNbr @Summary Get rl_nbr @Description Get radio link neighbor info @Tags devices @ID get-rl_nbr @Param nbr_id path string true "nbr_id" @Success 200 {object} godevmandb.RlNbr @Failure 400 {object} StatusResponse "Invalid nbr_id" @Failure 404 {object} StatusResponse "Neighbor not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/rl_nbrs/{nbr_id} [GET]
func (*Handler) GetRlNbrDevice ¶
func (h *Handler) GetRlNbrDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get RlNbr Device @Summary Get rl_nbr device @Description Get rl_nbr device info @Tags devices @ID get-rl_nbr-device @Param nbr_id path string true "nbr_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid nbr_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/rl_nbrs/{nbr_id}/device [GET]
func (*Handler) GetRlNbrEntity ¶
func (h *Handler) GetRlNbrEntity(w http.ResponseWriter, r *http.Request)
Foreign key Get RlNbr Entity @Summary Get rl_nbr entity @Description Get rl_nbr entity info @Tags devices @ID get-rl_nbr-entity @Param nbr_id path string true "nbr_id" @Success 200 {object} godevmandb.Entity @Failure 400 {object} StatusResponse "Invalid nbr_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/rl_nbrs/{nbr_id}/entity [GET]
func (*Handler) GetRlNbrs ¶
func (h *Handler) GetRlNbrs(w http.ResponseWriter, r *http.Request)
List rl_nbrs @Summary List rl_nbrs @Description List radio link neighbors info @Tags devices @ID list-rl_nbrs @Param nbr_sysname_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.RlNbr @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/rl_nbrs [GET]
func (*Handler) GetSite ¶
func (h *Handler) GetSite(w http.ResponseWriter, r *http.Request)
Get Site @Summary Get site @Description Get site info @Tags sites @ID get-site @Param site_id path string true "site_id" @Success 200 {object} godevmandb.Site @Failure 400 {object} StatusResponse "Invalid site_id" @Failure 404 {object} StatusResponse "Site not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/{site_id} [GET]
func (*Handler) GetSiteConCountry ¶
func (h *Handler) GetSiteConCountry(w http.ResponseWriter, r *http.Request)
Foreign key Get Site Country @Summary Get site country @Description Get site country info @Tags sites @ID get-site-country @Param site_id path string true "site_id" @Success 200 {object} godevmandb.Country @Failure 400 {object} StatusResponse "Invalid site_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/{site_id}/country [GET]
func (*Handler) GetSiteConnections ¶
func (h *Handler) GetSiteConnections(w http.ResponseWriter, r *http.Request)
Relations List Site Connections @Summary List site connections @Description List site connections info @Tags sites @ID list-site-connections @Param site_id path string true "site_id" @Success 200 {array} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid site_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/{site_id}/connections [GET]
func (*Handler) GetSiteDevices ¶
func (h *Handler) GetSiteDevices(w http.ResponseWriter, r *http.Request)
Relations List Site Devices @Summary List site devices @Description List site devices info @Tags sites @ID list-site-devices @Param site_id path string true "site_id" @Success 200 {array} device @Failure 400 {object} StatusResponse "Invalid site_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/{site_id}/devices [GET]
func (*Handler) GetSites ¶
func (h *Handler) GetSites(w http.ResponseWriter, r *http.Request)
List sites @Summary List sites @Description List site info @Tags sites @ID list-sites @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isempty'" @Param uident_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param area_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param addr_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param ext_name_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param ext_id_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.Site @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites [GET]
func (*Handler) GetSnmpCredential ¶
func (h *Handler) GetSnmpCredential(w http.ResponseWriter, r *http.Request)
Get SnmpCredential @Summary Get snmp_credential @Description Get snmp credential info @Tags config @ID get-snmp_credential @Param snmp_cred_id path string true "snmp_cred_id" @Success 200 {object} snmpCredential @Failure 400 {object} StatusResponse "Invalid snmp_cred_id" @Failure 404 {object} StatusResponse "Credential not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/snmp_credentials/{snmp_cred_id} [GET]
func (*Handler) GetSnmpCredentials ¶
func (h *Handler) GetSnmpCredentials(w http.ResponseWriter, r *http.Request)
List SnmpCredentials @Summary List snmp_credentials @Description List snmp credentials info @Tags config @ID list-snmp_credentials @Param label_f query string false "url encoded SQL 'LIKE' operator pattern" @Param variant_f query string false "SQL '=' operator value" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} snmpCredential @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/snmp_credentials [GET]
func (*Handler) GetSnmpCredentialsMainDevices ¶
func (h *Handler) GetSnmpCredentialsMainDevices(w http.ResponseWriter, r *http.Request)
Relations List SnmpCredential Main Devices @Summary List snmp_credential main devices @Description List snmp credential main devices info @Tags config @ID list-snmp-credential-devices @Param snmp_cred_id path string true "snmp_cred_id" @Success 200 {array} device @Failure 400 {object} StatusResponse "Invalid snmp_cred_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/snmp_credentials/{snmp_cred_id}/main_devices [GET]
func (*Handler) GetSnmpCredentialsRoDevices ¶
func (h *Handler) GetSnmpCredentialsRoDevices(w http.ResponseWriter, r *http.Request)
Relations List SnmpCredential Read Only Devices @Summary List snmp_credential ro devices @Description List snmp credential read only devices info @Tags config @ID list-snmp-credential-ro-devices @Param snmp_cred_id path string true "snmp_cred_id" @Success 200 {array} device @Failure 400 {object} StatusResponse "Invalid snmp_cred_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/snmp_credentials/{snmp_cred_id}/ro_devices [GET]
func (*Handler) GetSubinterface ¶
func (h *Handler) GetSubinterface(w http.ResponseWriter, r *http.Request)
Get Subinterface @Summary Get interface @Description Get subinterface info @Tags interfaces @ID get-subinterface @Param sif_id path string true "sif_id" @Success 200 {object} subinterface @Failure 400 {object} StatusResponse "Invalid sif_id" @Failure 404 {object} StatusResponse "Subinterface not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/subinterfaces/{sif_id} [GET]
func (*Handler) GetSubinterfaceInterface ¶
func (h *Handler) GetSubinterfaceInterface(w http.ResponseWriter, r *http.Request)
Foreign key Get Subinterface Interface @Summary Get subinterface interface @Description Get subinterface interface info @Tags interfaces @ID get-subinterface-interface @Param sif_id path string true "sif_id" @Success 200 {object} iface @Failure 400 {object} StatusResponse "Invalid sif_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/subinterfaces/{sif_id}/interface [GET]
func (*Handler) GetSubinterfaces ¶
func (h *Handler) GetSubinterfaces(w http.ResponseWriter, r *http.Request)
List subinterfaces @Summary List subinterfaces @Description List subinterfaces info @Tags interfaces @ID list-subinterfaces @Param ifindex_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param alias_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param oper_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param adm_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param speed_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param type_enum_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param notes_f query string false "url encoded SQL 'LIKE' operator pattern + special values 'isnull', 'isempty'" @Param mac_f query string false "SQL '=' operator value (MAC address)" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} subinterface @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/subinterfaces [GET]
func (*Handler) GetUser ¶
func (h *Handler) GetUser(w http.ResponseWriter, r *http.Request)
Get User @Summary Get user @Description Get user info @Tags users @ID get-user @Param username path string true "username" @Success 200 {object} godevmandb.User @Failure 400 {object} StatusResponse "Invalid username" @Failure 404 {object} StatusResponse "User not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/{username} [GET]
func (*Handler) GetUserAuthz ¶
func (h *Handler) GetUserAuthz(w http.ResponseWriter, r *http.Request)
Get UserAuthz @Summary Get user_authz @Description Get user_authz info @Tags users @ID get-user_authz @Param username path string true "username" @Param dom_id path string true "dom_id" @Success 200 {object} godevmandb.UserAuthz @Failure 400 {object} StatusResponse "Invalid username/dom_id" @Failure 404 {object} StatusResponse "UserAuthz not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/authzs/{username}/{dom_id} [GET]
func (*Handler) GetUserAuthzDeviceDomain ¶
func (h *Handler) GetUserAuthzDeviceDomain(w http.ResponseWriter, r *http.Request)
Foreign key Get UserAuthz DeviceDomain @Summary Get user_authz device_domain @Description Get user_authz device_domain info @Tags users @ID get-user_authz-device-domain @Param username path string true "username" @Param dom_id path string true "dom_id" @Success 200 {object} godevmandb.DeviceDomain @Failure 400 {object} StatusResponse "Invalid username/dom_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/authzs/{username}/{dom_id}/device_domain [GET]
func (*Handler) GetUserAuthzs ¶
func (h *Handler) GetUserAuthzs(w http.ResponseWriter, r *http.Request)
List user_authzs @Summary List user_authzs @Description List user_authzs info @Tags users @ID list-user_authzs @Param username_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param userlevel_le query int false "SQL '<=' operator value" @Param userlevel_ge query int false "SQL '>=' operator value" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.UserAuthz @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/authzs [GET]
func (*Handler) GetUserGraph ¶
func (h *Handler) GetUserGraph(w http.ResponseWriter, r *http.Request)
Get UserGraph @Summary Get user_graph @Description Get user graph info @Tags users @ID get-user_graph @Param graph_id path string true "graph_id" @Success 200 {object} godevmandb.UserGraph @Failure 400 {object} StatusResponse "Invalid graph_id" @Failure 404 {object} StatusResponse "Graph not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/graphs/{graph_id} [GET]
func (*Handler) GetUserGraphs ¶
func (h *Handler) GetUserGraphs(w http.ResponseWriter, r *http.Request)
List user_graphs @Summary List user_graphs @Description List user graphs info @Tags users @ID list-user_graphs @Param username_f query string false "url encoded SQL '=' operator pattern" @Param descr_f query string false "url encoded SQL '=' operator pattern" @Param shared_f query bool false "values 'true', 'false'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.UserGraph @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/graphs [GET]
func (*Handler) GetUserUserAuthzs ¶
func (h *Handler) GetUserUserAuthzs(w http.ResponseWriter, r *http.Request)
Relations List User Authzs @Summary List user authzs @Description List user authzs info @Tags users @ID list-user-authzs @Param username path string true "username" @Success 200 {array} godevmandb.UserAuthz @Failure 400 {object} StatusResponse "Invalid username" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/{username}/authzs [GET]
func (*Handler) GetUserUserGraphs ¶
func (h *Handler) GetUserUserGraphs(w http.ResponseWriter, r *http.Request)
Relations List User Graphs @Summary List user graphs @Description List user graphs info @Tags users @ID list-user-graphs @Param username path string true "username" @Success 200 {array} godevmandb.UserGraph @Failure 400 {object} StatusResponse "Invalid username" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/{username}/graphs [GET]
func (*Handler) GetUsers ¶
func (h *Handler) GetUsers(w http.ResponseWriter, r *http.Request)
List users @Summary List users @Description List users info @Tags users @ID list-users @Param username_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param userlevel_le query int false "SQL '<=' operator value" @Param userlevel_ge query int false "SQL '>=' operator value" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.User @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users [GET]
func (*Handler) GetVar ¶
func (h *Handler) GetVar(w http.ResponseWriter, r *http.Request)
Get Var @Summary Get var @Description Get var info @Tags config @ID get-var @Param descr path string true "descr" @Success 200 {object} godevmandb.Var @Failure 400 {object} StatusResponse "Invalid descr" @Failure 404 {object} StatusResponse "Var not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/vars/{descr} [GET]
func (*Handler) GetVars ¶
func (h *Handler) GetVars(w http.ResponseWriter, r *http.Request)
List vars @Summary List vars @Description List vars info @Tags config @ID list-vars @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern" @Param content_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param notes_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.Var @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/vars [GET]
func (*Handler) GetVlan ¶
func (h *Handler) GetVlan(w http.ResponseWriter, r *http.Request)
Get Vlan @Summary Get vlan @Description Get vlan info @Tags devices @ID get-vlan @Param v_id path string true "v_id" @Success 200 {object} godevmandb.Vlan @Failure 400 {object} StatusResponse "Invalid v_id" @Failure 404 {object} StatusResponse "Vlan not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/vlans/{v_id} [GET]
func (*Handler) GetVlanDevice ¶
func (h *Handler) GetVlanDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get Vlan Device @Summary Get vlan device @Description Get vlan device info @Tags devices @ID get-vlan-device @Param v_id path string true "v_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid v_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/vlans/{v_id}/device [GET]
func (*Handler) GetVlans ¶
func (h *Handler) GetVlans(w http.ResponseWriter, r *http.Request)
List vlans @Summary List vlans @Description List vlans info @Tags devices @ID list-vlans @Param vlan_f query string false "url encoded SQL 'LIKE' operator pattern" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special values 'isnull', 'isempty'" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} godevmandb.Vlan @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/vlans [GET]
func (*Handler) GetXconnect ¶
func (h *Handler) GetXconnect(w http.ResponseWriter, r *http.Request)
Get Xconnect @Summary Get xconnect @Description Get xconnect info @Tags devices @ID get-xconnect @Param xc_id path string true "xc_id" @Success 200 {object} xconnect @Failure 400 {object} StatusResponse "Invalid xc_id" @Failure 404 {object} StatusResponse "Xconnect not found" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects/{xc_id} [GET]
func (*Handler) GetXconnectDevice ¶
func (h *Handler) GetXconnectDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get Xconnect Device @Summary Get xconnect device @Description Get xconnect device info @Tags devices @ID get-xconnect-device @Param xc_id path string true "xc_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid xc_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects/{xc_id}/device [GET]
func (*Handler) GetXconnectInterface ¶
func (h *Handler) GetXconnectInterface(w http.ResponseWriter, r *http.Request)
Foreign key Get Xconnect Interface @Summary Get xconnect interface @Description Get xconnect interface info @Tags devices @ID get-xconnect-interface @Param xc_id path string true "xc_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid xc_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects/{xc_id}/interface [GET]
func (*Handler) GetXconnectPeerDevice ¶
func (h *Handler) GetXconnectPeerDevice(w http.ResponseWriter, r *http.Request)
Foreign key Get Xconnect peer Device @Summary Get xconnect peer device @Description Get xconnect peer device info @Tags devices @ID get-xconnect-peer-device @Param xc_id path string true "xc_id" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid xc_id" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects/{xc_id}/peer_device [GET]
func (*Handler) GetXconnects ¶
func (h *Handler) GetXconnects(w http.ResponseWriter, r *http.Request)
List xconnects @Summary List xconnects @Description List xconnects info @Tags devices @ID list-xconnects @Param vc_idx_f query string false "url encoded SQL '=' operator pattern" @Param vc_id_f query string false "url encoded SQL '=' operator pattern" @Param peer_ifalias_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param xname_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param descr_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param op_stat_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param op_stat_in_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param op_stat_out_f query string false "url encoded SQL 'ILIKE' operator pattern + special value 'isnull', 'isempty'" @Param peer_ip_f query string false "ip or containing net in CIDR notation" @Param limit query int false "min: 1; max: 1000; default: 100" @Param offset query int false "default: 0" @Param updated_ge query int false "record update time >= (unix timestamp in milliseconds)" @Param updated_le query int false "record update time <= (unix timestamp in milliseconds)" @Param created_ge query int false "record creation time >= (unix timestamp in milliseconds)" @Param created_le query int false "record creation time <= (unix timestamp in milliseconds)" @Success 200 {array} xconnect @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects [GET]
func (*Handler) Hello ¶
func (h *Handler) Hello(w http.ResponseWriter, r *http.Request)
Welcome @Summary Welcome @Description Welcome message @Tags information @ID root @Success 200 {object} StatusResponse @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Router / [GET]
func (*Handler) Initialize ¶
Create connection pool
func (*Handler) UpdateArchivedInterface ¶
func (h *Handler) UpdateArchivedInterface(w http.ResponseWriter, r *http.Request)
Update ArchivedInterface @Summary Update archived_interface @Description Update archived interface @Tags archived @ID update-archived_interface @Param ifa_id path string true "ifa_id" @Param Body body archivedInterface true "JSON object of archivedInterface.<br />Ignored fields:<ul><li>ifa_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} archivedInterface @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/interfaces/{ifa_id} [PUT]
func (*Handler) UpdateArchivedSubinterface ¶
func (h *Handler) UpdateArchivedSubinterface(w http.ResponseWriter, r *http.Request)
Update ArchivedSubinterface @Summary Update archived_subinterface @Description Update archived subinterface @Tags archived @ID update-archived_subinterface @Param sifa_id path string true "sifa_id" @Param Body body archivedSubinterface true "JSON object of archivedSubinterface.<br />Ignored fields:<ul><li>sifa_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} archivedSubinterface @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /archived/subinterfaces/{sifa_id} [PUT]
func (*Handler) UpdateConCapacity ¶
func (h *Handler) UpdateConCapacity(w http.ResponseWriter, r *http.Request)
Update ConCapacity @Summary Update capacity @Description Update connection capacity @Tags connections @ID update-capacity @Param con_cap_id path string true "con_cap_id" @Param Body body godevmandb.UpdateConCapacityParams true "JSON object of godevmandb.UpdateConCapacityParams.<br />Ignored fields:<ul><li>con_cap_id</li>/ul>" @Success 200 {object} godevmandb.ConCapacity @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/capacities/{con_cap_id} [PUT]
func (*Handler) UpdateConClass ¶
func (h *Handler) UpdateConClass(w http.ResponseWriter, r *http.Request)
Update ConClass @Summary Update con_class @Description Update connection class @Tags connections @ID update-con_class @Param con_class_id path string true "con_class_id" @Param Body body godevmandb.UpdateConClassParams true "JSON object of godevmandb.UpdateConClassParams.<br />Ignored fields:<ul><li>con_class_id</li></ul>" @Success 200 {object} godevmandb.ConClass @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/classes/{con_class_id} [PUT]
func (*Handler) UpdateConProvider ¶
func (h *Handler) UpdateConProvider(w http.ResponseWriter, r *http.Request)
Update ConProvider @Summary Update con_provider @Description Update connection provider @Tags connections @ID update-con_provider @Param con_prov_id path string true "con_prov_id" @Param Body body godevmandb.UpdateConProviderParams true "JSON object of godevmandb.UpdateConProviderParams.<br />Ignored fields:<ul><li>con_prov_id</li></ul>" @Success 200 {object} godevmandb.ConProvider @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/providers/{con_prov_id} [PUT]
func (*Handler) UpdateConType ¶
func (h *Handler) UpdateConType(w http.ResponseWriter, r *http.Request)
Update ConType @Summary Update con_type @Description Update connection type @Tags connections @ID update-con_type @Param con_type_id path string true "con_type_id" @Param Body body godevmandb.UpdateConTypeParams true "JSON object of godevmandb.UpdateConTypeParams.<br />Ignored fields:<ul><li>con_type_id</li></ul>" @Success 200 {object} godevmandb.ConType @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/types/{con_type_id} [PUT]
func (*Handler) UpdateConnection ¶
func (h *Handler) UpdateConnection(w http.ResponseWriter, r *http.Request)
Update Connection @Summary Update connection @Description Update connection @Tags connections @ID update-connection @Param con_id path string true "con_id" @Param Body body godevmandb.UpdateConnectionParams true "JSON object of godevmandb.UpdateConnectionParams.<br />Ignored fields:<ul><li>con_id</li></ul>" @Success 200 {object} godevmandb.Connection @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /connections/{con_id} [PUT]
func (*Handler) UpdateCountry ¶
func (h *Handler) UpdateCountry(w http.ResponseWriter, r *http.Request)
Update Country @Summary Update country @Description Update country @Tags sites @ID update-country @Param country_id path string true "country_id" @Param Body body godevmandb.UpdateCountryParams true "JSON object of godevmandb.UpdateCountryParams.<br />Ignored fields:<ul><li>country_id</li></ul>" @Success 200 {object} godevmandb.Country @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/countries/{country_id} [PUT]
func (*Handler) UpdateCredential ¶
func (h *Handler) UpdateCredential(w http.ResponseWriter, r *http.Request)
Update Credential @Summary Update credential @Description Update credential @Tags config @ID update-credential @Param cred_id path string true "cred_id" @Param Body body godevmandb.UpdateCredentialParams true "JSON object of godevmandb.UpdateCredentialParams.<br />Ignored fields:<ul><li>cred_id</li></ul>" @Success 200 {object} godevmandb.Credential @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/credentials/{cred_id} [PUT]
func (*Handler) UpdateCustomEntity ¶
func (h *Handler) UpdateCustomEntity(w http.ResponseWriter, r *http.Request)
Update CustomEntity @Summary Update customEntity @Description Update customEntity @Tags entities @ID update-customEntity @Param cent_id path string true "cent_id" @Param Body body godevmandb.UpdateCustomEntityParams true "JSON object of godevmandb.UpdateCustomEntityParams.<br />Ignored fields:<ul><li>cent_id</li></ul>" @Success 200 {object} godevmandb.CustomEntity @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/custom_entities/{cent_id} [PUT]
func (*Handler) UpdateDevice ¶
func (h *Handler) UpdateDevice(w http.ResponseWriter, r *http.Request)
Update Device @Summary Update device @Description Update device @Tags devices @ID update-device @Param dev_id path string true "dev_id" @Param Body body device true "JSON object of device.<br />Ignored fields:<ul><li>dev_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} device @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/{dev_id} [PUT]
func (*Handler) UpdateDeviceClass ¶
func (h *Handler) UpdateDeviceClass(w http.ResponseWriter, r *http.Request)
Update DeviceClass @Summary Update device_class @Description Update device class @Tags devices @ID update-device_class @Param class_id path string true "class_id" @Param Body body godevmandb.UpdateDeviceClassParams true "JSON object of godevmandb.UpdateDeviceClassParams.<br />Ignored fields:<ul><li>class_id</li></ul>" @Success 200 {object} godevmandb.DeviceClass @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/classes/{class_id} [PUT]
func (*Handler) UpdateDeviceCredential ¶
func (h *Handler) UpdateDeviceCredential(w http.ResponseWriter, r *http.Request)
Update DeviceCredential @Summary Update device_credential @Description Update device credential @Tags devices @ID update-device_credential @Param cred_id path string true "cred_id" @Param Body body godevmandb.UpdateDeviceCredentialParams true "JSON object of godevmandb.UpdateDeviceCredentialParams.<br />Ignored fields:<ul><li>cred_id</li></ul>" @Success 200 {object} godevmandb.DeviceCredential @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/credentials/{cred_id} [PUT]
func (*Handler) UpdateDeviceDomain ¶
func (h *Handler) UpdateDeviceDomain(w http.ResponseWriter, r *http.Request)
Update DeviceDomain @Summary Update device_domain @Description Update device domain @Tags devices @ID update-device_domain @Param dom_id path string true "dom_id" @Param Body body godevmandb.UpdateDeviceDomainParams true "JSON object of godevmandb.UpdateDeviceDomainParams.<br />Ignored fields:<ul><li>dom_id</li></ul>" @Success 200 {object} godevmandb.DeviceDomain @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/domains/{dom_id} [PUT]
func (*Handler) UpdateDeviceLicense ¶
func (h *Handler) UpdateDeviceLicense(w http.ResponseWriter, r *http.Request)
Update DeviceLicense @Summary Update device_license @Description Update device_license @Tags devices @ID update-device_license @Param lic_id path string true "lic_id" @Param Body body godevmandb.UpdateDeviceLicenseParams true "JSON object of godevmandb.UpdateDeviceLicenseParams.<br />Ignored fields:<ul><li>lic_id</li></ul>" @Success 200 {object} godevmandb.DeviceLicense @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/licenses/{lic_id} [PUT]
func (*Handler) UpdateDeviceType ¶
func (h *Handler) UpdateDeviceType(w http.ResponseWriter, r *http.Request)
Update DeviceType @Summary Update device_type @Description Update device type @Tags devices @ID update-device_type @Param sys_id path string true "sys_id" @Param Body body godevmandb.UpdateDeviceTypeParams true "JSON object of godevmandb.UpdateDeviceTypeParams.<br />Ignored fields:<ul><li>sys_id</li></ul>" @Success 200 {object} godevmandb.DeviceType @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/types/{sys_id} [PUT]
func (*Handler) UpdateEntity ¶
func (h *Handler) UpdateEntity(w http.ResponseWriter, r *http.Request)
Update Entity @Summary Update Entity @Description Update Entity @Tags entities @ID update-Entity @Param ent_id path string true "ent_id" @Param Body body godevmandb.UpdateEntityParams true "JSON object of godevmandb.UpdateEntityParams.<br />Ignored fields:<ul><li>ent_id</li></ul>" @Success 200 {object} godevmandb.Entity @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /entities/{ent_id} [PUT]
func (*Handler) UpdateIntBwStat ¶
func (h *Handler) UpdateIntBwStat(w http.ResponseWriter, r *http.Request)
Update IntBwStat @Summary Update IntBwStat @Description Update IntBwStat @Tags interfaces @ID update-int_bw_stat @Param bw_id path string true "bw_id" @Param Body body godevmandb.UpdateIntBwStatParams true "JSON object of godevmandb.UpdateIntBwStatParams.<br />Ignored fields:<ul><li>bw_id</li></ul>" @Success 200 {object} godevmandb.IntBwStat @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/bw_stats/{bw_id} [PUT]
func (*Handler) UpdateInterface ¶
func (h *Handler) UpdateInterface(w http.ResponseWriter, r *http.Request)
Update Interface @Summary Update interface @Description Update interface @Tags interfaces @ID update-interface @Param if_id path string true "if_id" @Param Body body iface true "JSON object of iface.<br />Ignored fields:<ul><li>if_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} iface @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/{if_id} [PUT]
func (*Handler) UpdateIpInterface ¶
func (h *Handler) UpdateIpInterface(w http.ResponseWriter, r *http.Request)
Update IpInterface @Summary Update ip_interface @Description Update ip_interface @Tags ip_interfaces @ID update-ip_interface @Param ip_id path string true "ip_id" @Param Body body ipInterface true "JSON object of ipInterface.<br />Ignored fields:<ul><li>ip_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} ipInterface @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /ip_interfaces/{ip_id} [PUT]
func (*Handler) UpdateOspfNbr ¶
func (h *Handler) UpdateOspfNbr(w http.ResponseWriter, r *http.Request)
Update OspfNbr @Summary Update ospf_nbr @Description Update ospf_nbr @Tags devices @ID update-ospf_nbr @Param nbr_id path string true "nbr_id" @Param Body body ospfNbr true "JSON object of ospfNbr.<br />Ignored fields:<ul><li>nbr_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} ospfNbr @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/ospf_nbrs/{nbr_id} [PUT]
func (*Handler) UpdateRlNbr ¶
func (h *Handler) UpdateRlNbr(w http.ResponseWriter, r *http.Request)
Update RlNbr @Summary Update rl_nbr @Description Update radio link neighbor @Tags devices @ID update-rl_nbr @Param nbr_id path string true "nbr_id" @Param Body body godevmandb.UpdateRlNbrParams true "JSON object of godevmandb.UpdateRlNbrParams.<br />Ignored fields:<ul><li>nbr_id</li></ul>" @Success 200 {object} godevmandb.RlNbr @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/rl_nbrs/{nbr_id} [PUT]
func (*Handler) UpdateSite ¶
func (h *Handler) UpdateSite(w http.ResponseWriter, r *http.Request)
Update Site @Summary Update site @Description Update site @Tags sites @ID update-site @Param site_id path string true "site_id" @Param Body body godevmandb.UpdateSiteParams true "JSON object of godevmandb.UpdateSiteParams.<br />Ignored fields:<ul><li>site_id</li></ul>" @Success 200 {object} godevmandb.Site @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /sites/{site_id} [PUT]
func (*Handler) UpdateSnmpCredential ¶
func (h *Handler) UpdateSnmpCredential(w http.ResponseWriter, r *http.Request)
Update SnmpCredential @Summary Update snmp_credential @Description Update snmp credential @Tags config @ID update-snmp_credential @Param snmp_cred_id path string true "snmp_cred_id" @Param Body body snmpCredential true "JSON object of credential.<br />Ignored fields:<ul><li>snmp_cred_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} snmpCredential @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/snmp_credentials/{snmp_cred_id} [PUT]
func (*Handler) UpdateSubinterface ¶
func (h *Handler) UpdateSubinterface(w http.ResponseWriter, r *http.Request)
Update Subinterface @Summary Update subinterface @Description Update subinterface @Tags interfaces @ID update-subinterface @Param sif_id path string true "sif_id" @Param Body body subinterface true "JSON object of subinterface.<br />Ignored fields:<ul><li>sif_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} subinterface @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /interfaces/subinterfaces/{sif_id} [PUT]
func (*Handler) UpdateUser ¶
func (h *Handler) UpdateUser(w http.ResponseWriter, r *http.Request)
Update User @Summary Update user @Description Update user @Tags users @ID update-user @Param username path string true "username" @Param Body body godevmandb.UpdateUserParams true "JSON object of godevmandb.UpdateUserParams.<br />Ignored fields:<ul><li>username</li></ul>" @Success 200 {object} godevmandb.User @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/{username} [PUT]
func (*Handler) UpdateUserAuthz ¶
func (h *Handler) UpdateUserAuthz(w http.ResponseWriter, r *http.Request)
Update UserAuthz @Summary Update user_authz @Description Update user_authz @Tags users @ID update-user_authz @Param username path string true "username" @Param dom_id path string true "dom_id" @Param Body body godevmandb.UpdateUserAuthzParams true "JSON object of godevmandb.UpdateUserAuthzParams.<br />Ignored fields:<ul><li>username</li><li>dom_id</li></ul>" @Success 200 {object} godevmandb.UserAuthz @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/authzs/{username}/{dom_id} [PUT]
func (*Handler) UpdateUserGraph ¶
func (h *Handler) UpdateUserGraph(w http.ResponseWriter, r *http.Request)
Update UserGraph @Summary Update user_graph @Description Update user graph @Tags users @ID update-user_graph @Param graph_id path string true "graph_id" @Param Body body godevmandb.UpdateUserGraphParams true "JSON object of godevmandb.UpdateUserGraphParams.<br />Ignored fields:<ul><li>graph_id</li></ul>" @Success 200 {object} godevmandb.UserGraph @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /users/graphs/{graph_id} [PUT]
func (*Handler) UpdateVar ¶
func (h *Handler) UpdateVar(w http.ResponseWriter, r *http.Request)
Update Var @Summary Update var @Description Update var @Tags config @ID update-var @Param descr path string true "descr" @Param Body body godevmandb.UpdateVarParams true "JSON object of godevmandb.UpdateVarParams.<br />Ignored fields:<ul><li>descr</li></ul>" @Success 200 {object} godevmandb.Var @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /config/vars/{descr} [PUT]
func (*Handler) UpdateVlan ¶
func (h *Handler) UpdateVlan(w http.ResponseWriter, r *http.Request)
Update Vlan @Summary Update vlan @Description Update vlan @Tags devices @ID update-vlan @Param v_id path string true "v_id" @Param Body body godevmandb.UpdateVlanParams true "JSON object of godevmandb.UpdateVlanParams.<br />Ignored fields:<ul><li>v_id</li></ul>" @Success 200 {object} godevmandb.Vlan @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failde DB transaction" @Router /devices/vlans/{v_id} [PUT]
func (*Handler) UpdateXconnect ¶
func (h *Handler) UpdateXconnect(w http.ResponseWriter, r *http.Request)
Update Xconnect @Summary Update xconnect @Description Update xconnect @Tags devices @ID update-xconnect @Param xc_id path string true "xc_id" @Param Body body xconnect true "JSON object of xconnect.<br />Ignored fields:<ul><li>xc_id</li><li>updated_on</li><li>created_on</li></ul>" @Success 200 {object} xconnect @Failure 400 {object} StatusResponse "Invalid request" @Failure 404 {object} StatusResponse "Invalid route error" @Failure 405 {object} StatusResponse "Invalid method error" @Failure 500 {object} StatusResponse "Failed DB transaction" @Router /devices/xconnects/{xc_id} [PUT]
type StatusResponse ¶
Source Files ¶
- archived_interfaces.go
- archived_subinterfaces.go
- con_capacities.go
- con_classes.go
- con_providers.go
- con_types.go
- connections.go
- countries.go
- credentials.go
- custom_entities.go
- device_classes.go
- device_credentials.go
- device_domains.go
- device_licenses.go
- device_types.go
- devices.go
- entities.go
- handlers.go
- helpers.go
- int_bw_stats.go
- interfaces.go
- ip_interfaces.go
- ospf_nbrs.go
- rl_nbrs.go
- sites.go
- snmp_credentials.go
- subinterfaces.go
- user_authzs.go
- user_graphs.go
- users.go
- vars.go
- vlans.go
- xconnects.go