Documentation ¶
Index ¶
- Constants
- type APIError
- type Client
- func (c *Client) AddEntity(parentID uint, entity Entity) (uint64, error)
- func (c *Client) Delete(objectID uint) error
- func (c *Client) Deploy(entityID uint) error
- func (c *Client) GetEntityByName(parentID uint, name, objType string) (*EntityResponse, error)
- func (c *Client) Login(username, password string) error
- func (c *Client) Logout() error
- func (c *Client) LookupParentZoneID(viewID uint, fqdn string) (uint, string, error)
- func (c *Client) LookupViewID(configName, viewName string) (uint, error)
- type Entity
- type EntityResponse
Constants ¶
const ( ConfigType = "Configuration" ViewType = "View" ZoneType = "Zone" TXTType = "TXTRecord" )
Object types.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) AddEntity ¶
AddEntity A generic method for adding configurations, DNS zones, and DNS resource records. https://docs.bluecatnetworks.com/r/Address-Manager-API-Guide/POST/v1/addEntity/9.1.0
func (*Client) Delete ¶
Delete Deletes an object using the generic delete method. https://docs.bluecatnetworks.com/r/Address-Manager-API-Guide/DELETE/v1/delete/9.1.0
func (*Client) Deploy ¶
Deploy the DNS config for the specified entity to the authoritative servers. https://docs.bluecatnetworks.com/r/Address-Manager-API-Guide/POST/v1/quickDeploy/9.1.0
func (*Client) GetEntityByName ¶
func (c *Client) GetEntityByName(parentID uint, name, objType string) (*EntityResponse, error)
GetEntityByName Returns objects from the database referenced by their database ID and with its properties fields populated. https://docs.bluecatnetworks.com/r/Address-Manager-API-Guide/GET/v1/getEntityById/9.1.0
func (*Client) Login ¶
Login Logs in as API user. Authenticates and receives a token to be used in for subsequent requests. https://docs.bluecatnetworks.com/r/Address-Manager-API-Guide/GET/v1/login/9.1.0
func (*Client) Logout ¶
Logout Logs out of the current API session. https://docs.bluecatnetworks.com/r/Address-Manager-API-Guide/GET/v1/logout/9.1.0
func (*Client) LookupParentZoneID ¶
LookupParentZoneID Return the entityId of the parent zone by recursing from the root view. Also return the simple name of the host.