Skip to content

Commit

Permalink
Merge pull request #15 from id27182/feature/fix-licensing-deactivation
Browse files Browse the repository at this point in the history
adds support for licensing deactivation
  • Loading branch information
sameesin authored Oct 7, 2021
2 parents e02e6ee + 0bb081e commit 61abf89
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ciscoasa/licensing.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,20 @@ func (c *licenseService) RegisterLicense(token string, force bool) error {
return err
}

// DeregisterLicense removes the Smart License.
func (c *licenseService) DeregisterLicense() error {
u := "/api/licensing/smart/asav/deregister"

req, err := c.newRequest("POST", u, nil)
if err != nil {
return err
}

_, err = c.do(req, nil)

return err
}

// RenewIdLicense renews the Smart License entitlement.
func (c *licenseService) RenewAuthLicense() error {
u := "/api/licensing/smart/asav/renewauth"
Expand Down

0 comments on commit 61abf89

Please sign in to comment.