mistapi

package
v0.4.107 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Package mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Index

Constants

This section is empty.

Variables

View Source
var FromFastHttpRequest = https.FromFastHttpRequest

FromFastHttpRequest creates http.Request using provided values and Closures.

View Source
var NewAndAuth = https.NewAndAuth

NewAndAuth creates a new AndAuth.

View Source
var NewAuth = https.NewAuth

NewAuth creates a new Auth.

View Source
var NewHttpConfiguration = https.NewHttpConfiguration

NewHttpConfiguration creates a new HttpConfiguration.

View Source
var NewLoggerConfiguration = logger.NewLoggerConfiguration

NewLoggerConfiguration creates a new LoggerConfiguration.

View Source
var NewOrAuth = https.NewOrAuth

NewOrAuth creates a new OrAuth.

View Source
var NewRetryConfiguration = https.NewRetryConfiguration

NewRetryConfiguration creates a new RetryConfiguration.

View Source
var NewSdkLogger = logger.NewSdkLogger

NewSdkLogger creates a new SdkLogger.

View Source
var WithBackoffFactor = https.WithBackoffFactor

WithBackoffFactor sets the BackoffFactor.

View Source
var WithExcludeRequestHeaders = logger.WithExcludeRequestHeaders

WithExcludeRequestHeaders creates a new hExcludeRequestHeaders.

View Source
var WithExcludeResponseHeaders = logger.WithExcludeResponseHeaders

WithExcludeResponseHeaders creates a new hExcludeResponseHeaders.

View Source
var WithHttpMethodsToRetry = https.WithHttpMethodsToRetry

WithHttpMethodsToRetry sets the HttpMethodsToRetry.

View Source
var WithHttpStatusCodesToRetry = https.WithHttpStatusCodesToRetry

WithHttpStatusCodesToRetry sets the HttpStatusCodesToRetry.

View Source
var WithIncludeQueryInPath = logger.WithIncludeQueryInPath

WithIncludeQueryInPath creates a new hIncludeQueryInPath.

View Source
var WithIncludeRequestHeaders = logger.WithIncludeRequestHeaders

WithIncludeRequestHeaders creates a new hIncludeRequestHeaders.

View Source
var WithIncludeResponseHeaders = logger.WithIncludeResponseHeaders

WithIncludeResponseHeaders creates a new hIncludeResponseHeaders.

View Source
var WithLevel = logger.WithLevel

WithLevel creates a new hLevel.

View Source
var WithLogger = logger.WithLogger

WithLogger creates a new hLogger.

View Source
var WithMaskSensitiveHeaders = logger.WithMaskSensitiveHeaders

WithMaskSensitiveHeaders creates a new hMaskSensitiveHeaders.

View Source
var WithMaxRetryAttempts = https.WithMaxRetryAttempts

WithMaxRetryAttempts sets the MaxRetryAttempts.

View Source
var WithMaximumRetryWaitTime = https.WithMaximumRetryWaitTime

WithMaximumRetryWaitTime sets the MaximumRetryWaitTime.

View Source
var WithRequestBody = logger.WithRequestBody

WithRequestBody creates a new hRequestBody.

View Source
var WithRequestConfiguration = logger.WithRequestConfiguration

WithRequestConfiguration creates a new hRequestConfiguration.

View Source
var WithRequestHeaders = logger.WithRequestHeaders

WithRequestHeaders creates a new hRequestHeaders.

View Source
var WithResponseBody = logger.WithResponseBody

WithResponseBody creates a new hResponseBody.

View Source
var WithResponseConfiguration = logger.WithResponseConfiguration

WithResponseConfiguration creates a new hResponseConfiguration.

View Source
var WithResponseHeaders = logger.WithResponseHeaders

WithResponseHeaders creates a new hResponseHeaders.

View Source
var WithRetryConfiguration = https.WithRetryConfiguration

WithRetryConfiguration sets the RetryConfiguration.

View Source
var WithRetryInterval = https.WithRetryInterval

WithRetryInterval sets the RetryInterval.

View Source
var WithRetryOnTimeout = https.WithRetryOnTimeout

WithRetryOnTimeout sets the RetryOnTimeout.

View Source
var WithTimeout = https.WithTimeout

WithTimeout sets the Timeout.

View Source
var WithTransport = https.WithTransport

WithTransport sets the Transport.

View Source
var WithWhitelistRequestHeaders = logger.WithWhitelistRequestHeaders

WithWhitelistRequestHeaders creates a new hWhitelistRequestHeaders.

View Source
var WithWhitelistResponseHeaders = logger.WithWhitelistResponseHeaders

WithWhitelistResponseHeaders creates a new hWhitelistResponseHeaders.

Functions

func NewBaseController

func NewBaseController(cb callBuilderFactory) *baseController

NewBaseController creates a new instance of baseController. It takes a callBuilderFactory as a parameter and returns a pointer to the baseController.

Types

type Admins

type Admins struct {
	// contains filtered or unexported fields
}

Admins represents a controller struct.

func NewAdmins

func NewAdmins(baseController baseController) *Admins

NewAdmins creates a new instance of Admins. It takes a baseController as a parameter and returns a pointer to the Admins.

func (*Admins) GetAdminRegistrationInfo

func (a *Admins) GetAdminRegistrationInfo(
	ctx context.Context,
	recaptchaFlavor *models.RecaptchaFlavorEnum) (
	models.ApiResponse[models.Recaptcha],
	error)

GetAdminRegistrationInfo takes context, recaptchaFlavor as parameters and returns an models.ApiResponse with models.Recaptcha data and an error if there was an issue with the request or response. Return the public CAPTCHA settings required for administrator registration. This public endpoint does not require authentication. Use the returned `flavor`, `required`, and `sitekey` values to render the correct CAPTCHA challenge before calling [Register New Admin]($e/Admins/registerNewAdmin).

func (*Admins) RegisterNewAdmin

func (a *Admins) RegisterNewAdmin(
	ctx context.Context,
	body *models.AdminInvite) (
	*http.Response,
	error)

RegisterNewAdmin takes context, body as parameters and returns an *Response and an error if there was an issue with the request or response. Register a new administrator account and initial organization. This public endpoint does not require authentication. Mist sends a verification email containing a link such as `/verify/register?token={token}`; use [Verify Registration]($e/Admins/verifyRegistration) to complete registration with that token. Use [Get Registration Information]($e/Admins/getAdminRegistrationInfo) before submitting this request to determine whether CAPTCHA is required, which CAPTCHA provider to render, and which public site key to use. If CAPTCHA is required, include the provider response token in `recaptcha` and the provider name in `recaptcha_flavor`.

func (*Admins) VerifyAdminInvite

func (a *Admins) VerifyAdminInvite(
	ctx context.Context,
	token string) (
	*http.Response,
	error)

VerifyAdminInvite takes context, token as parameters and returns an *Response and an error if there was an issue with the request or response. Accept an administrator invite using the invite verification token from the invite email. This public endpoint does not require authentication. After a successful verification, call [Get Self]($e/Self%20Account/getSelf) to refresh the authenticated admin profile and retrieve the newly granted privileges.

func (*Admins) VerifyRegistration

func (a *Admins) VerifyRegistration(
	ctx context.Context,
	token string) (
	models.ApiResponse[models.ResponseVerifyTokenSuccess],
	error)

VerifyRegistration takes context, token as parameters and returns an models.ApiResponse with models.ResponseVerifyTokenSuccess data and an error if there was an issue with the request or response. Verify a new administrator registration using the token from the registration email. This public endpoint does not require authentication. A successful verification creates a login session and may also apply a pending invitation; the response indicates whether an invitation could not be applied automatically.

type AdminsLogin

type AdminsLogin struct {
	// contains filtered or unexported fields
}

AdminsLogin represents a controller struct.

func NewAdminsLogin

func NewAdminsLogin(baseController baseController) *AdminsLogin

NewAdminsLogin creates a new instance of AdminsLogin. It takes a baseController as a parameter and returns a pointer to the AdminsLogin.

func (*AdminsLogin) Login

Login takes context, body as parameters and returns an models.ApiResponse with models.ResponseLoginSuccess data and an error if there was an issue with the request or response. Authenticate an administrator with email and password. A successful login creates the browser session cookies, including the `csrftoken` value used with the `X-CSRFToken` header on later API requests. When 2FA is enabled, either include the `two_factor` code in this request or submit the first factor here and complete the login with [Two Factor]($e/Admins%20Login/twoFactor).

func (*AdminsLogin) TwoFactor

func (a *AdminsLogin) TwoFactor(
	ctx context.Context,
	body *models.TwoFactorString) (
	*http.Response,
	error)

TwoFactor takes context, body as parameters and returns an *Response and an error if there was an issue with the request or response. Complete a two-factor login by submitting the 2FA code after the initial email/password step has created a pending login session.

type AdminsLoginOAuth2

type AdminsLoginOAuth2 struct {
	// contains filtered or unexported fields
}

AdminsLoginOAuth2 represents a controller struct.

func NewAdminsLoginOAuth2

func NewAdminsLoginOAuth2(baseController baseController) *AdminsLoginOAuth2

NewAdminsLoginOAuth2 creates a new instance of AdminsLoginOAuth2. It takes a baseController as a parameter and returns a pointer to the AdminsLoginOAuth2.

func (*AdminsLoginOAuth2) GetOauth2AuthorizationUrlForLogin

func (a *AdminsLoginOAuth2) GetOauth2AuthorizationUrlForLogin(
	ctx context.Context,
	provider string,
	forward *string) (
	models.ApiResponse[models.ResponseLoginOauthUrl],
	error)

GetOauth2AuthorizationUrlForLogin takes context, provider, forward as parameters and returns an models.ApiResponse with models.ResponseLoginOauthUrl data and an error if there was an issue with the request or response. Return the provider authorization URL used to start an OAuth2 login or account-linking flow. When `forward` is provided, the provider redirects back to that callback URL after authorization.

func (*AdminsLoginOAuth2) LoginOauth2

func (a *AdminsLoginOAuth2) LoginOauth2(
	ctx context.Context,
	provider string,
	body *models.CodeString) (
	*http.Response,
	error)

LoginOauth2 takes context, provider, body as parameters and returns an *Response and an error if there was an issue with the request or response. Complete an OAuth2 login by exchanging the provider authorization code for a Mist administrator session.

func (*AdminsLoginOAuth2) UnlinkOauth2Provider

func (a *AdminsLoginOAuth2) UnlinkOauth2Provider(
	ctx context.Context,
	provider string) (
	*http.Response,
	error)

UnlinkOauth2Provider takes context, provider as parameters and returns an *Response and an error if there was an issue with the request or response. Unlink the specified OAuth2 provider from the authenticated administrator account so it can no longer be used for that account's OAuth login.

type AdminsLogout

type AdminsLogout struct {
	// contains filtered or unexported fields
}

AdminsLogout represents a controller struct.

func NewAdminsLogout

func NewAdminsLogout(baseController baseController) *AdminsLogout

NewAdminsLogout creates a new instance of AdminsLogout. It takes a baseController as a parameter and returns a pointer to the AdminsLogout.

func (*AdminsLogout) Logout

Logout takes context as parameters and returns an models.ApiResponse with models.ResponseLogout data and an error if there was an issue with the request or response. End the current authenticated administrator session and invalidate the related login cookies.

type AdminsLookup

type AdminsLookup struct {
	// contains filtered or unexported fields
}

AdminsLookup represents a controller struct.

func NewAdminsLookup

func NewAdminsLookup(baseController baseController) *AdminsLookup

NewAdminsLookup creates a new instance of AdminsLookup. It takes a baseController as a parameter and returns a pointer to the AdminsLookup.

func (*AdminsLookup) Lookup

Lookup takes context, body as parameters and returns an models.ApiResponse with models.ResponseLoginLookup data and an error if there was an issue with the request or response. Check the login method for an administrator email address. This public lookup is mainly used by UI clients to determine whether the user should continue with local login or be redirected to SSO.

type AdminsRecoverPassword

type AdminsRecoverPassword struct {
	// contains filtered or unexported fields
}

AdminsRecoverPassword represents a controller struct.

func NewAdminsRecoverPassword

func NewAdminsRecoverPassword(baseController baseController) *AdminsRecoverPassword

NewAdminsRecoverPassword creates a new instance of AdminsRecoverPassword. It takes a baseController as a parameter and returns a pointer to the AdminsRecoverPassword.

func (*AdminsRecoverPassword) RecoverPassword

func (a *AdminsRecoverPassword) RecoverPassword(
	ctx context.Context,
	body *models.Recover) (
	*http.Response,
	error)

RecoverPassword takes context, body as parameters and returns an *Response and an error if there was an issue with the request or response. Start password recovery for an administrator account. This public endpoint does not require authentication. When the request is accepted, Mist sends an email containing a recovery link such as `https://manage.mist.com/verify/recover?token=:token`. If CAPTCHA is required, include the CAPTCHA response token and provider flavor in the request body.

func (*AdminsRecoverPassword) VerifyRecoverPassword added in v0.4.54

func (a *AdminsRecoverPassword) VerifyRecoverPassword(
	ctx context.Context,
	token string) (
	*http.Response,
	error)

VerifyRecoverPassword takes context, token as parameters and returns an *Response and an error if there was an issue with the request or response. Verify a password recovery token from the recovery email. This public endpoint does not require authentication. When the token is valid, the user is authenticated for the recovery flow so the client can prompt for and submit a new password.

type ApiTokenCredentials

type ApiTokenCredentials struct {
	// contains filtered or unexported fields
}

ApiTokenCredentials represents the credentials required for `apiToken` authentication.

func NewApiTokenCredentials

func NewApiTokenCredentials(authorization string) ApiTokenCredentials

NewApiTokenCredentials creates a new instance of ApiTokenCredentials with provided parameters.

func (ApiTokenCredentials) Authenticator

func (a ApiTokenCredentials) Authenticator() https.HttpInterceptor

Authenticator function returns HttpInterceptor function that provides authentication for API calls.

func (ApiTokenCredentials) Authorization

func (a ApiTokenCredentials) Authorization() string

Authorization returns the authorization associated with the ApiTokenCredentials.

func (ApiTokenCredentials) Validate

func (a ApiTokenCredentials) Validate() error

Validate function returns validation error associated with the ApiTokenCredentials.

func (ApiTokenCredentials) WithAuthorization

func (a ApiTokenCredentials) WithAuthorization(authorization string) ApiTokenCredentials

WithAuthorization sets authorization in ApiTokenCredentials.

type ClientInterface

type ClientInterface interface {
	Configuration() Configuration
	CloneWithConfiguration(options ...ConfigurationOptions) ClientInterface
	Admins() *Admins
	AdminsLogin() *AdminsLogin
	AdminsLogout() *AdminsLogout
	AdminsRecoverPassword() *AdminsRecoverPassword
	AdminsLookup() *AdminsLookup
	AdminsLoginOAuth2() *AdminsLoginOAuth2
	Installer() *Installer
	MSPs() *MSPs
	MSPsAdmins() *MSPsAdmins
	OrgsSecIntelProfiles() *OrgsSecIntelProfiles
	SitesSecIntelProfiles() *SitesSecIntelProfiles
	MSPsInventory() *MSPsInventory
	MSPsLogs() *MSPsLogs
	MSPsLicenses() *MSPsLicenses
	MSPsMarvis() *MSPsMarvis
	MSPsOrgGroups() *MSPsOrgGroups
	MSPsOrgs() *MSPsOrgs
	MSPsSLEs() *MSPsSLEs
	MSPsSSORoles() *MSPsSSORoles
	MSPsSSO() *MSPsSSO
	MSPsTickets() *MSPsTickets
	Orgs() *Orgs
	OrgsAdmins() *OrgsAdmins
	OrgsAlarms() *OrgsAlarms
	OrgsAlarmTemplates() *OrgsAlarmTemplates
	OrgsAPTemplates() *OrgsAPTemplates
	OrgsAPITokens() *OrgsAPITokens
	OrgsAssets() *OrgsAssets
	OrgsAssetFilters() *OrgsAssetFilters
	OrgsCert() *OrgsCert
	OrgsAntivirusProfiles() *OrgsAntivirusProfiles
	OrgsClientsMarvis() *OrgsClientsMarvis
	OrgsMarvisInvites() *OrgsMarvisInvites
	OrgsClientsNAC() *OrgsClientsNAC
	OrgsClientsWan() *OrgsClientsWan
	OrgsClientsWired() *OrgsClientsWired
	OrgsClientsWireless() *OrgsClientsWireless
	OrgsClientsSDK() *OrgsClientsSDK
	OrgsIntegrationCradlepoint() *OrgsIntegrationCradlepoint
	OrgsCRL() *OrgsCRL
	OrgsDeviceProfiles() *OrgsDeviceProfiles
	OrgsDevices() *OrgsDevices
	OrgsDevicesSSR() *OrgsDevicesSSR
	OrgsDevicesAOSCX() *OrgsDevicesAOSCX
	OrgsDevicesEdgeConnect() *OrgsDevicesEdgeConnect
	OrgsEVPNTopologies() *OrgsEVPNTopologies
	OrgsIntegrationJuniper() *OrgsIntegrationJuniper
	OrgsDevicesOthers() *OrgsDevicesOthers
	OrgsIntegrationZscaler() *OrgsIntegrationZscaler
	OrgsSCEP() *OrgsSCEP
	OrgsGatewayTemplates() *OrgsGatewayTemplates
	OrgsGuests() *OrgsGuests
	OrgsIDPProfiles() *OrgsIDPProfiles
	OrgsInventory() *OrgsInventory
	OrgsIntegrationJSE() *OrgsIntegrationJSE
	OrgsAdvancedAntiMalwareProfiles() *OrgsAdvancedAntiMalwareProfiles
	OrgsIntegrationSkyATP() *OrgsIntegrationSkyATP
	OrgsJSI() *OrgsJSI
	OrgsLicenses() *OrgsLicenses
	OrgsLinkedApplications() *OrgsLinkedApplications
	OrgsLogs() *OrgsLogs
	OrgsMarvis() *OrgsMarvis
	OrgsMaps() *OrgsMaps
	OrgsMxClusters() *OrgsMxClusters
	OrgsMxEdges() *OrgsMxEdges
	OrgsMxTunnels() *OrgsMxTunnels
	OrgsNACIDP() *OrgsNACIDP
	SitesNACFingerprints() *SitesNACFingerprints
	OrgsNACTags() *OrgsNACTags
	OrgsNACPortals() *OrgsNACPortals
	OrgsNACCRL() *OrgsNACCRL
	OrgsStats() *OrgsStats
	OrgsStatsAssets() *OrgsStatsAssets
	OrgsStatsBGPPeers() *OrgsStatsBGPPeers
	OrgsStatsDevices() *OrgsStatsDevices
	OrgsStatsMarvisClients() *OrgsStatsMarvisClients
	OrgsStatsMxEdges() *OrgsStatsMxEdges
	OrgsStatsOspf() *OrgsStatsOspf
	OrgsStatsOtherDevices() *OrgsStatsOtherDevices
	OrgsStatsPorts() *OrgsStatsPorts
	OrgsStatsSites() *OrgsStatsSites
	OrgsStatsTunnels() *OrgsStatsTunnels
	OrgsStatsVPNPeers() *OrgsStatsVPNPeers
	OrgsNACRules() *OrgsNACRules
	OrgsNetworkTemplates() *OrgsNetworkTemplates
	OrgsNetworks() *OrgsNetworks
	OrgsPremiumAnalytics() *OrgsPremiumAnalytics
	OrgsPsks() *OrgsPsks
	OrgsPskPortals() *OrgsPskPortals
	OrgsReports() *OrgsReports
	OrgsRFTemplates() *OrgsRFTemplates
	OrgsSDKInvites() *OrgsSDKInvites
	OrgsSDKTemplates() *OrgsSDKTemplates
	OrgsSecurityPolicies() *OrgsSecurityPolicies
	OrgsServices() *OrgsServices
	OrgsServicePolicies() *OrgsServicePolicies
	OrgsSetting() *OrgsSetting
	OrgsSitegroups() *OrgsSitegroups
	OrgsSites() *OrgsSites
	OrgsSiteTemplates() *OrgsSiteTemplates
	OrgsSLEs() *OrgsSLEs
	OrgsSSORoles() *OrgsSSORoles
	OrgsSSO() *OrgsSSO
	OrgsWLANTemplates() *OrgsWLANTemplates
	OrgsTickets() *OrgsTickets
	OrgsUserMACs() *OrgsUserMACs
	OrgsVars() *OrgsVars
	OrgsVPNs() *OrgsVPNs
	OrgsWebhooks() *OrgsWebhooks
	OrgsWlans() *OrgsWlans
	OrgsWxRules() *OrgsWxRules
	OrgsWxTags() *OrgsWxTags
	OrgsWxTunnels() *OrgsWxTunnels
	SitesSpectrumAnalysis() *SitesSpectrumAnalysis
	Sites() *Sites
	SitesAlarms() *SitesAlarms
	SitesAPTemplates() *SitesAPTemplates
	SitesApplications() *SitesApplications
	SitesAnomaly() *SitesAnomaly
	SitesAutoMapAssignment() *SitesAutoMapAssignment
	SitesAssetFilters() *SitesAssetFilters
	SitesAssets() *SitesAssets
	SitesBeacons() *SitesBeacons
	SitesClientsNAC() *SitesClientsNAC
	SitesClientsWan() *SitesClientsWan
	SitesClientsWired() *SitesClientsWired
	SitesClientsWireless() *SitesClientsWireless
	SitesDevices() *SitesDevices
	SitesDevicesWireless() *SitesDevicesWireless
	SitesDevicesOthers() *SitesDevicesOthers
	SitesDevicesWired() *SitesDevicesWired
	SitesDevicesWiredVirtualChassis() *SitesDevicesWiredVirtualChassis
	SitesDevicesWANCluster() *SitesDevicesWANCluster
	SitesDeviceProfiles() *SitesDeviceProfiles
	OrgsEvents() *OrgsEvents
	SitesEvents() *SitesEvents
	SitesEVPNTopologies() *SitesEVPNTopologies
	SitesGatewayTemplates() *SitesGatewayTemplates
	SitesIDPProfiles() *SitesIDPProfiles
	SitesAdvancedAntiMalwareProfiles() *SitesAdvancedAntiMalwareProfiles
	SitesAntivirusProfiles() *SitesAntivirusProfiles
	SitesGuests() *SitesGuests
	SitesInsights() *SitesInsights
	SitesJSE() *SitesJSE
	SitesLicenses() *SitesLicenses
	SitesLocation() *SitesLocation
	SitesMaps() *SitesMaps
	SitesMapsAutoPlacement() *SitesMapsAutoPlacement
	SitesMapsAutoZone() *SitesMapsAutoZone
	SitesMapStacks() *SitesMapStacks
	SitesMarvisConfigs() *SitesMarvisConfigs
	SitesMxEdges() *SitesMxEdges
	SitesNetworkTemplates() *SitesNetworkTemplates
	SitesNetworks() *SitesNetworks
	SitesPsks() *SitesPsks
	SitesRFTemplates() *SitesRFTemplates
	SitesRfdiags() *SitesRfdiags
	SitesRogues() *SitesRogues
	SitesRRM() *SitesRRM
	SitesRSSIZones() *SitesRSSIZones
	SitesServices() *SitesServices
	SitesServicePolicies() *SitesServicePolicies
	SitesSetting() *SitesSetting
	SitesSiteTemplates() *SitesSiteTemplates
	SitesSkyatp() *SitesSkyatp
	SitesSLEs() *SitesSLEs
	SitesSyntheticTests() *SitesSyntheticTests
	SitesUISettings() *SitesUISettings
	OrgsUISettings() *OrgsUISettings
	SitesVBeacons() *SitesVBeacons
	SitesVPNs() *SitesVPNs
	SitesWANUsages() *SitesWANUsages
	SitesWebhooks() *SitesWebhooks
	SitesWlans() *SitesWlans
	SitesWxRules() *SitesWxRules
	SitesWxTags() *SitesWxTags
	SitesWxTunnels() *SitesWxTunnels
	SitesZones() *SitesZones
	SitesStats() *SitesStats
	SitesStatsApps() *SitesStatsApps
	SitesStatsAssets() *SitesStatsAssets
	SitesStatsBeacons() *SitesStatsBeacons
	SitesStatsBGPPeers() *SitesStatsBGPPeers
	SitesStatsCalls() *SitesStatsCalls
	SitesStatsClientsWireless() *SitesStatsClientsWireless
	SitesStatsClientsSDK() *SitesStatsClientsSDK
	SitesStatsDevices() *SitesStatsDevices
	SitesStatsMxEdges() *SitesStatsMxEdges
	SitesStatsOspf() *SitesStatsOspf
	SitesStatsPorts() *SitesStatsPorts
	SitesStatsWxRules() *SitesStatsWxRules
	SitesStatsZones() *SitesStatsZones
	SitesStatsDiscoveredSwitches() *SitesStatsDiscoveredSwitches
	SitesStatsIoTEndpoints() *SitesStatsIoTEndpoints
	ConstantsDefinitions() *ConstantsDefinitions
	ConstantsEvents() *ConstantsEvents
	ConstantsModels() *ConstantsModels
	SelfAccount() *SelfAccount
	SelfAPIToken() *SelfAPIToken
	SelfOAuth2() *SelfOAuth2
	SelfMFA() *SelfMFA
	SelfAlarms() *SelfAlarms
	SelfAuditLogs() *SelfAuditLogs
	UtilitiesCommon() *UtilitiesCommon
	UtilitiesWAN() *UtilitiesWAN
	UtilitiesLAN() *UtilitiesLAN
	UtilitiesWiFi() *UtilitiesWiFi
	UtilitiesPCAPs() *UtilitiesPCAPs
	UtilitiesLocation() *UtilitiesLocation
	UtilitiesMxEdge() *UtilitiesMxEdge
	UtilitiesUpgrade() *UtilitiesUpgrade
	UserAgent() *string
}

Client is an interface representing the main client for accessing configuration and controllers.

func NewClient

func NewClient(configuration Configuration) ClientInterface

NewClient is the constructor for creating a new client instance. It takes a Configuration object as a parameter and returns the Client interface.

type Configuration

type Configuration struct {
	// contains filtered or unexported fields
}

Configuration holds configuration settings.

func CreateConfiguration

func CreateConfiguration(options ...ConfigurationOptions) Configuration

CreateConfiguration creates a new Configuration with the provided options.

func CreateConfigurationFromEnvironment

func CreateConfigurationFromEnvironment(options ...ConfigurationOptions) Configuration

CreateConfigurationFromEnvironment creates a new Configuration with default settings. It also configures various Configuration options.

func DefaultConfiguration

func DefaultConfiguration() Configuration

DefaultConfiguration returns the default Configuration.

func (Configuration) Accept added in v0.4.74

func (c Configuration) Accept() string

Accept returns the accept from the Configuration.

func (Configuration) ApiTokenCredentials

func (c Configuration) ApiTokenCredentials() ApiTokenCredentials

ApiTokenCredentials returns the apiTokenCredentials from the Configuration.

func (Configuration) CsrfTokenCredentials

func (c Configuration) CsrfTokenCredentials() CsrfTokenCredentials

CsrfTokenCredentials returns the csrfTokenCredentials from the Configuration.

func (Configuration) Environment

func (c Configuration) Environment() Environment

Environment returns the environment from the Configuration.

func (Configuration) HttpConfiguration

func (c Configuration) HttpConfiguration() HttpConfiguration

HttpConfiguration returns the httpConfiguration from the Configuration.

type ConfigurationOptions

type ConfigurationOptions func(*Configuration)

ConfigurationOptions represents a function type that can be used to apply options to the Configuration struct.

func WithAccept added in v0.4.74

func WithAccept(accept string) ConfigurationOptions

WithAccept is an option that sets the Accept in the Configuration.

func WithApiTokenCredentials

func WithApiTokenCredentials(apiTokenCredentials ApiTokenCredentials) ConfigurationOptions

WithApiTokenCredentials is an option that sets the ApiTokenCredentials in the Configuration.

func WithCsrfTokenCredentials

func WithCsrfTokenCredentials(csrfTokenCredentials CsrfTokenCredentials) ConfigurationOptions

WithCsrfTokenCredentials is an option that sets the CsrfTokenCredentials in the Configuration.

func WithEnvironment

func WithEnvironment(environment Environment) ConfigurationOptions

WithEnvironment is an option that sets the Environment in the Configuration.

func WithHttpConfiguration

func WithHttpConfiguration(httpConfiguration HttpConfiguration) ConfigurationOptions

WithHttpConfiguration is an option that sets the HttpConfiguration in the Configuration.

func WithLoggerConfiguration

func WithLoggerConfiguration(options ...LoggerOptions) ConfigurationOptions

WithLoggerConfiguration is an option that sets the LoggerConfiguration in the Configuration.

type ConstantsDefinitions

type ConstantsDefinitions struct {
	// contains filtered or unexported fields
}

ConstantsDefinitions represents a controller struct.

func NewConstantsDefinitions

func NewConstantsDefinitions(baseController baseController) *ConstantsDefinitions

NewConstantsDefinitions creates a new instance of ConstantsDefinitions. It takes a baseController as a parameter and returns a pointer to the ConstantsDefinitions.

func (*ConstantsDefinitions) ListApChannels added in v0.3.7

func (c *ConstantsDefinitions) ListApChannels(
	ctx context.Context,
	countryCode *string) (
	models.ApiResponse[models.ConstApChannel],
	error)

ListApChannels takes context, countryCode as parameters and returns an models.ApiResponse with models.ConstApChannel data and an error if there was an issue with the request or response. Return supported AP radio channels for the requested country code, based on the regulatory domain used by Mist AP configuration.

func (*ConstantsDefinitions) ListApLEslVersions added in v0.4.74

ListApLEslVersions takes context as parameters and returns an models.ApiResponse with []models.ConstApEslVersion data and an error if there was an issue with the request or response. Return Electronic Shelf Label (ESL) firmware versions available per AP model.

func (*ConstantsDefinitions) ListApLedDefinition

func (c *ConstantsDefinitions) ListApLedDefinition(ctx context.Context) (
	models.ApiResponse[[]models.ConstApLed],
	error)

ListApLedDefinition takes context as parameters and returns an models.ApiResponse with []models.ConstApLed data and an error if there was an issue with the request or response. Return AP LED status definitions, including the values used to describe LED behavior and the corresponding `error_code` value.

func (*ConstantsDefinitions) ListAppCategoryDefinitions

ListAppCategoryDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstAppCategoryDefinition data and an error if there was an issue with the request or response. Return supported application categories used for application identification, traffic classification, and policy matching.

func (*ConstantsDefinitions) ListAppSubCategoryDefinitions

func (c *ConstantsDefinitions) ListAppSubCategoryDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstAppSubcategoryDefinition],
	error)

ListAppSubCategoryDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstAppSubcategoryDefinition data and an error if there was an issue with the request or response. Return supported application subcategories used for application identification, traffic classification, and policy matching.

func (*ConstantsDefinitions) ListApplications added in v0.2.36

ListApplications takes context as parameters and returns an models.ApiResponse with []models.ConstApplicationDefinition data and an error if there was an issue with the request or response. Return applications recognized by Juniper Mist devices for traffic classification and application analytics.

func (*ConstantsDefinitions) ListCountryCodes added in v0.2.36

func (c *ConstantsDefinitions) ListCountryCodes(
	ctx context.Context,
	extend *bool) (
	models.ApiResponse[[]models.ConstCountry],
	error)

ListCountryCodes takes context, extend as parameters and returns an models.ApiResponse with []models.ConstCountry data and an error if there was an issue with the request or response. Return supported country codes for Mist configuration. Set `extend=true` to include additional country codes when available.

func (*ConstantsDefinitions) ListFingerprintTypes added in v0.4.54

ListFingerprintTypes takes context as parameters and returns an models.ApiResponse with models.ConstFingerprintTypes data and an error if there was an issue with the request or response. Return supported client fingerprint attribute values (`family`, `model`, `mfg`, and `os_type`) that can be used in [Mist NAC Rules]($h/Orgs%20NAC%20Rules/_overview) `matching` conditions.

func (*ConstantsDefinitions) ListGatewayApplications added in v0.2.36

ListGatewayApplications takes context as parameters and returns an models.ApiResponse with []models.ConstGatewayApplicationsDefinition data and an error if there was an issue with the request or response. Return applications recognized by Mist gateways for traffic classification.

func (*ConstantsDefinitions) ListInsightMetrics added in v0.3.7

ListInsightMetrics takes context as parameters and returns an models.ApiResponse with map[string]models.ConstInsightMetricsProperty data and an error if there was an issue with the request or response. Return supported insight metric names and metadata used by insight and SLE APIs.

func (*ConstantsDefinitions) ListLicenseTypes added in v0.4.69

ListLicenseTypes takes context as parameters and returns an models.ApiResponse with []models.ConstLicenseType data and an error if there was an issue with the request or response. Return Mist license type definitions used by inventory and subscription APIs.

func (*ConstantsDefinitions) ListMarvisClientEventsDefinitions added in v0.4.107

func (c *ConstantsDefinitions) ListMarvisClientEventsDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstMarvisclientEvent],
	error)

ListMarvisClientEventsDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstMarvisclientEvent data and an error if there was an issue with the request or response. Return Marvis Client event type definitions used by the Marvis Client event search and count APIs.

func (*ConstantsDefinitions) ListMarvisClientVersions added in v0.4.0

ListMarvisClientVersions takes context as parameters and returns an models.ApiResponse with []models.ConstMarvisClientVersion data and an error if there was an issue with the request or response. Return available Marvis Client application versions for tracking or managing Marvis Client deployments.

func (*ConstantsDefinitions) ListSiteLanguages added in v0.3.7

ListSiteLanguages takes context as parameters and returns an models.ApiResponse with []models.ConstLanguage data and an error if there was an issue with the request or response. Return supported language codes for localized Mist configuration and user-facing portals.

func (*ConstantsDefinitions) ListStates added in v0.3.17

func (c *ConstantsDefinitions) ListStates(
	ctx context.Context,
	countryCode string) (
	models.ApiResponse[[]models.ConstState],
	error)

ListStates takes context, countryCode as parameters and returns an models.ApiResponse with []models.ConstState data and an error if there was an issue with the request or response. Return ISO state or province codes for the supplied country code.

func (*ConstantsDefinitions) ListTrafficTypes added in v0.2.36

ListTrafficTypes takes context as parameters and returns an models.ApiResponse with []models.ConstTrafficType data and an error if there was an issue with the request or response. Return traffic type definitions used to classify recognized network traffic.

func (*ConstantsDefinitions) ListWebhookTopics added in v0.4.0

ListWebhookTopics takes context as parameters and returns an models.ApiResponse with []models.ConstWebhookTopic data and an error if there was an issue with the request or response. Return webhook topic definitions that can be subscribed to in webhook configuration.

type ConstantsEvents

type ConstantsEvents struct {
	// contains filtered or unexported fields
}

ConstantsEvents represents a controller struct.

func NewConstantsEvents

func NewConstantsEvents(baseController baseController) *ConstantsEvents

NewConstantsEvents creates a new instance of ConstantsEvents. It takes a baseController as a parameter and returns a pointer to the ConstantsEvents.

func (*ConstantsEvents) ListAlarmDefinitions added in v0.2.36

func (c *ConstantsEvents) ListAlarmDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstAlarmDefinition],
	error)

ListAlarmDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstAlarmDefinition data and an error if there was an issue with the request or response. Return alarm type definitions used by alarm search results, alarm templates, and the `alarm` webhook topic. The `example` field shows representative webhook payload content. HA cluster node names are returned in the `node` field, when applicable.

func (*ConstantsEvents) ListClientEventsDefinitions

func (c *ConstantsEvents) ListClientEventsDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstEvent],
	error)

ListClientEventsDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstEvent data and an error if there was an issue with the request or response. Return client event definitions used by client event search and count APIs, including event keys and metadata.

func (*ConstantsEvents) ListDeviceEventsDefinitions

func (c *ConstantsEvents) ListDeviceEventsDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstEvent],
	error)

ListDeviceEventsDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstEvent data and an error if there was an issue with the request or response. Return device event definitions used by device event search and count APIs and the `device-events` webhook topic, including event keys and metadata.

func (*ConstantsEvents) ListMxEdgeEventsDefinitions

func (c *ConstantsEvents) ListMxEdgeEventsDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstEvent],
	error)

ListMxEdgeEventsDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstEvent data and an error if there was an issue with the request or response. Return Mist Edge event definitions used by Mist Edge event search and count APIs, and `mexedge-events` webhook topic.

func (*ConstantsEvents) ListNacEventsDefinitions

func (c *ConstantsEvents) ListNacEventsDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstNacEvent],
	error)

ListNacEventsDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstNacEvent data and an error if there was an issue with the request or response. Return NAC client event definitions used by NAC client event search and count APIs, and `nac-events` webhook topic.

func (*ConstantsEvents) ListOtherDeviceEventsDefinitions

func (c *ConstantsEvents) ListOtherDeviceEventsDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstEvent],
	error)

ListOtherDeviceEventsDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstEvent data and an error if there was an issue with the request or response. Return event definitions for other or third-party devices managed or monitored by Mist.

func (*ConstantsEvents) ListSystemEventsDefinitions

func (c *ConstantsEvents) ListSystemEventsDefinitions(ctx context.Context) (
	models.ApiResponse[[]models.ConstEvent],
	error)

ListSystemEventsDefinitions takes context as parameters and returns an models.ApiResponse with []models.ConstEvent data and an error if there was an issue with the request or response. Return system event definitions used by system event search APIs.

type ConstantsModels

type ConstantsModels struct {
	// contains filtered or unexported fields
}

ConstantsModels represents a controller struct.

func NewConstantsModels

func NewConstantsModels(baseController baseController) *ConstantsModels

NewConstantsModels creates a new instance of ConstantsModels. It takes a baseController as a parameter and returns a pointer to the ConstantsModels.

func (*ConstantsModels) GetGatewayDefaultConfig added in v0.3.7

func (c *ConstantsModels) GetGatewayDefaultConfig(
	ctx context.Context,
	model string,
	ha *string) (
	models.ApiResponse[interface{}],
	error)

GetGatewayDefaultConfig takes context, model, ha as parameters and returns an models.ApiResponse with interface{} data and an error if there was an issue with the request or response. Generate the default gateway configuration for the requested model and HA mode.

func (*ConstantsModels) ListDeviceModels

ListDeviceModels takes context as parameters and returns an models.ApiResponse with []models.ConstDeviceModel data and an error if there was an issue with the request or response. Return AP, Switch and Gateway device models supported by Mist, including their features and capabilities.

func (*ConstantsModels) ListMxEdgeModels

ListMxEdgeModels takes context as parameters and returns an models.ApiResponse with []models.ConstMxedgeModel data and an error if there was an issue with the request or response. Return Mist Edge models supported by Mist, including their capabilities.

func (*ConstantsModels) ListSupportedOtherDeviceModels

func (c *ConstantsModels) ListSupportedOtherDeviceModels(ctx context.Context) (
	models.ApiResponse[[]models.ConstOtherDeviceModel],
	error)

ListSupportedOtherDeviceModels takes context as parameters and returns an models.ApiResponse with []models.ConstOtherDeviceModel data and an error if there was an issue with the request or response. Return supported models for other or third-party devices.

type CsrfTokenCredentials

type CsrfTokenCredentials struct {
	// contains filtered or unexported fields
}

CsrfTokenCredentials represents the credentials required for `csrfToken` authentication.

func NewCsrfTokenCredentials

func NewCsrfTokenCredentials(xCSRFToken string) CsrfTokenCredentials

NewCsrfTokenCredentials creates a new instance of CsrfTokenCredentials with provided parameters.

func (CsrfTokenCredentials) Authenticator

func (c CsrfTokenCredentials) Authenticator() https.HttpInterceptor

Authenticator function returns HttpInterceptor function that provides authentication for API calls.

func (CsrfTokenCredentials) Validate

func (c CsrfTokenCredentials) Validate() error

Validate function returns validation error associated with the CsrfTokenCredentials.

func (CsrfTokenCredentials) WithXCSRFToken

func (c CsrfTokenCredentials) WithXCSRFToken(xCSRFToken string) CsrfTokenCredentials

WithXCSRFToken sets xCSRFToken in CsrfTokenCredentials.

func (CsrfTokenCredentials) XCSRFToken

func (c CsrfTokenCredentials) XCSRFToken() string

XCSRFToken returns the xCSRFToken associated with the CsrfTokenCredentials.

type Environment

type Environment string

Environment represents available environments.

const (
	MIST_GLOBAL_01 Environment = "Mist Global 01"
	MIST_GLOBAL_02 Environment = "Mist Global 02"
	MIST_GLOBAL_03 Environment = "Mist Global 03"
	MIST_GLOBAL_04 Environment = "Mist Global 04"
	MIST_GLOBAL_05 Environment = "Mist Global 05"
	MIST_EMEA_01   Environment = "Mist EMEA 01"
	MIST_EMEA_02   Environment = "Mist EMEA 02"
	MIST_EMEA_03   Environment = "Mist EMEA 03"
	MIST_EMEA_04   Environment = "Mist EMEA 04"
	MIST_APAC_01   Environment = "Mist APAC 01"
	AWS_STAGING    Environment = "AWS Staging"
	GOV_CLOUD      Environment = "GOV CLOUD"
	MIST_APAC_02   Environment = "Mist APAC 02"
	MIST_APAC_03   Environment = "Mist APAC 03"
)

type HttpConfiguration

type HttpConfiguration = https.HttpConfiguration

HttpConfiguration holds the configuration options for the client.

func CreateHttpConfiguration

func CreateHttpConfiguration(options ...HttpConfigurationOptions) HttpConfiguration

CreateHttpConfiguration creates a new HttpConfiguration with the provided options.

func DefaultHttpConfiguration

func DefaultHttpConfiguration() HttpConfiguration

DefaultHttpConfiguration returns the default HttpConfiguration for HTTP requests. It also configures various HttpConfiguration options.

type HttpConfigurationOptions

type HttpConfigurationOptions = https.HttpConfigurationOptions

HttpConfigurationOptions is a function type that modifies the HttpConfiguration.

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

Installer represents a controller struct.

func NewInstaller

func NewInstaller(baseController baseController) *Installer

NewInstaller creates a new instance of Installer. It takes a baseController as a parameter and returns a pointer to the Installer.

func (*Installer) AddInstallerDeviceImage

func (i *Installer) AddInstallerDeviceImage(
	ctx context.Context,
	orgId uuid.UUID,
	imageName string,
	deviceMac string,
	autoDeviceprofileAssignment *bool,
	csv *models.FileWrapper,
	file *models.FileWrapper,
	json *models.MapImportJson) (
	*http.Response,
	error)

AddInstallerDeviceImage takes context, orgId, imageName, deviceMac, autoDeviceprofileAssignment, csv, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Upload an image associated with an installer-managed device using `multipart/form-data`.

func (*Installer) ClaimInstallerDevices

func (i *Installer) ClaimInstallerDevices(
	ctx context.Context,
	orgId uuid.UUID,
	body []string) (
	models.ApiResponse[models.ResponseInventory],
	error)

ClaimInstallerDevices takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseInventory data and an error if there was an issue with the request or response. Claim devices into the organization inventory by activation code through the installer workflow.

func (*Installer) CreateInstallerMap

func (i *Installer) CreateInstallerMap(
	ctx context.Context,
	orgId uuid.UUID,
	siteName string,
	mapId uuid.UUID,
	body *models.Map) (
	models.ApiResponse[models.Map],
	error)

CreateInstallerMap takes context, orgId, siteName, mapId, body as parameters and returns an models.ApiResponse with models.Map data and an error if there was an issue with the request or response. Define a map or floorplan for an installer-managed site, including metadata used for AP placement and site visualization.

func (*Installer) CreateInstallerVirtualChassis

func (i *Installer) CreateInstallerVirtualChassis(
	ctx context.Context,
	orgId uuid.UUID,
	fpc0Mac string,
	body *models.VirtualChassisConfig) (
	models.ApiResponse[models.ResponseVirtualChassisConfig],
	error)

CreateInstallerVirtualChassis takes context, orgId, fpc0Mac, body as parameters and returns an models.ApiResponse with models.ResponseVirtualChassisConfig data and an error if there was an issue with the request or response. For models (e.g. EX3400 and up) having dedicated VC ports, it is easier to form a VC by just connecting cables with the dedicated VC ports. Cloud will detect the new VC and update the inventory. In case that the user would like to choose the dedicated switch as a VC master or for EX2300-C-12P and EX2300-C-12T which doesn't have dedicated VC ports, below are procedures to automate the VC creation: 1. Power on the switch that is chosen as the VC master first. And then powering on the other member switches. 2. Claim or adopt all these switches under the same organization’s Inventory 3. Assign these switches into the same Site 4. Invoke vc command on the switch chosen to be the VC master. For EX2300-C-12P, VC ports will be created automatically. 5. Connect the cables to the VC ports for these switches 6. Wait for the VC to be formed. The Org’s inventory will be updated for the new VC.

func (*Installer) CreateOrUpdateInstallerSites

func (i *Installer) CreateOrUpdateInstallerSites(
	ctx context.Context,
	orgId uuid.UUID,
	siteName string,
	body *models.InstallerSite) (
	*http.Response,
	error)

CreateOrUpdateInstallerSites takes context, orgId, siteName, body as parameters and returns an *Response and an error if there was an issue with the request or response. Use `site_name` to create a site when it does not exist, or to update installer-editable fields on an existing site. Installers use these sites for device assignment, and grace-period rules also apply when updating an existing site.

func (*Installer) DeleteInstallerDeviceImage

func (i *Installer) DeleteInstallerDeviceImage(
	ctx context.Context,
	orgId uuid.UUID,
	imageName string,
	deviceMac string) (
	*http.Response,
	error)

DeleteInstallerDeviceImage takes context, orgId, imageName, deviceMac as parameters and returns an *Response and an error if there was an issue with the request or response. Remove a previously uploaded image associated with an installer-managed device, such as an installation photo or device placement image.

func (*Installer) DeleteInstallerMap

func (i *Installer) DeleteInstallerMap(
	ctx context.Context,
	orgId uuid.UUID,
	siteName string,
	mapId uuid.UUID) (
	*http.Response,
	error)

DeleteInstallerMap takes context, orgId, siteName, mapId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove a map or floorplan from an installer-managed site. This removes the map used for AP placement, but does not delete the site.

func (*Installer) GetInstallerDeviceVirtualChassis

func (i *Installer) GetInstallerDeviceVirtualChassis(
	ctx context.Context,
	orgId uuid.UUID,
	fpc0Mac string) (
	models.ApiResponse[models.ResponseVirtualChassisConfig],
	error)

GetInstallerDeviceVirtualChassis takes context, orgId, fpc0Mac as parameters and returns an models.ApiResponse with models.ResponseVirtualChassisConfig data and an error if there was an issue with the request or response. Return Virtual Chassis status for an installer-managed switch, including topology and member statistics. The response is a combined view of the Virtual Chassis state.

func (*Installer) ImportInstallerMap

func (i *Installer) ImportInstallerMap(
	ctx context.Context,
	orgId uuid.UUID,
	siteName string,
	autoDeviceprofileAssignment *bool,
	csv *models.FileWrapper,
	file *models.FileWrapper,
	json *models.MapImportJson) (
	models.ApiResponse[models.ResponseMapImport],
	error)

ImportInstallerMap takes context, orgId, siteName, autoDeviceprofileAssignment, csv, file, json as parameters and returns an models.ApiResponse with models.ResponseMapImport data and an error if there was an issue with the request or response. Import a site floorplan and optional placement data from multipart files. The request can include an image file, optional JSON, and optional CSV data to create the map and assign or place APs when names or MAC addresses match.

func (*Installer) ListInstallerAlarmTemplates

func (i *Installer) ListInstallerAlarmTemplates(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.InstallersItem],
	error)

ListInstallerAlarmTemplates takes context, orgId as parameters and returns an models.ApiResponse with []models.InstallersItem data and an error if there was an issue with the request or response. Return alarm templates available to installer workflows in the organization.

func (*Installer) ListInstallerDeviceProfiles

func (i *Installer) ListInstallerDeviceProfiles(
	ctx context.Context,
	orgId uuid.UUID,
	mType *models.DeviceTypeDefaultApEnum) (
	models.ApiResponse[[]models.InstallersItem],
	error)

ListInstallerDeviceProfiles takes context, orgId, mType as parameters and returns an models.ApiResponse with []models.InstallersItem data and an error if there was an issue with the request or response. Return device profiles that installers can use when provisioning recently claimed devices, optionally filtered by device type.

func (*Installer) ListInstallerListOfRecentlyClaimedDevices added in v0.4.54

func (i *Installer) ListInstallerListOfRecentlyClaimedDevices(
	ctx context.Context,
	orgId uuid.UUID,
	model *string,
	siteName *string,
	siteId *uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.InstallerDevice],
	error)

ListInstallerListOfRecentlyClaimedDevices takes context, orgId, model, siteName, siteId, limit, page as parameters and returns an models.ApiResponse with []models.InstallerDevice data and an error if there was an issue with the request or response. Return recently claimed devices visible to installer workflows, with optional filters for model, site name, or site identifier.

func (*Installer) ListInstallerMaps

func (i *Installer) ListInstallerMaps(
	ctx context.Context,
	orgId uuid.UUID,
	siteName string) (
	models.ApiResponse[[]models.Map],
	error)

ListInstallerMaps takes context, orgId, siteName as parameters and returns an models.ApiResponse with []models.Map data and an error if there was an issue with the request or response. Return maps for an installer-managed site, used for floorplan selection and AP placement during provisioning.

func (*Installer) ListInstallerRfTemplatesNames

func (i *Installer) ListInstallerRfTemplatesNames(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.InstallersItem],
	error)

ListInstallerRfTemplatesNames takes context, orgId as parameters and returns an models.ApiResponse with []models.InstallersItem data and an error if there was an issue with the request or response. Return RF template names available to installer workflows for site creation or updates.

func (*Installer) ListInstallerSiteGroups

func (i *Installer) ListInstallerSiteGroups(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.InstallersItem],
	error)

ListInstallerSiteGroups takes context, orgId as parameters and returns an models.ApiResponse with []models.InstallersItem data and an error if there was an issue with the request or response. Return site groups that installers can assign when creating or updating sites.

func (*Installer) ListInstallerSites

func (i *Installer) ListInstallerSites(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.InstallerSite],
	error)

ListInstallerSites takes context, orgId as parameters and returns an models.ApiResponse with []models.InstallerSite data and an error if there was an issue with the request or response. Return sites visible to installer workflows for device assignment and map operations.

func (*Installer) OptimizeInstallerRrm

func (i *Installer) OptimizeInstallerRrm(
	ctx context.Context,
	siteName string) (
	*http.Response,
	error)

OptimizeInstallerRrm takes context, siteName as parameters and returns an *Response and an error if there was an issue with the request or response. Trigger RF optimization after installation is complete, such as after APs have been placed on maps and powered on. This starts RRM before the next automatic optimization schedule.

func (*Installer) ProvisionInstallerDevices

func (i *Installer) ProvisionInstallerDevices(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string,
	body *models.InstallerProvisionDevice) (
	*http.Response,
	error)

ProvisionInstallerDevices takes context, orgId, deviceMac, body as parameters and returns an *Response and an error if there was an issue with the request or response. Provision or replace an installer-managed device. If replacing_mac is in the request payload, other attributes are ignored, we attempt to replace existing device (with MAC address `replacing_mac`) with the inventory device being configured. The replacement device must be in the inventory but not assigned, and the replacing_mac device must be assigned to a site, and satisfy grace period requirements. The Device replaced will become unassigned.

func (*Installer) StartInstallerLocateDevice

func (i *Installer) StartInstallerLocateDevice(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string) (
	*http.Response,
	error)

StartInstallerLocateDevice takes context, orgId, deviceMac as parameters and returns an *Response and an error if there was an issue with the request or response. Start locating an installer-managed device by blinking its LED. The locate state persists until [Stop Locating Installer Device]($e/Installer/stopInstallerLocateDevice) is called.

func (*Installer) StopInstallerLocateDevice

func (i *Installer) StopInstallerLocateDevice(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string) (
	*http.Response,
	error)

StopInstallerLocateDevice takes context, orgId, deviceMac as parameters and returns an *Response and an error if there was an issue with the request or response. Stop the locate LED state for an installer-managed device.

func (*Installer) UnassignInstallerRecentlyClaimedDevice

func (i *Installer) UnassignInstallerRecentlyClaimedDevice(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string) (
	*http.Response,
	error)

UnassignInstallerRecentlyClaimedDevice takes context, orgId, deviceMac as parameters and returns an *Response and an error if there was an issue with the request or response. Unassign a recently claimed device from its current site so it can be provisioned again through the installer workflow.

func (*Installer) UpdateInstallerMap

func (i *Installer) UpdateInstallerMap(
	ctx context.Context,
	orgId uuid.UUID,
	siteName string,
	mapId uuid.UUID,
	body *models.Map) (
	models.ApiResponse[models.Map],
	error)

UpdateInstallerMap takes context, orgId, siteName, mapId, body as parameters and returns an models.ApiResponse with models.Map data and an error if there was an issue with the request or response. Modify map or floorplan metadata for an installer-managed site, including dimensions, orientation, and placement-related settings.

func (*Installer) UpdateInstallerVirtualChassisMember

func (i *Installer) UpdateInstallerVirtualChassisMember(
	ctx context.Context,
	orgId uuid.UUID,
	fpc0Mac string,
	body *models.VirtualChassisUpdate) (
	models.ApiResponse[models.ResponseVirtualChassisConfig],
	error)

UpdateInstallerVirtualChassisMember takes context, orgId, fpc0Mac, body as parameters and returns an models.ApiResponse with models.ResponseVirtualChassisConfig data and an error if there was an issue with the request or response. The VC creation and adding member switch API will update the device’ s virtual chassis config which is applied after VC is formed to create JUNOS pre-provisioned virtual chassis configuration. ## Change to use preprovisioned VC To switch the VC to use preprovisioned VC, enable preprovisioned in virtual_chassis config. Both vc_role master and backup will be matched to routing-engine role in Junos preprovisioned VC config. In this config, fpc0 has to be the same as the mac of device_id. Use renumber if you want to replace fpc0 which involves device_id change. Notice: to configure preprovisioned VC, every member of the VC must be in the inventory. ## Add new members For models (e.g. EX4300 and up) having dedicated VC ports, it is easier to add new member switches into a VC by just connecting cables with the dedicated VC ports. Cloud will detect the new members and update the inventory. For EX2300 VC, adding new members requires to follow the procedures below: 1. Powering on the new member switches and ensuring cables are not connected to any VC ports. 2. Claim or adopt all new member switches under the VC’s organization Inventory 3. Assign all new member switches to the same Site as the VC 4. Invoke vc command to add switches to the VC. 5. Connect the cables to the VC ports for these switches 6. After a while, the Org’s Inventory shows this new switches has been added into the VC. ## Removing member switch To remove a member switch from the VC, following the procedures below: 1. Ensuring the VC is connected to the cloud first 2. Unplug the cable from the VC port of the switch 3. Waiting for the VC state (vc_state) of this switch is changed to not-present 4. Invoke update_vc with remove to remove this switch from the VC 5. The Org’s Inventory shows the switch is removed. Please notice that member ID 0 (fpc0) cannot be removed. When a VC has two switches left, unplugging the cable may result in the situation that fpc0 becomes a line card (LC). When this situation is happening, please re-plug in the cable, wait for both switches becoming present (show virtual-chassis) and then removing the cable again. ## Renumber a member switch When a member switch doesn't' work properly and needed to be replaced, the renumber API could be used. The following two types of renumber are supported: 1. Replace a non-fpc0 member switch 2. Replace fpc0. When fpc0 is replaced, PAPI device config and JUNOS config will be both updated. For renumber to work, the following procedures are needed: 1. Ensuring the VC is connected to the cloud and the state of the member switch to be replaced must be non present. 2. Adding the new member switch to the VC 3. Waiting for the VC state (vc_state) of this VC to be updated to API server 4. Invoke vc with renumber to replace the new member switch from fpc X to ## Perprovision VC members By specifying "preprovision" op, you can convert the current VC to pre-provisioned mode, update VC members as well as specify vc_ports when adding new members for device models without dedicated vc ports. Use renumber for fpc0 replacement which involves device_id change. Note: 1. vc_ports is used for adding new members and not needed if * the device model has dedicated vc ports, or * no new member is added 2. New VC members to be added should exist in the same Site as the VC Update Device’s VC config can achieve similar purpose by directly modifying current virtual_chassis config. However, it cannot fulfill requests to enabling vc_ports on new members that are yet to belong to current VC.

type Level

type Level = logger.Level

Level holds the configuration options for the client.

type LoggerConfiguration

type LoggerConfiguration = logger.LoggerConfiguration

LoggerConfiguration holds the configuration options for the client.

type LoggerInterface

type LoggerInterface = logger.LoggerInterface

LoggerInterface holds the configuration options for the client.

type LoggerOptions

type LoggerOptions = logger.LoggerOptions

LoggerOptions holds the configuration options for the client.

type MSPs

type MSPs struct {
	// contains filtered or unexported fields
}

MSPs represents a controller struct.

func NewMSPs

func NewMSPs(baseController baseController) *MSPs

NewMSPs creates a new instance of MSPs. It takes a baseController as a parameter and returns a pointer to the MSPs.

func (*MSPs) CreateMsp

func (m *MSPs) CreateMsp(
	ctx context.Context,
	body *models.Msp) (
	models.ApiResponse[models.Msp],
	error)

CreateMsp takes context, body as parameters and returns an models.ApiResponse with models.Msp data and an error if there was an issue with the request or response. Create a managed service provider account that can own organizations, organization groups, admins, licenses, and MSP-level settings.

func (*MSPs) DeleteMsp

func (m *MSPs) DeleteMsp(
	ctx context.Context,
	mspId uuid.UUID) (
	*http.Response,
	error)

DeleteMsp takes context, mspId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete the MSP account and its MSP-level organization groups and privileges. This does not delete any organizations or administrator accounts.

func (*MSPs) GetMspDetails

func (m *MSPs) GetMspDetails(
	ctx context.Context,
	mspId uuid.UUID) (
	models.ApiResponse[models.Msp],
	error)

GetMspDetails takes context, mspId as parameters and returns an models.ApiResponse with models.Msp data and an error if there was an issue with the request or response. Return MSP account details, including the display name, service tier, support-access setting, logo URL, custom URL, and timestamps.

func (*MSPs) SearchMspOrgGroup

func (m *MSPs) SearchMspOrgGroup(
	ctx context.Context,
	mspId uuid.UUID,
	mType models.MspSearchTypeEnum,
	q string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string) (
	models.ApiResponse[models.ResponseSearch],
	error)

SearchMspOrgGroup takes context, mspId, mType, q, limit, start, end, duration, sort as parameters and returns an models.ApiResponse with models.ResponseSearch data and an error if there was an issue with the request or response. Search MSP resources by query string. Currently `type=orgs` returns matching organizations in this MSP.

func (*MSPs) UpdateMsp

func (m *MSPs) UpdateMsp(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.Msp) (
	models.ApiResponse[models.Msp],
	error)

UpdateMsp takes context, mspId, body as parameters and returns an models.ApiResponse with models.Msp data and an error if there was an issue with the request or response. Update editable MSP account settings such as the display name, support-access setting, logo URL, or custom URL.

type MSPsAdmins

type MSPsAdmins struct {
	// contains filtered or unexported fields
}

MSPsAdmins represents a controller struct.

func NewMSPsAdmins

func NewMSPsAdmins(baseController baseController) *MSPsAdmins

NewMSPsAdmins creates a new instance of MSPsAdmins. It takes a baseController as a parameter and returns a pointer to the MSPsAdmins.

func (*MSPsAdmins) GetMspAdmin

func (m *MSPsAdmins) GetMspAdmin(
	ctx context.Context,
	mspId uuid.UUID,
	adminId uuid.UUID) (
	models.ApiResponse[models.Admin],
	error)

GetMspAdmin takes context, mspId, adminId as parameters and returns an models.ApiResponse with models.Admin data and an error if there was an issue with the request or response. Return administrator details and privilege assignments for one administrator under this MSP.

func (*MSPsAdmins) InviteMspAdmin

func (m *MSPsAdmins) InviteMspAdmin(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.Admin) (
	models.ApiResponse[models.Admin],
	error)

InviteMspAdmin takes context, mspId, body as parameters and returns an models.ApiResponse with models.Admin data and an error if there was an issue with the request or response. Send an MSP administrator invitation with the requested identity fields and privilege assignments. **Note**: An email will also be sent to the user with a link to https://manage.mist.com/verify/invite?token=:token

func (*MSPsAdmins) ListMspAdmins

func (m *MSPsAdmins) ListMspAdmins(
	ctx context.Context,
	mspId uuid.UUID) (
	models.ApiResponse[[]models.Admin],
	error)

ListMspAdmins takes context, mspId as parameters and returns an models.ApiResponse with []models.Admin data and an error if there was an issue with the request or response. List administrators that have privileges in this MSP hierarchy, including MSP, organization, organization group, site, or site group scopes.

func (*MSPsAdmins) RevokeMspAdmin

func (m *MSPsAdmins) RevokeMspAdmin(
	ctx context.Context,
	mspId uuid.UUID,
	adminId uuid.UUID) (
	*http.Response,
	error)

RevokeMspAdmin takes context, mspId, adminId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove all privileges this administrator has through the MSP hierarchy, including inherited organization and site access. This does not delete the administrator account.

func (*MSPsAdmins) UninviteMspAdmin

func (m *MSPsAdmins) UninviteMspAdmin(
	ctx context.Context,
	mspId uuid.UUID,
	inviteId uuid.UUID) (
	*http.Response,
	error)

UninviteMspAdmin takes context, mspId, inviteId as parameters and returns an *Response and an error if there was an issue with the request or response. Cancel a pending MSP administrator invitation before the invitee accepts it.

func (*MSPsAdmins) UpdateMspAdmin

func (m *MSPsAdmins) UpdateMspAdmin(
	ctx context.Context,
	mspId uuid.UUID,
	adminId uuid.UUID,
	body *models.Admin) (
	models.ApiResponse[models.Admin],
	error)

UpdateMspAdmin takes context, mspId, adminId, body as parameters and returns an models.ApiResponse with models.Admin data and an error if there was an issue with the request or response. Update identity fields and privilege assignments for an existing administrator under this MSP.

func (*MSPsAdmins) UpdateMspAdminInvite

func (m *MSPsAdmins) UpdateMspAdminInvite(
	ctx context.Context,
	mspId uuid.UUID,
	inviteId uuid.UUID,
	body *models.Admin) (
	models.ApiResponse[models.Admin],
	error)

UpdateMspAdminInvite takes context, mspId, inviteId, body as parameters and returns an models.ApiResponse with models.Admin data and an error if there was an issue with the request or response. Update the identity fields or privilege assignments on a pending MSP administrator invitation.

type MSPsInventory

type MSPsInventory struct {
	// contains filtered or unexported fields
}

MSPsInventory represents a controller struct.

func NewMSPsInventory

func NewMSPsInventory(baseController baseController) *MSPsInventory

NewMSPsInventory creates a new instance of MSPsInventory. It takes a baseController as a parameter and returns a pointer to the MSPsInventory.

func (*MSPsInventory) GetMspInventoryByMac

func (m *MSPsInventory) GetMspInventoryByMac(
	ctx context.Context,
	mspId uuid.UUID,
	deviceMac string) (
	models.ApiResponse[models.ResponseMspInventoryDevice],
	error)

GetMspInventoryByMac takes context, mspId, deviceMac as parameters and returns an models.ApiResponse with models.ResponseMspInventoryDevice data and an error if there was an issue with the request or response. Return the inventory record for a device MAC address owned by an organization under this MSP, including the owning organization and site when available.

type MSPsLicenses

type MSPsLicenses struct {
	// contains filtered or unexported fields
}

MSPsLicenses represents a controller struct.

func NewMSPsLicenses

func NewMSPsLicenses(baseController baseController) *MSPsLicenses

NewMSPsLicenses creates a new instance of MSPsLicenses. It takes a baseController as a parameter and returns a pointer to the MSPsLicenses.

func (*MSPsLicenses) ClaimMspLicense added in v0.4.74

ClaimMspLicense takes context, mspId, body as parameters and returns an models.ApiResponse with models.ResponseClaimLicense data and an error if there was an issue with the request or response. Claim a license order for this MSP by submitting the activation code from the order.

func (*MSPsLicenses) ListMspLicenses

func (m *MSPsLicenses) ListMspLicenses(
	ctx context.Context,
	mspId uuid.UUID) (
	models.ApiResponse[models.License],
	error)

ListMspLicenses takes context, mspId as parameters and returns an models.ApiResponse with models.License data and an error if there was an issue with the request or response. Return MSP license entitlement, subscription, amendment, and usage summary information.

func (*MSPsLicenses) ListMspOrgLicenses

func (m *MSPsLicenses) ListMspOrgLicenses(
	ctx context.Context,
	mspId uuid.UUID) (
	models.ApiResponse[models.License],
	error)

ListMspOrgLicenses takes context, mspId as parameters and returns an models.ApiResponse with models.License data and an error if there was an issue with the request or response. Return license entitlement, subscription, amendment, and usage statistics for organizations managed by this MSP.

func (*MSPsLicenses) MoveOrDeleteMspLicenseToAnotherOrg

func (m *MSPsLicenses) MoveOrDeleteMspLicenseToAnotherOrg(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.MspLicenseAction) (
	*http.Response,
	error)

MoveOrDeleteMspLicenseToAnotherOrg takes context, mspId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Perform an MSP license action, such as amending license quantity to an organization, deleting a subscription, undoing an amendment, or annotating a subscription.

type MSPsLogo struct {
	// contains filtered or unexported fields
}

MSPsLogo represents a controller struct.

func NewMSPsLogo(baseController baseController) *MSPsLogo

NewMSPsLogo creates a new instance of MSPsLogo. It takes a baseController as a parameter and returns a pointer to the MSPsLogo.

func (m *MSPsLogo) DeleteMspLogo(
	ctx context.Context,
	mspId uuid.UUID) (
	*http.Response,
	error)

DeleteMspLogo takes context, mspId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove the logo configured for an advanced-tier MSP account.

func (m *MSPsLogo) PostMspLogo(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.MspLogo) (
	*http.Response,
	error)

PostMspLogo takes context, mspId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Upload or update the public logo URL for an advanced-tier MSP account.

type MSPsLogs

type MSPsLogs struct {
	// contains filtered or unexported fields
}

MSPsLogs represents a controller struct.

func NewMSPsLogs

func NewMSPsLogs(baseController baseController) *MSPsLogs

NewMSPsLogs creates a new instance of MSPsLogs. It takes a baseController as a parameter and returns a pointer to the MSPsLogs.

func (*MSPsLogs) CountMspAuditLogs added in v0.2.18

func (m *MSPsLogs) CountMspAuditLogs(
	ctx context.Context,
	mspId uuid.UUID,
	distinct *models.MspLogsCountDistinctEnum,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountMspAuditLogs takes context, mspId, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Return distinct counts of MSP audit log entries grouped by the requested field, such as administrator, message, or organization.

func (*MSPsLogs) ListMspAuditLogs added in v0.2.18

func (m *MSPsLogs) ListMspAuditLogs(
	ctx context.Context,
	mspId uuid.UUID,
	siteId *string,
	adminName *string,
	message *string,
	sort *models.ListMspLogsSortEnum,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseLogSearch],
	error)

ListMspAuditLogs takes context, mspId, siteId, adminName, message, sort, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseLogSearch data and an error if there was an issue with the request or response. List audit log entries for configuration and administrative changes within this MSP, with optional filters by site, administrator, message text, and time range.

type MSPsMarvis

type MSPsMarvis struct {
	// contains filtered or unexported fields
}

MSPsMarvis represents a controller struct.

func NewMSPsMarvis

func NewMSPsMarvis(baseController baseController) *MSPsMarvis

NewMSPsMarvis creates a new instance of MSPsMarvis. It takes a baseController as a parameter and returns a pointer to the MSPsMarvis.

func (*MSPsMarvis) CountMspsMarvisActions

CountMspsMarvisActions takes context, mspId, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCountMarvisActions data and an error if there was an issue with the request or response. Return distinct counts of Marvis actions for this MSP grouped by the requested field, such as organization or status.

type MSPsOrgGroups

type MSPsOrgGroups struct {
	// contains filtered or unexported fields
}

MSPsOrgGroups represents a controller struct.

func NewMSPsOrgGroups

func NewMSPsOrgGroups(baseController baseController) *MSPsOrgGroups

NewMSPsOrgGroups creates a new instance of MSPsOrgGroups. It takes a baseController as a parameter and returns a pointer to the MSPsOrgGroups.

func (*MSPsOrgGroups) CreateMspOrgGroup

func (m *MSPsOrgGroups) CreateMspOrgGroup(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.Orggroup) (
	models.ApiResponse[models.Orggroup],
	error)

CreateMspOrgGroup takes context, mspId, body as parameters and returns an models.ApiResponse with models.Orggroup data and an error if there was an issue with the request or response. Create an organization group under this MSP with a display name and optional list of member organization IDs.

func (*MSPsOrgGroups) DeleteMspOrgGroup

func (m *MSPsOrgGroups) DeleteMspOrgGroup(
	ctx context.Context,
	mspId uuid.UUID,
	orggroupId uuid.UUID) (
	*http.Response,
	error)

DeleteMspOrgGroup takes context, mspId, orggroupId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an MSP organization group. This removes the grouping object without deleting the organizations it referenced.

func (*MSPsOrgGroups) GetMspOrgGroup

func (m *MSPsOrgGroups) GetMspOrgGroup(
	ctx context.Context,
	mspId uuid.UUID,
	orggroupId uuid.UUID) (
	models.ApiResponse[models.Orggroup],
	error)

GetMspOrgGroup takes context, mspId, orggroupId as parameters and returns an models.ApiResponse with models.Orggroup data and an error if there was an issue with the request or response. Return the organization group details, including its name and member organization IDs.

func (*MSPsOrgGroups) ListMspOrgGroups

func (m *MSPsOrgGroups) ListMspOrgGroups(
	ctx context.Context,
	mspId uuid.UUID) (
	models.ApiResponse[[]models.Orggroup],
	error)

ListMspOrgGroups takes context, mspId as parameters and returns an models.ApiResponse with []models.Orggroup data and an error if there was an issue with the request or response. List organization groups defined under this MSP. Organization groups contain related organization IDs and can be used in MSP privilege assignments.

func (*MSPsOrgGroups) UpdateMspOrgGroup

func (m *MSPsOrgGroups) UpdateMspOrgGroup(
	ctx context.Context,
	mspId uuid.UUID,
	orggroupId uuid.UUID,
	body *models.Orggroup) (
	models.ApiResponse[models.Orggroup],
	error)

UpdateMspOrgGroup takes context, mspId, orggroupId, body as parameters and returns an models.ApiResponse with models.Orggroup data and an error if there was an issue with the request or response. Update an MSP organization group's display name or member organization IDs.

type MSPsOrgs

type MSPsOrgs struct {
	// contains filtered or unexported fields
}

MSPsOrgs represents a controller struct.

func NewMSPsOrgs

func NewMSPsOrgs(baseController baseController) *MSPsOrgs

NewMSPsOrgs creates a new instance of MSPsOrgs. It takes a baseController as a parameter and returns a pointer to the MSPsOrgs.

func (*MSPsOrgs) CreateMspOrg

func (m *MSPsOrgs) CreateMspOrg(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.Org) (
	models.ApiResponse[models.Org],
	error)

CreateMspOrg takes context, mspId, body as parameters and returns an models.ApiResponse with models.Org data and an error if there was an issue with the request or response. Create an organization under this MSP, optionally assigning it to organization groups and setting organization-level defaults.

func (*MSPsOrgs) DeleteMspOrg

func (m *MSPsOrgs) DeleteMspOrg(
	ctx context.Context,
	mspId uuid.UUID,
	orgId uuid.UUID) (
	*http.Response,
	error)

DeleteMspOrg takes context, mspId, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization managed by this MSP. Use the MSP organization assignment endpoint when only assigning or unassigning organizations from the MSP account.

func (*MSPsOrgs) GetMspOrg

func (m *MSPsOrgs) GetMspOrg(
	ctx context.Context,
	mspId uuid.UUID,
	orgId uuid.UUID) (
	models.ApiResponse[models.Org],
	error)

GetMspOrg takes context, mspId, orgId as parameters and returns an models.ApiResponse with models.Org data and an error if there was an issue with the request or response. Return details for one organization managed by this MSP, including MSP ownership, organization groups, support access, and session settings.

func (*MSPsOrgs) ListMspOrgStats

func (m *MSPsOrgs) ListMspOrgStats(
	ctx context.Context,
	mspId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsOrg],
	error)

ListMspOrgStats takes context, mspId, limit, page as parameters and returns an models.ApiResponse with []models.StatsOrg data and an error if there was an issue with the request or response. List organization statistics for organizations managed by this MSP, including device, inventory, site, and SLE summary fields.

func (*MSPsOrgs) ListMspOrgs

func (m *MSPsOrgs) ListMspOrgs(
	ctx context.Context,
	mspId uuid.UUID) (
	models.ApiResponse[[]models.Org],
	error)

ListMspOrgs takes context, mspId as parameters and returns an models.ApiResponse with []models.Org data and an error if there was an issue with the request or response. List organizations managed by this MSP account, including MSP ownership and organization-group membership metadata.

func (*MSPsOrgs) ManageMspOrgs

func (m *MSPsOrgs) ManageMspOrgs(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.MspOrgChange) (
	*http.Response,
	error)

ManageMspOrgs takes context, mspId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Assign existing organizations to this MSP account or unassign organizations from it by providing the desired operation and org IDs.

func (*MSPsOrgs) SearchMspOrgs

func (m *MSPsOrgs) SearchMspOrgs(
	ctx context.Context,
	mspId uuid.UUID,
	name *string,
	orgId *uuid.UUID,
	subInsufficient *bool,
	trialEnabled *bool,
	usageTypes []string,
	limit *int,
	sort *string,
	start *string,
	end *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseOrgSearch],
	error)

SearchMspOrgs takes context, mspId, name, orgId, subInsufficient, trialEnabled, usageTypes, limit, sort, start, end, searchAfter as parameters and returns an models.ApiResponse with models.ResponseOrgSearch data and an error if there was an issue with the request or response. Search organizations under this MSP using organization identifiers, names, subscription state, trial state, usage types, and time-based filters.

func (*MSPsOrgs) UpdateMspOrg

func (m *MSPsOrgs) UpdateMspOrg(
	ctx context.Context,
	mspId uuid.UUID,
	orgId uuid.UUID,
	body *models.Org) (
	models.ApiResponse[models.Org],
	error)

UpdateMspOrg takes context, mspId, orgId, body as parameters and returns an models.ApiResponse with models.Org data and an error if there was an issue with the request or response. Update organization settings for an organization managed by this MSP.

type MSPsSLEs

type MSPsSLEs struct {
	// contains filtered or unexported fields
}

MSPsSLEs represents a controller struct.

func NewMSPsSLEs

func NewMSPsSLEs(baseController baseController) *MSPsSLEs

NewMSPsSLEs creates a new instance of MSPsSLEs. It takes a baseController as a parameter and returns a pointer to the MSPsSLEs.

func (*MSPsSLEs) GetMspSle

func (m *MSPsSLEs) GetMspSle(
	ctx context.Context,
	mspId uuid.UUID,
	metric string,
	sle *string,
	duration *string,
	interval *string,
	start *string,
	end *string) (
	models.ApiResponse[models.InsightMetrics],
	error)

GetMspSle takes context, mspId, metric, sle, duration, interval, start, end as parameters and returns an models.ApiResponse with models.InsightMetrics data and an error if there was an issue with the request or response. Return MSP-level SLE insight metrics for the selected metric and time range. Depending on the metric, the response can include all organizations or the worst-performing organizations in the MSP.

type MSPsSSO

type MSPsSSO struct {
	// contains filtered or unexported fields
}

MSPsSSO represents a controller struct.

func NewMSPsSSO

func NewMSPsSSO(baseController baseController) *MSPsSSO

NewMSPsSSO creates a new instance of MSPsSSO. It takes a baseController as a parameter and returns a pointer to the MSPsSSO.

func (*MSPsSSO) CreateMspSso

func (m *MSPsSSO) CreateMspSso(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.Sso) (
	models.ApiResponse[models.Sso],
	error)

CreateMspSso takes context, mspId, body as parameters and returns an models.ApiResponse with models.Sso data and an error if there was an issue with the request or response. Create an MSP SSO identity provider configuration, including provider settings and role-handling behavior.

func (*MSPsSSO) DeleteMspSso

func (m *MSPsSSO) DeleteMspSso(
	ctx context.Context,
	mspId uuid.UUID,
	ssoId uuid.UUID) (
	*http.Response,
	error)

DeleteMspSso takes context, mspId, ssoId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an MSP SSO identity provider configuration so it can no longer be used for administrator login.

func (*MSPsSSO) DeleteMspSsoAdmins added in v0.4.103

func (m *MSPsSSO) DeleteMspSsoAdmins(
	ctx context.Context,
	mspId uuid.UUID,
	ssoId uuid.UUID,
	body *models.SsoDeleteAdmins) (
	models.ApiResponse[models.SsoDeleteAdminsResponse],
	error)

DeleteMspSsoAdmins takes context, mspId, ssoId, body as parameters and returns an models.ApiResponse with models.SsoDeleteAdminsResponse data and an error if there was an issue with the request or response. Remove SSO-linked MSP administrator accounts by email for this SSO profile.

func (*MSPsSSO) DownloadMspSamlMetadata added in v0.4.0

func (m *MSPsSSO) DownloadMspSamlMetadata(
	ctx context.Context,
	mspId uuid.UUID,
	ssoId uuid.UUID) (
	models.ApiResponse[[]byte],
	error)

DownloadMspSamlMetadata takes context, mspId, ssoId as parameters and returns an models.ApiResponse with []byte data and an error if there was an issue with the request or response. Download generated SAML service provider metadata XML for this MSP SSO configuration. Example of metadata.xml: ```xml <?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://api.mist.com/api/v1/saml/5hdF5g/login" validUntil="2027-10-12T21:59:01Z" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://api.mist.com/api/v1/saml/5hdF5g/logout" /> <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://api.mist.com/api/v1/saml/5hdF5g/login" index="0" isDefault="true"/> <md:AttributeConsumingService index="0"> <md:ServiceName xml:lang="en-US">Mist</md:ServiceName> <md:RequestedAttribute Name="Role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="true"/> <md:RequestedAttribute Name="FirstName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> <md:RequestedAttribute Name="LastName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> </md:AttributeConsumingService> </md:SPSSODescriptor> </md:EntityDescriptor> ```

func (*MSPsSSO) GetMspSamlMetadata added in v0.4.0

func (m *MSPsSSO) GetMspSamlMetadata(
	ctx context.Context,
	mspId uuid.UUID,
	ssoId uuid.UUID) (
	models.ApiResponse[models.SamlMetadata],
	error)

GetMspSamlMetadata takes context, mspId, ssoId as parameters and returns an models.ApiResponse with models.SamlMetadata data and an error if there was an issue with the request or response. Return generated SAML service provider metadata for this MSP SSO configuration as JSON.

func (*MSPsSSO) GetMspSso

func (m *MSPsSSO) GetMspSso(
	ctx context.Context,
	mspId uuid.UUID,
	ssoId uuid.UUID) (
	models.ApiResponse[models.Sso],
	error)

GetMspSso takes context, mspId, ssoId as parameters and returns an models.ApiResponse with models.Sso data and an error if there was an issue with the request or response. Return one MSP SSO identity provider configuration, including provider settings and generated SSO URLs.

func (*MSPsSSO) ListMspSsoLatestFailures

func (m *MSPsSSO) ListMspSsoLatestFailures(
	ctx context.Context,
	mspId uuid.UUID,
	ssoId uuid.UUID) (
	models.ApiResponse[models.ResponseSsoFailureSearch],
	error)

ListMspSsoLatestFailures takes context, mspId, ssoId as parameters and returns an models.ApiResponse with models.ResponseSsoFailureSearch data and an error if there was an issue with the request or response. List recent authentication failures for this MSP SSO configuration, including failure details and captured SAML assertion data when available.

func (*MSPsSSO) ListMspSsos

func (m *MSPsSSO) ListMspSsos(
	ctx context.Context,
	mspId uuid.UUID) (
	models.ApiResponse[[]models.Sso],
	error)

ListMspSsos takes context, mspId as parameters and returns an models.ApiResponse with []models.Sso data and an error if there was an issue with the request or response. List SSO identity provider configurations defined for this MSP.

func (*MSPsSSO) UpdateMspSso

func (m *MSPsSSO) UpdateMspSso(
	ctx context.Context,
	mspId uuid.UUID,
	ssoId uuid.UUID,
	body *models.Sso) (
	models.ApiResponse[models.Sso],
	error)

UpdateMspSso takes context, mspId, ssoId, body as parameters and returns an models.ApiResponse with models.Sso data and an error if there was an issue with the request or response. Update an MSP SSO identity provider configuration, such as IdP URLs, certificates, issuer, NameID format, and unmatched-role handling.

type MSPsSSORoles

type MSPsSSORoles struct {
	// contains filtered or unexported fields
}

MSPsSSORoles represents a controller struct.

func NewMSPsSSORoles

func NewMSPsSSORoles(baseController baseController) *MSPsSSORoles

NewMSPsSSORoles creates a new instance of MSPsSSORoles. It takes a baseController as a parameter and returns a pointer to the MSPsSSORoles.

func (*MSPsSSORoles) CreateMspSsoRole

func (m *MSPsSSORoles) CreateMspSsoRole(
	ctx context.Context,
	mspId uuid.UUID,
	body *models.SsoRoleMsp) (
	models.ApiResponse[models.SsoRoleMsp],
	error)

CreateMspSsoRole takes context, mspId, body as parameters and returns an models.ApiResponse with models.SsoRoleMsp data and an error if there was an issue with the request or response. Create an MSP SSO role definition with a display name and the MSP privileges granted when the role is matched during SSO.

func (*MSPsSSORoles) DeleteMspSsoRole

func (m *MSPsSSORoles) DeleteMspSsoRole(
	ctx context.Context,
	mspId uuid.UUID,
	ssoroleId uuid.UUID) (
	*http.Response,
	error)

DeleteMspSsoRole takes context, mspId, ssoroleId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an MSP SSO role definition so it can no longer grant MSP privileges during SSO.

func (*MSPsSSORoles) ListMspSsoRoles

func (m *MSPsSSORoles) ListMspSsoRoles(
	ctx context.Context,
	mspId uuid.UUID) (
	models.ApiResponse[[]models.SsoRoleMsp],
	error)

ListMspSsoRoles takes context, mspId as parameters and returns an models.ApiResponse with []models.SsoRoleMsp data and an error if there was an issue with the request or response. List MSP SSO role definitions that map identity-provider role assertions to MSP privilege scopes.

func (*MSPsSSORoles) UpdateMspSsoRole

func (m *MSPsSSORoles) UpdateMspSsoRole(
	ctx context.Context,
	mspId uuid.UUID,
	ssoroleId uuid.UUID,
	body *models.SsoRoleMsp) (
	models.ApiResponse[models.SsoRoleMsp],
	error)

UpdateMspSsoRole takes context, mspId, ssoroleId, body as parameters and returns an models.ApiResponse with models.SsoRoleMsp data and an error if there was an issue with the request or response. Update an MSP SSO role definition, including its display name and granted MSP privileges.

type MSPsTickets

type MSPsTickets struct {
	// contains filtered or unexported fields
}

MSPsTickets represents a controller struct.

func NewMSPsTickets

func NewMSPsTickets(baseController baseController) *MSPsTickets

NewMSPsTickets creates a new instance of MSPsTickets. It takes a baseController as a parameter and returns a pointer to the MSPsTickets.

func (*MSPsTickets) CountMspTickets

func (m *MSPsTickets) CountMspTickets(
	ctx context.Context,
	mspId uuid.UUID,
	distinct *models.MspTicketsCountDistinctEnum,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountMspTickets takes context, mspId, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Return distinct counts of MSP support tickets grouped by the requested field, such as organization, status, or ticket type.

func (*MSPsTickets) ListMspTickets

func (m *MSPsTickets) ListMspTickets(
	ctx context.Context,
	mspId uuid.UUID,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[[]models.Ticket],
	error)

ListMspTickets takes context, mspId, start, end, duration as parameters and returns an models.ApiResponse with []models.Ticket data and an error if there was an issue with the request or response. List support tickets associated with this MSP for the requested time range.

type Orgs

type Orgs struct {
	// contains filtered or unexported fields
}

Orgs represents a controller struct.

func NewOrgs

func NewOrgs(baseController baseController) *Orgs

NewOrgs creates a new instance of Orgs. It takes a baseController as a parameter and returns a pointer to the Orgs.

func (*Orgs) CloneOrg

func (o *Orgs) CloneOrg(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.NameString) (
	models.ApiResponse[models.Org],
	error)

CloneOrg takes context, orgId, body as parameters and returns an models.ApiResponse with models.Org data and an error if there was an issue with the request or response. Create an Org by cloning from another one. Org Settings, Templates, Wxlan Tags, Wxlan Tunnels, Wxlan Rules, Org Wlans will be copied. Sites and Site Groups will not be copied, and therefore, the copied template will not be applied to any site/sitegroups.

func (*Orgs) CreateOrg

func (o *Orgs) CreateOrg(
	ctx context.Context,
	body *models.Org) (
	models.ApiResponse[models.Org],
	error)

CreateOrg takes context, body as parameters and returns an models.ApiResponse with models.Org data and an error if there was an issue with the request or response. Create a Mist organization with organization-level defaults such as display name, support-access setting, default alarm template, and admin session lifetime.

func (*Orgs) DeleteOrg

func (o *Orgs) DeleteOrg(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

DeleteOrg takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization and its organization-level resources. Use MSP organization assignment endpoints when only changing MSP ownership or association. This action is only allowed when the Organization Inventory is empty.

func (*Orgs) GetOrg

func (o *Orgs) GetOrg(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.Org],
	error)

GetOrg takes context, orgId as parameters and returns an models.ApiResponse with models.Org data and an error if there was an issue with the request or response. Return organization details, including name, MSP ownership, organization group membership, support-access setting, and session settings.

func (*Orgs) UpdateOrg

func (o *Orgs) UpdateOrg(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Org) (
	models.ApiResponse[models.Org],
	error)

UpdateOrg takes context, orgId, body as parameters and returns an models.ApiResponse with models.Org data and an error if there was an issue with the request or response. Update organization-level settings such as display name, support-access setting, organization groups, default alarm template, or admin session lifetime.

type OrgsAPITokens

type OrgsAPITokens struct {
	// contains filtered or unexported fields
}

OrgsAPITokens represents a controller struct.

func NewOrgsAPITokens

func NewOrgsAPITokens(baseController baseController) *OrgsAPITokens

NewOrgsAPITokens creates a new instance of OrgsAPITokens. It takes a baseController as a parameter and returns a pointer to the OrgsAPITokens.

func (*OrgsAPITokens) CreateOrgApiToken

func (o *OrgsAPITokens) CreateOrgApiToken(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.OrgApitoken) (
	models.ApiResponse[models.OrgApitoken],
	error)

CreateOrgApiToken takes context, orgId, body as parameters and returns an models.ApiResponse with models.OrgApitoken data and an error if there was an issue with the request or response. Create an organization API token with a display name, scoped privileges, and optional source IP restrictions. Note that the full token key is only available at creation time.

func (*OrgsAPITokens) DeleteOrgApiToken

func (o *OrgsAPITokens) DeleteOrgApiToken(
	ctx context.Context,
	orgId uuid.UUID,
	apitokenId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgApiToken takes context, orgId, apitokenId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization API token so it can no longer authenticate API requests.

func (*OrgsAPITokens) GetOrgApiToken

func (o *OrgsAPITokens) GetOrgApiToken(
	ctx context.Context,
	orgId uuid.UUID,
	apitokenId uuid.UUID) (
	models.ApiResponse[models.OrgApitoken],
	error)

GetOrgApiToken takes context, orgId, apitokenId as parameters and returns an models.ApiResponse with models.OrgApitoken data and an error if there was an issue with the request or response. Return metadata for one organization API token. The full token key is only available at creation time and may only be partially shown afterward.

func (*OrgsAPITokens) ListOrgApiTokens

func (o *OrgsAPITokens) ListOrgApiTokens(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.OrgApitoken],
	error)

ListOrgApiTokens takes context, orgId as parameters and returns an models.ApiResponse with []models.OrgApitoken data and an error if there was an issue with the request or response. List organization API tokens, including display names, scoped privileges, allowed source IPs, creator, and last-use metadata.

func (*OrgsAPITokens) UpdateOrgApiToken

func (o *OrgsAPITokens) UpdateOrgApiToken(
	ctx context.Context,
	orgId uuid.UUID,
	apitokenId uuid.UUID,
	body *models.OrgApitoken) (
	*http.Response,
	error)

UpdateOrgApiToken takes context, orgId, apitokenId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Update an organization API token's display name or scoped privileges. Source IP restrictions are defined when the token is created.

type OrgsAPTemplates

type OrgsAPTemplates struct {
	// contains filtered or unexported fields
}

OrgsAPTemplates represents a controller struct.

func NewOrgsAPTemplates

func NewOrgsAPTemplates(baseController baseController) *OrgsAPTemplates

NewOrgsAPTemplates creates a new instance of OrgsAPTemplates. It takes a baseController as a parameter and returns a pointer to the OrgsAPTemplates.

func (*OrgsAPTemplates) CreateOrgAptemplate

func (o *OrgsAPTemplates) CreateOrgAptemplate(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.ApTemplate) (
	models.ApiResponse[models.ApTemplate],
	error)

CreateOrgAptemplate takes context, orgId, body as parameters and returns an models.ApiResponse with models.ApTemplate data and an error if there was an issue with the request or response. Create an organization AP template with AP matching rules, port configuration, Wi-Fi settings, and mesh settings.

func (*OrgsAPTemplates) DeleteOrgAptemplate

func (o *OrgsAPTemplates) DeleteOrgAptemplate(
	ctx context.Context,
	orgId uuid.UUID,
	aptemplateId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgAptemplate takes context, orgId, aptemplateId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization AP template by template ID from this organization.

func (*OrgsAPTemplates) GetOrgAptemplate

func (o *OrgsAPTemplates) GetOrgAptemplate(
	ctx context.Context,
	orgId uuid.UUID,
	aptemplateId uuid.UUID) (
	models.ApiResponse[models.ApTemplate],
	error)

GetOrgAptemplate takes context, orgId, aptemplateId as parameters and returns an models.ApiResponse with models.ApTemplate data and an error if there was an issue with the request or response. Return one organization AP template, including AP matching rules, port configuration, Wi-Fi settings, and mesh settings.

func (*OrgsAPTemplates) ListOrgAptemplates

func (o *OrgsAPTemplates) ListOrgAptemplates(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.ApTemplate],
	error)

ListOrgAptemplates takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.ApTemplate data and an error if there was an issue with the request or response. List organization AP templates that define AP matching rules, port configuration, Wi-Fi, and mesh settings for assignment to sites.

func (*OrgsAPTemplates) UpdateOrgAptemplate

func (o *OrgsAPTemplates) UpdateOrgAptemplate(
	ctx context.Context,
	orgId uuid.UUID,
	aptemplateId uuid.UUID,
	body *models.ApTemplate) (
	models.ApiResponse[models.ApTemplate],
	error)

UpdateOrgAptemplate takes context, orgId, aptemplateId, body as parameters and returns an models.ApiResponse with models.ApTemplate data and an error if there was an issue with the request or response. Update an organization AP template's AP matching rules, port configuration, Wi-Fi settings, or mesh settings.

type OrgsAdmins

type OrgsAdmins struct {
	// contains filtered or unexported fields
}

OrgsAdmins represents a controller struct.

func NewOrgsAdmins

func NewOrgsAdmins(baseController baseController) *OrgsAdmins

NewOrgsAdmins creates a new instance of OrgsAdmins. It takes a baseController as a parameter and returns a pointer to the OrgsAdmins.

func (*OrgsAdmins) InviteOrgAdmin

func (o *OrgsAdmins) InviteOrgAdmin(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Admin) (
	*http.Response,
	error)

InviteOrgAdmin takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. If the request is successful, an email will also be sent to the user with a link to ```https://manage.mist.com/verify/invite?token=:token&expire=1459632743&org=OrgName```

func (*OrgsAdmins) ListOrgAdmins

func (o *OrgsAdmins) ListOrgAdmins(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.Admin],
	error)

ListOrgAdmins takes context, orgId as parameters and returns an models.ApiResponse with []models.Admin data and an error if there was an issue with the request or response. List administrators that have privileges in this organization hierarchy, including organization, site, or site group scopes.

func (*OrgsAdmins) RevokeOrgAdmin

func (o *OrgsAdmins) RevokeOrgAdmin(
	ctx context.Context,
	orgId uuid.UUID,
	adminId uuid.UUID) (
	*http.Response,
	error)

RevokeOrgAdmin takes context, orgId, adminId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove all privileges this administrator has in the organization hierarchy. This does not delete the administrator account.

func (*OrgsAdmins) UninviteOrgAdmin

func (o *OrgsAdmins) UninviteOrgAdmin(
	ctx context.Context,
	orgId uuid.UUID,
	inviteId uuid.UUID) (
	*http.Response,
	error)

UninviteOrgAdmin takes context, orgId, inviteId as parameters and returns an *Response and an error if there was an issue with the request or response. Cancel a pending organization admin invite by invite ID.

func (*OrgsAdmins) UpdateOrgAdmin

func (o *OrgsAdmins) UpdateOrgAdmin(
	ctx context.Context,
	orgId uuid.UUID,
	adminId uuid.UUID,
	body *models.Admin) (
	models.ApiResponse[models.Admin],
	error)

UpdateOrgAdmin takes context, orgId, adminId, body as parameters and returns an models.ApiResponse with models.Admin data and an error if there was an issue with the request or response. Update identity fields and privilege assignments for an existing administrator under this organization.

func (*OrgsAdmins) UpdateOrgAdminInvite

func (o *OrgsAdmins) UpdateOrgAdminInvite(
	ctx context.Context,
	orgId uuid.UUID,
	inviteId uuid.UUID,
	body *models.Admin) (
	*http.Response,
	error)

UpdateOrgAdminInvite takes context, orgId, inviteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Update a pending organization admin invite, including invitee identity and requested privileges.

type OrgsAdvancedAntiMalwareProfiles added in v0.4.54

type OrgsAdvancedAntiMalwareProfiles struct {
	// contains filtered or unexported fields
}

OrgsAdvancedAntiMalwareProfiles represents a controller struct.

func NewOrgsAdvancedAntiMalwareProfiles added in v0.4.54

func NewOrgsAdvancedAntiMalwareProfiles(baseController baseController) *OrgsAdvancedAntiMalwareProfiles

NewOrgsAdvancedAntiMalwareProfiles creates a new instance of OrgsAdvancedAntiMalwareProfiles. It takes a baseController as a parameter and returns a pointer to the OrgsAdvancedAntiMalwareProfiles.

func (*OrgsAdvancedAntiMalwareProfiles) CreateOrgAAMWProfile added in v0.4.54

CreateOrgAAMWProfile takes context, orgId, body as parameters and returns an models.ApiResponse with models.AamwProfile data and an error if there was an issue with the request or response. Create an organization-level Advanced Anti Malware profile with Sky ATP verdict threshold, fallback action, file action, and file-category rules.

func (*OrgsAdvancedAntiMalwareProfiles) DeleteOrgAAMWProfile added in v0.4.54

func (o *OrgsAdvancedAntiMalwareProfiles) DeleteOrgAAMWProfile(
	ctx context.Context,
	orgId uuid.UUID,
	aamwprofileId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgAAMWProfile takes context, orgId, aamwprofileId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an Advanced Anti Malware profile from this organization.

func (*OrgsAdvancedAntiMalwareProfiles) GetOrgAAMWProfile added in v0.4.54

func (o *OrgsAdvancedAntiMalwareProfiles) GetOrgAAMWProfile(
	ctx context.Context,
	orgId uuid.UUID,
	aamwprofileId uuid.UUID) (
	models.ApiResponse[models.AamwProfile],
	error)

GetOrgAAMWProfile takes context, orgId, aamwprofileId as parameters and returns an models.ApiResponse with models.AamwProfile data and an error if there was an issue with the request or response. Return an organization Advanced Anti Malware profile, including verdict threshold, actions, and file-category rules.

func (*OrgsAdvancedAntiMalwareProfiles) ListOrgAAMWProfiles added in v0.4.54

ListOrgAAMWProfiles takes context, orgId as parameters and returns an models.ApiResponse with []models.AamwProfile data and an error if there was an issue with the request or response. List organization-level Advanced Anti Malware profiles that define Sky ATP file verdict handling for this organization.

func (*OrgsAdvancedAntiMalwareProfiles) UpdateOrgAAMWProfile added in v0.4.54

func (o *OrgsAdvancedAntiMalwareProfiles) UpdateOrgAAMWProfile(
	ctx context.Context,
	orgId uuid.UUID,
	aamwprofileId uuid.UUID,
	body *models.AamwProfile) (
	models.ApiResponse[models.AamwProfile],
	error)

UpdateOrgAAMWProfile takes context, orgId, aamwprofileId, body as parameters and returns an models.ApiResponse with models.AamwProfile data and an error if there was an issue with the request or response. Update an organization Advanced Anti Malware profile's Sky ATP verdict threshold, actions, or file-category rules.

type OrgsAlarmTemplates

type OrgsAlarmTemplates struct {
	// contains filtered or unexported fields
}

OrgsAlarmTemplates represents a controller struct.

func NewOrgsAlarmTemplates

func NewOrgsAlarmTemplates(baseController baseController) *OrgsAlarmTemplates

NewOrgsAlarmTemplates creates a new instance of OrgsAlarmTemplates. It takes a baseController as a parameter and returns a pointer to the OrgsAlarmTemplates.

func (*OrgsAlarmTemplates) CreateOrgAlarmTemplate

func (o *OrgsAlarmTemplates) CreateOrgAlarmTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.AlarmTemplate) (
	models.ApiResponse[models.AlarmTemplate],
	error)

CreateOrgAlarmTemplate takes context, orgId, body as parameters and returns an models.ApiResponse with models.AlarmTemplate data and an error if there was an issue with the request or response. Create an organization alarm template that defines default delivery settings and per-alarm rule overrides. Available rules can be found in [List Alarm Definitions]($e/Events%20Definitions/listAlarmDefinitions) The `delivery` object is only required when it differs from the template delivery settings. To assign an Alarm template to a site, use the [Update Site]($e/Sites/updateSiteInfo) endpoint and specify the Alarm template ID in the `alarmtemplate_id` field of the request body.

func (*OrgsAlarmTemplates) DeleteOrgAlarmTemplate

func (o *OrgsAlarmTemplates) DeleteOrgAlarmTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	alarmtemplateId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgAlarmTemplate takes context, orgId, alarmtemplateId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization alarm template by template ID from this organization.

func (*OrgsAlarmTemplates) GetOrgAlarmTemplate

func (o *OrgsAlarmTemplates) GetOrgAlarmTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	alarmtemplateId uuid.UUID) (
	models.ApiResponse[models.AlarmTemplate],
	error)

GetOrgAlarmTemplate takes context, orgId, alarmtemplateId as parameters and returns an models.ApiResponse with models.AlarmTemplate data and an error if there was an issue with the request or response. Return one organization alarm template, including default delivery settings and per-alarm rule overrides.

func (*OrgsAlarmTemplates) ListOrgAlarmTemplates

func (o *OrgsAlarmTemplates) ListOrgAlarmTemplates(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.AlarmTemplate],
	error)

ListOrgAlarmTemplates takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.AlarmTemplate data and an error if there was an issue with the request or response. List alarm templates defined for the organization, including default delivery settings and per-alarm rule configuration.

func (*OrgsAlarmTemplates) ListOrgSuppressedAlarms

ListOrgSuppressedAlarms takes context, orgId, scope as parameters and returns an models.ApiResponse with models.ResponseOrgSuppressAlarm data and an error if there was an issue with the request or response. List alarm suppression entries currently configured for this organization, optionally filtered by organization-wide or site-specific scope.

func (*OrgsAlarmTemplates) SuppressOrgAlarm

func (o *OrgsAlarmTemplates) SuppressOrgAlarm(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.SuppressedAlarm) (
	*http.Response,
	error)

SuppressOrgAlarm takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Create or schedule an alarm suppression window for the organization or selected sites, for example during planned maintenance.

func (*OrgsAlarmTemplates) UnsuppressOrgSuppressedAlarms

func (o *OrgsAlarmTemplates) UnsuppressOrgSuppressedAlarms(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

UnsuppressOrgSuppressedAlarms takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove alarm suppression entries currently configured for this organization.

func (*OrgsAlarmTemplates) UpdateOrgAlarmTemplate

func (o *OrgsAlarmTemplates) UpdateOrgAlarmTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	alarmtemplateId uuid.UUID,
	body *models.AlarmTemplate) (
	models.ApiResponse[models.AlarmTemplate],
	error)

UpdateOrgAlarmTemplate takes context, orgId, alarmtemplateId, body as parameters and returns an models.ApiResponse with models.AlarmTemplate data and an error if there was an issue with the request or response. Update an organization alarm template's default delivery settings or per-alarm rule overrides.

type OrgsAlarms

type OrgsAlarms struct {
	// contains filtered or unexported fields
}

OrgsAlarms represents a controller struct.

func NewOrgsAlarms

func NewOrgsAlarms(baseController baseController) *OrgsAlarms

NewOrgsAlarms creates a new instance of OrgsAlarms. It takes a baseController as a parameter and returns a pointer to the OrgsAlarms.

func (*OrgsAlarms) AckOrgAlarm

func (o *OrgsAlarms) AckOrgAlarm(
	ctx context.Context,
	orgId uuid.UUID,
	alarmId uuid.UUID,
	body *models.NoteString) (
	*http.Response,
	error)

AckOrgAlarm takes context, orgId, alarmId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Acknowledge a single organization alarm and optionally attach a note to the acknowledgement.

func (*OrgsAlarms) AckOrgAllAlarms

func (o *OrgsAlarms) AckOrgAllAlarms(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.NoteString) (
	*http.Response,
	error)

AckOrgAllAlarms takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Acknowledge all alarms in the organization and optionally attach a note. For targeted bulk updates, use [Ack Org Multiple Alarms]($e/Orgs%20Alarms/ackOrgMultipleAlarms) with up to 1000 alarm IDs per request.

func (*OrgsAlarms) AckOrgMultipleAlarms

func (o *OrgsAlarms) AckOrgMultipleAlarms(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Alarms) (
	*http.Response,
	error)

AckOrgMultipleAlarms takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Acknowledge multiple organization alarms by alarm ID and optionally attach a note to the acknowledgement.

func (*OrgsAlarms) CountOrgAlarms

func (o *OrgsAlarms) CountOrgAlarms(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgAlarms takes context, orgId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count alarms across the organization, optionally grouped by the `distinct` field and filtered by time range.

func (*OrgsAlarms) SearchOrgAlarms

func (o *OrgsAlarms) SearchOrgAlarms(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *string,
	group *string,
	severity *string,
	mType *string,
	ackAdminName *string,
	acked *bool,
	start *string,
	end *string,
	duration *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.AlarmSearchResult],
	error)

SearchOrgAlarms takes context, orgId, siteId, group, severity, mType, ackAdminName, acked, start, end, duration, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.AlarmSearchResult data and an error if there was an issue with the request or response. Search alarms across the organization with filters for site, alarm group, severity, type, acknowledgement state, acknowledgement admin, and time range.

func (*OrgsAlarms) SubscribeOrgAlarmsReports added in v0.4.54

func (o *OrgsAlarms) SubscribeOrgAlarmsReports(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

SubscribeOrgAlarmsReports takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Subscribe to Org Alarms/Reports Subscriptions define how Org Alarms/Reports are delivered to whom

func (*OrgsAlarms) UnackOrgAllAlarms added in v0.4.54

func (o *OrgsAlarms) UnackOrgAllAlarms(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.NoteString) (
	*http.Response,
	error)

UnackOrgAllAlarms takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Remove acknowledgement from all alarms in the organization and optionally attach a note. For targeted bulk updates, use [Unack Org Multiple Alarms]($e/Orgs%20Alarms/unackOrgMultipleAlarms) with up to 1000 alarm IDs per request.

func (*OrgsAlarms) UnackOrgMultipleAlarms

func (o *OrgsAlarms) UnackOrgMultipleAlarms(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Alarms) (
	*http.Response,
	error)

UnackOrgMultipleAlarms takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Remove acknowledgement from multiple organization alarms by alarm ID and optionally attach a note.

func (*OrgsAlarms) UnsubscribeOrgAlarmsReports added in v0.4.54

func (o *OrgsAlarms) UnsubscribeOrgAlarmsReports(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

UnsubscribeOrgAlarmsReports takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Unsubscribe from Org Alarms/Reports Subscriptions define how Org Alarms/Reports are delivered to whom

type OrgsAntivirusProfiles added in v0.2.38

type OrgsAntivirusProfiles struct {
	// contains filtered or unexported fields
}

OrgsAntivirusProfiles represents a controller struct.

func NewOrgsAntivirusProfiles added in v0.2.38

func NewOrgsAntivirusProfiles(baseController baseController) *OrgsAntivirusProfiles

NewOrgsAntivirusProfiles creates a new instance of OrgsAntivirusProfiles. It takes a baseController as a parameter and returns a pointer to the OrgsAntivirusProfiles.

func (*OrgsAntivirusProfiles) CreateOrgAntivirusProfile added in v0.2.38

func (o *OrgsAntivirusProfiles) CreateOrgAntivirusProfile(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Avprofile) (
	models.ApiResponse[models.Avprofile],
	error)

CreateOrgAntivirusProfile takes context, orgId, body as parameters and returns an models.ApiResponse with models.Avprofile data and an error if there was an issue with the request or response. Create an organization antivirus scanning profile with inspected protocols, maximum file size, whitelist settings, and fallback action.

func (*OrgsAntivirusProfiles) DeleteOrgAntivirusProfile added in v0.2.38

func (o *OrgsAntivirusProfiles) DeleteOrgAntivirusProfile(
	ctx context.Context,
	orgId uuid.UUID,
	avprofileId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgAntivirusProfile takes context, orgId, avprofileId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization antivirus scanning profile by profile ID.

func (*OrgsAntivirusProfiles) GetOrgAntivirusProfile added in v0.2.38

func (o *OrgsAntivirusProfiles) GetOrgAntivirusProfile(
	ctx context.Context,
	orgId uuid.UUID,
	avprofileId uuid.UUID) (
	models.ApiResponse[models.Avprofile],
	error)

GetOrgAntivirusProfile takes context, orgId, avprofileId as parameters and returns an models.ApiResponse with models.Avprofile data and an error if there was an issue with the request or response. Return one organization antivirus scanning profile, including inspected protocols, scan limits, whitelist settings, and fallback action.

func (*OrgsAntivirusProfiles) ListOrgAntivirusProfiles added in v0.2.38

func (o *OrgsAntivirusProfiles) ListOrgAntivirusProfiles(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Avprofile],
	error)

ListOrgAntivirusProfiles takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Avprofile data and an error if there was an issue with the request or response. List organization antivirus scanning profiles, including inspected protocols, scan limits, whitelist settings, and fallback actions.

func (*OrgsAntivirusProfiles) UpdateOrgAntivirusProfile added in v0.2.38

func (o *OrgsAntivirusProfiles) UpdateOrgAntivirusProfile(
	ctx context.Context,
	orgId uuid.UUID,
	avprofileId uuid.UUID,
	body *models.Avprofile) (
	models.ApiResponse[models.Avprofile],
	error)

UpdateOrgAntivirusProfile takes context, orgId, avprofileId, body as parameters and returns an models.ApiResponse with models.Avprofile data and an error if there was an issue with the request or response. Update an organization antivirus scanning profile's inspected protocols, maximum file size, whitelist settings, or fallback action.

type OrgsAssetFilters

type OrgsAssetFilters struct {
	// contains filtered or unexported fields
}

OrgsAssetFilters represents a controller struct.

func NewOrgsAssetFilters

func NewOrgsAssetFilters(baseController baseController) *OrgsAssetFilters

NewOrgsAssetFilters creates a new instance of OrgsAssetFilters. It takes a baseController as a parameter and returns a pointer to the OrgsAssetFilters.

func (*OrgsAssetFilters) CreateOrgAssetFilter added in v0.4.69

func (o *OrgsAssetFilters) CreateOrgAssetFilter(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.AssetFilter) (
	models.ApiResponse[models.AssetFilter],
	error)

CreateOrgAssetFilter takes context, orgId, body as parameters and returns an models.ApiResponse with models.AssetFilter data and an error if there was an issue with the request or response. Create an organization-level BLE asset filter. Any subset of filter properties can be included, and a matching asset must meet all specified conditions.

func (*OrgsAssetFilters) DeleteOrgAssetFilter

func (o *OrgsAssetFilters) DeleteOrgAssetFilter(
	ctx context.Context,
	orgId uuid.UUID,
	assetfilterId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgAssetFilter takes context, orgId, assetfilterId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization-level BLE asset filter by filter ID.

func (*OrgsAssetFilters) GetOrgAssetFilter

func (o *OrgsAssetFilters) GetOrgAssetFilter(
	ctx context.Context,
	orgId uuid.UUID,
	assetfilterId uuid.UUID) (
	models.ApiResponse[models.AssetFilter],
	error)

GetOrgAssetFilter takes context, orgId, assetfilterId as parameters and returns an models.ApiResponse with models.AssetFilter data and an error if there was an issue with the request or response. Return one organization-level BLE asset filter, including its name, disabled state, and matching criteria.

func (*OrgsAssetFilters) ListOrgAssetFilters

func (o *OrgsAssetFilters) ListOrgAssetFilters(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.AssetFilter],
	error)

ListOrgAssetFilters takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.AssetFilter data and an error if there was an issue with the request or response. List organization-level BLE asset filters. Each filter operates independently, and an asset must match all specified filter properties for that filter to apply.

func (*OrgsAssetFilters) UpdateOrgAssetFilter added in v0.4.69

func (o *OrgsAssetFilters) UpdateOrgAssetFilter(
	ctx context.Context,
	orgId uuid.UUID,
	assetfilterId uuid.UUID,
	body *models.AssetFilter) (
	models.ApiResponse[models.AssetFilter],
	error)

UpdateOrgAssetFilter takes context, orgId, assetfilterId, body as parameters and returns an models.ApiResponse with models.AssetFilter data and an error if there was an issue with the request or response. Update an organization-level BLE asset filter's name, disabled state, or matching criteria.

type OrgsAssets

type OrgsAssets struct {
	// contains filtered or unexported fields
}

OrgsAssets represents a controller struct.

func NewOrgsAssets

func NewOrgsAssets(baseController baseController) *OrgsAssets

NewOrgsAssets creates a new instance of OrgsAssets. It takes a baseController as a parameter and returns a pointer to the OrgsAssets.

func (*OrgsAssets) CreateOrgAsset

func (o *OrgsAssets) CreateOrgAsset(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Asset) (
	models.ApiResponse[models.Asset],
	error)

CreateOrgAsset takes context, orgId, body as parameters and returns an models.ApiResponse with models.Asset data and an error if there was an issue with the request or response. Create a named BLE asset record with a Bluetooth MAC address and optional site, map, or tag metadata.

func (*OrgsAssets) DeleteOrgAsset

func (o *OrgsAssets) DeleteOrgAsset(
	ctx context.Context,
	orgId uuid.UUID,
	assetId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgAsset takes context, orgId, assetId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a named BLE asset record from this organization by asset ID.

func (*OrgsAssets) GetOrgAsset

func (o *OrgsAssets) GetOrgAsset(
	ctx context.Context,
	orgId uuid.UUID,
	assetId uuid.UUID) (
	models.ApiResponse[models.Asset],
	error)

GetOrgAsset takes context, orgId, assetId as parameters and returns an models.ApiResponse with models.Asset data and an error if there was an issue with the request or response. Return one named BLE asset record, including its Bluetooth MAC address and optional site, map, or tag metadata.

func (*OrgsAssets) ImportOrgAssets

func (o *OrgsAssets) ImportOrgAssets(
	ctx context.Context,
	orgId uuid.UUID,
	file *models.FileWrapper) (
	*http.Response,
	error)

ImportOrgAssets takes context, orgId, file as parameters and returns an *Response and an error if there was an issue with the request or response. Import named BLE assets from a JSON payload or CSV file upload. Each asset record includes at least a name and Bluetooth MAC address. #### CSV File Format ```csv name,mac "asset_name",5c5b53010101 ```

func (*OrgsAssets) ListOrgAssets

func (o *OrgsAssets) ListOrgAssets(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Asset],
	error)

ListOrgAssets takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Asset data and an error if there was an issue with the request or response. List named BLE asset records in this organization, including Bluetooth MAC addresses and optional site, map, or tag metadata.

func (*OrgsAssets) UpdateOrgAsset

func (o *OrgsAssets) UpdateOrgAsset(
	ctx context.Context,
	orgId uuid.UUID,
	assetId uuid.UUID,
	body *models.Asset) (
	models.ApiResponse[models.Asset],
	error)

UpdateOrgAsset takes context, orgId, assetId, body as parameters and returns an models.ApiResponse with models.Asset data and an error if there was an issue with the request or response. Update a named BLE asset record's name, Bluetooth MAC address, or optional site, map, or tag metadata.

type OrgsCRL

type OrgsCRL struct {
	// contains filtered or unexported fields
}

OrgsCRL represents a controller struct.

func NewOrgsCRL

func NewOrgsCRL(baseController baseController) *OrgsCRL

NewOrgsCRL creates a new instance of OrgsCRL. It takes a baseController as a parameter and returns a pointer to the OrgsCRL.

func (*OrgsCRL) GetOrgCrlFile

func (o *OrgsCRL) GetOrgCrlFile(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]byte],
	error)

GetOrgCrlFile takes context, orgId as parameters and returns an models.ApiResponse with []byte data and an error if there was an issue with the request or response. Download the organization certificate revocation list (CRL) file used to identify certificates that should no longer be trusted.

type OrgsCert

type OrgsCert struct {
	// contains filtered or unexported fields
}

OrgsCert represents a controller struct.

func NewOrgsCert

func NewOrgsCert(baseController baseController) *OrgsCert

NewOrgsCert creates a new instance of OrgsCert. It takes a baseController as a parameter and returns a pointer to the OrgsCert.

func (*OrgsCert) ClearOrgCertificates

func (o *OrgsCert) ClearOrgCertificates(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

ClearOrgCertificates takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Clear existing organization certificates and trigger certificate regeneration for the organization.

func (*OrgsCert) GetOrgSslProxyCert added in v0.2.38

func (o *OrgsCert) GetOrgSslProxyCert(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.OrgSslProxyCert],
	error)

GetOrgSslProxyCert takes context, orgId as parameters and returns an models.ApiResponse with models.OrgSslProxyCert data and an error if there was an issue with the request or response. Return the PEM-encoded SSL proxy certificate for the organization, used by SSL proxy inspection.

func (*OrgsCert) ListOrgCertificates added in v0.4.69

func (o *OrgsCert) ListOrgCertificates(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.ResponseCertificate],
	error)

ListOrgCertificates takes context, orgId as parameters and returns an models.ApiResponse with models.ResponseCertificate data and an error if there was an issue with the request or response. Return the current organization CA certificate and, when available, the pending auto-renewed certificate scheduled to replace it.

func (*OrgsCert) RotateOrgCertificate added in v0.4.74

func (o *OrgsCert) RotateOrgCertificate(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

RotateOrgCertificate takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Replace the current organization CA certificate with the pending certificate generated previously.

func (*OrgsCert) TruncateOrgCrlFile

func (o *OrgsCert) TruncateOrgCrlFile(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.DaysNumber) (
	*http.Response,
	error)

TruncateOrgCrlFile takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. By default, all certs used by recently unclaimed devices within 9 month will be included in CRL. If the list grows too big, you can truncate it

type OrgsClientsMarvis

type OrgsClientsMarvis struct {
	// contains filtered or unexported fields
}

OrgsClientsMarvis represents a controller struct.

func NewOrgsClientsMarvis

func NewOrgsClientsMarvis(baseController baseController) *OrgsClientsMarvis

NewOrgsClientsMarvis creates a new instance of OrgsClientsMarvis. It takes a baseController as a parameter and returns a pointer to the OrgsClientsMarvis.

func (*OrgsClientsMarvis) CountOrgMarvisClientEvents added in v0.4.104

func (o *OrgsClientsMarvis) CountOrgMarvisClientEvents(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *string,
	mType *string,
	deviceId *string,
	wifiMac *string,
	wifiIp *string,
	hostname *string,
	ssid *string,
	bssid *string,
	channel *string,
	preBssid *string,
	preChannel *string,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgMarvisClientEvents takes context, orgId, distinct, mType, deviceId, wifiMac, wifiIp, hostname, ssid, bssid, channel, preBssid, preChannel, limit, start, end, duration as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Marvis Client events by a distinct field.

func (*OrgsClientsMarvis) DeleteOrgMarvisClient added in v0.4.74

func (o *OrgsClientsMarvis) DeleteOrgMarvisClient(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgMarvisClient takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Marvis Client

func (*OrgsClientsMarvis) GetOrgMarvisClientInsights added in v0.4.104

func (o *OrgsClientsMarvis) GetOrgMarvisClientInsights(
	ctx context.Context,
	orgId uuid.UUID,
	marvisclientId uuid.UUID,
	duration *string,
	interval *string,
	start *string,
	end *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.MarvisClientInsights],
	error)

GetOrgMarvisClientInsights takes context, orgId, marvisclientId, duration, interval, start, end, limit, page as parameters and returns an models.ApiResponse with models.MarvisClientInsights data and an error if there was an issue with the request or response. Return time-series metrics for a specific Marvis Client device. For the full list of supported metric field names and example values, refer to [List Insight Metrics]($e/Constants%20Definitions/listInsightMetrics) under `/api/v1/const/insight_metrics`.

func (*OrgsClientsMarvis) SearchOrgMarvisClientEvents added in v0.4.104

func (o *OrgsClientsMarvis) SearchOrgMarvisClientEvents(
	ctx context.Context,
	orgId uuid.UUID,
	mType *string,
	deviceId *string,
	wifiMac *string,
	wifiIp *string,
	hostname *string,
	ssid *string,
	bssid *string,
	channel *string,
	preBssid *string,
	preChannel *string,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.MarvisClientEventsSearch],
	error)

SearchOrgMarvisClientEvents takes context, orgId, mType, deviceId, wifiMac, wifiIp, hostname, ssid, bssid, channel, preBssid, preChannel, limit, start, end, duration as parameters and returns an models.ApiResponse with models.MarvisClientEventsSearch data and an error if there was an issue with the request or response. Search Marvis Client events across the organization.

type OrgsClientsNAC

type OrgsClientsNAC struct {
	// contains filtered or unexported fields
}

OrgsClientsNAC represents a controller struct.

func NewOrgsClientsNAC

func NewOrgsClientsNAC(baseController baseController) *OrgsClientsNAC

NewOrgsClientsNAC creates a new instance of OrgsClientsNAC. It takes a baseController as a parameter and returns a pointer to the OrgsClientsNAC.

func (*OrgsClientsNAC) CountOrgNacClientEvents

func (o *OrgsClientsNAC) CountOrgNacClientEvents(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgNacClientEventsCountDistinctEnum,
	mType *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgNacClientEvents takes context, orgId, distinct, mType, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count NAC client events across the organization, optionally grouped by `distinct` and filtered by event type and time range.

func (*OrgsClientsNAC) CountOrgNacClients

func (o *OrgsClientsNAC) CountOrgNacClients(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgNacClientsCountDistinctEnum,
	lastNacruleId *string,
	nacruleMatched *bool,
	authType *string,
	lastVlanId *string,
	lastNasVendor *string,
	idpId *string,
	lastSsid *string,
	lastUsername *string,
	siteId *string,
	lastAp *string,
	mac *string,
	lastStatus *string,
	mType *string,
	mdmComplianceStatus *string,
	mdmProvider *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgNacClients takes context, orgId, distinct, lastNacruleId, nacruleMatched, authType, lastVlanId, lastNasVendor, idpId, lastSsid, lastUsername, siteId, lastAp, mac, lastStatus, mType, mdmComplianceStatus, mdmProvider, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count NAC clients across the organization, optionally grouped by `distinct` and filtered by authentication, identity, endpoint, network, site, and time attributes.

func (*OrgsClientsNAC) SearchOrgNacClientEvents

func (o *OrgsClientsNAC) SearchOrgNacClientEvents(
	ctx context.Context,
	orgId uuid.UUID,
	mType *string,
	nacruleId *uuid.UUID,
	nacruleMatched *bool,
	dryrunNacruleId *string,
	dryrunNacruleMatched *bool,
	authType *string,
	vlan *int,
	nasVendor *string,
	bssid *string,
	idpId *uuid.UUID,
	idpRole *string,
	idpUsername *string,
	respAttrs []string,
	ssid *string,
	username *string,
	siteId *string,
	ap *string,
	randomMac *bool,
	mac *string,
	usermacLabel *string,
	text *string,
	nasIp *string,
	ingressVlan *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsNacClientSearch],
	error)

SearchOrgNacClientEvents takes context, orgId, mType, nacruleId, nacruleMatched, dryrunNacruleId, dryrunNacruleMatched, authType, vlan, nasVendor, bssid, idpId, idpRole, idpUsername, respAttrs, ssid, username, siteId, ap, randomMac, mac, usermacLabel, text, nasIp, ingressVlan, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsNacClientSearch data and an error if there was an issue with the request or response. Search NAC client authentication event records across the organization with filters for authentication, NAC rule, identity provider, RADIUS, network, endpoint, site, and time attributes.

func (*OrgsClientsNAC) SearchOrgNacClients

func (o *OrgsClientsNAC) SearchOrgNacClients(
	ctx context.Context,
	orgId uuid.UUID,
	ap *string,
	authType *string,
	certExpiryDuration *string,
	edrManaged *bool,
	edrProviders *models.EdrProviderEnum,
	edrStatus *models.EdrStatusEnum,
	family *string,
	hostname *string,
	idpId *string,
	mac *string,
	mdmCompliance *string,
	mdmProvider *string,
	mdmManaged *bool,
	mfg *string,
	model *string,
	nacruleName *string,
	nacruleId *string,
	nacruleMatched *bool,
	nasVendor *string,
	nasIp *string,
	ingressVlan *string,
	os *string,
	ssid *string,
	status *models.NacClientLastStatusEnum,
	text *string,
	mType *string,
	usermacLabel []string,
	username *string,
	vlan *string,
	siteId *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseClientNacSearch],
	error)

SearchOrgNacClients takes context, orgId, ap, authType, certExpiryDuration, edrManaged, edrProviders, edrStatus, family, hostname, idpId, mac, mdmCompliance, mdmProvider, mdmManaged, mfg, model, nacruleName, nacruleId, nacruleMatched, nasVendor, nasIp, ingressVlan, os, ssid, status, text, mType, usermacLabel, username, vlan, siteId, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseClientNacSearch data and an error if there was an issue with the request or response. Search NAC client records across the organization with filters for authentication, endpoint posture, identity, network, NAC rule, site, and time attributes.

func (*OrgsClientsNAC) SendOrgNacClientCoA added in v0.4.103

func (o *OrgsClientsNAC) SendOrgNacClientCoA(
	ctx context.Context,
	orgId uuid.UUID,
	clientMac string,
	body *models.NacClientCoa) (
	models.ApiResponse[models.NacClientCoaResponse],
	error)

SendOrgNacClientCoA takes context, orgId, clientMac, body as parameters and returns an models.ApiResponse with models.NacClientCoaResponse data and an error if there was an issue with the request or response. Sends CoA (Change of Authorization) command to a NAC client.

type OrgsClientsSDK

type OrgsClientsSDK struct {
	// contains filtered or unexported fields
}

OrgsClientsSDK represents a controller struct.

func NewOrgsClientsSDK

func NewOrgsClientsSDK(baseController baseController) *OrgsClientsSDK

NewOrgsClientsSDK creates a new instance of OrgsClientsSDK. It takes a baseController as a parameter and returns a pointer to the OrgsClientsSDK.

func (*OrgsClientsSDK) UpdateSdkClient

func (o *OrgsClientsSDK) UpdateSdkClient(
	ctx context.Context,
	orgId uuid.UUID,
	sdkclientId uuid.UUID,
	body *models.NameString) (
	*http.Response,
	error)

UpdateSdkClient takes context, orgId, sdkclientId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Update the display name of an SDK client registered in the organization.

type OrgsClientsWan

type OrgsClientsWan struct {
	// contains filtered or unexported fields
}

OrgsClientsWan represents a controller struct.

func NewOrgsClientsWan

func NewOrgsClientsWan(baseController baseController) *OrgsClientsWan

NewOrgsClientsWan creates a new instance of OrgsClientsWan. It takes a baseController as a parameter and returns a pointer to the OrgsClientsWan.

func (*OrgsClientsWan) CountOrgWanClientEvents

func (o *OrgsClientsWan) CountOrgWanClientEvents(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgWanClientsEventsCountDistinctEnum,
	mType *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgWanClientEvents takes context, orgId, distinct, mType, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Org WAN Client-Events

func (*OrgsClientsWan) CountOrgWanClients

func (o *OrgsClientsWan) CountOrgWanClients(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgWanClientsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgWanClients takes context, orgId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Org WAN Clients

func (*OrgsClientsWan) SearchOrgWanClientEvents

func (o *OrgsClientsWan) SearchOrgWanClientEvents(
	ctx context.Context,
	orgId uuid.UUID,
	mType *string,
	mac *string,
	hostname *string,
	ip *string,
	mfg *string,
	nacruleId *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchEventsWanClient],
	error)

SearchOrgWanClientEvents takes context, orgId, mType, mac, hostname, ip, mfg, nacruleId, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchEventsWanClient data and an error if there was an issue with the request or response. Search Org WAN Client Events

func (*OrgsClientsWan) SearchOrgWanClients

func (o *OrgsClientsWan) SearchOrgWanClients(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *uuid.UUID,
	hostname *string,
	ip *string,
	ipSrc *string,
	mac *string,
	mfg *string,
	network *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchWanClient],
	error)

SearchOrgWanClients takes context, orgId, siteId, hostname, ip, ipSrc, mac, mfg, network, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchWanClient data and an error if there was an issue with the request or response. Search Org WAN Clients

type OrgsClientsWired

type OrgsClientsWired struct {
	// contains filtered or unexported fields
}

OrgsClientsWired represents a controller struct.

func NewOrgsClientsWired

func NewOrgsClientsWired(baseController baseController) *OrgsClientsWired

NewOrgsClientsWired creates a new instance of OrgsClientsWired. It takes a baseController as a parameter and returns a pointer to the OrgsClientsWired.

func (*OrgsClientsWired) CountOrgWiredClients

func (o *OrgsClientsWired) CountOrgWiredClients(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgWiredClientsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgWiredClients takes context, orgId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Clients Note: For list of available `type` values, please refer to [List Client Events Definitions]($e/Constants%20Events/listClientEventsDefinitions)

func (*OrgsClientsWired) SearchOrgWiredClients

func (o *OrgsClientsWired) SearchOrgWiredClients(
	ctx context.Context,
	orgId uuid.UUID,
	authState *string,
	authMethod *string,
	source *string,
	siteId *string,
	deviceMac *string,
	mac *string,
	portId *string,
	vlan *string,
	ip *string,
	manufacture *string,
	text *string,
	nacruleId *string,
	dhcpHostname *string,
	dhcpFqdn *string,
	dhcpClientIdentifier *string,
	dhcpVendorClassIdentifier *string,
	dhcpRequestParams *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchWiredClient],
	error)

SearchOrgWiredClients takes context, orgId, authState, authMethod, source, siteId, deviceMac, mac, portId, vlan, ip, manufacture, text, nacruleId, dhcpHostname, dhcpFqdn, dhcpClientIdentifier, dhcpVendorClassIdentifier, dhcpRequestParams, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchWiredClient data and an error if there was an issue with the request or response. Search for Wired Clients in org Note: For list of available `type` values, please refer to [List Client Events Definitions]($e/Constants%20Events/listClientEventsDefinitions)

type OrgsClientsWireless

type OrgsClientsWireless struct {
	// contains filtered or unexported fields
}

OrgsClientsWireless represents a controller struct.

func NewOrgsClientsWireless

func NewOrgsClientsWireless(baseController baseController) *OrgsClientsWireless

NewOrgsClientsWireless creates a new instance of OrgsClientsWireless. It takes a baseController as a parameter and returns a pointer to the OrgsClientsWireless.

func (*OrgsClientsWireless) CountOrgWirelessClientEvents added in v0.4.74

func (o *OrgsClientsWireless) CountOrgWirelessClientEvents(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.SiteClientEventsCountDistinctEnum,
	mType *string,
	reasonCode *int,
	ssid *string,
	ap *string,
	proto *models.Dot11ProtoEnum,
	band *models.Dot11BandEnum,
	wlanId *string,
	siteId *uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgWirelessClientEvents takes context, orgId, distinct, mType, reasonCode, ssid, ap, proto, band, wlanId, siteId, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count wireless client event records across the organization, optionally grouped by event attributes and filtered by event type, WLAN, radio, site, and time range.

func (*OrgsClientsWireless) CountOrgWirelessClients

func (o *OrgsClientsWireless) CountOrgWirelessClients(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgClientsCountDistinctEnum,
	mac *string,
	hostname *string,
	device *string,
	os *string,
	model *string,
	ap *string,
	vlan *string,
	ssid *string,
	ip *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgWirelessClients takes context, orgId, distinct, mac, hostname, device, os, model, ap, vlan, ssid, ip, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count wireless client records across the organization, optionally grouped by `distinct` and filtered by client identity, AP, SSID, VLAN, IP, and time range.

func (*OrgsClientsWireless) CountOrgWirelessClientsSessions

func (o *OrgsClientsWireless) CountOrgWirelessClientsSessions(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgClientSessionsCountDistinctEnum,
	ap *string,
	band *models.Dot11BandEnum,
	clientFamily *string,
	clientManufacture *string,
	clientModel *string,
	clientOs *string,
	ssid *string,
	wlanId *uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgWirelessClientsSessions takes context, orgId, distinct, ap, band, clientFamily, clientManufacture, clientModel, clientOs, ssid, wlanId, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count historical wireless client sessions across the organization, optionally grouped by `distinct` and filtered by AP, band, client attributes, SSID, WLAN, and time range.

func (*OrgsClientsWireless) SearchOrgWirelessClientEvents

func (o *OrgsClientsWireless) SearchOrgWirelessClientEvents(
	ctx context.Context,
	orgId uuid.UUID,
	mType *string,
	reasonCode *string,
	ssid *string,
	ap *string,
	keyMgmt *string,
	proto *string,
	band *string,
	wlanId *uuid.UUID,
	nacruleId *uuid.UUID,
	start *string,
	end *string,
	duration *string,
	sort *string,
	limit *int,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsSearch],
	error)

SearchOrgWirelessClientEvents takes context, orgId, mType, reasonCode, ssid, ap, keyMgmt, proto, band, wlanId, nacruleId, start, end, duration, sort, limit, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsSearch data and an error if there was an issue with the request or response. Search wireless client event records across the organization with filters for event type, reason code, SSID, AP, key management, protocol, band, WLAN, NAC rule, and time range.

func (*OrgsClientsWireless) SearchOrgWirelessClientSessions

func (o *OrgsClientsWireless) SearchOrgWirelessClientSessions(
	ctx context.Context,
	orgId uuid.UUID,
	ap *string,
	band *string,
	clientFamily *string,
	clientManufacture *string,
	clientModel *string,
	clientUsername *string,
	clientOs *string,
	ssid *string,
	wlanId *uuid.UUID,
	pskId *string,
	pskName *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchWirelessClientSession],
	error)

SearchOrgWirelessClientSessions takes context, orgId, ap, band, clientFamily, clientManufacture, clientModel, clientUsername, clientOs, ssid, wlanId, pskId, pskName, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchWirelessClientSession data and an error if there was an issue with the request or response. Search historical wireless client sessions across the organization with filters for AP, band, client family, manufacturer, model, OS, username, SSID, WLAN, PPSK, and time range.

func (*OrgsClientsWireless) SearchOrgWirelessClients

func (o *OrgsClientsWireless) SearchOrgWirelessClients(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *uuid.UUID,
	ap *string,
	band *string,
	device *string,
	hostname *string,
	ip *string,
	mac *string,
	model *string,
	os *string,
	pskId *string,
	pskName *string,
	ssid *string,
	text *string,
	username *string,
	vlan *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseClientSearch],
	error)

SearchOrgWirelessClients takes context, orgId, siteId, ap, band, device, hostname, ip, mac, model, os, pskId, pskName, ssid, text, username, vlan, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseClientSearch data and an error if there was an issue with the request or response. Search wireless client records across the organization with filters for site, AP, band, device identity, hostname, IP, MAC address, username, SSID, PPSK, VLAN, and time range.

type OrgsDeviceProfiles

type OrgsDeviceProfiles struct {
	// contains filtered or unexported fields
}

OrgsDeviceProfiles represents a controller struct.

func NewOrgsDeviceProfiles

func NewOrgsDeviceProfiles(baseController baseController) *OrgsDeviceProfiles

NewOrgsDeviceProfiles creates a new instance of OrgsDeviceProfiles. It takes a baseController as a parameter and returns a pointer to the OrgsDeviceProfiles.

func (*OrgsDeviceProfiles) AssignOrgDeviceProfile

func (o *OrgsDeviceProfiles) AssignOrgDeviceProfile(
	ctx context.Context,
	orgId uuid.UUID,
	deviceprofileId uuid.UUID,
	body *models.MacAddresses) (
	models.ApiResponse[models.ResponseAssignSuccess],
	error)

AssignOrgDeviceProfile takes context, orgId, deviceprofileId, body as parameters and returns an models.ApiResponse with models.ResponseAssignSuccess data and an error if there was an issue with the request or response. Assign Org Device Profile to Devices

func (*OrgsDeviceProfiles) CreateOrgDeviceProfile added in v0.4.69

func (o *OrgsDeviceProfiles) CreateOrgDeviceProfile(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Deviceprofile) (
	models.ApiResponse[models.Deviceprofile],
	error)

CreateOrgDeviceProfile takes context, orgId, body as parameters and returns an models.ApiResponse with models.Deviceprofile data and an error if there was an issue with the request or response. Create an org-level device profile containing reusable AP, switch, or gateway configuration.

func (*OrgsDeviceProfiles) DeleteOrgDeviceProfile

func (o *OrgsDeviceProfiles) DeleteOrgDeviceProfile(
	ctx context.Context,
	orgId uuid.UUID,
	deviceprofileId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgDeviceProfile takes context, orgId, deviceprofileId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an org-level device profile and remove that reusable device configuration object from the organization.

func (*OrgsDeviceProfiles) GetOrgDeviceProfile

func (o *OrgsDeviceProfiles) GetOrgDeviceProfile(
	ctx context.Context,
	orgId uuid.UUID,
	deviceprofileId uuid.UUID) (
	models.ApiResponse[models.Deviceprofile],
	error)

GetOrgDeviceProfile takes context, orgId, deviceprofileId as parameters and returns an models.ApiResponse with models.Deviceprofile data and an error if there was an issue with the request or response. Retrieve the AP, switch, or gateway configuration stored in a specific org-level device profile.

func (*OrgsDeviceProfiles) ListOrgDeviceProfiles

func (o *OrgsDeviceProfiles) ListOrgDeviceProfiles(
	ctx context.Context,
	orgId uuid.UUID,
	mType *models.DeviceTypeDefaultApEnum,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Deviceprofile],
	error)

ListOrgDeviceProfiles takes context, orgId, mType, limit, page as parameters and returns an models.ApiResponse with []models.Deviceprofile data and an error if there was an issue with the request or response. List org-level device profiles, which define reusable AP, switch, or gateway configuration subsets that can be applied to matching devices.

func (*OrgsDeviceProfiles) UnassignOrgDeviceProfile added in v0.2.7

func (o *OrgsDeviceProfiles) UnassignOrgDeviceProfile(
	ctx context.Context,
	orgId uuid.UUID,
	deviceprofileId uuid.UUID,
	body *models.MacAddresses) (
	models.ApiResponse[models.ResponseAssignSuccess],
	error)

UnassignOrgDeviceProfile takes context, orgId, deviceprofileId, body as parameters and returns an models.ApiResponse with models.ResponseAssignSuccess data and an error if there was an issue with the request or response. Unassign Org Device Profile from Devices

func (*OrgsDeviceProfiles) UpdateOrgDeviceProfile

func (o *OrgsDeviceProfiles) UpdateOrgDeviceProfile(
	ctx context.Context,
	orgId uuid.UUID,
	deviceprofileId uuid.UUID,
	body *models.Deviceprofile) (
	models.ApiResponse[models.Deviceprofile],
	error)

UpdateOrgDeviceProfile takes context, orgId, deviceprofileId, body as parameters and returns an models.ApiResponse with models.Deviceprofile data and an error if there was an issue with the request or response. Update the AP, switch, or gateway configuration stored in an org-level device profile.

type OrgsDevices

type OrgsDevices struct {
	// contains filtered or unexported fields
}

OrgsDevices represents a controller struct.

func NewOrgsDevices

func NewOrgsDevices(baseController baseController) *OrgsDevices

NewOrgsDevices creates a new instance of OrgsDevices. It takes a baseController as a parameter and returns a pointer to the OrgsDevices.

func (*OrgsDevices) CountOrgDeviceEvents

func (o *OrgsDevices) CountOrgDeviceEvents(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgDevicesEventsCountDistinctEnum,
	siteId *uuid.UUID,
	ap *string,
	apfw *string,
	model *string,
	text *string,
	mType *string,
	includes *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgDeviceEvents takes context, orgId, distinct, siteId, ap, apfw, model, text, mType, includes, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count device event records across the organization, optionally grouped by `distinct` and filtered by site, AP, firmware, model, event text, event type, and time range.

func (*OrgsDevices) CountOrgDeviceLastConfigs

func (o *OrgsDevices) CountOrgDeviceLastConfigs(
	ctx context.Context,
	orgId uuid.UUID,
	mType *models.DeviceTypeDefaultApEnum,
	distinct *models.OrgDevicesLastConfigsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgDeviceLastConfigs takes context, orgId, mType, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count device config history records across the organization, optionally grouped by `distinct` and filtered by device type and time range.

func (*OrgsDevices) CountOrgDevices

func (o *OrgsDevices) CountOrgDevices(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgDevicesCountDistinctEnum,
	hostname *string,
	siteId *uuid.UUID,
	model *string,
	managed *string,
	mac *string,
	version *string,
	ip *string,
	mxtunnelStatus *models.CountOrgDevicesMxtunnelStatusEnum,
	mxedgeId *uuid.UUID,
	lldpSystemName *string,
	lldpSystemDesc *string,
	lldpPortId *string,
	lldpMgmtAddr *string,
	mType *models.DeviceTypeDefaultApEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgDevices takes context, orgId, distinct, hostname, siteId, model, managed, mac, version, ip, mxtunnelStatus, mxedgeId, lldpSystemName, lldpSystemDesc, lldpPortId, lldpMgmtAddr, mType, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count organization device records, optionally grouped by `distinct` and filtered by device identifiers, model, LLDP attributes, Mist Edge, tunnel status, device type, and time range.

func (*OrgsDevices) GetOrgJuniperDevicesCommand

func (o *OrgsDevices) GetOrgJuniperDevicesCommand(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *string) (
	models.ApiResponse[models.ResponseDeviceConfigCmd],
	error)

GetOrgJuniperDevicesCommand takes context, orgId, siteId as parameters and returns an models.ApiResponse with models.ResponseDeviceConfigCmd data and an error if there was an issue with the request or response. Get Org Juniper Devices command Juniper devices can be managed/adopted by Mist. Currently outbound-ssh + netconf is used. A few lines of CLI commands are generated per-Org, allowing the Juniper devices to phone home to Mist.

func (*OrgsDevices) ListOrgApsMacs

func (o *OrgsDevices) ListOrgApsMacs(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.ApRadioMac],
	error)

ListOrgApsMacs takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.ApRadioMac data and an error if there was an issue with the request or response. For some scenarios like E911 or security systems, the BSSIDs are required to identify which AP the client is connecting to. Then the location of the AP can be used as the approximate location of the client. Each radio MAC can have up to 16 BSSIDs. These are derived by incrementing the least significant hexadecimal digit (last nibble) of the MAC address from 0 to F, while keeping the remaining bits unchanged.

func (*OrgsDevices) ListOrgDevices

func (o *OrgsDevices) ListOrgDevices(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.ResponseOrgDevices],
	error)

ListOrgDevices takes context, orgId as parameters and returns an models.ApiResponse with models.ResponseOrgDevices data and an error if there was an issue with the request or response. List devices in the organization, including APs, switches and gateways managed or monitored by Mist.

func (*OrgsDevices) ListOrgDevicesSummary added in v0.4.74

func (o *OrgsDevices) ListOrgDevicesSummary(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.ResponseOrgDevicesSummary],
	error)

ListOrgDevicesSummary takes context, orgId as parameters and returns an models.ApiResponse with models.ResponseOrgDevicesSummary data and an error if there was an issue with the request or response. Return aggregate organization device counts by device category and assignment state.

func (*OrgsDevices) SearchOrgDeviceEvents

func (o *OrgsDevices) SearchOrgDeviceEvents(
	ctx context.Context,
	orgId uuid.UUID,
	mac *string,
	model *string,
	deviceType *string,
	text *string,
	mType *string,
	lastBy *string,
	includes *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseDeviceEventsSearch],
	error)

SearchOrgDeviceEvents takes context, orgId, mac, model, deviceType, text, mType, lastBy, includes, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseDeviceEventsSearch data and an error if there was an issue with the request or response. Search device event records across the organization with filters for MAC address, model, device type, event text, event type, additional event indices, and time range.

func (*OrgsDevices) SearchOrgDeviceLastConfigs

func (o *OrgsDevices) SearchOrgDeviceLastConfigs(
	ctx context.Context,
	orgId uuid.UUID,
	deviceType *models.LastConfigDeviceTypeEnum,
	mac *string,
	name *string,
	version *string,
	certExpiryDuration *string,
	start *string,
	end *string,
	limit *int,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseConfigHistorySearch],
	error)

SearchOrgDeviceLastConfigs takes context, orgId, deviceType, mac, name, version, certExpiryDuration, start, end, limit, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseConfigHistorySearch data and an error if there was an issue with the request or response. Search device config history records across the organization with filters for device type, MAC address, name, software version, certificate-expiry duration, and time range.

func (*OrgsDevices) SearchOrgDevices

func (o *OrgsDevices) SearchOrgDevices(
	ctx context.Context,
	orgId uuid.UUID,
	band24Channel *int,
	band5Channel *int,
	band6Channel *int,
	band24Bandwidth *int,
	band5Bandwidth *int,
	band6Bandwidth *int,
	band24Power *int,
	band5Power *int,
	band6Power *int,
	clustered *bool,
	eth0PortSpeed *int,
	evpntopoId *uuid.UUID,
	extIp *string,
	hostname *string,
	ip *string,
	lastConfigStatus *string,
	lastHostname *string,
	lldpMgmtAddr *string,
	lldpPortId *string,
	lldpSystemDesc *string,
	lldpSystemName *string,
	mac *string,
	model *string,
	mxedgeId *uuid.UUID,
	mxedgeIds *string,
	mxtunnelStatus *models.SearchOrgDevicesMxtunnelStatusEnum,
	node *models.HaClusterNodeEnum,
	node0Mac *string,
	node1Mac *string,
	powerConstrained *bool,
	radiusStats *string,
	siteId *string,
	stats *bool,
	t128agentVersion *string,
	mType *models.DeviceTypeDefaultApEnum,
	version *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseDeviceSearch],
	error)

SearchOrgDevices takes context, orgId, band24Channel, band5Channel, band6Channel, band24Bandwidth, band5Bandwidth, band6Bandwidth, band24Power, band5Power, band6Power, clustered, eth0PortSpeed, evpntopoId, extIp, hostname, ip, lastConfigStatus, lastHostname, lldpMgmtAddr, lldpPortId, lldpSystemDesc, lldpSystemName, mac, model, mxedgeId, mxedgeIds, mxtunnelStatus, node, node0Mac, node1Mac, powerConstrained, radiusStats, siteId, stats, t128agentVersion, mType, version, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseDeviceSearch data and an error if there was an issue with the request or response. Search organization devices with filters for AP radio attributes, gateway HA attributes, switch EVPN attributes, LLDP data, MAC address, IP address, model, software version, site, Mist Edge, and time range. Set `stats=true` to include device stats in the response.

type OrgsDevicesAOSCX added in v0.4.107

type OrgsDevicesAOSCX struct {
	// contains filtered or unexported fields
}

OrgsDevicesAOSCX represents a controller struct.

func NewOrgsDevicesAOSCX added in v0.4.107

func NewOrgsDevicesAOSCX(baseController baseController) *OrgsDevicesAOSCX

NewOrgsDevicesAOSCX creates a new instance of OrgsDevicesAOSCX. It takes a baseController as a parameter and returns a pointer to the OrgsDevicesAOSCX.

func (*OrgsDevicesAOSCX) GetOrgAoscxRegisterCmd added in v0.4.107

func (o *OrgsDevicesAOSCX) GetOrgAoscxRegisterCmd(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.AoscxRegisterCmd],
	error)

GetOrgAoscxRegisterCmd takes context, orgId as parameters and returns an models.ApiResponse with models.AoscxRegisterCmd data and an error if there was an issue with the request or response. Generates a registration challenge token for TPM-based brownfield registration of AOSCX devices. The returned command string can be copied and pasted directly into an AOSCX device to register it with Mist.

type OrgsDevicesEdgeConnect added in v0.4.107

type OrgsDevicesEdgeConnect struct {
	// contains filtered or unexported fields
}

OrgsDevicesEdgeConnect represents a controller struct.

func NewOrgsDevicesEdgeConnect added in v0.4.107

func NewOrgsDevicesEdgeConnect(baseController baseController) *OrgsDevicesEdgeConnect

NewOrgsDevicesEdgeConnect creates a new instance of OrgsDevicesEdgeConnect. It takes a baseController as a parameter and returns a pointer to the OrgsDevicesEdgeConnect.

func (*OrgsDevicesEdgeConnect) GetOrgEdgeconnectRegisterCmd added in v0.4.107

func (o *OrgsDevicesEdgeConnect) GetOrgEdgeconnectRegisterCmd(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.EdgeconnectRegisterCmd],
	error)

GetOrgEdgeconnectRegisterCmd takes context, orgId as parameters and returns an models.ApiResponse with models.EdgeconnectRegisterCmd data and an error if there was an issue with the request or response. Returns a registration code for adopting an EdgeConnect device into Mist.

type OrgsDevicesOthers

type OrgsDevicesOthers struct {
	// contains filtered or unexported fields
}

OrgsDevicesOthers represents a controller struct.

func NewOrgsDevicesOthers

func NewOrgsDevicesOthers(baseController baseController) *OrgsDevicesOthers

NewOrgsDevicesOthers creates a new instance of OrgsDevicesOthers. It takes a baseController as a parameter and returns a pointer to the OrgsDevicesOthers.

func (*OrgsDevicesOthers) CountOrgOtherDeviceEvents

func (o *OrgsDevicesOthers) CountOrgOtherDeviceEvents(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgOtherdevicesEventsCountDistinctEnum,
	mType *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgOtherDeviceEvents takes context, orgId, distinct, mType, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count third-party device events across the organization, optionally grouped by `distinct` and filtered by event type and time range.

func (*OrgsDevicesOthers) DeleteOrgOtherDevice

func (o *OrgsDevicesOthers) DeleteOrgOtherDevice(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string) (
	*http.Response,
	error)

DeleteOrgOtherDevice takes context, orgId, deviceMac as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a third-party device record from the organization by device MAC address.

func (*OrgsDevicesOthers) GetOrgOtherDevice

func (o *OrgsDevicesOthers) GetOrgOtherDevice(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string) (
	models.ApiResponse[models.DeviceOther],
	error)

GetOrgOtherDevice takes context, orgId, deviceMac as parameters and returns an models.ApiResponse with models.DeviceOther data and an error if there was an issue with the request or response. Retrieve details for a third-party device record, including vendor, model, serial, attached Mist device MAC address, site assignment, and state.

func (*OrgsDevicesOthers) ListOrgOtherDevices

func (o *OrgsDevicesOthers) ListOrgOtherDevices(
	ctx context.Context,
	orgId uuid.UUID,
	vendor *string,
	mac *string,
	serial *string,
	model *string,
	name *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.DeviceOther],
	error)

ListOrgOtherDevices takes context, orgId, vendor, mac, serial, model, name, limit, page as parameters and returns an models.ApiResponse with []models.DeviceOther data and an error if there was an issue with the request or response. List third-party devices across the organization, such as devices discovered or tracked outside the managed Mist device inventory.

func (*OrgsDevicesOthers) RebootOrgOtherDevice

func (o *OrgsDevicesOthers) RebootOrgOtherDevice(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string) (
	*http.Response,
	error)

RebootOrgOtherDevice takes context, orgId, deviceMac as parameters and returns an *Response and an error if there was an issue with the request or response. Request a reboot for a third-party device by device MAC address.

func (*OrgsDevicesOthers) SearchOrgOtherDeviceEvents

func (o *OrgsDevicesOthers) SearchOrgOtherDeviceEvents(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *string,
	mac *string,
	deviceMac *string,
	model *string,
	vendor *string,
	mType *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsOtherDevicesSearch],
	error)

SearchOrgOtherDeviceEvents takes context, orgId, siteId, mac, deviceMac, model, vendor, mType, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsOtherDevicesSearch data and an error if there was an issue with the request or response. Search third-party device events across the organization with filters for site, MAC address, attached device MAC address, model, vendor, event type, and time range.

func (*OrgsDevicesOthers) UpdateOrgOtherDevice

func (o *OrgsDevicesOthers) UpdateOrgOtherDevice(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string,
	body *models.OtherDeviceUpdate) (
	*http.Response,
	error)

UpdateOrgOtherDevice takes context, orgId, deviceMac, body as parameters and returns an *Response and an error if there was an issue with the request or response. Manually update the site or attached Mist device association for a third-party device when automatic identification is unavailable.

func (*OrgsDevicesOthers) UpdateOrgOtherDevices

func (o *OrgsDevicesOthers) UpdateOrgOtherDevices(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.OtherDeviceUpdateMulti) (
	*http.Response,
	error)

UpdateOrgOtherDevices takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Bulk assign or unassign third-party devices to or from a site by MAC address.

type OrgsDevicesSSR

type OrgsDevicesSSR struct {
	// contains filtered or unexported fields
}

OrgsDevicesSSR represents a controller struct.

func NewOrgsDevicesSSR

func NewOrgsDevicesSSR(baseController baseController) *OrgsDevicesSSR

NewOrgsDevicesSSR creates a new instance of OrgsDevicesSSR. It takes a baseController as a parameter and returns a pointer to the OrgsDevicesSSR.

func (*OrgsDevicesSSR) ExportOrgSsrIdTokens added in v0.4.92

ExportOrgSsrIdTokens takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseSsrExportIdTokens data and an error if there was an issue with the request or response. Export SSR ID tokens for the requested device MAC addresses so they can be imported into Conductor during SSR onboarding.

func (*OrgsDevicesSSR) GetOrg128TRegistrationCommands

func (o *OrgsDevicesSSR) GetOrg128TRegistrationCommands(
	ctx context.Context,
	orgId uuid.UUID,
	ttl *int,
	assetIds []string) (
	models.ApiResponse[models.ResponseRouterSsrRegisterCmd],
	error)

GetOrg128TRegistrationCommands takes context, orgId, ttl, assetIds as parameters and returns an models.ApiResponse with models.ResponseRouterSsrRegisterCmd data and an error if there was an issue with the request or response. Deprecated: getOrg128TRegistrationCommands is deprecated 128T devices can be managed/adopted by Mist.

func (*OrgsDevicesSSR) GetOrgSsrRegistrationCommands added in v0.4.92

func (o *OrgsDevicesSSR) GetOrgSsrRegistrationCommands(
	ctx context.Context,
	orgId uuid.UUID,
	ttl *int,
	assetIds []string) (
	models.ApiResponse[models.ResponseRouterSsrRegisterCmd],
	error)

GetOrgSsrRegistrationCommands takes context, orgId, ttl, assetIds as parameters and returns an models.ApiResponse with models.ResponseRouterSsrRegisterCmd data and an error if there was an issue with the request or response. Return the registration token and conductor or router commands used to register SSR routers with Mist. The optional TTL controls token validity, and asset IDs can restrict registration to specific assets.

type OrgsEVPNTopologies

type OrgsEVPNTopologies struct {
	// contains filtered or unexported fields
}

OrgsEVPNTopologies represents a controller struct.

func NewOrgsEVPNTopologies

func NewOrgsEVPNTopologies(baseController baseController) *OrgsEVPNTopologies

NewOrgsEVPNTopologies creates a new instance of OrgsEVPNTopologies. It takes a baseController as a parameter and returns a pointer to the OrgsEVPNTopologies.

func (*OrgsEVPNTopologies) CreateOrgEvpnTopology

func (o *OrgsEVPNTopologies) CreateOrgEvpnTopology(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.EvpnTopology) (
	models.ApiResponse[models.EvpnTopology],
	error)

CreateOrgEvpnTopology takes context, orgId, body as parameters and returns an models.ApiResponse with models.EvpnTopology data and an error if there was an issue with the request or response. While all the `evpn_id` / `downlink_ips` can be specified by hand, the easiest way is to call the `build_vpn_topology` API, allowing you to examine the diff, and update it yourself. You can also simply call it with `overwrite=true` which will apply the updates for you. **Notes:** 1. You can use `core` / `distribution` / `access` to create a CLOS topology 2. You can also use `core` / `distribution` to form a 2-tier EVPN topology where ESI-Lag is configured distribution to connect to access switches 3. In a small/medium campus, `collapsed-core` can be used where core switches are the inter-connected to do EVPN 4. The API uses a few pre-defined parameters and best-practices to generate the configs. It can be customized by using `evpn_options` in Site Setting / Network Template. (e.g. a different subnet for the underlay) #### Collapsed Core In a small-medium campus, EVPN can also be enabled only at the core switches (up to 4) by assigning all participating switches with `collapsed-core role`. When there are more than 2 switches, a ring-like topology will be formed. #### ESI-Lag If the access switches does not have EVPN support, you can take advantage of EVPN by setting up ESI-Lag on distribution switches #### Leaf / Access / Collapsed-Core For leaf nodes in a EVPN topology, you’d have to configure the IPs for networks that would participate in EVPN. Optionally, VRFs to isolate traffic from one tenant versus another

func (*OrgsEVPNTopologies) DeleteOrgEvpnTopology

func (o *OrgsEVPNTopologies) DeleteOrgEvpnTopology(
	ctx context.Context,
	orgId uuid.UUID,
	evpnTopologyId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgEvpnTopology takes context, orgId, evpnTopologyId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an EVPN topology from the organization by topology ID.

func (*OrgsEVPNTopologies) GetOrgEvpnTopology added in v0.4.7

func (o *OrgsEVPNTopologies) GetOrgEvpnTopology(
	ctx context.Context,
	orgId uuid.UUID,
	evpnTopologyId uuid.UUID) (
	models.ApiResponse[models.EvpnTopology],
	error)

GetOrgEvpnTopology takes context, orgId, evpnTopologyId as parameters and returns an models.ApiResponse with models.EvpnTopology data and an error if there was an issue with the request or response. Retrieve the switch roles, links, and generation options for a specific EVPN topology.

func (*OrgsEVPNTopologies) ListOrgEvpnTopologies

func (o *OrgsEVPNTopologies) ListOrgEvpnTopologies(
	ctx context.Context,
	orgId uuid.UUID,
	forSite *models.MxedgeForSiteEnum,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.EvpnTopologyResponse],
	error)

ListOrgEvpnTopologies takes context, orgId, forSite, limit, page as parameters and returns an models.ApiResponse with []models.EvpnTopologyResponse data and an error if there was an issue with the request or response. List EVPN topology records in the organization, optionally filtering for org-level, site-level, or all topologies with `for_site`.

func (*OrgsEVPNTopologies) UpdateOrgEvpnTopology

func (o *OrgsEVPNTopologies) UpdateOrgEvpnTopology(
	ctx context.Context,
	orgId uuid.UUID,
	evpnTopologyId uuid.UUID,
	body *models.EvpnTopology) (
	models.ApiResponse[models.EvpnTopology],
	error)

UpdateOrgEvpnTopology takes context, orgId, evpnTopologyId, body as parameters and returns an models.ApiResponse with models.EvpnTopology data and an error if there was an issue with the request or response. Update an EVPN topology, including switch membership, switch roles, links, and generation options.

type OrgsEvents added in v0.4.74

type OrgsEvents struct {
	// contains filtered or unexported fields
}

OrgsEvents represents a controller struct.

func NewOrgsEvents added in v0.4.74

func NewOrgsEvents(baseController baseController) *OrgsEvents

NewOrgsEvents creates a new instance of OrgsEvents. It takes a baseController as a parameter and returns a pointer to the OrgsEvents.

func (*OrgsEvents) CountOrgSystemEvents added in v0.4.74

func (o *OrgsEvents) CountOrgSystemEvents(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *string,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgSystemEvents takes context, orgId, distinct, limit, start, end, duration as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count organization system event records, optionally grouped by `distinct` and filtered by time range.

func (*OrgsEvents) SearchOrgEvents added in v0.4.74

func (o *OrgsEvents) SearchOrgEvents(
	ctx context.Context,
	orgId uuid.UUID,
	mType *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsOrgsSearch],
	error)

SearchOrgEvents takes context, orgId, mType, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsOrgsSearch data and an error if there was an issue with the request or response. Search Org events Supported Event Types: - CRADLEPOINT_SYNC_FAILED - ORG_CA_CERT_ADDED - ORG_CA_CERT_REGENERATED

func (*OrgsEvents) SearchOrgSystemEvents added in v0.4.74

func (o *OrgsEvents) SearchOrgSystemEvents(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseOrgSystemEventsSearch],
	error)

SearchOrgSystemEvents takes context, orgId, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseOrgSystemEventsSearch data and an error if there was an issue with the request or response. Search organization system event records with time range, sorting, and pagination controls.

type OrgsGatewayTemplates

type OrgsGatewayTemplates struct {
	// contains filtered or unexported fields
}

OrgsGatewayTemplates represents a controller struct.

func NewOrgsGatewayTemplates

func NewOrgsGatewayTemplates(baseController baseController) *OrgsGatewayTemplates

NewOrgsGatewayTemplates creates a new instance of OrgsGatewayTemplates. It takes a baseController as a parameter and returns a pointer to the OrgsGatewayTemplates.

func (*OrgsGatewayTemplates) CreateOrgGatewayTemplate

func (o *OrgsGatewayTemplates) CreateOrgGatewayTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.GatewayTemplate) (
	models.ApiResponse[models.GatewayTemplate],
	error)

CreateOrgGatewayTemplate takes context, orgId, body as parameters and returns an models.ApiResponse with models.GatewayTemplate data and an error if there was an issue with the request or response. Create an organization gateway template with reusable WAN gateway networks, ports, routing, and service-policy configuration. Gateway templates can be applied to multiple sites within the organization to provide consistent gateway configuration across sites. To assign a gateway template to a site, use the [Update Site]($e/Sites/updateSiteInfo) endpoint and specify the gateway template ID in the `gatewaytemplate_id` field of the request body.

func (*OrgsGatewayTemplates) DeleteOrgGatewayTemplate

func (o *OrgsGatewayTemplates) DeleteOrgGatewayTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	gatewaytemplateId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgGatewayTemplate takes context, orgId, gatewaytemplateId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization gateway template and remove that reusable gateway configuration object from the organization.

func (*OrgsGatewayTemplates) GetOrgGatewayTemplate

func (o *OrgsGatewayTemplates) GetOrgGatewayTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	gatewaytemplateId uuid.UUID) (
	models.ApiResponse[models.GatewayTemplate],
	error)

GetOrgGatewayTemplate takes context, orgId, gatewaytemplateId as parameters and returns an models.ApiResponse with models.GatewayTemplate data and an error if there was an issue with the request or response. Retrieve the configuration stored in a specific organization gateway template.

func (*OrgsGatewayTemplates) ListOrgGatewayTemplates

func (o *OrgsGatewayTemplates) ListOrgGatewayTemplates(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.GatewayTemplate],
	error)

ListOrgGatewayTemplates takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.GatewayTemplate data and an error if there was an issue with the request or response. List organization gateway templates, which provide reusable WAN gateway configuration that can be applied to gateways at sites.

func (*OrgsGatewayTemplates) UpdateOrgGatewayTemplate

func (o *OrgsGatewayTemplates) UpdateOrgGatewayTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	gatewaytemplateId uuid.UUID,
	body *models.GatewayTemplate) (
	models.ApiResponse[models.GatewayTemplate],
	error)

UpdateOrgGatewayTemplate takes context, orgId, gatewaytemplateId, body as parameters and returns an models.ApiResponse with models.GatewayTemplate data and an error if there was an issue with the request or response. Update the configuration stored in an organization gateway template.

type OrgsGuests

type OrgsGuests struct {
	// contains filtered or unexported fields
}

OrgsGuests represents a controller struct.

func NewOrgsGuests

func NewOrgsGuests(baseController baseController) *OrgsGuests

NewOrgsGuests creates a new instance of OrgsGuests. It takes a baseController as a parameter and returns a pointer to the OrgsGuests.

func (*OrgsGuests) CountOrgGuestAuthorizations

func (o *OrgsGuests) CountOrgGuestAuthorizations(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgGuestsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgGuestAuthorizations takes context, orgId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count organization guest authorization records, optionally grouped by `distinct` and filtered by time range.

func (*OrgsGuests) DeleteOrgGuestAuthorization

func (o *OrgsGuests) DeleteOrgGuestAuthorization(
	ctx context.Context,
	orgId uuid.UUID,
	guestMac string) (
	*http.Response,
	error)

DeleteOrgGuestAuthorization takes context, orgId, guestMac as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a guest authorization record by guest MAC address.

func (*OrgsGuests) GetOrgGuestAuthorization

func (o *OrgsGuests) GetOrgGuestAuthorization(
	ctx context.Context,
	orgId uuid.UUID,
	guestMac string) (
	models.ApiResponse[models.Guest],
	error)

GetOrgGuestAuthorization takes context, orgId, guestMac as parameters and returns an models.ApiResponse with models.Guest data and an error if there was an issue with the request or response. Retrieve the guest authorization record associated with a guest MAC address.

func (*OrgsGuests) ListOrgGuestAuthorizations

func (o *OrgsGuests) ListOrgGuestAuthorizations(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.Guest],
	error)

ListOrgGuestAuthorizations takes context, orgId as parameters and returns an models.ApiResponse with []models.Guest data and an error if there was an issue with the request or response. List guest authorization records across the organization, including WLAN, SSID, authentication method, expiration, and guest identity details.

func (*OrgsGuests) SearchOrgGuestAuthorization

func (o *OrgsGuests) SearchOrgGuestAuthorization(
	ctx context.Context,
	orgId uuid.UUID,
	wlanId *string,
	authMethod *string,
	ssid *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string) (
	models.ApiResponse[models.ResponseGuestSearch],
	error)

SearchOrgGuestAuthorization takes context, orgId, wlanId, authMethod, ssid, limit, start, end, duration, sort as parameters and returns an models.ApiResponse with models.ResponseGuestSearch data and an error if there was an issue with the request or response. Search organization guest authorization records with filters for WLAN, SSID, authentication method, and time range.

func (*OrgsGuests) UpdateOrgGuestAuthorization

func (o *OrgsGuests) UpdateOrgGuestAuthorization(
	ctx context.Context,
	orgId uuid.UUID,
	guestMac string,
	body *models.GuestOrg) (
	models.ApiResponse[models.Guest],
	error)

UpdateOrgGuestAuthorization takes context, orgId, guestMac, body as parameters and returns an models.ApiResponse with models.Guest data and an error if there was an issue with the request or response. Update the organization guest authorization record for a guest MAC address, including authorization state, duration, WLAN, and guest identity fields.

type OrgsIDPProfiles

type OrgsIDPProfiles struct {
	// contains filtered or unexported fields
}

OrgsIDPProfiles represents a controller struct.

func NewOrgsIDPProfiles

func NewOrgsIDPProfiles(baseController baseController) *OrgsIDPProfiles

NewOrgsIDPProfiles creates a new instance of OrgsIDPProfiles. It takes a baseController as a parameter and returns a pointer to the OrgsIDPProfiles.

func (*OrgsIDPProfiles) CreateOrgIdpProfile

func (o *OrgsIDPProfiles) CreateOrgIdpProfile(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.IdpProfile) (
	models.ApiResponse[models.IdpProfile],
	error)

CreateOrgIdpProfile takes context, orgId, body as parameters and returns an models.ApiResponse with models.IdpProfile data and an error if there was an issue with the request or response. Create an organization Intrusion Detection and Prevention (IDP) profile with a built-in base profile and optional signature overwrite rules.

func (*OrgsIDPProfiles) DeleteOrgIdpProfile

func (o *OrgsIDPProfiles) DeleteOrgIdpProfile(
	ctx context.Context,
	orgId uuid.UUID,
	idpprofileId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgIdpProfile takes context, orgId, idpprofileId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization Intrusion Detection and Prevention (IDP) profile by profile ID.

func (*OrgsIDPProfiles) GetOrgIdpProfile

func (o *OrgsIDPProfiles) GetOrgIdpProfile(
	ctx context.Context,
	orgId uuid.UUID,
	idpprofileId uuid.UUID) (
	models.ApiResponse[models.IdpProfile],
	error)

GetOrgIdpProfile takes context, orgId, idpprofileId as parameters and returns an models.ApiResponse with models.IdpProfile data and an error if there was an issue with the request or response. Retrieve the base profile and signature overwrite rules for a specific organization IDP profile.

func (*OrgsIDPProfiles) ListOrgIdpProfiles

func (o *OrgsIDPProfiles) ListOrgIdpProfiles(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.IdpProfile],
	error)

ListOrgIdpProfiles takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.IdpProfile data and an error if there was an issue with the request or response. List organization Intrusion Detection and Prevention (IDP) profiles, including their base profile and signature overwrite rules.

func (*OrgsIDPProfiles) UpdateOrgIdpProfile

func (o *OrgsIDPProfiles) UpdateOrgIdpProfile(
	ctx context.Context,
	orgId uuid.UUID,
	idpprofileId uuid.UUID,
	body *models.IdpProfile) (
	models.ApiResponse[models.IdpProfile],
	error)

UpdateOrgIdpProfile takes context, orgId, idpprofileId, body as parameters and returns an models.ApiResponse with models.IdpProfile data and an error if there was an issue with the request or response. Update an organization IDP profile, including its base profile and signature overwrite rules.

type OrgsIntegrationCradlepoint added in v0.4.54

type OrgsIntegrationCradlepoint struct {
	// contains filtered or unexported fields
}

OrgsIntegrationCradlepoint represents a controller struct.

func NewOrgsIntegrationCradlepoint added in v0.4.54

func NewOrgsIntegrationCradlepoint(baseController baseController) *OrgsIntegrationCradlepoint

NewOrgsIntegrationCradlepoint creates a new instance of OrgsIntegrationCradlepoint. It takes a baseController as a parameter and returns a pointer to the OrgsIntegrationCradlepoint.

func (*OrgsIntegrationCradlepoint) DeleteOrgCradlepointConnection added in v0.4.54

func (o *OrgsIntegrationCradlepoint) DeleteOrgCradlepointConnection(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgCradlepointConnection takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove the Cradlepoint integration configuration from the organization.

func (*OrgsIntegrationCradlepoint) SetupOrgCradlepointConnectionToMist added in v0.4.54

func (o *OrgsIntegrationCradlepoint) SetupOrgCradlepointConnectionToMist(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.AccountCradlepointConfig) (
	*http.Response,
	error)

SetupOrgCradlepointConnectionToMist takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Configure the Cradlepoint integration by storing Cradlepoint API and ECM credentials and setting up Cradlepoint webhooks to send events to Mist.

func (*OrgsIntegrationCradlepoint) SyncOrgCradlepointRouters added in v0.4.54

func (o *OrgsIntegrationCradlepoint) SyncOrgCradlepointRouters(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

SyncOrgCradlepointRouters takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Trigger a Cradlepoint device synchronization with Mist. When LLDP linking is enabled, Mist also uses Cradlepoint LLDP data to associate routers with Mist sites and devices.

func (*OrgsIntegrationCradlepoint) TestOrgCradlepointConnection added in v0.4.74

func (o *OrgsIntegrationCradlepoint) TestOrgCradlepointConnection(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.TestCradlepoint],
	error)

TestOrgCradlepointConnection takes context, orgId as parameters and returns an models.ApiResponse with models.TestCradlepoint data and an error if there was an issue with the request or response. Test the current Cradlepoint integration configuration and return whether the most recent integration status is active or inactive.

func (*OrgsIntegrationCradlepoint) UpdateOrgCradlepointConnectionToMist added in v0.4.54

func (o *OrgsIntegrationCradlepoint) UpdateOrgCradlepointConnectionToMist(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.AccountCradlepointConfig) (
	*http.Response,
	error)

UpdateOrgCradlepointConnectionToMist takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Update the stored Cradlepoint API and ECM credentials and the LLDP-based device linking option used by Mist.

type OrgsIntegrationJSE added in v0.4.54

type OrgsIntegrationJSE struct {
	// contains filtered or unexported fields
}

OrgsIntegrationJSE represents a controller struct.

func NewOrgsIntegrationJSE added in v0.4.54

func NewOrgsIntegrationJSE(baseController baseController) *OrgsIntegrationJSE

NewOrgsIntegrationJSE creates a new instance of OrgsIntegrationJSE. It takes a baseController as a parameter and returns a pointer to the OrgsIntegrationJSE.

func (*OrgsIntegrationJSE) DeleteOrgJseIntegration added in v0.4.54

func (o *OrgsIntegrationJSE) DeleteOrgJseIntegration(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgJseIntegration takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove the JSE integration configuration from the organization.

func (*OrgsIntegrationJSE) GetOrgJseInfo added in v0.4.54

GetOrgJseInfo takes context, orgId as parameters and returns an models.ApiResponse with models.AccountJseInfo data and an error if there was an issue with the request or response. Return the JSE organizations associated with the configured account. Use the returned organization names when selecting JSE provider options for secure edge tunnels.

func (*OrgsIntegrationJSE) GetOrgJseIntegration added in v0.4.54

func (o *OrgsIntegrationJSE) GetOrgJseIntegration(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.AccountJseInfo],
	error)

GetOrgJseIntegration takes context, orgId as parameters and returns an models.ApiResponse with models.AccountJseInfo data and an error if there was an issue with the request or response. Return the JSE integration configuration, including the cloud hostname, integration username, and associated JSE organization names.

func (*OrgsIntegrationJSE) SetupOrgJseIntegration added in v0.4.54

func (o *OrgsIntegrationJSE) SetupOrgJseIntegration(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.AccountJseConfig) (
	models.ApiResponse[models.AccountJseInfo],
	error)

SetupOrgJseIntegration takes context, orgId, body as parameters and returns an models.ApiResponse with models.AccountJseInfo data and an error if there was an issue with the request or response. Configure the JSE integration with the JSE cloud hostname and integration-user credentials. In JSE, use a custom role with read access to `service_location` and read-write access to site and IPsec profile APIs, then create and activate the integration user and service locations.

type OrgsIntegrationJuniper added in v0.4.54

type OrgsIntegrationJuniper struct {
	// contains filtered or unexported fields
}

OrgsIntegrationJuniper represents a controller struct.

func NewOrgsIntegrationJuniper added in v0.4.54

func NewOrgsIntegrationJuniper(baseController baseController) *OrgsIntegrationJuniper

NewOrgsIntegrationJuniper creates a new instance of OrgsIntegrationJuniper. It takes a baseController as a parameter and returns a pointer to the OrgsIntegrationJuniper.

func (*OrgsIntegrationJuniper) LinkOrgToJuniperJuniperAccount added in v0.4.54

func (o *OrgsIntegrationJuniper) LinkOrgToJuniperJuniperAccount(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.AccountJuniperConfig) (
	models.ApiResponse[models.AccountJuniperInfo],
	error)

LinkOrgToJuniperJuniperAccount takes context, orgId, body as parameters and returns an models.ApiResponse with models.AccountJuniperInfo data and an error if there was an issue with the request or response. Link a Juniper account to the organization using Juniper account credentials. Linked accounts are returned in organization settings and can be used by Juniper integrations.

func (*OrgsIntegrationJuniper) UnlinkOrgFromJuniperCustomerId added in v0.4.54

func (o *OrgsIntegrationJuniper) UnlinkOrgFromJuniperCustomerId(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.AccountJuniperInfo) (
	*http.Response,
	error)

UnlinkOrgFromJuniperCustomerId takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Unlink a Juniper customer account from the organization. The `linked_by` field is required only when multiple linked accounts share the same account name.

type OrgsIntegrationSkyATP added in v0.4.54

type OrgsIntegrationSkyATP struct {
	// contains filtered or unexported fields
}

OrgsIntegrationSkyATP represents a controller struct.

func NewOrgsIntegrationSkyATP added in v0.4.54

func NewOrgsIntegrationSkyATP(baseController baseController) *OrgsIntegrationSkyATP

NewOrgsIntegrationSkyATP creates a new instance of OrgsIntegrationSkyATP. It takes a baseController as a parameter and returns a pointer to the OrgsIntegrationSkyATP.

func (*OrgsIntegrationSkyATP) DeleteOrgSkyAtpIntegration added in v0.4.54

func (o *OrgsIntegrationSkyATP) DeleteOrgSkyAtpIntegration(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgSkyAtpIntegration takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove the Sky ATP integration configuration from the organization.

func (*OrgsIntegrationSkyATP) GetOrgSkyAtpIntegration added in v0.4.54

func (o *OrgsIntegrationSkyATP) GetOrgSkyAtpIntegration(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.AccountSkyatpData],
	error)

GetOrgSkyAtpIntegration takes context, orgId as parameters and returns an models.ApiResponse with models.AccountSkyatpData data and an error if there was an issue with the request or response. Return the Sky ATP integration configuration, including linked realm information and generated SecIntel allowlist and blocklist URLs.

func (*OrgsIntegrationSkyATP) SetupOrgAtpIntegration added in v0.4.54

SetupOrgAtpIntegration takes context, orgId, body as parameters and returns an models.ApiResponse with models.AccountSkyatpData data and an error if there was an issue with the request or response. Configure the Sky ATP integration by linking or creating the Sky ATP realm with the supplied cloud, realm, username, and password. The integration enables Security Intelligence and Advanced Anti-Malware features, with SecIntel configuration for command-and-control, DNS feeds, infected hosts, blocklists, and allowlists.

func (*OrgsIntegrationSkyATP) UdpateOrgAtpAllowedList added in v0.4.74

func (o *OrgsIntegrationSkyATP) UdpateOrgAtpAllowedList(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.SkyatpList) (
	models.ApiResponse[models.SkyatpList],
	error)

UdpateOrgAtpAllowedList takes context, orgId, body as parameters and returns an models.ApiResponse with models.SkyatpList data and an error if there was an issue with the request or response. Update the Sky ATP SecIntel allowlist with domain and IP address entries for the organization.

func (*OrgsIntegrationSkyATP) UdpateOrgAtpBlockedList added in v0.4.74

func (o *OrgsIntegrationSkyATP) UdpateOrgAtpBlockedList(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.SkyatpList) (
	models.ApiResponse[models.SkyatpList],
	error)

UdpateOrgAtpBlockedList takes context, orgId, body as parameters and returns an models.ApiResponse with models.SkyatpList data and an error if there was an issue with the request or response. Update the Sky ATP SecIntel blocklist with domain and IP address entries for the organization.

func (*OrgsIntegrationSkyATP) UdpateOrgAtpIntegration added in v0.4.74

UdpateOrgAtpIntegration takes context, orgId, body as parameters and returns an models.ApiResponse with models.AccountSkyatpInfo data and an error if there was an issue with the request or response. Update Sky ATP SecIntel feed configuration, including the third-party threat feeds enabled for the organization.

type OrgsIntegrationZscaler added in v0.4.54

type OrgsIntegrationZscaler struct {
	// contains filtered or unexported fields
}

OrgsIntegrationZscaler represents a controller struct.

func NewOrgsIntegrationZscaler added in v0.4.54

func NewOrgsIntegrationZscaler(baseController baseController) *OrgsIntegrationZscaler

NewOrgsIntegrationZscaler creates a new instance of OrgsIntegrationZscaler. It takes a baseController as a parameter and returns a pointer to the OrgsIntegrationZscaler.

func (*OrgsIntegrationZscaler) DeleteOrgZscalerIntegration added in v0.4.54

func (o *OrgsIntegrationZscaler) DeleteOrgZscalerIntegration(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgZscalerIntegration takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove the Zscaler integration configuration from the organization.

func (*OrgsIntegrationZscaler) GetOrgZscalerIntegration added in v0.4.54

func (o *OrgsIntegrationZscaler) GetOrgZscalerIntegration(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.AccountZscalerInfo],
	error)

GetOrgZscalerIntegration takes context, orgId as parameters and returns an models.ApiResponse with models.AccountZscalerInfo data and an error if there was an issue with the request or response. Return the Zscaler integration configuration, including Zscaler Internet Access cloud name, partner key, and partner administrator username.

func (*OrgsIntegrationZscaler) SetupOrgZscalerIntegration added in v0.4.54

func (o *OrgsIntegrationZscaler) SetupOrgZscalerIntegration(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.AccountZscalerConfig) (
	*http.Response,
	error)

SetupOrgZscalerIntegration takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Configure the Zscaler integration with the Zscaler Internet Access cloud name, partner key, and partner administrator credentials used by Mist.

type OrgsInventory

type OrgsInventory struct {
	// contains filtered or unexported fields
}

OrgsInventory represents a controller struct.

func NewOrgsInventory

func NewOrgsInventory(baseController baseController) *OrgsInventory

NewOrgsInventory creates a new instance of OrgsInventory. It takes a baseController as a parameter and returns a pointer to the OrgsInventory.

func (*OrgsInventory) AddOrgInventory

func (o *OrgsInventory) AddOrgInventory(
	ctx context.Context,
	orgId uuid.UUID,
	body []string) (
	models.ApiResponse[models.ResponseInventory],
	error)

AddOrgInventory takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseInventory data and an error if there was an issue with the request or response. Claim devices into the organization inventory using order activation codes or device claim codes.

func (*OrgsInventory) CountOrgInventory added in v0.4.0

func (o *OrgsInventory) CountOrgInventory(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.InventoryCountDistinctEnum,
	mType *models.DeviceTypeDefaultApEnum,
	siteId *string,
	model *string,
	version *string,
	status *models.DeviceStatusFilterEnum,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgInventory takes context, orgId, distinct, mType, siteId, model, version, status, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count organization inventory records, optionally grouped by `distinct` and filtered by device type, site, model, version, and status.

func (*OrgsInventory) CreateOrgGatewayHaCluster added in v0.2.25

func (o *OrgsInventory) CreateOrgGatewayHaCluster(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.HaClusterConfig) (
	*http.Response,
	error)

CreateOrgGatewayHaCluster takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Create a gateway HA cluster from unassigned gateway inventory nodes and assign the cluster to the specified site.

func (*OrgsInventory) DeleteOrgGatewayHaCluster added in v0.2.25

func (o *OrgsInventory) DeleteOrgGatewayHaCluster(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.HaClusterDelete) (
	*http.Response,
	error)

DeleteOrgGatewayHaCluster takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Delete HA Cluster After HA cluster deleted, both of the nodes will be unassigned.

func (*OrgsInventory) GetOrgInventory

func (o *OrgsInventory) GetOrgInventory(
	ctx context.Context,
	orgId uuid.UUID,
	serial *string,
	model *string,
	mType *string,
	mac *string,
	siteId *uuid.UUID,
	vcMac *string,
	vc *bool,
	unassigned *bool,
	modifiedAfter *int,
	disconnectedBefore *int,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Inventory],
	error)

GetOrgInventory takes context, orgId, serial, model, mType, mac, siteId, vcMac, vc, unassigned, modifiedAfter, disconnectedBefore, limit, page as parameters and returns an models.ApiResponse with []models.Inventory data and an error if there was an issue with the request or response. Get Org Inventory ### VC (Virtual-Chassis) Management Starting with the April release, Virtual Chassis devices in Mist will now use a cloud-assigned virtual MAC address as the device ID, instead of the physical MAC address of the FPC0 member. **Retrieving the device ID or Site ID of a Virtual Chassis:** 1. Use this API call with the query parameters `vc=true` and `mac` set to the MAC address of the VC member. 2. In the response, check the `vc_mac` and `mac` fields: - If `vc_mac` is empty or not present, the device is not part of a Virtual Chassis. The `device_id` and `site_id` will be available in the device information. - If `vc_mac` differs from the `mac` field, the device is part of a Virtual Chassis but is not the device used to generate the Virtual Chassis ID. Use the `vc_mac` value with the [Get Org Inventory]($e/Orgs%20Inventory/getOrgInventory) API call to retrieve the `device_id` and `site_id`. - If `vc_mac` matches the `mac` field, the device is the device used to generate the Virtual Chassis ID and he `device_id` and `site_id` will be available in the device information. This is the case if the device is the Virtual Chassis "virtual device" (MAC starting with `020003`) or if the device is the Virtual Chassis FPC0 and the Virtual Chassis is still using the FPC0 MAC address to generate the device ID.

func (*OrgsInventory) ReevaluateOrgAutoAssignment

func (o *OrgsInventory) ReevaluateOrgAutoAssignment(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

ReevaluateOrgAutoAssignment takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Re-run organization inventory auto-assignment rules against devices that are eligible for automatic site assignment.

func (*OrgsInventory) ReplaceOrgDevices

ReplaceOrgDevices takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseOrgInventoryChange data and an error if there was an issue with the request or response. It’s a common request we get from the customers. When a AP HW has problem and need a replacement, they would want to copy the existing attributes (Device Config) of this old AP to the new one. It can be done by providing the MAC of a device that’s currently in the inventory but not assigned. The Device replaced will become unassigned. This API also supports replacement of Mist Edges. This API copies device agnostic attributes from old Mist edge to new one. Mist manufactured Mist Edges will be reset to factory settings but will still be in Inventory.Brownfield or VM’s will be deleted from Inventory **Note:** For Gateway devices only like-for-like replacements (can only replace a SRX320 with a SRX320 and not some other model) are allowed.

func (*OrgsInventory) SearchOrgInventory added in v0.4.0

func (o *OrgsInventory) SearchOrgInventory(
	ctx context.Context,
	orgId uuid.UUID,
	mType *models.DeviceTypeDefaultApEnum,
	mac *string,
	model *string,
	name *string,
	siteId *uuid.UUID,
	serial *string,
	magic *string,
	master *string,
	sku *string,
	version *string,
	status *string,
	text *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.InventorySearch],
	error)

SearchOrgInventory takes context, orgId, mType, mac, model, name, siteId, serial, magic, master, sku, version, status, text, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.InventorySearch data and an error if there was an issue with the request or response. Search organization inventory records with filters for type, MAC address, model, name, site, serial number, Virtual Chassis master state, SKU, version, status, and text.

func (*OrgsInventory) UpdateOrgInventoryAssignment

func (o *OrgsInventory) UpdateOrgInventoryAssignment(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.InventoryUpdate) (
	models.ApiResponse[models.ResponseOrgInventoryChange],
	error)

UpdateOrgInventoryAssignment takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseOrgInventoryChange data and an error if there was an issue with the request or response. Update inventory assignment for one or more devices, such as assigning them to a site, unassigning them, or deleting inventory records by MAC address or serial number.

type OrgsJSI

type OrgsJSI struct {
	// contains filtered or unexported fields
}

OrgsJSI represents a controller struct.

func NewOrgsJSI

func NewOrgsJSI(baseController baseController) *OrgsJSI

NewOrgsJSI creates a new instance of OrgsJSI. It takes a baseController as a parameter and returns a pointer to the OrgsJSI.

func (*OrgsJSI) AdoptOrgJsiDevice

func (o *OrgsJSI) AdoptOrgJsiDevice(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.ResponseDeviceConfigCmd],
	error)

AdoptOrgJsiDevice takes context, orgId as parameters and returns an models.ApiResponse with models.ResponseDeviceConfigCmd data and an error if there was an issue with the request or response. Return the outbound SSH registration command used to onboard Junos devices to Juniper Support Insights (JSI).

func (*OrgsJSI) CountOrgJsiAssetsAndContracts added in v0.4.80

func (o *OrgsJSI) CountOrgJsiAssetsAndContracts(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.JsiInventoryCountDistinctEnum,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgJsiAssetsAndContracts takes context, orgId, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count devices purchased from the accounts associated with the Org

func (*OrgsJSI) CountOrgJsiPbn added in v0.4.100

func (o *OrgsJSI) CountOrgJsiPbn(
	ctx context.Context,
	orgId uuid.UUID,
	distinct models.CountPbnDistinctEnum,
	limit *int,
	start *string,
	end *string) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgJsiPbn takes context, orgId, distinct, limit, start, end as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Get count of PBN advisories grouped by specified field

func (*OrgsJSI) CountOrgJsiSirt added in v0.4.100

func (o *OrgsJSI) CountOrgJsiSirt(
	ctx context.Context,
	orgId uuid.UUID,
	distinct models.CountSirtDistinctEnum,
	limit *int,
	start *string,
	end *string) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgJsiSirt takes context, orgId, distinct, limit, start, end as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Get count of SIRT advisories grouped by specified field

func (*OrgsJSI) CreateOrgJsiDeviceShellSession

func (o *OrgsJSI) CreateOrgJsiDeviceShellSession(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string) (
	models.ApiResponse[models.WebsocketSessionWithUrl],
	error)

CreateOrgJsiDeviceShellSession takes context, orgId, deviceMac as parameters and returns an models.ApiResponse with models.WebsocketSessionWithUrl data and an error if there was an issue with the request or response. Create a WebSocket-backed shell session for a JSI-connected device identified by MAC address.

func (*OrgsJSI) ListOrgJsiDevices

func (o *OrgsJSI) ListOrgJsiDevices(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int,
	model *string,
	serial *string,
	mac *string) (
	models.ApiResponse[[]models.JseDevice],
	error)

ListOrgJsiDevices takes context, orgId, limit, page, model, serial, mac as parameters and returns an models.ApiResponse with []models.JseDevice data and an error if there was an issue with the request or response. List organization devices connected to Juniper Support Insights (JSI), optionally filtered by model, serial number, or MAC address.

func (*OrgsJSI) ListOrgJsiPastPurchases

func (o *OrgsJSI) ListOrgJsiPastPurchases(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int,
	model *string,
	serial *string) (
	models.ApiResponse[[]models.JsInventoryItem],
	error)

ListOrgJsiPastPurchases takes context, orgId, limit, page, model, serial as parameters and returns an models.ApiResponse with []models.JsInventoryItem data and an error if there was an issue with the request or response. This gets all devices purchased from the accounts associated with the Org * Fetch Install base devices for all linked accounts and associated account of the linked accounts. * The primary and the associated account ids will be queries from SFDC by passing the linked account * Returns only the device centric details of the Install base device. No customer specific information will be returned.

func (*OrgsJSI) SearchOrgJsiAssetsAndContracts added in v0.4.80

func (o *OrgsJSI) SearchOrgJsiAssetsAndContracts(
	ctx context.Context,
	orgId uuid.UUID,
	claimed *bool,
	model *string,
	serial *string,
	sku *string,
	status *models.DeviceStatusEnum,
	warrantyType *models.JsiWarrantyTypeEnum,
	endOfSaleAfter *string,
	endOfSaleBefore *string,
	eosAfter *string,
	eosBefore *string,
	versionEosAfter *string,
	versionEosBefore *string,
	contractEndBefore *string,
	contractEndAfter *string,
	contractType *string,
	contractSku *string,
	endOfServiceTime *string,
	supportContractStatus *models.SupportContractStatusEnum,
	hasSupport *bool,
	sirtId *string,
	pbnId *string,
	text *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.JsInventorySearch],
	error)

SearchOrgJsiAssetsAndContracts takes context, orgId, claimed, model, serial, sku, status, warrantyType, endOfSaleAfter, endOfSaleBefore, eosAfter, eosBefore, versionEosAfter, versionEosBefore, contractEndBefore, contractEndAfter, contractType, contractSku, endOfServiceTime, supportContractStatus, hasSupport, sirtId, pbnId, text, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.JsInventorySearch data and an error if there was an issue with the request or response. This gets all devices purchased from the accounts associated with the Org * Fetch Install base devices for all linked accounts and associated account of the linked accounts. * The primary and the associated account ids will be queries from SFDC by passing the linked account * Returns only the device centric details of the Install base device. No customer specific information will be returned.

func (*OrgsJSI) SearchOrgJsiPbn added in v0.4.100

func (o *OrgsJSI) SearchOrgJsiPbn(
	ctx context.Context,
	orgId uuid.UUID,
	versions *string,
	mModels *string,
	customerRisk *string,
	id *string,
	bugType *models.JsiPbnBugTypeEnum,
	text *string,
	limit *int,
	page *int,
	sort *string,
	searchAfter *string,
	start *string,
	end *string) (
	models.ApiResponse[models.JsiPbnSearch],
	error)

SearchOrgJsiPbn takes context, orgId, versions, mModels, customerRisk, id, bugType, text, limit, page, sort, searchAfter, start, end as parameters and returns an models.ApiResponse with models.JsiPbnSearch data and an error if there was an issue with the request or response. Text search for PBN (Problem Bug Notification) advisories. Search can be done on versions, models, customer_risk, id, and bug_type fields.

func (*OrgsJSI) SearchOrgJsiSirt added in v0.4.100

func (o *OrgsJSI) SearchOrgJsiSirt(
	ctx context.Context,
	orgId uuid.UUID,
	severity *models.JsiSirtSeverityEnum,
	id *string,
	updatedAfter *string,
	updatedBefore *string,
	publishedAfter *string,
	publishedBefore *string,
	mModels *string,
	versions *string,
	text *string,
	limit *int,
	page *int,
	sort *string,
	searchAfter *string,
	start *string,
	end *string) (
	models.ApiResponse[models.JsiSirtSearch],
	error)

SearchOrgJsiSirt takes context, orgId, severity, id, updatedAfter, updatedBefore, publishedAfter, publishedBefore, mModels, versions, text, limit, page, sort, searchAfter, start, end as parameters and returns an models.ApiResponse with models.JsiSirtSearch data and an error if there was an issue with the request or response. Search and get all the SIRT for the onboarded devices. Search can be done on severity, id, updated_after, updated_before, published_after, published_before, models, versions, and text fields.

type OrgsLicenses

type OrgsLicenses struct {
	// contains filtered or unexported fields
}

OrgsLicenses represents a controller struct.

func NewOrgsLicenses

func NewOrgsLicenses(baseController baseController) *OrgsLicenses

NewOrgsLicenses creates a new instance of OrgsLicenses. It takes a baseController as a parameter and returns a pointer to the OrgsLicenses.

func (*OrgsLicenses) ClaimOrgLicense

ClaimOrgLicense takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseClaimLicense data and an error if there was an issue with the request or response. Synchronously claims licenses and/or inventory devices from an activation code. All inventory devices are claimed immediately during the request.

func (*OrgsLicenses) CreateOrgAsyncClaim added in v0.4.104

CreateOrgAsyncClaim takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseAsyncClaimCreate data and an error if there was an issue with the request or response. Schedules an async claim for inventory devices. Inventory claiming is queued and processed in the background; the response returns immediately with a `claim_id` for polling. Licenses (if `type=all`) are still claimed synchronously during the request. Use `GET /api/v1/orgs/{org_id}/claims/{claim_id}` to poll the result.

func (*OrgsLicenses) GetOrgAsyncClaimStatus added in v0.4.104

func (o *OrgsLicenses) GetOrgAsyncClaimStatus(
	ctx context.Context,
	orgId uuid.UUID,
	claimId uuid.UUID,
	detail *bool) (
	models.ApiResponse[models.ResponseAsyncClaimStatus],
	error)

GetOrgAsyncClaimStatus takes context, orgId, claimId, detail as parameters and returns an models.ApiResponse with models.ResponseAsyncClaimStatus data and an error if there was an issue with the request or response. Return the processing status for a specific async inventory claim job, optionally including per-device details.

func (*OrgsLicenses) GetOrgLicenseAsyncClaimStatus added in v0.4.17

func (o *OrgsLicenses) GetOrgLicenseAsyncClaimStatus(
	ctx context.Context,
	orgId uuid.UUID,
	detail *bool) (
	models.ApiResponse[models.ResponseAsyncLicense],
	error)

GetOrgLicenseAsyncClaimStatus takes context, orgId, detail as parameters and returns an models.ApiResponse with models.ResponseAsyncLicense data and an error if there was an issue with the request or response. Return processing status for an asynchronous organization license claim, optionally including per-device license details.

func (*OrgsLicenses) GetOrgLicensesBySite added in v0.4.74

func (o *OrgsLicenses) GetOrgLicensesBySite(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.LicenseUsageOrg],
	error)

GetOrgLicensesBySite takes context, orgId as parameters and returns an models.ApiResponse with []models.LicenseUsageOrg data and an error if there was an issue with the request or response. Get Licenses Usage by Sites This shows license usage (i.e. needed) based on the features enabled for the site.

func (*OrgsLicenses) GetOrgLicensesSummary added in v0.4.74

func (o *OrgsLicenses) GetOrgLicensesSummary(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.License],
	error)

GetOrgLicensesSummary takes context, orgId as parameters and returns an models.ApiResponse with models.License data and an error if there was an issue with the request or response. Return the organization license entitlement, subscription, amendment, consumption, and available-license summary.

func (*OrgsLicenses) ListOrgAsyncClaims added in v0.4.104

func (o *OrgsLicenses) ListOrgAsyncClaims(
	ctx context.Context,
	orgId uuid.UUID,
	detail *bool) (
	models.ApiResponse[models.ResponseAsyncClaimsList],
	error)

ListOrgAsyncClaims takes context, orgId, detail as parameters and returns an models.ApiResponse with models.ResponseAsyncClaimsList data and an error if there was an issue with the request or response. List all async inventory claim jobs for the organization, optionally including per-device details per claim.

func (*OrgsLicenses) MoveOrDeleteOrgLicenseToAnotherOrg

func (o *OrgsLicenses) MoveOrDeleteOrgLicenseToAnotherOrg(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.OrgLicenseAction) (
	*http.Response,
	error)

MoveOrDeleteOrgLicenseToAnotherOrg takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Move, Undo Move or Delete Org License to Another Org If the admin has admin privilege against the `org_id` and `dst_org_id`, he can move some of the licenses to another Org. Given that: 1. the specified license is currently active 2. there’s enough licenses left in the specified license (by subscription_id) 3. there will still be enough entitled licenses for the type of license after the amendment

type OrgsLinkedApplications

type OrgsLinkedApplications struct {
	// contains filtered or unexported fields
}

OrgsLinkedApplications represents a controller struct.

func NewOrgsLinkedApplications

func NewOrgsLinkedApplications(baseController baseController) *OrgsLinkedApplications

NewOrgsLinkedApplications creates a new instance of OrgsLinkedApplications. It takes a baseController as a parameter and returns a pointer to the OrgsLinkedApplications.

func (*OrgsLinkedApplications) AddOrgOauthAppAccounts

AddOrgOauthAppAccounts takes context, orgId, appName, body as parameters and returns an models.ApiResponse with models.AccountOauthInfo data and an error if there was an issue with the request or response. Add a linked account for the specified OAuth application using the app-specific account configuration payload.

func (*OrgsLinkedApplications) DeleteOrgOauthAppAuthorization

func (o *OrgsLinkedApplications) DeleteOrgOauthAppAuthorization(
	ctx context.Context,
	orgId uuid.UUID,
	appName models.OauthAppNameEnum,
	accountId string) (
	*http.Response,
	error)

DeleteOrgOauthAppAuthorization takes context, orgId, appName, accountId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove a linked account authorization for the specified OAuth application and account ID.

func (*OrgsLinkedApplications) GetOrgOauthAppLinkedStatus

func (o *OrgsLinkedApplications) GetOrgOauthAppLinkedStatus(
	ctx context.Context,
	orgId uuid.UUID,
	appName models.OauthAppNameEnum,
	forward string) (
	models.ApiResponse[models.AccountOauthInfo],
	error)

GetOrgOauthAppLinkedStatus takes context, orgId, appName, forward as parameters and returns an models.ApiResponse with models.AccountOauthInfo data and an error if there was an issue with the request or response. Return linked-account status for the specified organization OAuth application and the authorization URL used to start account linking.

func (*OrgsLinkedApplications) UpdateOrgOauthAppAccount added in v0.4.69

func (o *OrgsLinkedApplications) UpdateOrgOauthAppAccount(
	ctx context.Context,
	orgId uuid.UUID,
	appName models.OauthAppNameEnum,
	accountId string,
	body *models.AccountOauthConfig) (
	*http.Response,
	error)

UpdateOrgOauthAppAccount takes context, orgId, appName, accountId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Update app-specific settings for a linked OAuth application account, such as Zoom or Teams guest redaction settings or a Zoom daily API request quota.

type OrgsLogs

type OrgsLogs struct {
	// contains filtered or unexported fields
}

OrgsLogs represents a controller struct.

func NewOrgsLogs

func NewOrgsLogs(baseController baseController) *OrgsLogs

NewOrgsLogs creates a new instance of OrgsLogs. It takes a baseController as a parameter and returns a pointer to the OrgsLogs.

func (*OrgsLogs) CountOrgAuditLogs added in v0.2.18

func (o *OrgsLogs) CountOrgAuditLogs(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgLogsCountDistinctEnum,
	adminId *uuid.UUID,
	adminName *string,
	siteId *uuid.UUID,
	message *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgAuditLogs takes context, orgId, distinct, adminId, adminName, siteId, message, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count organization audit log records, optionally grouped by `distinct` and filtered by administrator, site, message text, and time range.

func (*OrgsLogs) ListOrgAuditLogs added in v0.2.18

func (o *OrgsLogs) ListOrgAuditLogs(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *string,
	adminName *string,
	message *string,
	sort *models.ListOrgLogsSortEnum,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseLogSearch],
	error)

ListOrgAuditLogs takes context, orgId, siteId, adminName, message, sort, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseLogSearch data and an error if there was an issue with the request or response. Get a list of change logs for the current Org

func (*OrgsLogs) ListOrgAuditLogsLegacy added in v0.4.103

func (o *OrgsLogs) ListOrgAuditLogsLegacy(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *string,
	adminName *string,
	message *string,
	sort *models.ListOrgLogsSortEnum,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseLogSearch],
	error)

ListOrgAuditLogsLegacy takes context, orgId, siteId, adminName, message, sort, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseLogSearch data and an error if there was an issue with the request or response. Deprecated: listOrgAuditLogsLegacy is deprecated Get List of change logs for the current Org

type OrgsMaps

type OrgsMaps struct {
	// contains filtered or unexported fields
}

OrgsMaps represents a controller struct.

func NewOrgsMaps

func NewOrgsMaps(baseController baseController) *OrgsMaps

NewOrgsMaps creates a new instance of OrgsMaps. It takes a baseController as a parameter and returns a pointer to the OrgsMaps.

func (*OrgsMaps) ImportOrgMapToSite

func (o *OrgsMaps) ImportOrgMapToSite(
	ctx context.Context,
	orgId uuid.UUID,
	siteName string,
	autoDeviceprofileAssignment *bool,
	csv *models.FileWrapper,
	file *models.FileWrapper,
	json *models.MapImportJson) (
	models.ApiResponse[models.ResponseMapImport],
	error)

ImportOrgMapToSite takes context, orgId, siteName, autoDeviceprofileAssignment, csv, file, json as parameters and returns an models.ApiResponse with models.ResponseMapImport data and an error if there was an issue with the request or response. Import floorplan data into a site from a multipart upload. The upload includes an Ekahau or iBwave floorplan file, optional import options JSON, and optional AP name-mapping CSV; matching inventory can be assigned to the site and APs placed when names or MAC addresses match.

func (*OrgsMaps) ImportOrgMaps

func (o *OrgsMaps) ImportOrgMaps(
	ctx context.Context,
	orgId uuid.UUID,
	autoDeviceprofileAssignment *bool,
	csv *models.FileWrapper,
	file *models.FileWrapper,
	json *models.MapOrgImportFileJson) (
	models.ApiResponse[models.ResponseMapImport],
	error)

ImportOrgMaps takes context, orgId, autoDeviceprofileAssignment, csv, file, json as parameters and returns an models.ApiResponse with models.ResponseMapImport data and an error if there was an issue with the request or response. Import data from files is a multipart POST which has a file, an optional json, and an optional csv, to create floorplan, assign matching inventory to specific site, place ap if name or mac matches ### CSV File Format ```csv Vendor AP name,Mist AP Mac US Office AP-2 - 5c:5b:35:00:00:02,5c5b35000002 ```

type OrgsMarvis

type OrgsMarvis struct {
	// contains filtered or unexported fields
}

OrgsMarvis represents a controller struct.

func NewOrgsMarvis

func NewOrgsMarvis(baseController baseController) *OrgsMarvis

NewOrgsMarvis creates a new instance of OrgsMarvis. It takes a baseController as a parameter and returns a pointer to the OrgsMarvis.

func (*OrgsMarvis) TroubleshootOrg

func (o *OrgsMarvis) TroubleshootOrg(
	ctx context.Context,
	orgId uuid.UUID,
	mac *string,
	siteId *uuid.UUID,
	start *string,
	end *string,
	mType *models.TroubleshootTypeEnum) (
	models.ApiResponse[models.ResponseTroubleshoot],
	error)

TroubleshootOrg takes context, orgId, mac, siteId, start, end, mType as parameters and returns an models.ApiResponse with models.ResponseTroubleshoot data and an error if there was an issue with the request or response. Troubleshoot sites, devices, clients, and wired clients for maximum of last 7 days from current time. See search APIs for device information: - [search Device]($e/Orgs%20Devices/searchOrgDevices) - [search Wireless Client]($e/Orgs%20Clients%20-%20Wireless/searchOrgWirelessClients) - [search Wired Client]($e/Orgs%20Clients%20-%20Wired/searchOrgWiredClients) - [search Wan Client]($e/Orgs%20Clients%20-%20Wan/searchOrgWanClients) **NOTE**: requires Marvis subscription license

type OrgsMarvisInvites added in v0.4.74

type OrgsMarvisInvites struct {
	// contains filtered or unexported fields
}

OrgsMarvisInvites represents a controller struct.

func NewOrgsMarvisInvites added in v0.4.74

func NewOrgsMarvisInvites(baseController baseController) *OrgsMarvisInvites

NewOrgsMarvisInvites creates a new instance of OrgsMarvisInvites. It takes a baseController as a parameter and returns a pointer to the OrgsMarvisInvites.

func (*OrgsMarvisInvites) CreateOrgMarvisClientInvite added in v0.4.74

func (o *OrgsMarvisInvites) CreateOrgMarvisClientInvite(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.MarvisClient) (
	models.ApiResponse[models.MarvisClient],
	error)

CreateOrgMarvisClientInvite takes context, orgId, body as parameters and returns an models.ApiResponse with models.MarvisClient data and an error if there was an issue with the request or response. Create a Marvis Client onboarding invite profile for the organization, defining the enabled telemetry, location, and synthetic-test capabilities.

func (*OrgsMarvisInvites) DeleteOrgMarvisClientInvite added in v0.4.74

func (o *OrgsMarvisInvites) DeleteOrgMarvisClientInvite(
	ctx context.Context,
	orgId uuid.UUID,
	marvisinviteId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgMarvisClientInvite takes context, orgId, marvisinviteId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a Marvis Client onboarding invite profile by ID.

func (*OrgsMarvisInvites) GetOrgMarvisClientInvite added in v0.4.74

func (o *OrgsMarvisInvites) GetOrgMarvisClientInvite(
	ctx context.Context,
	orgId uuid.UUID,
	marvisinviteId uuid.UUID) (
	models.ApiResponse[models.MarvisClient],
	error)

GetOrgMarvisClientInvite takes context, orgId, marvisinviteId as parameters and returns an models.ApiResponse with models.MarvisClient data and an error if there was an issue with the request or response. Retrieve a Marvis Client onboarding invite profile, including enrollment URL and enabled client capabilities.

func (*OrgsMarvisInvites) ListOrgMarvisClientInvites added in v0.4.74

func (o *OrgsMarvisInvites) ListOrgMarvisClientInvites(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.MarvisClient],
	error)

ListOrgMarvisClientInvites takes context, orgId as parameters and returns an models.ApiResponse with []models.MarvisClient data and an error if there was an issue with the request or response. List Marvis Client onboarding invite profiles for the organization, including enrollment URLs and enabled telemetry, location, and synthetic-test capabilities.

func (*OrgsMarvisInvites) UpdateOrgMarvisClientInvite added in v0.4.74

func (o *OrgsMarvisInvites) UpdateOrgMarvisClientInvite(
	ctx context.Context,
	orgId uuid.UUID,
	marvisinviteId uuid.UUID,
	body *models.MarvisClient) (
	models.ApiResponse[models.MarvisClient],
	error)

UpdateOrgMarvisClientInvite takes context, orgId, marvisinviteId, body as parameters and returns an models.ApiResponse with models.MarvisClient data and an error if there was an issue with the request or response. Update a Marvis Client onboarding invite profile, including enabled telemetry, location, and synthetic-test capabilities.

type OrgsMxClusters

type OrgsMxClusters struct {
	// contains filtered or unexported fields
}

OrgsMxClusters represents a controller struct.

func NewOrgsMxClusters

func NewOrgsMxClusters(baseController baseController) *OrgsMxClusters

NewOrgsMxClusters creates a new instance of OrgsMxClusters. It takes a baseController as a parameter and returns a pointer to the OrgsMxClusters.

func (*OrgsMxClusters) CreateOrgMxEdgeCluster

func (o *OrgsMxClusters) CreateOrgMxEdgeCluster(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Mxcluster) (
	models.ApiResponse[models.Mxcluster],
	error)

CreateOrgMxEdgeCluster takes context, orgId, body as parameters and returns an models.ApiResponse with models.Mxcluster data and an error if there was an issue with the request or response. Create a Mist Edge cluster with tunnel termination, RadSec, NAC, and management settings. **Note**: It is not recommended to combine multiple roles (tunnel termination, RadSec, NAC) on the same Mist Edge cluster

func (*OrgsMxClusters) DeleteOrgMxEdgeCluster

func (o *OrgsMxClusters) DeleteOrgMxEdgeCluster(
	ctx context.Context,
	orgId uuid.UUID,
	mxclusterId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgMxEdgeCluster takes context, orgId, mxclusterId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a Mist Edge cluster by cluster ID, removing its cluster configuration from the organization.

func (*OrgsMxClusters) GetOrgMxEdgeCluster

func (o *OrgsMxClusters) GetOrgMxEdgeCluster(
	ctx context.Context,
	orgId uuid.UUID,
	mxclusterId uuid.UUID) (
	models.ApiResponse[models.Mxcluster],
	error)

GetOrgMxEdgeCluster takes context, orgId, mxclusterId as parameters and returns an models.ApiResponse with models.Mxcluster data and an error if there was an issue with the request or response. Retrieve configuration details for a specific Mist Edge cluster, including tunneling, RadSec, NAC, and management settings.

func (*OrgsMxClusters) ListOrgMxEdgeClusters

func (o *OrgsMxClusters) ListOrgMxEdgeClusters(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Mxcluster],
	error)

ListOrgMxEdgeClusters takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Mxcluster data and an error if there was an issue with the request or response. List Mist Edge clusters in the organization, which group one or more Mist Edge devices for tunneling, RadSec, and related edge services.

func (*OrgsMxClusters) UpdateOrgMxEdgeCluster

func (o *OrgsMxClusters) UpdateOrgMxEdgeCluster(
	ctx context.Context,
	orgId uuid.UUID,
	mxclusterId uuid.UUID,
	body *models.Mxcluster) (
	models.ApiResponse[models.Mxcluster],
	error)

UpdateOrgMxEdgeCluster takes context, orgId, mxclusterId, body as parameters and returns an models.ApiResponse with models.Mxcluster data and an error if there was an issue with the request or response. Update a Mist Edge cluster's tunneling, RadSec, NAC, and management settings.

type OrgsMxEdges

type OrgsMxEdges struct {
	// contains filtered or unexported fields
}

OrgsMxEdges represents a controller struct.

func NewOrgsMxEdges

func NewOrgsMxEdges(baseController baseController) *OrgsMxEdges

NewOrgsMxEdges creates a new instance of OrgsMxEdges. It takes a baseController as a parameter and returns a pointer to the OrgsMxEdges.

func (*OrgsMxEdges) AddOrgMxEdgeImage

func (o *OrgsMxEdges) AddOrgMxEdgeImage(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID,
	imageNumber int,
	file models.FileWrapper,
	json *string) (
	*http.Response,
	error)

AddOrgMxEdgeImage takes context, orgId, mxedgeId, imageNumber, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Upload and attach an image file to a Mist Edge appliance. A Mist Edge can have up to three image attachments.

func (*OrgsMxEdges) AssignOrgMxEdgeToSite

func (o *OrgsMxEdges) AssignOrgMxEdgeToSite(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.MxedgesAssign) (
	models.ApiResponse[models.ResponseAssignSuccess],
	error)

AssignOrgMxEdgeToSite takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseAssignSuccess data and an error if there was an issue with the request or response. Assign one or more Mist Edge appliances from the organization to a site by Mist Edge ID and site ID.

func (*OrgsMxEdges) BounceOrgMxEdgeDataPorts

func (o *OrgsMxEdges) BounceOrgMxEdgeDataPorts(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID,
	body *models.UtilsTuntermBouncePort) (
	*http.Response,
	error)

BounceOrgMxEdgeDataPorts takes context, orgId, mxedgeId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Bounce one or more TunTerm data ports on a Mist Edge, optionally setting the hold time between port bounces.

func (*OrgsMxEdges) ClaimOrgMxEdge

func (o *OrgsMxEdges) ClaimOrgMxEdge(
	ctx context.Context,
	orgId uuid.UUID,
	body []string) (
	models.ApiResponse[models.ResponseClaimMxEdge],
	error)

ClaimOrgMxEdge takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseClaimMxEdge data and an error if there was an issue with the request or response. Claim one or more Mist Edge appliances into the organization using their claim codes.

func (*OrgsMxEdges) ControlOrgMxEdgeServices

func (o *OrgsMxEdges) ControlOrgMxEdgeServices(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID,
	name models.MxedgeServiceNameEnum,
	action models.MxedgeServiceActionEnum) (
	*http.Response,
	error)

ControlOrgMxEdgeServices takes context, orgId, mxedgeId, name, action as parameters and returns an *Response and an error if there was an issue with the request or response. Start, stop, or restart a named Mist Edge service such as `tunterm`, `mxagent`, or `radsecproxy`.

func (*OrgsMxEdges) CountOrgMxEdges

func (o *OrgsMxEdges) CountOrgMxEdges(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgMxedgeCountDistinctEnum,
	mxedgeId *string,
	siteId *string,
	mxclusterId *string,
	model *string,
	distro *string,
	tuntermVersion *string,
	sort *string,
	stats *bool,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgMxEdges takes context, orgId, distinct, mxedgeId, siteId, mxclusterId, model, distro, tuntermVersion, sort, stats, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count organization Mist Edge records, optionally grouped by `distinct` and filtered by Mist Edge, cluster, site, model, distro, tunnel termination version, and time range.

func (*OrgsMxEdges) CountOrgSiteMxEdgeEvents

func (o *OrgsMxEdges) CountOrgSiteMxEdgeEvents(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgMxedgeEventsCountDistinctEnum,
	mxedgeId *string,
	mxclusterId *string,
	mType *string,
	service *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgSiteMxEdgeEvents takes context, orgId, distinct, mxedgeId, mxclusterId, mType, service, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Mist Edge event records across the organization, optionally grouped by `distinct` and filtered by Mist Edge, cluster, event type, service, and time range.

func (*OrgsMxEdges) CreateOrgMxEdge

func (o *OrgsMxEdges) CreateOrgMxEdge(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Mxedge) (
	models.ApiResponse[models.Mxedge],
	error)

CreateOrgMxEdge takes context, orgId, body as parameters and returns an models.ApiResponse with models.Mxedge data and an error if there was an issue with the request or response. Create a Mist Edge appliance configuration in the organization, including cluster assignment, management, services, and tunnel termination settings.

func (*OrgsMxEdges) DeleteOrgMxEdge

func (o *OrgsMxEdges) DeleteOrgMxEdge(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgMxEdge takes context, orgId, mxedgeId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a Mist Edge appliance record from the organization by Mist Edge ID.

func (*OrgsMxEdges) DeleteOrgMxEdgeImage

func (o *OrgsMxEdges) DeleteOrgMxEdgeImage(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID,
	imageNumber int) (
	*http.Response,
	error)

DeleteOrgMxEdgeImage takes context, orgId, mxedgeId, imageNumber as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a numbered image attachment from a Mist Edge appliance.

func (*OrgsMxEdges) DisconnectOrgMxEdgeTuntermAps added in v0.4.54

func (o *OrgsMxEdges) DisconnectOrgMxEdgeTuntermAps(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID,
	body *models.MacAddresses) (
	*http.Response,
	error)

DisconnectOrgMxEdgeTuntermAps takes context, orgId, mxedgeId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Disconnect specific APs from the Mist Edge TunTerm service by AP MAC address.

func (*OrgsMxEdges) GetOrgMxEdge

func (o *OrgsMxEdges) GetOrgMxEdge(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID) (
	models.ApiResponse[models.Mxedge],
	error)

GetOrgMxEdge takes context, orgId, mxedgeId as parameters and returns an models.ApiResponse with models.Mxedge data and an error if there was an issue with the request or response. Retrieve configuration and registration details for a specific Mist Edge appliance in the organization.

func (*OrgsMxEdges) GetOrgMxEdgeUpgradeInfo

func (o *OrgsMxEdges) GetOrgMxEdgeUpgradeInfo(
	ctx context.Context,
	orgId uuid.UUID,
	channel *models.GetOrgMxedgeUpgradeInfoChannelEnum,
	distro *string) (
	models.ApiResponse[[]models.MxedgeUpgradeInfoItems],
	error)

GetOrgMxEdgeUpgradeInfo takes context, orgId, channel, distro as parameters and returns an models.ApiResponse with []models.MxedgeUpgradeInfoItems data and an error if there was an issue with the request or response. Retrieve available Mist Edge package versions by upgrade channel and distro.

func (*OrgsMxEdges) GetOrgMxEdgeVmParams added in v0.4.100

func (o *OrgsMxEdges) GetOrgMxEdgeVmParams(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID) (
	models.ApiResponse[models.MxedgeVmParams],
	error)

GetOrgMxEdgeVmParams takes context, orgId, mxedgeId as parameters and returns an models.ApiResponse with models.MxedgeVmParams data and an error if there was an issue with the request or response. Retrieve VM deployment parameters for a Mist Edge, including model, optional name, and base64 user data.

func (*OrgsMxEdges) ListOrgMxEdges

func (o *OrgsMxEdges) ListOrgMxEdges(
	ctx context.Context,
	orgId uuid.UUID,
	forSite *models.MxedgeForSiteEnum,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Mxedge],
	error)

ListOrgMxEdges takes context, orgId, forSite, limit, page as parameters and returns an models.ApiResponse with []models.Mxedge data and an error if there was an issue with the request or response. List Mist Edge appliances in the organization, optionally filtering for org-level, site-level, or all Mist Edges with `for_site`.

func (*OrgsMxEdges) RestartOrgMxEdge

func (o *OrgsMxEdges) RestartOrgMxEdge(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID) (
	*http.Response,
	error)

RestartOrgMxEdge takes context, orgId, mxedgeId as parameters and returns an *Response and an error if there was an issue with the request or response. Restart the registration workflow for a Mist Edge replacement by disconnecting the currently registered appliance so another Mist Edge can register.

func (*OrgsMxEdges) SearchOrgMistEdgeEvents

func (o *OrgsMxEdges) SearchOrgMistEdgeEvents(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId *string,
	mxclusterId *string,
	mType *string,
	service *string,
	component *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseMxedgeEventsSearch],
	error)

SearchOrgMistEdgeEvents takes context, orgId, mxedgeId, mxclusterId, mType, service, component, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseMxedgeEventsSearch data and an error if there was an issue with the request or response. Search Mist Edge event records across the organization with filters for Mist Edge, cluster, event type, service, component, and time range.

func (*OrgsMxEdges) SearchOrgMxEdges

func (o *OrgsMxEdges) SearchOrgMxEdges(
	ctx context.Context,
	orgId uuid.UUID,
	hostname *string,
	mxedgeId *string,
	mxclusterId *string,
	model *string,
	distro *string,
	tuntermVersion *string,
	siteId *string,
	stats *bool,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseMxedgeSearch],
	error)

SearchOrgMxEdges takes context, orgId, hostname, mxedgeId, mxclusterId, model, distro, tuntermVersion, siteId, stats, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseMxedgeSearch data and an error if there was an issue with the request or response. Search organization Mist Edge records with filters for hostname, Mist Edge, cluster, site, model, distro, tunnel termination version, and time range.

func (*OrgsMxEdges) UnassignOrgMxEdgeFromSite

func (o *OrgsMxEdges) UnassignOrgMxEdgeFromSite(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.MxedgesUnassign) (
	models.ApiResponse[models.ResponseAssignSuccess],
	error)

UnassignOrgMxEdgeFromSite takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseAssignSuccess data and an error if there was an issue with the request or response. Unassign one or more Mist Edge appliances from their current site while keeping them in the organization.

func (*OrgsMxEdges) UnregisterOrgMxEdge

func (o *OrgsMxEdges) UnregisterOrgMxEdge(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID) (
	*http.Response,
	error)

UnregisterOrgMxEdge takes context, orgId, mxedgeId as parameters and returns an *Response and an error if there was an issue with the request or response. Unregister a Mist Edge during a replacement workflow by disconnecting the currently registered appliance so another Mist Edge can register.

func (*OrgsMxEdges) UpdateOrgMxEdge

func (o *OrgsMxEdges) UpdateOrgMxEdge(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID,
	body *models.Mxedge) (
	models.ApiResponse[models.Mxedge],
	error)

UpdateOrgMxEdge takes context, orgId, mxedgeId, body as parameters and returns an models.ApiResponse with models.Mxedge data and an error if there was an issue with the request or response. Update a Mist Edge appliance configuration, including model, name, management IP, services, and tunnel termination settings.

func (*OrgsMxEdges) UploadOrgMxEdgeSupportFiles

func (o *OrgsMxEdges) UploadOrgMxEdgeSupportFiles(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID) (
	*http.Response,
	error)

UploadOrgMxEdgeSupportFiles takes context, orgId, mxedgeId as parameters and returns an *Response and an error if there was an issue with the request or response. Trigger upload of support files from a Mist Edge for troubleshooting.

type OrgsMxTunnels

type OrgsMxTunnels struct {
	// contains filtered or unexported fields
}

OrgsMxTunnels represents a controller struct.

func NewOrgsMxTunnels

func NewOrgsMxTunnels(baseController baseController) *OrgsMxTunnels

NewOrgsMxTunnels creates a new instance of OrgsMxTunnels. It takes a baseController as a parameter and returns a pointer to the OrgsMxTunnels.

func (*OrgsMxTunnels) CreateOrgMxTunnel

func (o *OrgsMxTunnels) CreateOrgMxTunnel(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Mxtunnel) (
	models.ApiResponse[models.Mxtunnel],
	error)

CreateOrgMxTunnel takes context, orgId, body as parameters and returns an models.ApiResponse with models.Mxtunnel data and an error if there was an issue with the request or response. Create an organization Mist Tunnel configuration, including hosting Mist Edge clusters, VLANs, heartbeat settings, and optional IPsec settings.

func (*OrgsMxTunnels) DeleteOrgMxTunnel

func (o *OrgsMxTunnels) DeleteOrgMxTunnel(
	ctx context.Context,
	orgId uuid.UUID,
	mxtunnelId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgMxTunnel takes context, orgId, mxtunnelId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization Mist Tunnel configuration by Mist Tunnel ID.

func (*OrgsMxTunnels) GetOrgMxTunnel

func (o *OrgsMxTunnels) GetOrgMxTunnel(
	ctx context.Context,
	orgId uuid.UUID,
	mxtunnelId uuid.UUID) (
	models.ApiResponse[models.Mxtunnel],
	error)

GetOrgMxTunnel takes context, orgId, mxtunnelId as parameters and returns an models.ApiResponse with models.Mxtunnel data and an error if there was an issue with the request or response. Retrieve configuration details for a specific organization Mist Tunnel, including cluster, VLAN, heartbeat, IPsec, and preemption settings.

func (*OrgsMxTunnels) ListOrgMxTunnels

func (o *OrgsMxTunnels) ListOrgMxTunnels(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Mxtunnel],
	error)

ListOrgMxTunnels takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Mxtunnel data and an error if there was an issue with the request or response. List organization Mist Tunnel configurations used to carry AP user VLANs to Mist Edge clusters.

func (*OrgsMxTunnels) UpdateOrgMxTunnel

func (o *OrgsMxTunnels) UpdateOrgMxTunnel(
	ctx context.Context,
	orgId uuid.UUID,
	mxtunnelId uuid.UUID,
	body *models.Mxtunnel) (
	models.ApiResponse[models.Mxtunnel],
	error)

UpdateOrgMxTunnel takes context, orgId, mxtunnelId, body as parameters and returns an models.ApiResponse with models.Mxtunnel data and an error if there was an issue with the request or response. Update an organization Mist Tunnel configuration, including cluster membership, VLANs, heartbeat settings, IPsec, and preemption behavior.

type OrgsNACCRL

type OrgsNACCRL struct {
	// contains filtered or unexported fields
}

OrgsNACCRL represents a controller struct.

func NewOrgsNACCRL

func NewOrgsNACCRL(baseController baseController) *OrgsNACCRL

NewOrgsNACCRL creates a new instance of OrgsNACCRL. It takes a baseController as a parameter and returns a pointer to the OrgsNACCRL.

func (*OrgsNACCRL) DeleteOrgNacCrl

func (o *OrgsNACCRL) DeleteOrgNacCrl(
	ctx context.Context,
	orgId uuid.UUID,
	naccrlId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgNacCrl takes context, orgId, naccrlId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an uploaded NAC CRL file identified by the file ID assigned when the CRL was uploaded.

func (*OrgsNACCRL) GetOrgNacCrl

GetOrgNacCrl takes context, orgId as parameters and returns an models.ApiResponse with models.ResponseNacCrlFiles data and an error if there was an issue with the request or response. List uploaded NAC CRL files for the organization, including file IDs, issuer names, upload timestamps, and download URLs.

func (*OrgsNACCRL) ImportOrgNacCrl

func (o *OrgsNACCRL) ImportOrgNacCrl(
	ctx context.Context,
	orgId uuid.UUID,
	file *models.FileWrapper,
	json *string) (
	models.ApiResponse[models.NacCrlFile],
	error)

ImportOrgNacCrl takes context, orgId, file, json as parameters and returns an models.ApiResponse with models.NacCrlFile data and an error if there was an issue with the request or response. Upload a NAC Certificate Revocation List (CRL) file in PEM or DER format. This multipart request supports one CRL file per issuer; uploading another file for the same issuer replaces the existing file.

type OrgsNACIDP

type OrgsNACIDP struct {
	// contains filtered or unexported fields
}

OrgsNACIDP represents a controller struct.

func NewOrgsNACIDP

func NewOrgsNACIDP(baseController baseController) *OrgsNACIDP

NewOrgsNACIDP creates a new instance of OrgsNACIDP. It takes a baseController as a parameter and returns a pointer to the OrgsNACIDP.

func (*OrgsNACIDP) ValidateOrgIdpCredential

func (o *OrgsNACIDP) ValidateOrgIdpCredential(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.UsernamePassword) (
	models.ApiResponse[models.WebsocketSession],
	error)

ValidateOrgIdpCredential takes context, orgId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. IDP Credential Validation. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ``` json { "subscribe": "orgs/{org_id}/mist_nac/test_idp" } ``` ### Response (no idp can be found) ``` json { "event": "data", "channel": "/orgs/{org_id}/mist_nac/test_idp", "status": "data": { "status": "failure", "error": "No matching IDP found" } } ``` ### Response OK ``` json { "event": "data", "channel": "/orgs/{org_id}/mist_nac/test_idp", "status": "data": { "status": "success", "idp_id": "915793c0-1355-4e98-b1c0-23df2227b357", "idp_type": "ldap", // more attributes will be added later } } ``` ### Response Invalid Credentials ``` json { "event": "data", "channel": "/orgs/{org_id}/mist_nac/test_idp", "status": "data": { "status": "failure", "error": "Invalid Credentials", "idp_id": "915793c0-1355-4e98-b1c0-23df2227b357", "idp_type": "ldap", } } ```

type OrgsNACPortals

type OrgsNACPortals struct {
	// contains filtered or unexported fields
}

OrgsNACPortals represents a controller struct.

func NewOrgsNACPortals

func NewOrgsNACPortals(baseController baseController) *OrgsNACPortals

NewOrgsNACPortals creates a new instance of OrgsNACPortals. It takes a baseController as a parameter and returns a pointer to the OrgsNACPortals.

func (*OrgsNACPortals) CreateOrgNacPortal

func (o *OrgsNACPortals) CreateOrgNacPortal(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.NacPortal) (
	models.ApiResponse[models.NacPortal],
	error)

CreateOrgNacPortal takes context, orgId, body as parameters and returns an models.ApiResponse with models.NacPortal data and an error if there was an issue with the request or response. Create a NAC portal configuration for guest access, guest administration, or Marvis Client certificate onboarding.

func (*OrgsNACPortals) DeleteOrgNacPortal

func (o *OrgsNACPortals) DeleteOrgNacPortal(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgNacPortal takes context, orgId, nacportalId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization NAC portal configuration by NAC portal ID.

func (*OrgsNACPortals) DeleteOrgNacPortalImage added in v0.2.38

func (o *OrgsNACPortals) DeleteOrgNacPortalImage(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgNacPortalImage takes context, orgId, nacportalId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete the custom background image for a NAC portal. If no image is configured, the NAC portal uses the default background image.

func (*OrgsNACPortals) DownloadOrgNacPortalSamlMetadata added in v0.4.0

func (o *OrgsNACPortals) DownloadOrgNacPortalSamlMetadata(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID) (
	models.ApiResponse[[]byte],
	error)

DownloadOrgNacPortalSamlMetadata takes context, orgId, nacportalId as parameters and returns an models.ApiResponse with []byte data and an error if there was an issue with the request or response. Download NAC portal SAML service provider metadata as an XML document. Example of metadata.xml: ```xml <?xml version="1.0" encoding="UTF-8"?><md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" entityID="https://api.mist.com/api/v1/saml/5hdF5g/login" validUntil="2027-10-12T21:59:01Z" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <md:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> <md:SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://api.mist.com/api/v1/saml/5hdF5g/logout" /> <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat> <md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://api.mist.com/api/v1/saml/5hdF5g/login" index="0" isDefault="true"/> <md:AttributeConsumingService index="0"> <md:ServiceName xml:lang="en-US">Mist</md:ServiceName> <md:RequestedAttribute Name="Role" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="true"/> <md:RequestedAttribute Name="FirstName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> <md:RequestedAttribute Name="LastName" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic" isRequired="false"/> </md:AttributeConsumingService> </md:SPSSODescriptor> </md:EntityDescriptor> ```

func (*OrgsNACPortals) GetOrgNacPortal

func (o *OrgsNACPortals) GetOrgNacPortal(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID) (
	models.ApiResponse[models.NacPortal],
	error)

GetOrgNacPortal takes context, orgId, nacportalId as parameters and returns an models.ApiResponse with models.NacPortal data and an error if there was an issue with the request or response. Retrieve configuration details for a specific NAC portal, including portal type, SSID, SSO, guest portal, certificate, and template settings.

func (*OrgsNACPortals) GetOrgNacPortalSamlMetadata added in v0.4.0

func (o *OrgsNACPortals) GetOrgNacPortalSamlMetadata(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID) (
	models.ApiResponse[models.SamlMetadata],
	error)

GetOrgNacPortalSamlMetadata takes context, orgId, nacportalId as parameters and returns an models.ApiResponse with models.SamlMetadata data and an error if there was an issue with the request or response. Retrieve SAML service provider metadata for a NAC portal, including ACS URL, entity ID, logout URL, and metadata XML.

func (*OrgsNACPortals) ListOrgNacPortalSsoLatestFailures

func (o *OrgsNACPortals) ListOrgNacPortalSsoLatestFailures(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseSsoFailureSearch],
	error)

ListOrgNacPortalSsoLatestFailures takes context, orgId, nacportalId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseSsoFailureSearch data and an error if there was an issue with the request or response. List recent SAML SSO failures for a NAC portal within a selected time range.

func (*OrgsNACPortals) ListOrgNacPortals

func (o *OrgsNACPortals) ListOrgNacPortals(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.NacPortal],
	error)

ListOrgNacPortals takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.NacPortal data and an error if there was an issue with the request or response. List NAC portal configurations in the organization for guest portal, guest admin, or Marvis Client onboarding workflows.

func (*OrgsNACPortals) UpdateOrgNacPortal

func (o *OrgsNACPortals) UpdateOrgNacPortal(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID,
	body *models.NacPortal) (
	models.ApiResponse[models.NacPortal],
	error)

UpdateOrgNacPortal takes context, orgId, nacportalId, body as parameters and returns an models.ApiResponse with models.NacPortal data and an error if there was an issue with the request or response. Update a NAC portal configuration, including portal type, SSID, SSO, guest portal, certificate, and template settings.

func (*OrgsNACPortals) UpdateOrgNacPortalTemplate added in v0.4.54

func (o *OrgsNACPortals) UpdateOrgNacPortalTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID,
	body *models.NacPortalTemplate) (
	*http.Response,
	error)

UpdateOrgNacPortalTemplate takes context, orgId, nacportalId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Update visual template settings for a NAC portal, including alignment, primary color, logo, and Powered by visibility.

func (*OrgsNACPortals) UploadOrgNacPortalImage added in v0.2.38

func (o *OrgsNACPortals) UploadOrgNacPortalImage(
	ctx context.Context,
	orgId uuid.UUID,
	nacportalId uuid.UUID,
	file *models.FileWrapper,
	json *string) (
	*http.Response,
	error)

UploadOrgNacPortalImage takes context, orgId, nacportalId, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Upload a custom background image for a NAC portal.

type OrgsNACRules

type OrgsNACRules struct {
	// contains filtered or unexported fields
}

OrgsNACRules represents a controller struct.

func NewOrgsNACRules

func NewOrgsNACRules(baseController baseController) *OrgsNACRules

NewOrgsNACRules creates a new instance of OrgsNACRules. It takes a baseController as a parameter and returns a pointer to the OrgsNACRules.

func (*OrgsNACRules) CreateOrgNacRule

func (o *OrgsNACRules) CreateOrgNacRule(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.NacRule) (
	models.ApiResponse[models.NacRule],
	error)

CreateOrgNacRule takes context, orgId, body as parameters and returns an models.ApiResponse with models.NacRule data and an error if there was an issue with the request or response. Create a NAC authentication policy rule with match and not-match criteria, an allow or block action, optional result tags, and rule priority.

func (*OrgsNACRules) DeleteOrgNacRule

func (o *OrgsNACRules) DeleteOrgNacRule(
	ctx context.Context,
	orgId uuid.UUID,
	nacruleId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgNacRule takes context, orgId, nacruleId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization NAC authentication policy rule by rule ID.

func (*OrgsNACRules) GetOrgNacRule

func (o *OrgsNACRules) GetOrgNacRule(
	ctx context.Context,
	orgId uuid.UUID,
	nacruleId uuid.UUID) (
	models.ApiResponse[models.NacRule],
	error)

GetOrgNacRule takes context, orgId, nacruleId as parameters and returns an models.ApiResponse with models.NacRule data and an error if there was an issue with the request or response. Retrieve configuration details for a specific NAC authentication policy rule, including action, matching criteria, dry-run state, and priority.

func (*OrgsNACRules) ListOrgNacRules

func (o *OrgsNACRules) ListOrgNacRules(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.NacRule],
	error)

ListOrgNacRules takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.NacRule data and an error if there was an issue with the request or response. List organization NAC authentication policy rules with evaluation order.

func (*OrgsNACRules) UpdateOrgNacRule

func (o *OrgsNACRules) UpdateOrgNacRule(
	ctx context.Context,
	orgId uuid.UUID,
	nacruleId uuid.UUID,
	body *models.NacRule) (
	models.ApiResponse[models.NacRule],
	error)

UpdateOrgNacRule takes context, orgId, nacruleId, body as parameters and returns an models.ApiResponse with models.NacRule data and an error if there was an issue with the request or response. Update a NAC authentication policy rule, including match and not-match criteria, action, result tags, dry-run state, and priority.

type OrgsNACTags

type OrgsNACTags struct {
	// contains filtered or unexported fields
}

OrgsNACTags represents a controller struct.

func NewOrgsNACTags

func NewOrgsNACTags(baseController baseController) *OrgsNACTags

NewOrgsNACTags creates a new instance of OrgsNACTags. It takes a baseController as a parameter and returns a pointer to the OrgsNACTags.

func (*OrgsNACTags) CreateOrgNacTag

func (o *OrgsNACTags) CreateOrgNacTag(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.NacTag) (
	models.ApiResponse[models.NacTag],
	error)

CreateOrgNacTag takes context, orgId, body as parameters and returns an models.ApiResponse with models.NacTag data and an error if there was an issue with the request or response. Create a NAC tag used either as rule-matching criteria or as a result attribute returned when NAC allows access.

func (*OrgsNACTags) DeleteOrgNacTag

func (o *OrgsNACTags) DeleteOrgNacTag(
	ctx context.Context,
	orgId uuid.UUID,
	nactagId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgNacTag takes context, orgId, nactagId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization NAC tag by tag ID so it can no longer be used by NAC rules.

func (*OrgsNACTags) GetOrgNacTag

func (o *OrgsNACTags) GetOrgNacTag(
	ctx context.Context,
	orgId uuid.UUID,
	nactagId uuid.UUID) (
	models.ApiResponse[models.NacTag],
	error)

GetOrgNacTag takes context, orgId, nactagId as parameters and returns an models.ApiResponse with models.NacTag data and an error if there was an issue with the request or response. Retrieve configuration details for a specific NAC tag, including type, match values, RADIUS attributes, VLAN or session results, and portal redirection settings.

func (*OrgsNACTags) ListOrgNacTags

func (o *OrgsNACTags) ListOrgNacTags(
	ctx context.Context,
	orgId uuid.UUID,
	mType *string,
	name *string,
	match *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.NacTag],
	error)

ListOrgNacTags takes context, orgId, mType, name, match, limit, page as parameters and returns an models.ApiResponse with []models.NacTag data and an error if there was an issue with the request or response. List organization NAC tags, optionally filtering by tag type, name, or match attribute.

func (*OrgsNACTags) UpdateOrgNacTag

func (o *OrgsNACTags) UpdateOrgNacTag(
	ctx context.Context,
	orgId uuid.UUID,
	nactagId uuid.UUID,
	body *models.NacTag) (
	models.ApiResponse[models.NacTag],
	error)

UpdateOrgNacTag takes context, orgId, nactagId, body as parameters and returns an models.ApiResponse with models.NacTag data and an error if there was an issue with the request or response. Update a NAC tag, including matcher values or result attributes such as RADIUS attributes, VLAN, session timeout, username attribute, or portal redirection.

type OrgsNetworkTemplates

type OrgsNetworkTemplates struct {
	// contains filtered or unexported fields
}

OrgsNetworkTemplates represents a controller struct.

func NewOrgsNetworkTemplates

func NewOrgsNetworkTemplates(baseController baseController) *OrgsNetworkTemplates

NewOrgsNetworkTemplates creates a new instance of OrgsNetworkTemplates. It takes a baseController as a parameter and returns a pointer to the OrgsNetworkTemplates.

func (*OrgsNetworkTemplates) CreateOrgNetworkTemplate

func (o *OrgsNetworkTemplates) CreateOrgNetworkTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.NetworkTemplate) (
	models.ApiResponse[models.NetworkTemplate],
	error)

CreateOrgNetworkTemplate takes context, orgId, body as parameters and returns an models.ApiResponse with models.NetworkTemplate data and an error if there was an issue with the request or response. Create an organization network template with network, port usage, switch management, routing, NAC, and service configuration at the organization level. Network templates can be applied to multiple sites within the organization to provide consistent network configuration across sites. To assign a network template to a site, use the [Update Site]($e/Sites/updateSiteInfo) endpoint and specify the network template ID in the `networktemplate_id` field of the request body.

func (*OrgsNetworkTemplates) DeleteOrgNetworkTemplate

func (o *OrgsNetworkTemplates) DeleteOrgNetworkTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	networktemplateId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgNetworkTemplate takes context, orgId, networktemplateId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization network template by template ID so it can no longer be applied to sites or site groups.

func (*OrgsNetworkTemplates) GetOrgNetworkTemplate

func (o *OrgsNetworkTemplates) GetOrgNetworkTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	networktemplateId uuid.UUID) (
	models.ApiResponse[models.NetworkTemplate],
	error)

GetOrgNetworkTemplate takes context, orgId, networktemplateId as parameters and returns an models.ApiResponse with models.NetworkTemplate data and an error if there was an issue with the request or response. Retrieve details for a specific organization network template, including network, port usage, switch management, routing, NAC, and service defaults.

func (*OrgsNetworkTemplates) ListOrgNetworkTemplates

func (o *OrgsNetworkTemplates) ListOrgNetworkTemplates(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.NetworkTemplate],
	error)

ListOrgNetworkTemplates takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.NetworkTemplate data and an error if there was an issue with the request or response. List organization network templates that provide switch network, port, management, routing, NAC, and service configuration at the organization level.

func (*OrgsNetworkTemplates) UpdateOrgNetworkTemplate added in v0.4.69

func (o *OrgsNetworkTemplates) UpdateOrgNetworkTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	networktemplateId uuid.UUID,
	body *models.NetworkTemplate) (
	models.ApiResponse[models.NetworkTemplate],
	error)

UpdateOrgNetworkTemplate takes context, orgId, networktemplateId, body as parameters and returns an models.ApiResponse with models.NetworkTemplate data and an error if there was an issue with the request or response. Update an organization network template, including network, port usage, switch management, routing, NAC, and service defaults.

type OrgsNetworks

type OrgsNetworks struct {
	// contains filtered or unexported fields
}

OrgsNetworks represents a controller struct.

func NewOrgsNetworks

func NewOrgsNetworks(baseController baseController) *OrgsNetworks

NewOrgsNetworks creates a new instance of OrgsNetworks. It takes a baseController as a parameter and returns a pointer to the OrgsNetworks.

func (*OrgsNetworks) CreateOrgNetwork

func (o *OrgsNetworks) CreateOrgNetwork(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Network) (
	models.ApiResponse[models.Network],
	error)

CreateOrgNetwork takes context, orgId, body as parameters and returns an models.ApiResponse with models.Network data and an error if there was an issue with the request or response. Create an organization network definition with subnet, gateway, VLAN, access, NAT, multicast, tenant, and VPN access settings used for service routes and gateway or network template configuration. Networks can be used - in the gateway configuration to define Layer 3 network settings and policies for traffic entering or leaving the gateway through a specific interface, such as a corporate LAN, guest Wi-Fi, or DMZ network. - in the service policies to allow or deny traffic matching the network or to apply specific inspection settings or steering rules.

func (*OrgsNetworks) DeleteOrgNetwork

func (o *OrgsNetworks) DeleteOrgNetwork(
	ctx context.Context,
	orgId uuid.UUID,
	networkId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgNetwork takes context, orgId, networkId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization network definition by network ID so it can no longer be referenced by gateway or network template configuration.

func (*OrgsNetworks) GetOrgNetwork

func (o *OrgsNetworks) GetOrgNetwork(
	ctx context.Context,
	orgId uuid.UUID,
	networkId uuid.UUID) (
	models.ApiResponse[models.Network],
	error)

GetOrgNetwork takes context, orgId, networkId as parameters and returns an models.ApiResponse with models.Network data and an error if there was an issue with the request or response. Retrieve details for a specific organization network, including subnet, gateway, VLAN, access, NAT, multicast, tenant, and VPN access settings.

func (*OrgsNetworks) ListOrgNetworks

func (o *OrgsNetworks) ListOrgNetworks(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Network],
	error)

ListOrgNetworks takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Network data and an error if there was an issue with the request or response. List organization-level Layer 3 network definitions used for service routes and gateway or network template configuration.

func (*OrgsNetworks) UpdateOrgNetwork

func (o *OrgsNetworks) UpdateOrgNetwork(
	ctx context.Context,
	orgId uuid.UUID,
	networkId uuid.UUID,
	body *models.Network) (
	models.ApiResponse[models.Network],
	error)

UpdateOrgNetwork takes context, orgId, networkId, body as parameters and returns an models.ApiResponse with models.Network data and an error if there was an issue with the request or response. Update an organization network definition, including subnet, gateway, VLAN, access, NAT, multicast, tenant, and VPN access settings.

type OrgsPremiumAnalytics

type OrgsPremiumAnalytics struct {
	// contains filtered or unexported fields
}

OrgsPremiumAnalytics represents a controller struct.

func NewOrgsPremiumAnalytics

func NewOrgsPremiumAnalytics(baseController baseController) *OrgsPremiumAnalytics

NewOrgsPremiumAnalytics creates a new instance of OrgsPremiumAnalytics. It takes a baseController as a parameter and returns a pointer to the OrgsPremiumAnalytics.

func (*OrgsPremiumAnalytics) ListOrgPmaDashboards

func (o *OrgsPremiumAnalytics) ListOrgPmaDashboards(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.PmaDashboard],
	error)

ListOrgPmaDashboards takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.PmaDashboard data and an error if there was an issue with the request or response. List Premium Analytics dashboard metadata and redirect URLs available to the organization.

type OrgsPskPortals

type OrgsPskPortals struct {
	// contains filtered or unexported fields
}

OrgsPskPortals represents a controller struct.

func NewOrgsPskPortals

func NewOrgsPskPortals(baseController baseController) *OrgsPskPortals

NewOrgsPskPortals creates a new instance of OrgsPskPortals. It takes a baseController as a parameter and returns a pointer to the OrgsPskPortals.

func (*OrgsPskPortals) CountOrgPskPortalLogs

func (o *OrgsPskPortals) CountOrgPskPortalLogs(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgPskPortalLogsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgPskPortalLogs takes context, orgId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count PSK Portal log entries across the organization, optionally grouped by `distinct` and filtered by time range.

func (*OrgsPskPortals) CreateOrgPskPortal

func (o *OrgsPskPortals) CreateOrgPskPortal(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.PskPortal) (
	models.ApiResponse[models.PskPortal],
	error)

CreateOrgPskPortal takes context, orgId, body as parameters and returns an models.ApiResponse with models.PskPortal data and an error if there was an issue with the request or response. Create a self-service PSK Portal configuration for issuing personal PSKs, including SSID, BYOD or admin mode, SSO or sponsor authentication, passphrase rules, and expiry settings.

func (*OrgsPskPortals) DeleteOrgPskPortal

func (o *OrgsPskPortals) DeleteOrgPskPortal(
	ctx context.Context,
	orgId uuid.UUID,
	pskportalId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgPskPortal takes context, orgId, pskportalId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a PSK Portal configuration by portal ID, removing the self-service entry point for issuing PSKs through that portal.

func (*OrgsPskPortals) DeleteOrgPskPortalImage

func (o *OrgsPskPortals) DeleteOrgPskPortalImage(
	ctx context.Context,
	orgId uuid.UUID,
	pskportalId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgPskPortalImage takes context, orgId, pskportalId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete the custom background image for a PSK Portal. If no image is configured, the PSK Portal uses the default background image.

func (*OrgsPskPortals) GetOrgPskPortal

func (o *OrgsPskPortals) GetOrgPskPortal(
	ctx context.Context,
	orgId uuid.UUID,
	pskportalId uuid.UUID) (
	models.ApiResponse[models.PskPortal],
	error)

GetOrgPskPortal takes context, orgId, pskportalId as parameters and returns an models.ApiResponse with models.PskPortal data and an error if there was an issue with the request or response. Retrieve PSK Portal configuration details, including SSID, mode, authentication, SSO, passphrase, expiry, notification, and template URLs.

func (*OrgsPskPortals) ListOrgPskPortalLogs

func (o *OrgsPskPortals) ListOrgPskPortalLogs(
	ctx context.Context,
	orgId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponsePskPortalLogsSearch],
	error)

ListOrgPskPortalLogs takes context, orgId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponsePskPortalLogsSearch data and an error if there was an issue with the request or response. List PSK Portal log entries in the organization for the selected time range.

func (*OrgsPskPortals) ListOrgPskPortals

func (o *OrgsPskPortals) ListOrgPskPortals(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.PskPortal],
	error)

ListOrgPskPortals takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.PskPortal data and an error if there was an issue with the request or response. List self-service PSK Portal configurations in the organization, including portal mode, SSID, authentication, expiry, and passphrase rules.

func (*OrgsPskPortals) SearchOrgPskPortalLogs

func (o *OrgsPskPortals) SearchOrgPskPortalLogs(
	ctx context.Context,
	orgId uuid.UUID,
	pskName *string,
	pskId *string,
	pskportalId *string,
	id *uuid.UUID,
	adminName *string,
	adminId *string,
	nameId *uuid.UUID,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponsePskPortalLogsSearch],
	error)

SearchOrgPskPortalLogs takes context, orgId, pskName, pskId, pskportalId, id, adminName, adminId, nameId, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponsePskPortalLogsSearch data and an error if there was an issue with the request or response. Search PSK Portal log entries across the organization with filters for PSK, portal, admin, SSO NameID, and time range.

func (*OrgsPskPortals) UpdateOrgPskPortal

func (o *OrgsPskPortals) UpdateOrgPskPortal(
	ctx context.Context,
	orgId uuid.UUID,
	pskportalId uuid.UUID,
	body *models.PskPortal) (
	models.ApiResponse[models.PskPortal],
	error)

UpdateOrgPskPortal takes context, orgId, pskportalId, body as parameters and returns an models.ApiResponse with models.PskPortal data and an error if there was an issue with the request or response. Update a PSK Portal configuration, including SSID, mode, authentication, SSO, passphrase, expiry, notification, and template settings.

func (*OrgsPskPortals) UpdateOrgPskPortalTemplate

func (o *OrgsPskPortals) UpdateOrgPskPortalTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	pskportalId uuid.UUID,
	body *models.PskPortalTemplate) (
	*http.Response,
	error)

UpdateOrgPskPortalTemplate takes context, orgId, pskportalId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Update PSK Portal UI template settings, including alignment, color, logo, Powered by visibility, and Terms of Service text.

func (*OrgsPskPortals) UploadOrgPskPortalImage

func (o *OrgsPskPortals) UploadOrgPskPortalImage(
	ctx context.Context,
	orgId uuid.UUID,
	pskportalId uuid.UUID,
	file *models.FileWrapper,
	json *string) (
	*http.Response,
	error)

UploadOrgPskPortalImage takes context, orgId, pskportalId, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Upload a custom background image for a PSK Portal.

type OrgsPsks

type OrgsPsks struct {
	// contains filtered or unexported fields
}

OrgsPsks represents a controller struct.

func NewOrgsPsks

func NewOrgsPsks(baseController baseController) *OrgsPsks

NewOrgsPsks creates a new instance of OrgsPsks. It takes a baseController as a parameter and returns a pointer to the OrgsPsks.

func (*OrgsPsks) CreateOrgPsk

func (o *OrgsPsks) CreateOrgPsk(
	ctx context.Context,
	orgId uuid.UUID,
	upsert *bool,
	body *models.Psk) (
	models.ApiResponse[models.Psk],
	error)

CreateOrgPsk takes context, orgId, upsert, body as parameters and returns an models.ApiResponse with models.Psk data and an error if there was an issue with the request or response. Create an organization personal PSK for WLAN access, including SSID, passphrase, usage mode, optional client MAC binding, role, VLAN, and expiration settings. When `usage`==`macs`, corresponding "macs" field will hold a list consisting of client MAC addresses (["xx:xx:xx:xx:xx",...]) or mac patterns(["xx:xx:*","xx*",...]) or both (["xx:xx:xx:xx:xx:xx", "xx:*", ...]). This list is capped at 5000

func (*OrgsPsks) DeleteOrgPsk

func (o *OrgsPsks) DeleteOrgPsk(
	ctx context.Context,
	orgId uuid.UUID,
	pskId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgPsk takes context, orgId, pskId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization personal PSK by PSK ID so clients can no longer authenticate with that key.

func (*OrgsPsks) DeleteOrgPskList

func (o *OrgsPsks) DeleteOrgPskList(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.PskIdList) (
	*http.Response,
	error)

DeleteOrgPskList takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Delete one or more organization PSKs by ID. The request accepts a single PSK ID string or a list of PSK ID strings. **Warning**: If no PSK IDs are provided in the request, all organization PSKs will be deleted and clients will no longer be able to authenticate to any SSID with a PSK.

func (*OrgsPsks) DeleteOrgPskOldPassphrase

func (o *OrgsPsks) DeleteOrgPskOldPassphrase(
	ctx context.Context,
	orgId uuid.UUID,
	pskId uuid.UUID) (
	models.ApiResponse[models.Psk],
	error)

DeleteOrgPskOldPassphrase takes context, orgId, pskId as parameters and returns an models.ApiResponse with models.Psk data and an error if there was an issue with the request or response. Remove the stored `old_passphrase` from a PSK after rotation. If successful, the response returns the PSK with `old_passphrase` removed.

func (*OrgsPsks) GetOrgPsk

func (o *OrgsPsks) GetOrgPsk(
	ctx context.Context,
	orgId uuid.UUID,
	pskId uuid.UUID) (
	models.ApiResponse[models.Psk],
	error)

GetOrgPsk takes context, orgId, pskId as parameters and returns an models.ApiResponse with models.Psk data and an error if there was an issue with the request or response. Retrieve details for an organization personal PSK, including SSID, usage mode, MAC binding, role, VLAN, expiration, and notification settings.

func (*OrgsPsks) ImportOrgPsks

func (o *OrgsPsks) ImportOrgPsks(
	ctx context.Context,
	orgId uuid.UUID,
	file *models.FileWrapper) (
	models.ApiResponse[[]models.Psk],
	error)

ImportOrgPsks takes context, orgId, file as parameters and returns an models.ApiResponse with []models.Psk data and an error if there was an issue with the request or response. Import organization PSKs from a CSV file or JSON payload. ## CSV File Format ``` PSK Import CSV File Format: name,ssid,passphrase,usage,vlan_id,mac,max_usage,role,expire_time,notify_expiry,expiry_notification_time,notify_on_create_or_edit,email Common,warehouse,foryoureyesonly,single,35,a31425f31278,0,student,1618594236 Justin,reception,visible,multi,1002,200,teacher,1618594236 Common2,ssid,1245678-xx,single,35,a31425f31278,0,student,1618594236,true,7,true,admin@test.com ```

func (*OrgsPsks) ListOrgPsks

func (o *OrgsPsks) ListOrgPsks(
	ctx context.Context,
	orgId uuid.UUID,
	name *string,
	ssid *string,
	role *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Psk],
	error)

ListOrgPsks takes context, orgId, name, ssid, role, limit, page as parameters and returns an models.ApiResponse with []models.Psk data and an error if there was an issue with the request or response. List organization personal PSKs for WLAN access, optionally filtering by name, SSID, or role.

func (*OrgsPsks) UpdateOrgMultiplePsks

func (o *OrgsPsks) UpdateOrgMultiplePsks(
	ctx context.Context,
	orgId uuid.UUID,
	body []models.Psk) (
	models.ApiResponse[[]models.Psk],
	error)

UpdateOrgMultiplePsks takes context, orgId, body as parameters and returns an models.ApiResponse with []models.Psk data and an error if there was an issue with the request or response. Update multiple organization personal PSKs in one request, including passphrase, usage mode, role, VLAN, expiration, and notification settings.

func (*OrgsPsks) UpdateOrgPsk

func (o *OrgsPsks) UpdateOrgPsk(
	ctx context.Context,
	orgId uuid.UUID,
	pskId uuid.UUID,
	body *models.Psk) (
	models.ApiResponse[models.Psk],
	error)

UpdateOrgPsk takes context, orgId, pskId, body as parameters and returns an models.ApiResponse with models.Psk data and an error if there was an issue with the request or response. Update an organization personal PSK, including passphrase, usage mode, MAC binding, role, VLAN, expiration, and notification settings.

type OrgsRFTemplates

type OrgsRFTemplates struct {
	// contains filtered or unexported fields
}

OrgsRFTemplates represents a controller struct.

func NewOrgsRFTemplates

func NewOrgsRFTemplates(baseController baseController) *OrgsRFTemplates

NewOrgsRFTemplates creates a new instance of OrgsRFTemplates. It takes a baseController as a parameter and returns a pointer to the OrgsRFTemplates.

func (*OrgsRFTemplates) CreateOrgRfTemplate

func (o *OrgsRFTemplates) CreateOrgRfTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.RfTemplate) (
	models.ApiResponse[models.RfTemplate],
	error)

CreateOrgRfTemplate takes context, orgId, body as parameters and returns an models.ApiResponse with models.RfTemplate data and an error if there was an issue with the request or response. Create an organization RF template with 2.4, 5, and 6 GHz radio settings, country code, scanning behavior, antenna gain, and model-specific overrides. To assign a RF template to a site, use the [Update Site]($e/Sites/updateSiteInfo) endpoint and specify the RF template ID in the `rftemplate_id` field of the request body.

func (*OrgsRFTemplates) DeleteOrgRfTemplate

func (o *OrgsRFTemplates) DeleteOrgRfTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	rftemplateId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgRfTemplate takes context, orgId, rftemplateId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization RF template by template ID so it can no longer be applied to sites.

func (*OrgsRFTemplates) GetOrgRfTemplate

func (o *OrgsRFTemplates) GetOrgRfTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	rftemplateId uuid.UUID) (
	models.ApiResponse[models.RfTemplate],
	error)

GetOrgRfTemplate takes context, orgId, rftemplateId as parameters and returns an models.ApiResponse with models.RfTemplate data and an error if there was an issue with the request or response. Retrieve details for a specific organization RF template, including radio settings, country code, scanning behavior, antenna gain, and model-specific overrides.

func (*OrgsRFTemplates) ListOrgRfTemplates

func (o *OrgsRFTemplates) ListOrgRfTemplates(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.RfTemplate],
	error)

ListOrgRfTemplates takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.RfTemplate data and an error if there was an issue with the request or response. List organization RF templates used by RRM to apply radio settings across sites.

func (*OrgsRFTemplates) UpdateOrgRfTemplate

func (o *OrgsRFTemplates) UpdateOrgRfTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	rftemplateId uuid.UUID,
	body *models.RfTemplate) (
	models.ApiResponse[models.RfTemplate],
	error)

UpdateOrgRfTemplate takes context, orgId, rftemplateId, body as parameters and returns an models.ApiResponse with models.RfTemplate data and an error if there was an issue with the request or response. Update an organization RF template, including radio settings, country code, scanning behavior, antenna gain, and model-specific overrides.

type OrgsReports added in v0.4.103

type OrgsReports struct {
	// contains filtered or unexported fields
}

OrgsReports represents a controller struct.

func NewOrgsReports added in v0.4.103

func NewOrgsReports(baseController baseController) *OrgsReports

NewOrgsReports creates a new instance of OrgsReports. It takes a baseController as a parameter and returns a pointer to the OrgsReports.

func (*OrgsReports) DisableOrgE911Report added in v0.4.103

func (o *OrgsReports) DisableOrgE911Report(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.OrgE911Report],
	error)

DisableOrgE911Report takes context, orgId as parameters and returns an models.ApiResponse with models.OrgE911Report data and an error if there was an issue with the request or response. Disable automatic E911 AP BSSID report generation for the organization.

func (*OrgsReports) EnableOrgE911Report added in v0.4.103

func (o *OrgsReports) EnableOrgE911Report(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.OrgE911Report],
	error)

EnableOrgE911Report takes context, orgId as parameters and returns an models.ApiResponse with models.OrgE911Report data and an error if there was an issue with the request or response. Enable automatic E911 AP BSSID report generation for the organization. Reports will be generated immediately and then every 24 hours.

func (*OrgsReports) GetOrgE911Report added in v0.4.103

func (o *OrgsReports) GetOrgE911Report(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.OrgE911Report],
	error)

GetOrgE911Report takes context, orgId as parameters and returns an models.ApiResponse with models.OrgE911Report data and an error if there was an issue with the request or response. Get the status of E911 AP BSSID reports and download URL if available.

type OrgsSCEP added in v0.2.38

type OrgsSCEP struct {
	// contains filtered or unexported fields
}

OrgsSCEP represents a controller struct.

func NewOrgsSCEP added in v0.2.38

func NewOrgsSCEP(baseController baseController) *OrgsSCEP

NewOrgsSCEP creates a new instance of OrgsSCEP. It takes a baseController as a parameter and returns a pointer to the OrgsSCEP.

func (*OrgsSCEP) DisableOrgMistScep added in v0.2.38

func (o *OrgsSCEP) DisableOrgMistScep(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.OrgSettingScepResponse],
	error)

DisableOrgMistScep takes context, orgId as parameters and returns an models.ApiResponse with models.OrgSettingScepResponse data and an error if there was an issue with the request or response. Disable Mist SCEP for the organization and return the updated read-only SCEP settings.

func (*OrgsSCEP) GetOrgMistScep added in v0.2.38

func (o *OrgsSCEP) GetOrgMistScep(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.OrgSettingScepResponse],
	error)

GetOrgMistScep takes context, orgId as parameters and returns an models.ApiResponse with models.OrgSettingScepResponse data and an error if there was an issue with the request or response. Return Mist SCEP settings for the organization, including enabled and suspended status, configured certificate providers, and generated enrollment or webhook URLs.

func (*OrgsSCEP) ListOrgIssuedClientCertificates added in v0.4.69

func (o *OrgsSCEP) ListOrgIssuedClientCertificates(
	ctx context.Context,
	orgId uuid.UUID,
	commonName *string,
	certProvider *string,
	serialNumber *string,
	deviceId *string,
	expireTime *int,
	createdTime *int,
	limit *int,
	page *int) (
	models.ApiResponse[models.IssuedClientCertificatesResults],
	error)

ListOrgIssuedClientCertificates takes context, orgId, commonName, certProvider, serialNumber, deviceId, expireTime, createdTime, limit, page as parameters and returns an models.ApiResponse with models.IssuedClientCertificatesResults data and an error if there was an issue with the request or response. List Mist SCEP client certificates issued for the organization. Results can be filtered by common name, certificate provider, serial number, device ID, or time range.

func (*OrgsSCEP) RevokeOrgIssuedClientCertificates added in v0.2.38

func (o *OrgsSCEP) RevokeOrgIssuedClientCertificates(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.ClientCertSerialNumbers) (
	*http.Response,
	error)

RevokeOrgIssuedClientCertificates takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Revoke issued Mist SCEP client certificates by certificate serial number.

func (*OrgsSCEP) UpdateOrgMistScep added in v0.2.38

UpdateOrgMistScep takes context, orgId, body as parameters and returns an models.ApiResponse with models.OrgSettingScepResponse data and an error if there was an issue with the request or response. Update Mist SCEP settings for the organization, including enabled state, suspension state, and certificate providers.

type OrgsSDKInvites

type OrgsSDKInvites struct {
	// contains filtered or unexported fields
}

OrgsSDKInvites represents a controller struct.

func NewOrgsSDKInvites

func NewOrgsSDKInvites(baseController baseController) *OrgsSDKInvites

NewOrgsSDKInvites creates a new instance of OrgsSDKInvites. It takes a baseController as a parameter and returns a pointer to the OrgsSDKInvites.

func (*OrgsSDKInvites) ActivateSdkInvite

ActivateSdkInvite takes context, secret, body as parameters and returns an models.ApiResponse with models.ResponseMobileVerifySecret data and an error if there was an issue with the request or response. Activate a mobile SDK invite by verifying the invite secret and binding it to the supplied device identifier. The response returns the device-specific secret used by the mobile SDK client.

func (*OrgsSDKInvites) CreateSdkInvite

func (o *OrgsSDKInvites) CreateSdkInvite(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Sdkinvite) (
	models.ApiResponse[models.Sdkinvite],
	error)

CreateSdkInvite takes context, orgId, body as parameters and returns an models.ApiResponse with models.Sdkinvite data and an error if there was an issue with the request or response. Create an SDK invite that mobile SDK clients can use to onboard into the organization. The invite can be enabled or disabled, limited by usage quota, and associated with a site.

func (*OrgsSDKInvites) GetSdkInvite

func (o *OrgsSDKInvites) GetSdkInvite(
	ctx context.Context,
	orgId uuid.UUID,
	sdkinviteId uuid.UUID) (
	models.ApiResponse[models.Sdkinvite],
	error)

GetSdkInvite takes context, orgId, sdkinviteId as parameters and returns an models.ApiResponse with models.Sdkinvite data and an error if there was an issue with the request or response. Return the configuration and status of an SDK invite, including enablement, expiration time, usage quota, and site scope.

func (*OrgsSDKInvites) GetSdkInviteQrCode

func (o *OrgsSDKInvites) GetSdkInviteQrCode(
	ctx context.Context,
	orgId uuid.UUID,
	sdkinviteId uuid.UUID) (
	models.ApiResponse[[]byte],
	error)

GetSdkInviteQrCode takes context, orgId, sdkinviteId as parameters and returns an models.ApiResponse with []byte data and an error if there was an issue with the request or response. Download a QR code image for the SDK invite so it can be scanned by a mobile SDK client during onboarding.

func (*OrgsSDKInvites) ListSdkInvites

func (o *OrgsSDKInvites) ListSdkInvites(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.Sdkinvite],
	error)

ListSdkInvites takes context, orgId as parameters and returns an models.ApiResponse with []models.Sdkinvite data and an error if there was an issue with the request or response. List SDK invites configured for the organization. SDK invites are used to onboard mobile SDK clients and can define whether an invite is enabled, limited by usage quota, or scoped to a site.

func (*OrgsSDKInvites) RevokeSdkInvite

func (o *OrgsSDKInvites) RevokeSdkInvite(
	ctx context.Context,
	orgId uuid.UUID,
	sdkinviteId uuid.UUID) (
	*http.Response,
	error)

RevokeSdkInvite takes context, orgId, sdkinviteId as parameters and returns an *Response and an error if there was an issue with the request or response. Revoke an SDK invite so it can no longer be used for mobile SDK client onboarding.

func (*OrgsSDKInvites) SendSdkInviteEmail

func (o *OrgsSDKInvites) SendSdkInviteEmail(
	ctx context.Context,
	orgId uuid.UUID,
	sdkinviteId uuid.UUID,
	body *models.EmailString) (
	*http.Response,
	error)

SendSdkInviteEmail takes context, orgId, sdkinviteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Send the SDK invite to a recipient email address so the recipient can onboard a mobile SDK client.

func (*OrgsSDKInvites) SendSdkInviteSms

func (o *OrgsSDKInvites) SendSdkInviteSms(
	ctx context.Context,
	orgId uuid.UUID,
	sdkinviteId uuid.UUID,
	body *models.SdkInviteSms) (
	*http.Response,
	error)

SendSdkInviteSms takes context, orgId, sdkinviteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Send the SDK invite to a phone number by SMS so the recipient can onboard a mobile SDK client.

func (*OrgsSDKInvites) UpdateSdkInvite

func (o *OrgsSDKInvites) UpdateSdkInvite(
	ctx context.Context,
	orgId uuid.UUID,
	sdkinviteId uuid.UUID,
	body *models.Sdkinvite) (
	models.ApiResponse[models.Sdkinvite],
	error)

UpdateSdkInvite takes context, orgId, sdkinviteId, body as parameters and returns an models.ApiResponse with models.Sdkinvite data and an error if there was an issue with the request or response. Update an SDK invite's onboarding settings, such as its display name, enabled state, expiration time, quota, or site association.

type OrgsSDKTemplates

type OrgsSDKTemplates struct {
	// contains filtered or unexported fields
}

OrgsSDKTemplates represents a controller struct.

func NewOrgsSDKTemplates

func NewOrgsSDKTemplates(baseController baseController) *OrgsSDKTemplates

NewOrgsSDKTemplates creates a new instance of OrgsSDKTemplates. It takes a baseController as a parameter and returns a pointer to the OrgsSDKTemplates.

func (*OrgsSDKTemplates) CreateSdkTemplate

func (o *OrgsSDKTemplates) CreateSdkTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Sdktemplate) (
	models.ApiResponse[models.Sdktemplate],
	error)

CreateSdkTemplate takes context, orgId, body as parameters and returns an models.ApiResponse with models.Sdktemplate data and an error if there was an issue with the request or response. Create an SDK template that defines visual customization for the mobile SDK experience, including branding images, colors, header text, and welcome messages.

func (*OrgsSDKTemplates) DeleteSdkTemplate

func (o *OrgsSDKTemplates) DeleteSdkTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	sdktemplateId uuid.UUID) (
	*http.Response,
	error)

DeleteSdkTemplate takes context, orgId, sdktemplateId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an SDK visual customization template from the organization.

func (*OrgsSDKTemplates) GetSdkTemplate

func (o *OrgsSDKTemplates) GetSdkTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	sdktemplateId uuid.UUID) (
	models.ApiResponse[models.Sdktemplate],
	error)

GetSdkTemplate takes context, orgId, sdktemplateId as parameters and returns an models.ApiResponse with models.Sdktemplate data and an error if there was an issue with the request or response. Return the visual customization settings for an SDK template, including branding text, image URLs, colors, default state, and site scope.

func (*OrgsSDKTemplates) ListSdkTemplates

func (o *OrgsSDKTemplates) ListSdkTemplates(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.Sdktemplate],
	error)

ListSdkTemplates takes context, orgId as parameters and returns an models.ApiResponse with []models.Sdktemplate data and an error if there was an issue with the request or response. List SDK templates configured for the organization. SDK templates define visual customization for the mobile SDK experience, including branding images, colors, header text, and welcome messages.

func (*OrgsSDKTemplates) UpdateSdkTemplate

func (o *OrgsSDKTemplates) UpdateSdkTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	sdktemplateId uuid.UUID,
	body *models.Sdktemplate) (
	models.ApiResponse[models.Sdktemplate],
	error)

UpdateSdkTemplate takes context, orgId, sdktemplateId, body as parameters and returns an models.ApiResponse with models.Sdktemplate data and an error if there was an issue with the request or response. Update an SDK template's visual customization settings, such as branding images, colors, header text, welcome message, default state, or site association.

type OrgsSLEs

type OrgsSLEs struct {
	// contains filtered or unexported fields
}

OrgsSLEs represents a controller struct.

func NewOrgsSLEs

func NewOrgsSLEs(baseController baseController) *OrgsSLEs

NewOrgsSLEs creates a new instance of OrgsSLEs. It takes a baseController as a parameter and returns a pointer to the OrgsSLEs.

func (*OrgsSLEs) GetOrgSitesSle

func (o *OrgsSLEs) GetOrgSitesSle(
	ctx context.Context,
	orgId uuid.UUID,
	sle *models.OrgSiteSleTypeEnum,
	start *string,
	end *string,
	duration *string,
	interval *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseOrgSiteSle],
	error)

GetOrgSitesSle takes context, orgId, sle, start, end, duration, interval, limit, page as parameters and returns an models.ApiResponse with models.ResponseOrgSiteSle data and an error if there was an issue with the request or response. Return per-site Service-Level Expectation (SLE) scores for Wi-Fi, wired, or WAN service over the requested time window.

func (*OrgsSLEs) GetOrgSle

func (o *OrgsSLEs) GetOrgSle(
	ctx context.Context,
	orgId uuid.UUID,
	metric string,
	sle *string,
	duration *string,
	interval *string,
	start *string,
	end *string) (
	models.ApiResponse[models.InsightMetrics],
	error)

GetOrgSle takes context, orgId, metric, sle, duration, interval, start, end as parameters and returns an models.ApiResponse with models.InsightMetrics data and an error if there was an issue with the request or response. Return organization-level insight data for the selected metric, such as all or worst sites, Mist Edge insights, or other supported insight metrics, over the requested time window.

type OrgsSSO

type OrgsSSO struct {
	// contains filtered or unexported fields
}

OrgsSSO represents a controller struct.

func NewOrgsSSO

func NewOrgsSSO(baseController baseController) *OrgsSSO

NewOrgsSSO creates a new instance of OrgsSSO. It takes a baseController as a parameter and returns a pointer to the OrgsSSO.

func (*OrgsSSO) CreateOrgSso

func (o *OrgsSSO) CreateOrgSso(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Sso) (
	models.ApiResponse[models.Sso],
	error)

CreateOrgSso takes context, orgId, body as parameters and returns an models.ApiResponse with models.Sso data and an error if there was an issue with the request or response. Create an organization SSO identity provider configuration, including provider settings and role-handling behavior.

func (*OrgsSSO) DeleteOrgSso

func (o *OrgsSSO) DeleteOrgSso(
	ctx context.Context,
	orgId uuid.UUID,
	ssoId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgSso takes context, orgId, ssoId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization SSO identity provider configuration so it can no longer be used for administrator login.

func (*OrgsSSO) DeleteOrgSsoAdmins added in v0.4.103

func (o *OrgsSSO) DeleteOrgSsoAdmins(
	ctx context.Context,
	orgId uuid.UUID,
	ssoId uuid.UUID,
	body *models.SsoDeleteAdmins) (
	models.ApiResponse[models.SsoDeleteAdminsResponse],
	error)

DeleteOrgSsoAdmins takes context, orgId, ssoId, body as parameters and returns an models.ApiResponse with models.SsoDeleteAdminsResponse data and an error if there was an issue with the request or response. Remove SSO-linked organization administrator accounts by email for this SSO profile.

func (*OrgsSSO) DownloadOrgSamlMetadata added in v0.4.0

func (o *OrgsSSO) DownloadOrgSamlMetadata(
	ctx context.Context,
	orgId uuid.UUID,
	ssoId uuid.UUID) (
	models.ApiResponse[[]byte],
	error)

DownloadOrgSamlMetadata takes context, orgId, ssoId as parameters and returns an models.ApiResponse with []byte data and an error if there was an issue with the request or response. Download generated SAML service provider metadata XML for this organization SSO configuration. Use this XML to configure the identity provider with Mist service-provider details such as entity ID, ACS URL, logout URL, NameID format, and requested attributes. Example of metadata.xml: ```xml <?xml version=\"1.0\" encoding=\"UTF-8\"?><md:EntityDescriptor xmlns:md=\"urn:oasis:names:tc:SAML:2.0:metadata\" entityID=\"https://api.mist.com/api/v1/saml/5hdF5g/login\"\ validUntil=\"2027-10-12T21:59:01Z\" xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\"> <md:SPSSODescriptor AuthnRequestsSigned=\"false\" WantAssertionsSigned=\"true\" protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"> <md:SingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST\"\ Location=\"https://api.mist.com/api/v1/saml/5hdF5g/logout\" /> <md:NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</md:NameIDFormat> <md:AssertionConsumerService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST\"\ Location=\"https://api.mist.com/api/v1/saml/5hdF5g/login\" index=\"0\" isDefault=\"true\"/> <md:AttributeConsumingService index=\"0\"> <md:ServiceName xml:lang=\"en-US\">Mist</md:ServiceName> <md:RequestedAttribute\ Name=\"Role\" NameFormat=\"urn:oasis:names:tc:SAML:2.0:attrname-format:basic\"\ isRequired=\"true\"/> <md:RequestedAttribute Name=\"FirstName\"\ NameFormat=\"urn:oasis:names:tc:SAML:2.0:attrname-format:basic\" isRequired=\"false\"/> <md:RequestedAttribute Name=\"LastName\" NameFormat=\"urn:oasis:names:tc:SAML:2.0:attrname-format:basic\" isRequired=\"false\"/> </md:AttributeConsumingService> </md:SPSSODescriptor> </md:EntityDescriptor> ```

func (*OrgsSSO) GetOrgSamlMetadata added in v0.4.0

func (o *OrgsSSO) GetOrgSamlMetadata(
	ctx context.Context,
	orgId uuid.UUID,
	ssoId uuid.UUID) (
	models.ApiResponse[models.SamlMetadata],
	error)

GetOrgSamlMetadata takes context, orgId, ssoId as parameters and returns an models.ApiResponse with models.SamlMetadata data and an error if there was an issue with the request or response. Return generated SAML service provider metadata for this organization SSO configuration as JSON.

func (*OrgsSSO) GetOrgSso

func (o *OrgsSSO) GetOrgSso(
	ctx context.Context,
	orgId uuid.UUID,
	ssoId uuid.UUID) (
	models.ApiResponse[models.Sso],
	error)

GetOrgSso takes context, orgId, ssoId as parameters and returns an models.ApiResponse with models.Sso data and an error if there was an issue with the request or response. Return one organization SSO identity provider configuration, including provider settings and generated SSO URLs.

func (*OrgsSSO) ListOrgSsoLatestFailures

func (o *OrgsSSO) ListOrgSsoLatestFailures(
	ctx context.Context,
	orgId uuid.UUID,
	ssoId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseSsoFailureSearch],
	error)

ListOrgSsoLatestFailures takes context, orgId, ssoId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseSsoFailureSearch data and an error if there was an issue with the request or response. List recent authentication failures for this organization SSO configuration, including failure details and captured SAML assertion data when available.

func (*OrgsSSO) ListOrgSsos

func (o *OrgsSSO) ListOrgSsos(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Sso],
	error)

ListOrgSsos takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Sso data and an error if there was an issue with the request or response. List SSO identity provider configurations defined for this organization.

func (*OrgsSSO) UpdateOrgSso

func (o *OrgsSSO) UpdateOrgSso(
	ctx context.Context,
	orgId uuid.UUID,
	ssoId uuid.UUID,
	body *models.Sso) (
	models.ApiResponse[models.Sso],
	error)

UpdateOrgSso takes context, orgId, ssoId, body as parameters and returns an models.ApiResponse with models.Sso data and an error if there was an issue with the request or response. Update an organization SSO identity provider configuration, such as IdP URLs, certificates, issuer, NameID format, and unmatched-role handling.

type OrgsSSORoles

type OrgsSSORoles struct {
	// contains filtered or unexported fields
}

OrgsSSORoles represents a controller struct.

func NewOrgsSSORoles

func NewOrgsSSORoles(baseController baseController) *OrgsSSORoles

NewOrgsSSORoles creates a new instance of OrgsSSORoles. It takes a baseController as a parameter and returns a pointer to the OrgsSSORoles.

func (*OrgsSSORoles) CreateOrgSsoRole

func (o *OrgsSSORoles) CreateOrgSsoRole(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.SsoRoleOrg) (
	models.ApiResponse[models.SsoRoleOrg],
	error)

CreateOrgSsoRole takes context, orgId, body as parameters and returns an models.ApiResponse with models.SsoRoleOrg data and an error if there was an issue with the request or response. Create an organization SSO role definition with a display name and the privileges granted when the role is matched during SSO.

func (*OrgsSSORoles) DeleteOrgSsoRole

func (o *OrgsSSORoles) DeleteOrgSsoRole(
	ctx context.Context,
	orgId uuid.UUID,
	ssoroleId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgSsoRole takes context, orgId, ssoroleId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an organization SSO role definition so it can no longer grant privileges during SSO.

func (*OrgsSSORoles) GetOrgSsoRole

func (o *OrgsSSORoles) GetOrgSsoRole(
	ctx context.Context,
	orgId uuid.UUID,
	ssoroleId uuid.UUID) (
	models.ApiResponse[models.SsoRoleOrg],
	error)

GetOrgSsoRole takes context, orgId, ssoroleId as parameters and returns an models.ApiResponse with models.SsoRoleOrg data and an error if there was an issue with the request or response. Return one organization SSO role definition, including its display name and granted privileges.

func (*OrgsSSORoles) ListOrgSsoRoles

func (o *OrgsSSORoles) ListOrgSsoRoles(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.SsoRoleOrg],
	error)

ListOrgSsoRoles takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.SsoRoleOrg data and an error if there was an issue with the request or response. List organization SSO role definitions that map identity-provider role assertions to organization, site, or site group privilege scopes.

func (*OrgsSSORoles) UpdateOrgSsoRole

func (o *OrgsSSORoles) UpdateOrgSsoRole(
	ctx context.Context,
	orgId uuid.UUID,
	ssoroleId uuid.UUID,
	body *models.SsoRoleOrg) (
	models.ApiResponse[models.SsoRoleOrg],
	error)

UpdateOrgSsoRole takes context, orgId, ssoroleId, body as parameters and returns an models.ApiResponse with models.SsoRoleOrg data and an error if there was an issue with the request or response. Update an organization SSO role definition, including its display name and granted privileges.

type OrgsSecIntelProfiles added in v0.3.17

type OrgsSecIntelProfiles struct {
	// contains filtered or unexported fields
}

OrgsSecIntelProfiles represents a controller struct.

func NewOrgsSecIntelProfiles added in v0.3.17

func NewOrgsSecIntelProfiles(baseController baseController) *OrgsSecIntelProfiles

NewOrgsSecIntelProfiles creates a new instance of OrgsSecIntelProfiles. It takes a baseController as a parameter and returns a pointer to the OrgsSecIntelProfiles.

func (*OrgsSecIntelProfiles) CreateOrgSecIntelProfile added in v0.3.17

func (o *OrgsSecIntelProfiles) CreateOrgSecIntelProfile(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.SecintelProfile) (
	models.ApiResponse[models.SecintelProfile],
	error)

CreateOrgSecIntelProfile takes context, orgId, body as parameters and returns an models.ApiResponse with models.SecintelProfile data and an error if there was an issue with the request or response. Create an organization SecIntel profile with category-specific protection levels for threat intelligence feeds.

func (*OrgsSecIntelProfiles) DeleteOrgSecIntelProfile added in v0.3.17

func (o *OrgsSecIntelProfiles) DeleteOrgSecIntelProfile(
	ctx context.Context,
	orgId uuid.UUID,
	secintelprofileId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgSecIntelProfile takes context, orgId, secintelprofileId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove an organization SecIntel profile from the organization's available threat intelligence profile set.

func (*OrgsSecIntelProfiles) GetOrgSecIntelProfile added in v0.3.17

func (o *OrgsSecIntelProfiles) GetOrgSecIntelProfile(
	ctx context.Context,
	orgId uuid.UUID,
	secintelprofileId uuid.UUID) (
	models.ApiResponse[models.SecintelProfile],
	error)

GetOrgSecIntelProfile takes context, orgId, secintelprofileId as parameters and returns an models.ApiResponse with models.SecintelProfile data and an error if there was an issue with the request or response. Return an organization SecIntel profile, including the protection level configured for each SecIntel feed category.

func (*OrgsSecIntelProfiles) ListOrgSecIntelProfiles added in v0.3.17

func (o *OrgsSecIntelProfiles) ListOrgSecIntelProfiles(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.SecintelProfile],
	error)

ListOrgSecIntelProfiles takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.SecintelProfile data and an error if there was an issue with the request or response. List organization SecIntel profiles. These profiles define protection levels for SecIntel feed categories such as command-and-control, infected host, and DNS.

func (*OrgsSecIntelProfiles) UpdateOrgSecIntelProfile added in v0.3.17

func (o *OrgsSecIntelProfiles) UpdateOrgSecIntelProfile(
	ctx context.Context,
	orgId uuid.UUID,
	secintelprofileId uuid.UUID,
	body *models.SecintelProfile) (
	models.ApiResponse[models.SecintelProfile],
	error)

UpdateOrgSecIntelProfile takes context, orgId, secintelprofileId, body as parameters and returns an models.ApiResponse with models.SecintelProfile data and an error if there was an issue with the request or response. Update an organization SecIntel profile, including its display name and category-specific threat intelligence protection levels.

type OrgsSecurityPolicies added in v0.4.54

type OrgsSecurityPolicies struct {
	// contains filtered or unexported fields
}

OrgsSecurityPolicies represents a controller struct.

func NewOrgsSecurityPolicies added in v0.4.54

func NewOrgsSecurityPolicies(baseController baseController) *OrgsSecurityPolicies

NewOrgsSecurityPolicies creates a new instance of OrgsSecurityPolicies. It takes a baseController as a parameter and returns a pointer to the OrgsSecurityPolicies.

func (*OrgsSecurityPolicies) CreateOrgSecPolicy added in v0.4.69

func (o *OrgsSecurityPolicies) CreateOrgSecPolicy(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Secpolicy) (
	models.ApiResponse[models.Secpolicy],
	error)

CreateOrgSecPolicy takes context, orgId, body as parameters and returns an models.ApiResponse with models.Secpolicy data and an error if there was an issue with the request or response. Create an organization security policy containing WLAN configuration baselines for auditing site and AP configuration compliance.

func (*OrgsSecurityPolicies) DeleteOrgSecPolicy added in v0.4.54

func (o *OrgsSecurityPolicies) DeleteOrgSecPolicy(
	ctx context.Context,
	orgId uuid.UUID,
	secpolicyId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgSecPolicy takes context, orgId, secpolicyId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove an organization security policy from the set available for assignment and configuration compliance checks.

func (*OrgsSecurityPolicies) GetOrgSecPolicy added in v0.4.54

func (o *OrgsSecurityPolicies) GetOrgSecPolicy(
	ctx context.Context,
	orgId uuid.UUID,
	secpolicyId uuid.UUID) (
	models.ApiResponse[models.Secpolicy],
	error)

GetOrgSecPolicy takes context, orgId, secpolicyId as parameters and returns an models.ApiResponse with models.Secpolicy data and an error if there was an issue with the request or response. Return an organization security policy, including the WLAN configuration baselines used for compliance auditing.

func (*OrgsSecurityPolicies) ListOrgSecPolicies added in v0.4.54

func (o *OrgsSecurityPolicies) ListOrgSecPolicies(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Secpolicy],
	error)

ListOrgSecPolicies takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Secpolicy data and an error if there was an issue with the request or response. List organization security policies. Security policies define WLAN configuration baselines used to audit intended wireless settings against actual AP configuration.

func (*OrgsSecurityPolicies) UpdateOrgSecPolicy added in v0.4.69

func (o *OrgsSecurityPolicies) UpdateOrgSecPolicy(
	ctx context.Context,
	orgId uuid.UUID,
	secpolicyId uuid.UUID,
	body *models.Secpolicy) (
	models.ApiResponse[models.Secpolicy],
	error)

UpdateOrgSecPolicy takes context, orgId, secpolicyId, body as parameters and returns an models.ApiResponse with models.Secpolicy data and an error if there was an issue with the request or response. Update an organization security policy, including its name and WLAN configuration baselines for compliance auditing.

type OrgsServicePolicies

type OrgsServicePolicies struct {
	// contains filtered or unexported fields
}

OrgsServicePolicies represents a controller struct.

func NewOrgsServicePolicies

func NewOrgsServicePolicies(baseController baseController) *OrgsServicePolicies

NewOrgsServicePolicies creates a new instance of OrgsServicePolicies. It takes a baseController as a parameter and returns a pointer to the OrgsServicePolicies.

func (*OrgsServicePolicies) CreateOrgServicePolicy

CreateOrgServicePolicy takes context, orgId, body as parameters and returns an models.ApiResponse with models.OrgServicePolicy data and an error if there was an issue with the request or response. Create an organization-level service policy that matches tenants to services and applies an allow or deny action with optional security inspection settings. Organization-level service policies can be imported in the gateway templates and gateway policies.

func (*OrgsServicePolicies) DeleteOrgServicePolicy

func (o *OrgsServicePolicies) DeleteOrgServicePolicy(
	ctx context.Context,
	orgId uuid.UUID,
	servicepolicyId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgServicePolicy takes context, orgId, servicepolicyId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove an organization-level service policy from the available policy set.

func (*OrgsServicePolicies) GetOrgServicePolicy

func (o *OrgsServicePolicies) GetOrgServicePolicy(
	ctx context.Context,
	orgId uuid.UUID,
	servicepolicyId uuid.UUID) (
	models.ApiResponse[models.OrgServicePolicy],
	error)

GetOrgServicePolicy takes context, orgId, servicepolicyId as parameters and returns an models.ApiResponse with models.OrgServicePolicy data and an error if there was an issue with the request or response. Return an organization-level service policy, including the matched tenants and services, action, local routing, path preference, and inspection settings.

func (*OrgsServicePolicies) ListOrgServicePolicies

func (o *OrgsServicePolicies) ListOrgServicePolicies(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.OrgServicePolicy],
	error)

ListOrgServicePolicies takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.OrgServicePolicy data and an error if there was an issue with the request or response. List organization-level service policies. Service policies match tenants to services or service groups and define the allow or deny action plus optional inspection controls.

func (*OrgsServicePolicies) UpdateOrgServicePolicy

func (o *OrgsServicePolicies) UpdateOrgServicePolicy(
	ctx context.Context,
	orgId uuid.UUID,
	servicepolicyId uuid.UUID,
	body *models.OrgServicePolicy) (
	models.ApiResponse[models.OrgServicePolicy],
	error)

UpdateOrgServicePolicy takes context, orgId, servicepolicyId, body as parameters and returns an models.ApiResponse with models.OrgServicePolicy data and an error if there was an issue with the request or response. Update an organization-level service policy, including its tenant and service matches, action, local routing, path preference, or inspection settings.

type OrgsServices

type OrgsServices struct {
	// contains filtered or unexported fields
}

OrgsServices represents a controller struct.

func NewOrgsServices

func NewOrgsServices(baseController baseController) *OrgsServices

NewOrgsServices creates a new instance of OrgsServices. It takes a baseController as a parameter and returns a pointer to the OrgsServices.

func (*OrgsServices) CreateOrgService

func (o *OrgsServices) CreateOrgService(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Service) (
	models.ApiResponse[models.Service],
	error)

CreateOrgService takes context, orgId, body as parameters and returns an models.ApiResponse with models.Service data and an error if there was an issue with the request or response. Create an organization service definition with the match criteria used by gateway and SSR policies, such as applications, URLs, hostnames, subnets, or custom protocol and port rules. Services can be user in the service policies to allow or deny traffic matching the service or to apply specific inspection settings or steering rules.

func (*OrgsServices) DeleteOrgService

func (o *OrgsServices) DeleteOrgService(
	ctx context.Context,
	orgId uuid.UUID,
	serviceId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgService takes context, orgId, serviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove an organization service definition from the available service catalog.

func (*OrgsServices) GetOrgService

func (o *OrgsServices) GetOrgService(
	ctx context.Context,
	orgId uuid.UUID,
	serviceId uuid.UUID) (
	models.ApiResponse[models.Service],
	error)

GetOrgService takes context, orgId, serviceId as parameters and returns an models.ApiResponse with models.Service data and an error if there was an issue with the request or response. Return an organization service definition, including its matching mode, match values, traffic classification, and optional SSR path-selection thresholds.

func (*OrgsServices) ListOrgServices

func (o *OrgsServices) ListOrgServices(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Service],
	error)

ListOrgServices takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Service data and an error if there was an issue with the request or response. List organization service definitions. Services describe applications, application categories, URLs, hostnames, subnets, or custom protocol and port match criteria used by gateway and SSR policies.

func (*OrgsServices) UpdateOrgService

func (o *OrgsServices) UpdateOrgService(
	ctx context.Context,
	orgId uuid.UUID,
	serviceId uuid.UUID,
	body *models.Service) (
	models.ApiResponse[models.Service],
	error)

UpdateOrgService takes context, orgId, serviceId, body as parameters and returns an models.ApiResponse with models.Service data and an error if there was an issue with the request or response. Update an organization service definition, including its matching mode, match values, traffic classification, or optional SSR path-selection thresholds.

type OrgsSetting

type OrgsSetting struct {
	// contains filtered or unexported fields
}

OrgsSetting represents a controller struct.

func NewOrgsSetting

func NewOrgsSetting(baseController baseController) *OrgsSetting

NewOrgsSetting creates a new instance of OrgsSetting. It takes a baseController as a parameter and returns a pointer to the OrgsSetting.

func (*OrgsSetting) CreateOrgWirelessClientsBlocklist

func (o *OrgsSetting) CreateOrgWirelessClientsBlocklist(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.MacAddresses) (
	models.ApiResponse[models.MacAddresses],
	error)

CreateOrgWirelessClientsBlocklist takes context, orgId, body as parameters and returns an models.ApiResponse with models.MacAddresses data and an error if there was an issue with the request or response. Replace the organization wireless client blocklist with the supplied client MAC addresses. The list can contain up to 1000 MAC addresses; retrieve the current list from the `blacklist_url` field in organization settings.

func (*OrgsSetting) DeleteOrgWirelessClientsBlocklist

func (o *OrgsSetting) DeleteOrgWirelessClientsBlocklist(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgWirelessClientsBlocklist takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Clear the organization wireless client blocklist by removing all blocked client MAC addresses.

func (*OrgsSetting) GetOrgSettings

func (o *OrgsSetting) GetOrgSettings(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.OrgSetting],
	error)

GetOrgSettings takes context, orgId as parameters and returns an models.ApiResponse with models.OrgSetting data and an error if there was an issue with the request or response. Return organization-wide settings, including feature flags, automatic device assignment rules, management connectivity, packet capture, security controls, and integration configuration.

func (*OrgsSetting) SetOrgCustomBucket

SetOrgCustomBucket takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponsePcapBucketConfig data and an error if there was an issue with the request or response. Start custom packet capture bucket setup by saving the bucket name and having Mist write a `MIST_TOKEN` file to the bucket. Complete ownership verification with the verify endpoint by submitting the token contents.

func (*OrgsSetting) UpdateOrgSettings

func (o *OrgsSetting) UpdateOrgSettings(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.OrgSetting) (
	models.ApiResponse[models.OrgSetting],
	error)

UpdateOrgSettings takes context, orgId, body as parameters and returns an models.ApiResponse with models.OrgSetting data and an error if there was an issue with the request or response. Update organization-wide settings such as automatic device assignment rules, management connectivity, packet capture, password policy, security controls, tags, and integration options.

func (*OrgsSetting) VerifyOrgCustomBucket

func (o *OrgsSetting) VerifyOrgCustomBucket(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.PcapBucketVerify) (
	*http.Response,
	error)

VerifyOrgCustomBucket takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Verify ownership of a custom packet capture bucket by submitting the token read from the `MIST_TOKEN` file. If verification succeeds, Mist creates a `VERIFIED` file in the bucket.

type OrgsSiteTemplates

type OrgsSiteTemplates struct {
	// contains filtered or unexported fields
}

OrgsSiteTemplates represents a controller struct.

func NewOrgsSiteTemplates

func NewOrgsSiteTemplates(baseController baseController) *OrgsSiteTemplates

NewOrgsSiteTemplates creates a new instance of OrgsSiteTemplates. It takes a baseController as a parameter and returns a pointer to the OrgsSiteTemplates.

func (*OrgsSiteTemplates) CreateOrgSiteTemplate added in v0.4.69

func (o *OrgsSiteTemplates) CreateOrgSiteTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.SiteTemplate) (
	models.ApiResponse[models.SiteTemplate],
	error)

CreateOrgSiteTemplate takes context, orgId, body as parameters and returns an models.ApiResponse with models.SiteTemplate data and an error if there was an issue with the request or response. Create a site template with automatic upgrade settings and template variables available to WLAN configuration. To assign a Site template to a site, use the [Update Site]($e/Sites/updateSiteInfo) endpoint and specify the Site template ID in the `sitetemplate_id` field of the request body.'

func (*OrgsSiteTemplates) DeleteOrgSiteTemplate

func (o *OrgsSiteTemplates) DeleteOrgSiteTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	sitetemplateId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgSiteTemplate takes context, orgId, sitetemplateId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove a site template from the organization.

func (*OrgsSiteTemplates) GetOrgSiteTemplate

func (o *OrgsSiteTemplates) GetOrgSiteTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	sitetemplateId uuid.UUID) (
	models.ApiResponse[models.SiteTemplate],
	error)

GetOrgSiteTemplate takes context, orgId, sitetemplateId as parameters and returns an models.ApiResponse with models.SiteTemplate data and an error if there was an issue with the request or response. Return a site template, including automatic upgrade settings and template variables available to WLAN configuration.

func (*OrgsSiteTemplates) ListOrgSiteTemplates

func (o *OrgsSiteTemplates) ListOrgSiteTemplates(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.SiteTemplate],
	error)

ListOrgSiteTemplates takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.SiteTemplate data and an error if there was an issue with the request or response. List site templates configured in the organization. Site templates contain automatic upgrade settings and variables available to WLAN configuration.

func (*OrgsSiteTemplates) UpdateOrgSiteTemplate

func (o *OrgsSiteTemplates) UpdateOrgSiteTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	sitetemplateId uuid.UUID,
	body *models.SiteTemplate) (
	models.ApiResponse[models.SiteTemplate],
	error)

UpdateOrgSiteTemplate takes context, orgId, sitetemplateId, body as parameters and returns an models.ApiResponse with models.SiteTemplate data and an error if there was an issue with the request or response. Update a site template's automatic upgrade settings and template variables available to WLAN configuration.

type OrgsSitegroups

type OrgsSitegroups struct {
	// contains filtered or unexported fields
}

OrgsSitegroups represents a controller struct.

func NewOrgsSitegroups

func NewOrgsSitegroups(baseController baseController) *OrgsSitegroups

NewOrgsSitegroups creates a new instance of OrgsSitegroups. It takes a baseController as a parameter and returns a pointer to the OrgsSitegroups.

func (*OrgsSitegroups) CreateOrgSiteGroup

func (o *OrgsSitegroups) CreateOrgSiteGroup(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Sitegroup) (
	models.ApiResponse[models.Sitegroup],
	error)

CreateOrgSiteGroup takes context, orgId, body as parameters and returns an models.ApiResponse with models.Sitegroup data and an error if there was an issue with the request or response. Create a site group in the organization with a display name and optional site membership.

func (*OrgsSitegroups) DeleteOrgSiteGroup

func (o *OrgsSitegroups) DeleteOrgSiteGroup(
	ctx context.Context,
	orgId uuid.UUID,
	sitegroupId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgSiteGroup takes context, orgId, sitegroupId as parameters and returns an *Response and an error if there was an issue with the request or response. Remove a site group from the organization.

func (*OrgsSitegroups) GetOrgSiteGroup

func (o *OrgsSitegroups) GetOrgSiteGroup(
	ctx context.Context,
	orgId uuid.UUID,
	sitegroupId uuid.UUID) (
	models.ApiResponse[models.Sitegroup],
	error)

GetOrgSiteGroup takes context, orgId, sitegroupId as parameters and returns an models.ApiResponse with models.Sitegroup data and an error if there was an issue with the request or response. Return a site group, including its display name and the site IDs included in the group.

func (*OrgsSitegroups) ListOrgSiteGroups

func (o *OrgsSitegroups) ListOrgSiteGroups(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Sitegroup],
	error)

ListOrgSiteGroups takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Sitegroup data and an error if there was an issue with the request or response. List site groups configured in the organization. A site group collects site IDs so sites can be managed or referenced as a group.

func (*OrgsSitegroups) UpdateOrgSiteGroup

func (o *OrgsSitegroups) UpdateOrgSiteGroup(
	ctx context.Context,
	orgId uuid.UUID,
	sitegroupId uuid.UUID,
	body *models.NameString) (
	models.ApiResponse[models.Sitegroup],
	error)

UpdateOrgSiteGroup takes context, orgId, sitegroupId, body as parameters and returns an models.ApiResponse with models.Sitegroup data and an error if there was an issue with the request or response. Update the display name used to identify a site group in the organization.

type OrgsSites

type OrgsSites struct {
	// contains filtered or unexported fields
}

OrgsSites represents a controller struct.

func NewOrgsSites

func NewOrgsSites(baseController baseController) *OrgsSites

NewOrgsSites creates a new instance of OrgsSites. It takes a baseController as a parameter and returns a pointer to the OrgsSites.

func (*OrgsSites) CountOrgSites

func (o *OrgsSites) CountOrgSites(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgSitesCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgSites takes context, orgId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count organization sites grouped by a distinct site attribute, such as country code, site name, feature flags, or enabled services.

func (*OrgsSites) CreateOrgSite

func (o *OrgsSites) CreateOrgSite(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Site) (
	models.ApiResponse[models.Site],
	error)

CreateOrgSite takes context, orgId, body as parameters and returns an models.ApiResponse with models.Site data and an error if there was an issue with the request or response. Create a site in the organization with location metadata, timezone, site group membership, and optional template or policy associations.

func (*OrgsSites) ListOrgSites

func (o *OrgsSites) ListOrgSites(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Site],
	error)

ListOrgSites takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Site data and an error if there was an issue with the request or response. List sites in the organization. Site records include location metadata, timezone, site group membership, and template or policy associations.

func (*OrgsSites) SearchOrgSites

func (o *OrgsSites) SearchOrgSites(
	ctx context.Context,
	orgId uuid.UUID,
	analyticEnabled *bool,
	appWaking *bool,
	assetEnabled *bool,
	autoUpgradeEnabled *bool,
	autoUpgradeVersion *string,
	countryCode *string,
	honeypotEnabled *bool,
	id *string,
	locateUnconnected *bool,
	meshEnabled *bool,
	name *string,
	rogueEnabled *bool,
	remoteSyslogEnabled *bool,
	rtsaEnabled *bool,
	vnaEnabled *bool,
	wifiEnabled *bool,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseSiteSearch],
	error)

SearchOrgSites takes context, orgId, analyticEnabled, appWaking, assetEnabled, autoUpgradeEnabled, autoUpgradeVersion, countryCode, honeypotEnabled, id, locateUnconnected, meshEnabled, name, rogueEnabled, remoteSyslogEnabled, rtsaEnabled, vnaEnabled, wifiEnabled, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseSiteSearch data and an error if there was an issue with the request or response. Search organization sites with filters for feature flags, country code, identifiers, names, upgrade settings, and other site attributes. Supports pagination and sorting.

type OrgsStats added in v0.2.25

type OrgsStats struct {
	// contains filtered or unexported fields
}

OrgsStats represents a controller struct.

func NewOrgsStats added in v0.2.25

func NewOrgsStats(baseController baseController) *OrgsStats

NewOrgsStats creates a new instance of OrgsStats. It takes a baseController as a parameter and returns a pointer to the OrgsStats.

func (*OrgsStats) GetOrgStats added in v0.2.25

func (o *OrgsStats) GetOrgStats(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.StatsOrg],
	error)

GetOrgStats takes context, orgId as parameters and returns an models.ApiResponse with models.StatsOrg data and an error if there was an issue with the request or response. Return an organization statistics summary, including device, inventory, and site counts, connected and disconnected device counts, organization group membership, and SLE summaries.

type OrgsStatsAssets added in v0.2.25

type OrgsStatsAssets struct {
	// contains filtered or unexported fields
}

OrgsStatsAssets represents a controller struct.

func NewOrgsStatsAssets added in v0.2.25

func NewOrgsStatsAssets(baseController baseController) *OrgsStatsAssets

NewOrgsStatsAssets creates a new instance of OrgsStatsAssets. It takes a baseController as a parameter and returns a pointer to the OrgsStatsAssets.

func (*OrgsStatsAssets) CountOrgAssetsByDistanceField added in v0.2.25

func (o *OrgsStatsAssets) CountOrgAssetsByDistanceField(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgAssetCountDistinctEnum,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgAssetsByDistanceField takes context, orgId, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count organization asset statistics grouped by a distinct asset attribute, such as MAC address, site, map, iBeacon UUID, iBeacon major, or iBeacon minor.

func (*OrgsStatsAssets) ListOrgAssetsStats added in v0.2.25

func (o *OrgsStatsAssets) ListOrgAssetsStats(
	ctx context.Context,
	orgId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsAsset],
	error)

ListOrgAssetsStats takes context, orgId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with []models.StatsAsset data and an error if there was an issue with the request or response. List BLE asset location and advertisement statistics for the organization over an optional time window, including map coordinates, RSSI, zones, and iBeacon or Eddystone fields.

func (*OrgsStatsAssets) SearchOrgAssets added in v0.2.25

func (o *OrgsStatsAssets) SearchOrgAssets(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *string,
	mac *string,
	deviceName *string,
	name *string,
	mapId *string,
	ibeaconUuid *string,
	ibeaconMajor *string,
	ibeaconMinor *string,
	eddystoneUidNamespace *string,
	eddystoneUidInstance *string,
	eddystoneUrl *string,
	apMac *string,
	beam *int,
	rssi *int,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseStatsAssets],
	error)

SearchOrgAssets takes context, orgId, siteId, mac, deviceName, name, mapId, ibeaconUuid, ibeaconMajor, ibeaconMinor, eddystoneUidNamespace, eddystoneUidInstance, eddystoneUrl, apMac, beam, rssi, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseStatsAssets data and an error if there was an issue with the request or response. Search BLE asset statistics with filters for site, MAC address, asset name, map, iBeacon or Eddystone identifiers, reporting AP MAC address, RSSI, beam, and time range. Supports pagination and sorting.

type OrgsStatsBGPPeers added in v0.2.25

type OrgsStatsBGPPeers struct {
	// contains filtered or unexported fields
}

OrgsStatsBGPPeers represents a controller struct.

func NewOrgsStatsBGPPeers added in v0.2.25

func NewOrgsStatsBGPPeers(baseController baseController) *OrgsStatsBGPPeers

NewOrgsStatsBGPPeers creates a new instance of OrgsStatsBGPPeers. It takes a baseController as a parameter and returns a pointer to the OrgsStatsBGPPeers.

func (*OrgsStatsBGPPeers) CountOrgBgpStats added in v0.2.25

func (o *OrgsStatsBGPPeers) CountOrgBgpStats(
	ctx context.Context,
	orgId uuid.UUID,
	state *string,
	distinct *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgBgpStats takes context, orgId, state, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Org BGP Stats

func (*OrgsStatsBGPPeers) SearchOrgBgpStats added in v0.2.25

func (o *OrgsStatsBGPPeers) SearchOrgBgpStats(
	ctx context.Context,
	orgId uuid.UUID,
	mac *string,
	neighborMac *string,
	siteId *string,
	vrfName *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseSearchBgps],
	error)

SearchOrgBgpStats takes context, orgId, mac, neighborMac, siteId, vrfName, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseSearchBgps data and an error if there was an issue with the request or response. Search Org BGP Stats

type OrgsStatsDevices added in v0.2.25

type OrgsStatsDevices struct {
	// contains filtered or unexported fields
}

OrgsStatsDevices represents a controller struct.

func NewOrgsStatsDevices added in v0.2.25

func NewOrgsStatsDevices(baseController baseController) *OrgsStatsDevices

NewOrgsStatsDevices creates a new instance of OrgsStatsDevices. It takes a baseController as a parameter and returns a pointer to the OrgsStatsDevices.

func (*OrgsStatsDevices) ListOrgDevicesStats added in v0.2.25

func (o *OrgsStatsDevices) ListOrgDevicesStats(
	ctx context.Context,
	orgId uuid.UUID,
	mType *models.DeviceEnumWithAllEnum,
	status *string,
	siteId *string,
	mac *string,
	evpntopoId *string,
	evpnUnused *string,
	fields *string,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsDevice],
	error)

ListOrgDevicesStats takes context, orgId, mType, status, siteId, mac, evpntopoId, evpnUnused, fields, start, end, duration, limit, page as parameters and returns an models.ApiResponse with []models.StatsDevice data and an error if there was an issue with the request or response. Get List of Org Devices stats This API renders some high-level device stats, pagination is assumed and returned in response header (as the response is an array)

type OrgsStatsMarvisClients added in v0.4.104

type OrgsStatsMarvisClients struct {
	// contains filtered or unexported fields
}

OrgsStatsMarvisClients represents a controller struct.

func NewOrgsStatsMarvisClients added in v0.4.104

func NewOrgsStatsMarvisClients(baseController baseController) *OrgsStatsMarvisClients

NewOrgsStatsMarvisClients creates a new instance of OrgsStatsMarvisClients. It takes a baseController as a parameter and returns a pointer to the OrgsStatsMarvisClients.

func (*OrgsStatsMarvisClients) CountOrgMarvisClientsStats added in v0.4.104

func (o *OrgsStatsMarvisClients) CountOrgMarvisClientsStats(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *string,
	deviceId *string,
	wifiMac *string,
	wifiIp *string,
	hostname *string,
	model *string,
	mfg *string,
	serial *string,
	osType *string,
	osVersion *string,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgMarvisClientsStats takes context, orgId, distinct, deviceId, wifiMac, wifiIp, hostname, model, mfg, serial, osType, osVersion, limit, start, end, duration as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Marvis Client stats records by a distinct field.

func (*OrgsStatsMarvisClients) SearchOrgMarvisClientsStats added in v0.4.104

func (o *OrgsStatsMarvisClients) SearchOrgMarvisClientsStats(
	ctx context.Context,
	orgId uuid.UUID,
	deviceId *string,
	wifiMac *string,
	wifiIp *string,
	hostname *string,
	model *string,
	mfg *string,
	serial *string,
	osType *string,
	osVersion *string,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.StatsMarvisClientsSearch],
	error)

SearchOrgMarvisClientsStats takes context, orgId, deviceId, wifiMac, wifiIp, hostname, model, mfg, serial, osType, osVersion, limit, start, end, duration as parameters and returns an models.ApiResponse with models.StatsMarvisClientsSearch data and an error if there was an issue with the request or response. Search Marvis Client stats records across the organization.

type OrgsStatsMxEdges added in v0.2.25

type OrgsStatsMxEdges struct {
	// contains filtered or unexported fields
}

OrgsStatsMxEdges represents a controller struct.

func NewOrgsStatsMxEdges added in v0.2.25

func NewOrgsStatsMxEdges(baseController baseController) *OrgsStatsMxEdges

NewOrgsStatsMxEdges creates a new instance of OrgsStatsMxEdges. It takes a baseController as a parameter and returns a pointer to the OrgsStatsMxEdges.

func (*OrgsStatsMxEdges) GetOrgMxEdgeStats added in v0.2.25

func (o *OrgsStatsMxEdges) GetOrgMxEdgeStats(
	ctx context.Context,
	orgId uuid.UUID,
	mxedgeId uuid.UUID,
	forSite *bool) (
	models.ApiResponse[models.StatsMxedge],
	error)

GetOrgMxEdgeStats takes context, orgId, mxedgeId, forSite as parameters and returns an models.ApiResponse with models.StatsMxedge data and an error if there was an issue with the request or response. Get Org MxEdge Details Stats

func (*OrgsStatsMxEdges) ListOrgMxEdgesStats added in v0.2.25

func (o *OrgsStatsMxEdges) ListOrgMxEdgesStats(
	ctx context.Context,
	orgId uuid.UUID,
	forSite *models.ForSiteEnum,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsMxedge],
	error)

ListOrgMxEdgesStats takes context, orgId, forSite, start, end, duration, limit, page as parameters and returns an models.ApiResponse with []models.StatsMxedge data and an error if there was an issue with the request or response. Get List of Org MxEdge Stats

type OrgsStatsOspf added in v0.4.92

type OrgsStatsOspf struct {
	// contains filtered or unexported fields
}

OrgsStatsOspf represents a controller struct.

func NewOrgsStatsOspf added in v0.4.92

func NewOrgsStatsOspf(baseController baseController) *OrgsStatsOspf

NewOrgsStatsOspf creates a new instance of OrgsStatsOspf. It takes a baseController as a parameter and returns a pointer to the OrgsStatsOspf.

func (*OrgsStatsOspf) CountOrgOspfStats added in v0.4.92

func (o *OrgsStatsOspf) CountOrgOspfStats(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OspfPeerStatsCountDistinctEnum,
	start *string,
	end *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgOspfStats takes context, orgId, distinct, start, end, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count OSPF peer stats by distinct attribute name

func (*OrgsStatsOspf) SearchOrgOspfStats added in v0.4.92

func (o *OrgsStatsOspf) SearchOrgOspfStats(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *string,
	mac *string,
	vrfName *string,
	peerIp *string,
	start *string,
	end *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.OspfPeerStatsSearchResult],
	error)

SearchOrgOspfStats takes context, orgId, siteId, mac, vrfName, peerIp, start, end, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.OspfPeerStatsSearchResult data and an error if there was an issue with the request or response. Search OSPF Neighbor Stats

type OrgsStatsOtherDevices added in v0.2.25

type OrgsStatsOtherDevices struct {
	// contains filtered or unexported fields
}

OrgsStatsOtherDevices represents a controller struct.

func NewOrgsStatsOtherDevices added in v0.2.25

func NewOrgsStatsOtherDevices(baseController baseController) *OrgsStatsOtherDevices

NewOrgsStatsOtherDevices creates a new instance of OrgsStatsOtherDevices. It takes a baseController as a parameter and returns a pointer to the OrgsStatsOtherDevices.

func (*OrgsStatsOtherDevices) GetOrgOtherDeviceStats added in v0.2.25

func (o *OrgsStatsOtherDevices) GetOrgOtherDeviceStats(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string) (
	models.ApiResponse[models.StatsDeviceOther],
	error)

GetOrgOtherDeviceStats takes context, orgId, deviceMac as parameters and returns an models.ApiResponse with models.StatsDeviceOther data and an error if there was an issue with the request or response. Get Otherdevice Stats

type OrgsStatsPorts added in v0.2.25

type OrgsStatsPorts struct {
	// contains filtered or unexported fields
}

OrgsStatsPorts represents a controller struct.

func NewOrgsStatsPorts added in v0.2.25

func NewOrgsStatsPorts(baseController baseController) *OrgsStatsPorts

NewOrgsStatsPorts creates a new instance of OrgsStatsPorts. It takes a baseController as a parameter and returns a pointer to the OrgsStatsPorts.

func (*OrgsStatsPorts) CountOrgSwOrGwPorts added in v0.4.74

func (o *OrgsStatsPorts) CountOrgSwOrGwPorts(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.SitePortsCountDistinctEnum,
	fullDuplex *bool,
	mac *string,
	neighborMac *string,
	neighborPortDesc *string,
	neighborSystemName *string,
	poeDisabled *bool,
	poeMode *string,
	poeOn *bool,
	portId *string,
	portMac *string,
	powerDraw *float64,
	txPkts *int,
	rxPkts *int,
	rxBytes *int,
	txBps *int,
	rxBps *int,
	txMcastPkts *int,
	txBcastPkts *int,
	rxMcastPkts *int,
	rxBcastPkts *int,
	speed *int,
	stpState *models.PortStpStateEnum,
	stpRole *models.PortStpRoleEnum,
	authState *models.PortAuthStateEnum,
	up *bool,
	siteId *uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgSwOrGwPorts takes context, orgId, distinct, fullDuplex, mac, neighborMac, neighborPortDesc, neighborSystemName, poeDisabled, poeMode, poeOn, portId, portMac, powerDraw, txPkts, rxPkts, rxBytes, txBps, rxBps, txMcastPkts, txBcastPkts, rxMcastPkts, rxBcastPkts, speed, stpState, stpRole, authState, up, siteId, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Switch/Gateway Ports at the Org level

func (*OrgsStatsPorts) SearchOrgSwOrGwPorts added in v0.2.25

func (o *OrgsStatsPorts) SearchOrgSwOrGwPorts(
	ctx context.Context,
	orgId uuid.UUID,
	deviceType *string,
	authState *models.PortAuthStateEnum,
	fullDuplex *bool,
	lteImsi *string,
	lteIccid *string,
	lteImei *string,
	mac *string,
	neighborMac *string,
	neighborPortDesc *string,
	neighborSystemName *string,
	poeDisabled *bool,
	poeMode *string,
	poeOn *bool,
	poePriority *models.PoePriorityEnum,
	portId *string,
	portMac *string,
	speed *int,
	stpState *models.PortStpStateEnum,
	stpRole *models.PortStpRoleEnum,
	up *bool,
	xcvrPartNumber *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponsePortStatsSearch],
	error)

SearchOrgSwOrGwPorts takes context, orgId, deviceType, authState, fullDuplex, lteImsi, lteIccid, lteImei, mac, neighborMac, neighborPortDesc, neighborSystemName, poeDisabled, poeMode, poeOn, poePriority, portId, portMac, speed, stpState, stpRole, up, xcvrPartNumber, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponsePortStatsSearch data and an error if there was an issue with the request or response. Search Switch / Gateway Ports Stats. Returns a list of switch/gateway ports stats that match the search criteria. The response provide current/last port status and statistics within the hour. Traffic information (Tx/Rx) are cumulative counters since the last device reboot.

type OrgsStatsSites added in v0.3.41

type OrgsStatsSites struct {
	// contains filtered or unexported fields
}

OrgsStatsSites represents a controller struct.

func NewOrgsStatsSites added in v0.3.41

func NewOrgsStatsSites(baseController baseController) *OrgsStatsSites

NewOrgsStatsSites creates a new instance of OrgsStatsSites. It takes a baseController as a parameter and returns a pointer to the OrgsStatsSites.

func (*OrgsStatsSites) ListOrgSiteStats added in v0.3.41

func (o *OrgsStatsSites) ListOrgSiteStats(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsSite],
	error)

ListOrgSiteStats takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.StatsSite data and an error if there was an issue with the request or response. Get List of Org Site Stats

type OrgsStatsTunnels added in v0.2.25

type OrgsStatsTunnels struct {
	// contains filtered or unexported fields
}

OrgsStatsTunnels represents a controller struct.

func NewOrgsStatsTunnels added in v0.2.25

func NewOrgsStatsTunnels(baseController baseController) *OrgsStatsTunnels

NewOrgsStatsTunnels creates a new instance of OrgsStatsTunnels. It takes a baseController as a parameter and returns a pointer to the OrgsStatsTunnels.

func (*OrgsStatsTunnels) CountOrgTunnelsStats added in v0.2.25

CountOrgTunnelsStats takes context, orgId, distinct, mType, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Mist Tunnels Stats

func (*OrgsStatsTunnels) SearchOrgTunnelsStats added in v0.2.25

func (o *OrgsStatsTunnels) SearchOrgTunnelsStats(
	ctx context.Context,
	orgId uuid.UUID,
	mxclusterId *string,
	siteId *string,
	wxtunnelId *string,
	ap *string,
	mac *string,
	node *string,
	peerIp *string,
	peerHost *string,
	ip *string,
	tunnelName *string,
	protocol *string,
	authAlgo *string,
	encryptAlgo *string,
	ikeVersion *string,
	up *string,
	mType *models.TunnelTypeEnum,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseTunnelSearch],
	error)

SearchOrgTunnelsStats takes context, orgId, mxclusterId, siteId, wxtunnelId, ap, mac, node, peerIp, peerHost, ip, tunnelName, protocol, authAlgo, encryptAlgo, ikeVersion, up, mType, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseTunnelSearch data and an error if there was an issue with the request or response. By default the endpoint returns only `wxtunnel` type stats, to get `wan` type stats you need to specify `type=wan` in the query parameters. Tunnel types: - `wxtunnel` (default) - A WxLan Tunnel (WxTunnel) are used to create a secure connection between Juniper Mist Access Points and third-party VPN concentrators using protocols such as L2TPv3 or dmvpn. - `wan` - A WAN Tunnel is a secure connection between two Gateways, typically used for site-to-site or mesh connectivity. It can be configured with various protocols and encryption methods. If `type` is not specified or `type`==`wxtunnel`, the following parameters are supported: - `mxcluster_id` - the MX cluster ID - `site_id` - the site ID - `wxtunnel_id` - the WX tunnel ID - `ap` - the AP MAC address If `type`==`wan`, the following parameters are supported: - `mac` - the MAC address of the WAN device - `node` - the node ID - `peer_ip` - the peer IP address - `peer_host` - the peer host name - `ip` - the IP address of the WAN device - `tunnel_name` - the name of the tunnel - `protocol` - the protocol used for the tunnel - `auth_algo` - the authentication algorithm used for the tunnel - `encrypt_algo` - the encryption algorithm used for the tunnel - `ike_version` - the IKE version used for the tunnel - `up` - the status of the tunnel (up or down)

type OrgsStatsVPNPeers added in v0.2.25

type OrgsStatsVPNPeers struct {
	// contains filtered or unexported fields
}

OrgsStatsVPNPeers represents a controller struct.

func NewOrgsStatsVPNPeers added in v0.2.25

func NewOrgsStatsVPNPeers(baseController baseController) *OrgsStatsVPNPeers

NewOrgsStatsVPNPeers creates a new instance of OrgsStatsVPNPeers. It takes a baseController as a parameter and returns a pointer to the OrgsStatsVPNPeers.

func (*OrgsStatsVPNPeers) CountOrgPeerPathStats added in v0.2.25

func (o *OrgsStatsVPNPeers) CountOrgPeerPathStats(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgPeerPathStats takes context, orgId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Org Peer Path Stats

func (*OrgsStatsVPNPeers) SearchOrgPeerPathStats added in v0.2.25

func (o *OrgsStatsVPNPeers) SearchOrgPeerPathStats(
	ctx context.Context,
	orgId uuid.UUID,
	mac *string,
	siteId *string,
	mType *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.VpnPeerStatSearch],
	error)

SearchOrgPeerPathStats takes context, orgId, mac, siteId, mType, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.VpnPeerStatSearch data and an error if there was an issue with the request or response. Search Org Peer Path Stats

type OrgsTickets

type OrgsTickets struct {
	// contains filtered or unexported fields
}

OrgsTickets represents a controller struct.

func NewOrgsTickets

func NewOrgsTickets(baseController baseController) *OrgsTickets

NewOrgsTickets creates a new instance of OrgsTickets. It takes a baseController as a parameter and returns a pointer to the OrgsTickets.

func (*OrgsTickets) AddOrgTicketComment

func (o *OrgsTickets) AddOrgTicketComment(
	ctx context.Context,
	orgId uuid.UUID,
	ticketId uuid.UUID,
	comment *string,
	file *models.FileWrapper) (
	models.ApiResponse[models.Ticket],
	error)

AddOrgTicketComment takes context, orgId, ticketId, comment, file as parameters and returns an models.ApiResponse with models.Ticket data and an error if there was an issue with the request or response. Add Comment to support ticket

func (*OrgsTickets) CountOrgTickets

func (o *OrgsTickets) CountOrgTickets(
	ctx context.Context,
	orgId uuid.UUID,
	distinct *models.OrgTicketsCountDistinctEnum,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgTickets takes context, orgId, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Org Tickets

func (*OrgsTickets) CreateOrgTicket

func (o *OrgsTickets) CreateOrgTicket(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Ticket) (
	models.ApiResponse[models.Ticket],
	error)

CreateOrgTicket takes context, orgId, body as parameters and returns an models.ApiResponse with models.Ticket data and an error if there was an issue with the request or response. Create a support ticket

func (*OrgsTickets) GetOrgTicket

func (o *OrgsTickets) GetOrgTicket(
	ctx context.Context,
	orgId uuid.UUID,
	ticketId uuid.UUID,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.Ticket],
	error)

GetOrgTicket takes context, orgId, ticketId, start, end, duration as parameters and returns an models.ApiResponse with models.Ticket data and an error if there was an issue with the request or response. Get support ticket details

func (*OrgsTickets) GetOrgTicketAttachment

func (o *OrgsTickets) GetOrgTicketAttachment(
	ctx context.Context,
	orgId uuid.UUID,
	ticketId uuid.UUID,
	attachmentId uuid.UUID,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.TicketAttachment],
	error)

GetOrgTicketAttachment takes context, orgId, ticketId, attachmentId, start, end, duration as parameters and returns an models.ApiResponse with models.TicketAttachment data and an error if there was an issue with the request or response. Get Org ticket Attachment

func (*OrgsTickets) ListOrgTickets

func (o *OrgsTickets) ListOrgTickets(
	ctx context.Context,
	orgId uuid.UUID,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[[]models.Ticket],
	error)

ListOrgTickets takes context, orgId, start, end, duration as parameters and returns an models.ApiResponse with []models.Ticket data and an error if there was an issue with the request or response. Get List of Tickets of an Org

func (*OrgsTickets) UpdateOrgTicket

func (o *OrgsTickets) UpdateOrgTicket(
	ctx context.Context,
	orgId uuid.UUID,
	ticketId uuid.UUID,
	body *models.Ticket) (
	models.ApiResponse[models.Ticket],
	error)

UpdateOrgTicket takes context, orgId, ticketId, body as parameters and returns an models.ApiResponse with models.Ticket data and an error if there was an issue with the request or response. Update support ticket

func (*OrgsTickets) UploadOrgTicketAttachment added in v0.4.54

func (o *OrgsTickets) UploadOrgTicketAttachment(
	ctx context.Context,
	orgId uuid.UUID,
	ticketId uuid.UUID,
	file *models.FileWrapper) (
	*http.Response,
	error)

UploadOrgTicketAttachment takes context, orgId, ticketId, file as parameters and returns an *Response and an error if there was an issue with the request or response. Get Org ticket Attachment

type OrgsUISettings added in v0.4.80

type OrgsUISettings struct {
	// contains filtered or unexported fields
}

OrgsUISettings represents a controller struct.

func NewOrgsUISettings added in v0.4.80

func NewOrgsUISettings(baseController baseController) *OrgsUISettings

NewOrgsUISettings creates a new instance of OrgsUISettings. It takes a baseController as a parameter and returns a pointer to the OrgsUISettings.

func (*OrgsUISettings) CreateOrgUiSettings added in v0.4.80

func (o *OrgsUISettings) CreateOrgUiSettings(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.OrgUiSettings) (
	models.ApiResponse[models.OrgUiSettings],
	error)

CreateOrgUiSettings takes context, orgId, body as parameters and returns an models.ApiResponse with models.OrgUiSettings data and an error if there was an issue with the request or response. Create an Org UI settings/databoard

func (*OrgsUISettings) DeleteOrgUiSetting added in v0.4.80

func (o *OrgsUISettings) DeleteOrgUiSetting(
	ctx context.Context,
	orgId uuid.UUID,
	uisettingId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgUiSetting takes context, orgId, uisettingId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an Org UI settings

func (*OrgsUISettings) GetOrgUiSetting added in v0.4.80

func (o *OrgsUISettings) GetOrgUiSetting(
	ctx context.Context,
	orgId uuid.UUID,
	uisettingId uuid.UUID) (
	models.ApiResponse[models.OrgUiSettings],
	error)

GetOrgUiSetting takes context, orgId, uisettingId as parameters and returns an models.ApiResponse with models.OrgUiSettings data and an error if there was an issue with the request or response. Get an Org UI settings/databoard

func (*OrgsUISettings) ListOrgUiSettings added in v0.4.80

func (o *OrgsUISettings) ListOrgUiSettings(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.OrgUiSettings],
	error)

ListOrgUiSettings takes context, orgId as parameters and returns an models.ApiResponse with []models.OrgUiSettings data and an error if there was an issue with the request or response. List the Orgs UI settings/databoard

func (*OrgsUISettings) UpdateOrgUiSetting added in v0.4.80

func (o *OrgsUISettings) UpdateOrgUiSetting(
	ctx context.Context,
	orgId uuid.UUID,
	uisettingId uuid.UUID,
	body *models.OrgUiSettings) (
	models.ApiResponse[models.OrgUiSettings],
	error)

UpdateOrgUiSetting takes context, orgId, uisettingId, body as parameters and returns an models.ApiResponse with models.OrgUiSettings data and an error if there was an issue with the request or response. Org UI settings/databoard

type OrgsUserMACs

type OrgsUserMACs struct {
	// contains filtered or unexported fields
}

OrgsUserMACs represents a controller struct.

func NewOrgsUserMACs

func NewOrgsUserMACs(baseController baseController) *OrgsUserMACs

NewOrgsUserMACs creates a new instance of OrgsUserMACs. It takes a baseController as a parameter and returns a pointer to the OrgsUserMACs.

func (*OrgsUserMACs) CountOrgUserMacs added in v0.4.100

func (o *OrgsUserMACs) CountOrgUserMacs(
	ctx context.Context,
	orgId uuid.UUID,
	distinct models.CountUsermacDistinctEnum,
	limit *int,
	start *string,
	end *string) (
	models.ApiResponse[models.UserMacsCount],
	error)

CountOrgUserMacs takes context, orgId, distinct, limit, start, end as parameters and returns an models.ApiResponse with models.UserMacsCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of User MACs

func (*OrgsUserMACs) CreateOrgUserMac added in v0.4.69

func (o *OrgsUserMACs) CreateOrgUserMac(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.UserMac) (
	models.ApiResponse[models.UserMac],
	error)

CreateOrgUserMac takes context, orgId, body as parameters and returns an models.ApiResponse with models.UserMac data and an error if there was an issue with the request or response. Create Org User MACs ### Usermacs import CSV file format mac,labels,vlan,notes 921b638445cd,"bldg1,flor1",vlan-100 721b638445ef,"bldg2,flor2",vlan-101,Canon Printers 721b638445ee,"bldg3,flor3",vlan-102 921b638445ce,"bldg4,flor4",vlan-103 921b638445cf,"bldg5,flor5",vlan-104

func (*OrgsUserMACs) DeleteOrgMultipleUserMacs added in v0.4.74

func (o *OrgsUserMACs) DeleteOrgMultipleUserMacs(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.UsermacsId) (
	*http.Response,
	error)

DeleteOrgMultipleUserMacs takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Multiple Org User MACs

func (*OrgsUserMACs) DeleteOrgUserMac

func (o *OrgsUserMACs) DeleteOrgUserMac(
	ctx context.Context,
	orgId uuid.UUID,
	usermacId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgUserMac takes context, orgId, usermacId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Org User MAC

func (*OrgsUserMACs) GetOrgUserMac

func (o *OrgsUserMACs) GetOrgUserMac(
	ctx context.Context,
	orgId uuid.UUID,
	usermacId uuid.UUID) (
	models.ApiResponse[models.UserMac],
	error)

GetOrgUserMac takes context, orgId, usermacId as parameters and returns an models.ApiResponse with models.UserMac data and an error if there was an issue with the request or response. Get Org User MAC

func (*OrgsUserMACs) ImportOrgUserMacs

func (o *OrgsUserMACs) ImportOrgUserMacs(
	ctx context.Context,
	orgId uuid.UUID,
	file models.FileWrapper) (
	models.ApiResponse[models.UserMacImport],
	error)

ImportOrgUserMacs takes context, orgId, file as parameters and returns an models.ApiResponse with models.UserMacImport data and an error if there was an issue with the request or response. Import Org User MACs. Accepts JSON or CSV upload. **JSON — Array form** (asynchronous by default): ```json [ {"mac": "921b638445cd", "labels": ["label1"], "vlan": "vlan-1"}, {"mac": "721b638445ef", "labels": ["label2", "label3"], "notes": "mac address refers to Canon printers"} ] ``` **CSV upload**: multipart/form-data with `file` field. ### CSV file format ```csv mac,labels,vlan,notes,name,radius_group 921b638445cd,"bldg1,flor1",vlan-100 721b638445ef,"bldg2,flor2",vlan-101,Canon Printers 721b638445ee,"bldg3,flor3",vlan-102,Printer2,VIP 921b638445ce,"bldg4,flor4",vlan-103 921b638445cf,"bldg5,flor5",vlan-104 ```

func (*OrgsUserMACs) SearchOrgUserMacs

func (o *OrgsUserMACs) SearchOrgUserMacs(
	ctx context.Context,
	orgId uuid.UUID,
	mac *string,
	labels []string,
	limit *int,
	page *int,
	sort *string) (
	models.ApiResponse[[]models.UserMac],
	error)

SearchOrgUserMacs takes context, orgId, mac, labels, limit, page, sort as parameters and returns an models.ApiResponse with []models.UserMac data and an error if there was an issue with the request or response. Search Org User MACs

func (*OrgsUserMACs) UpdateOrgMultipleUserMacs added in v0.4.74

func (o *OrgsUserMACs) UpdateOrgMultipleUserMacs(
	ctx context.Context,
	orgId uuid.UUID,
	body []models.UserMac) (
	models.ApiResponse[models.UserMacsUpdate],
	error)

UpdateOrgMultipleUserMacs takes context, orgId, body as parameters and returns an models.ApiResponse with models.UserMacsUpdate data and an error if there was an issue with the request or response. Update Multiple Org User MACs. Accepts a JSON array of user MAC objects where `id` is required for each entry.

func (*OrgsUserMACs) UpdateOrgUserMac added in v0.3.2

func (o *OrgsUserMACs) UpdateOrgUserMac(
	ctx context.Context,
	orgId uuid.UUID,
	usermacId uuid.UUID,
	body *models.UserMac) (
	models.ApiResponse[models.UserMac],
	error)

UpdateOrgUserMac takes context, orgId, usermacId, body as parameters and returns an models.ApiResponse with models.UserMac data and an error if there was an issue with the request or response. Update Org User MAC

type OrgsVPNs

type OrgsVPNs struct {
	// contains filtered or unexported fields
}

OrgsVPNs represents a controller struct.

func NewOrgsVPNs

func NewOrgsVPNs(baseController baseController) *OrgsVPNs

NewOrgsVPNs creates a new instance of OrgsVPNs. It takes a baseController as a parameter and returns a pointer to the OrgsVPNs.

func (*OrgsVPNs) CreateOrgVpn added in v0.4.69

func (o *OrgsVPNs) CreateOrgVpn(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Vpn) (
	models.ApiResponse[models.Vpn],
	error)

CreateOrgVpn takes context, orgId, body as parameters and returns an models.ApiResponse with models.Vpn data and an error if there was an issue with the request or response. Create Org VPN

func (*OrgsVPNs) DeleteOrgVpn

func (o *OrgsVPNs) DeleteOrgVpn(
	ctx context.Context,
	orgId uuid.UUID,
	vpnId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgVpn takes context, orgId, vpnId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Org Vpn

func (*OrgsVPNs) GetOrgVpn

func (o *OrgsVPNs) GetOrgVpn(
	ctx context.Context,
	orgId uuid.UUID,
	vpnId uuid.UUID) (
	models.ApiResponse[models.Vpn],
	error)

GetOrgVpn takes context, orgId, vpnId as parameters and returns an models.ApiResponse with models.Vpn data and an error if there was an issue with the request or response. Get Org Vpn

func (*OrgsVPNs) ListOrgVpns added in v0.4.70

func (o *OrgsVPNs) ListOrgVpns(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Vpn],
	error)

ListOrgVpns takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Vpn data and an error if there was an issue with the request or response. Get List of Org VPNs

func (*OrgsVPNs) UpdateOrgVpn

func (o *OrgsVPNs) UpdateOrgVpn(
	ctx context.Context,
	orgId uuid.UUID,
	vpnId uuid.UUID,
	body *models.Vpn) (
	models.ApiResponse[models.Vpn],
	error)

UpdateOrgVpn takes context, orgId, vpnId, body as parameters and returns an models.ApiResponse with models.Vpn data and an error if there was an issue with the request or response. Update Org Vpn

type OrgsVars

type OrgsVars struct {
	// contains filtered or unexported fields
}

OrgsVars represents a controller struct.

func NewOrgsVars

func NewOrgsVars(baseController baseController) *OrgsVars

NewOrgsVars creates a new instance of OrgsVars. It takes a baseController as a parameter and returns a pointer to the OrgsVars.

func (*OrgsVars) SearchOrgVars

func (o *OrgsVars) SearchOrgVars(
	ctx context.Context,
	orgId uuid.UUID,
	siteId *string,
	mVar *string,
	src *models.VarSourceEnum,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseSearchVar],
	error)

SearchOrgVars takes context, orgId, siteId, mVar, src, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseSearchVar data and an error if there was an issue with the request or response. Search vars Example: /api/v1/orgs/{org_id}/vars/search?vars=*

type OrgsWLANTemplates

type OrgsWLANTemplates struct {
	// contains filtered or unexported fields
}

OrgsWLANTemplates represents a controller struct.

func NewOrgsWLANTemplates

func NewOrgsWLANTemplates(baseController baseController) *OrgsWLANTemplates

NewOrgsWLANTemplates creates a new instance of OrgsWLANTemplates. It takes a baseController as a parameter and returns a pointer to the OrgsWLANTemplates.

func (*OrgsWLANTemplates) CloneOrgTemplate

func (o *OrgsWLANTemplates) CloneOrgTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	templateId uuid.UUID,
	body *models.NameString) (
	models.ApiResponse[models.Template],
	error)

CloneOrgTemplate takes context, orgId, templateId, body as parameters and returns an models.ApiResponse with models.Template data and an error if there was an issue with the request or response. Clone Org Template

func (*OrgsWLANTemplates) CreateOrgTemplate

func (o *OrgsWLANTemplates) CreateOrgTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Template) (
	models.ApiResponse[models.Template],
	error)

CreateOrgTemplate takes context, orgId, body as parameters and returns an models.ApiResponse with models.Template data and an error if there was an issue with the request or response. Create Org Template

func (*OrgsWLANTemplates) DeleteOrgTemplate

func (o *OrgsWLANTemplates) DeleteOrgTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	templateId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgTemplate takes context, orgId, templateId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Org Template

func (*OrgsWLANTemplates) GetOrgTemplate

func (o *OrgsWLANTemplates) GetOrgTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	templateId uuid.UUID) (
	models.ApiResponse[models.Template],
	error)

GetOrgTemplate takes context, orgId, templateId as parameters and returns an models.ApiResponse with models.Template data and an error if there was an issue with the request or response. Get Org Template Details

func (*OrgsWLANTemplates) ListOrgTemplates

func (o *OrgsWLANTemplates) ListOrgTemplates(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Template],
	error)

ListOrgTemplates takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Template data and an error if there was an issue with the request or response. Get List of Org WLAN Templates

func (*OrgsWLANTemplates) UpdateOrgTemplate

func (o *OrgsWLANTemplates) UpdateOrgTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	templateId uuid.UUID,
	body *models.Template) (
	models.ApiResponse[models.Template],
	error)

UpdateOrgTemplate takes context, orgId, templateId, body as parameters and returns an models.ApiResponse with models.Template data and an error if there was an issue with the request or response. Update Org Template

type OrgsWebhooks

type OrgsWebhooks struct {
	// contains filtered or unexported fields
}

OrgsWebhooks represents a controller struct.

func NewOrgsWebhooks

func NewOrgsWebhooks(baseController baseController) *OrgsWebhooks

NewOrgsWebhooks creates a new instance of OrgsWebhooks. It takes a baseController as a parameter and returns a pointer to the OrgsWebhooks.

func (*OrgsWebhooks) CountOrgWebhooksDeliveries

func (o *OrgsWebhooks) CountOrgWebhooksDeliveries(
	ctx context.Context,
	orgId uuid.UUID,
	webhookId uuid.UUID,
	mError *string,
	statusCode *int,
	status *models.WebhookDeliveryStatusEnum,
	topic *models.WebhookDeliveryTopicEnum,
	distinct *models.WebhookDeliveryDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountOrgWebhooksDeliveries takes context, orgId, webhookId, mError, statusCode, status, topic, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Org Webhooks deliveries Topics Supported: - alarms - audits - device-updowns - occupancy-alerts - ping

func (*OrgsWebhooks) CreateOrgWebhook

func (o *OrgsWebhooks) CreateOrgWebhook(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Webhook) (
	models.ApiResponse[models.Webhook],
	error)

CreateOrgWebhook takes context, orgId, body as parameters and returns an models.ApiResponse with models.Webhook data and an error if there was an issue with the request or response. **N.B**. For org webhooks, only alarms/audits/client-info/client-join/client-sessions/device_events/device-updowns/mxedge_events Infrastructure topics are supported. Webhook defines a webhook, modeled after [github\u2019s model](https://developer.github.com/webhooks/). There is two types of webhooks: * webhooks ([examples](https://www.postman.com/juniper-mist/workspace/mist-systems-s-public-workspace/folder/224925-be01e694-7253-4195-8563-78e2a745e114)) * raw data webhooks ([examples](https://www.postman.com/juniper-mist/workspace/mist-systems-s-public-workspace/folder/224925-e2d5d5f8-4bdb-4efc-93e4-90f4b33d0b2b)) ##### Webhooks Webhooks can be configured at the org level (subset of topics only) and at the site level. It is possible to have multiple topics in the same webhook configuration and/or to have multiple webhooks configured at the same time.

func (*OrgsWebhooks) DeleteOrgWebhook

func (o *OrgsWebhooks) DeleteOrgWebhook(
	ctx context.Context,
	orgId uuid.UUID,
	webhookId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgWebhook takes context, orgId, webhookId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Org Webhook

func (*OrgsWebhooks) GetOrgWebhook

func (o *OrgsWebhooks) GetOrgWebhook(
	ctx context.Context,
	orgId uuid.UUID,
	webhookId uuid.UUID) (
	models.ApiResponse[models.Webhook],
	error)

GetOrgWebhook takes context, orgId, webhookId as parameters and returns an models.ApiResponse with models.Webhook data and an error if there was an issue with the request or response. Get Org Webhook Details

func (*OrgsWebhooks) ListOrgWebhooks

func (o *OrgsWebhooks) ListOrgWebhooks(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Webhook],
	error)

ListOrgWebhooks takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Webhook data and an error if there was an issue with the request or response. Get List of Org Webhooks

func (*OrgsWebhooks) PingOrgWebhook

func (o *OrgsWebhooks) PingOrgWebhook(
	ctx context.Context,
	orgId uuid.UUID,
	webhookId uuid.UUID) (
	*http.Response,
	error)

PingOrgWebhook takes context, orgId, webhookId as parameters and returns an *Response and an error if there was an issue with the request or response. Send a Ping event to the webhook

func (*OrgsWebhooks) SearchOrgWebhooksDeliveries

func (o *OrgsWebhooks) SearchOrgWebhooksDeliveries(
	ctx context.Context,
	orgId uuid.UUID,
	webhookId uuid.UUID,
	mError *string,
	statusCode *int,
	status *models.WebhookDeliveryStatusEnum,
	topic *models.WebhookDeliveryTopicEnum,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchWebhookDelivery],
	error)

SearchOrgWebhooksDeliveries takes context, orgId, webhookId, mError, statusCode, status, topic, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchWebhookDelivery data and an error if there was an issue with the request or response. Search Org Webhooks deliveries Topics Supported: - alarms - audits - device-updowns - occupancy-alerts - ping

func (*OrgsWebhooks) UpdateOrgWebhook

func (o *OrgsWebhooks) UpdateOrgWebhook(
	ctx context.Context,
	orgId uuid.UUID,
	webhookId uuid.UUID,
	body *models.Webhook) (
	models.ApiResponse[models.Webhook],
	error)

UpdateOrgWebhook takes context, orgId, webhookId, body as parameters and returns an models.ApiResponse with models.Webhook data and an error if there was an issue with the request or response. Update Org Webhook

type OrgsWlans

type OrgsWlans struct {
	// contains filtered or unexported fields
}

OrgsWlans represents a controller struct.

func NewOrgsWlans

func NewOrgsWlans(baseController baseController) *OrgsWlans

NewOrgsWlans creates a new instance of OrgsWlans. It takes a baseController as a parameter and returns a pointer to the OrgsWlans.

func (*OrgsWlans) CreateOrgWlan

func (o *OrgsWlans) CreateOrgWlan(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.Wlan) (
	models.ApiResponse[models.Wlan],
	error)

CreateOrgWlan takes context, orgId, body as parameters and returns an models.ApiResponse with models.Wlan data and an error if there was an issue with the request or response. Create Org Wlan

func (*OrgsWlans) DeleteOrgWlan

func (o *OrgsWlans) DeleteOrgWlan(
	ctx context.Context,
	orgId uuid.UUID,
	wlanId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgWlan takes context, orgId, wlanId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Org WLAN

func (*OrgsWlans) DeleteOrgWlanPortalImage

func (o *OrgsWlans) DeleteOrgWlanPortalImage(
	ctx context.Context,
	orgId uuid.UUID,
	wlanId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgWlanPortalImage takes context, orgId, wlanId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Org WLAN Portal Image

func (*OrgsWlans) GetOrgWLAN

func (o *OrgsWlans) GetOrgWLAN(
	ctx context.Context,
	orgId uuid.UUID,
	wlanId uuid.UUID) (
	models.ApiResponse[models.Wlan],
	error)

GetOrgWLAN takes context, orgId, wlanId as parameters and returns an models.ApiResponse with models.Wlan data and an error if there was an issue with the request or response. Get Org Wlan Detail

func (*OrgsWlans) ListOrgWlans

func (o *OrgsWlans) ListOrgWlans(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Wlan],
	error)

ListOrgWlans takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.Wlan data and an error if there was an issue with the request or response. Get List of Org Wlans

func (*OrgsWlans) UpdateOrgWlan

func (o *OrgsWlans) UpdateOrgWlan(
	ctx context.Context,
	orgId uuid.UUID,
	wlanId uuid.UUID,
	body *models.Wlan) (
	models.ApiResponse[models.Wlan],
	error)

UpdateOrgWlan takes context, orgId, wlanId, body as parameters and returns an models.ApiResponse with models.Wlan data and an error if there was an issue with the request or response. Update Org Wlan

func (*OrgsWlans) UpdateOrgWlanPortalTemplate

func (o *OrgsWlans) UpdateOrgWlanPortalTemplate(
	ctx context.Context,
	orgId uuid.UUID,
	wlanId uuid.UUID,
	body *models.WlanPortalTemplate) (
	models.ApiResponse[models.WlanPortalTemplate],
	error)

UpdateOrgWlanPortalTemplate takes context, orgId, wlanId, body as parameters and returns an models.ApiResponse with models.WlanPortalTemplate data and an error if there was an issue with the request or response. Update a Portal Template #### Sponsor Email Template Sponsor Email Template supports following template variables: | **Name** | **Description** | | --- | --- | | approve_url | Renders URL to approve the request; optionally &minutes=N query param can be appended to change the Authorization period of the guest, where N is a valid integer denoting number of minutes a guest remains authorized | | deny_url | Renders URL to reject the request | | guest_email | Renders Email ID of the guest | | guest_name | Renders Name of the guest | | field1 | Renders value of the Custom Field 1 | | field2 | Renders value of the Custom Field 2 | | company | Renders value of the Company field | | sponsor_link_validity_duration | Renders validity time of the request (i.e. Approve/Deny URL) | | auth_expire_minutes | Renders Wlan-level configured Guest Authorization Expiration time period (in minutes), If not configured then default (1 day in minutes) |

func (*OrgsWlans) UploadOrgWlanPortalImage

func (o *OrgsWlans) UploadOrgWlanPortalImage(
	ctx context.Context,
	orgId uuid.UUID,
	wlanId uuid.UUID,
	file models.FileWrapper,
	json *string) (
	*http.Response,
	error)

UploadOrgWlanPortalImage takes context, orgId, wlanId, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Upload Org WLAN Portal Image

type OrgsWxRules

type OrgsWxRules struct {
	// contains filtered or unexported fields
}

OrgsWxRules represents a controller struct.

func NewOrgsWxRules

func NewOrgsWxRules(baseController baseController) *OrgsWxRules

NewOrgsWxRules creates a new instance of OrgsWxRules. It takes a baseController as a parameter and returns a pointer to the OrgsWxRules.

func (*OrgsWxRules) CreateOrgWxRule

func (o *OrgsWxRules) CreateOrgWxRule(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.WxlanRule) (
	models.ApiResponse[models.WxlanRule],
	error)

CreateOrgWxRule takes context, orgId, body as parameters and returns an models.ApiResponse with models.WxlanRule data and an error if there was an issue with the request or response. Create Org WxRule

func (*OrgsWxRules) DeleteOrgWxRule

func (o *OrgsWxRules) DeleteOrgWxRule(
	ctx context.Context,
	orgId uuid.UUID,
	wxruleId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgWxRule takes context, orgId, wxruleId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Org WxRule

func (*OrgsWxRules) GetOrgWxRule

func (o *OrgsWxRules) GetOrgWxRule(
	ctx context.Context,
	orgId uuid.UUID,
	wxruleId uuid.UUID) (
	models.ApiResponse[models.WxlanRule],
	error)

GetOrgWxRule takes context, orgId, wxruleId as parameters and returns an models.ApiResponse with models.WxlanRule data and an error if there was an issue with the request or response. Get Org WxRule Details

func (*OrgsWxRules) ListOrgWxRules

func (o *OrgsWxRules) ListOrgWxRules(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.WxlanRule],
	error)

ListOrgWxRules takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.WxlanRule data and an error if there was an issue with the request or response. Get List of Org WxRules

func (*OrgsWxRules) UpdateOrgWxRule

func (o *OrgsWxRules) UpdateOrgWxRule(
	ctx context.Context,
	orgId uuid.UUID,
	wxruleId uuid.UUID,
	body *models.WxlanRule) (
	models.ApiResponse[models.WxlanRule],
	error)

UpdateOrgWxRule takes context, orgId, wxruleId, body as parameters and returns an models.ApiResponse with models.WxlanRule data and an error if there was an issue with the request or response. Update Org WxRule

type OrgsWxTags

type OrgsWxTags struct {
	// contains filtered or unexported fields
}

OrgsWxTags represents a controller struct.

func NewOrgsWxTags

func NewOrgsWxTags(baseController baseController) *OrgsWxTags

NewOrgsWxTags creates a new instance of OrgsWxTags. It takes a baseController as a parameter and returns a pointer to the OrgsWxTags.

func (*OrgsWxTags) CreateOrgWxTag

func (o *OrgsWxTags) CreateOrgWxTag(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.WxlanTag) (
	models.ApiResponse[models.WxlanTag],
	error)

CreateOrgWxTag takes context, orgId, body as parameters and returns an models.ApiResponse with models.WxlanTag data and an error if there was an issue with the request or response. Create WxLAN Tag

func (*OrgsWxTags) DeleteOrgWxTag

func (o *OrgsWxTags) DeleteOrgWxTag(
	ctx context.Context,
	orgId uuid.UUID,
	wxtagId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgWxTag takes context, orgId, wxtagId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete WxLAN Tag

func (*OrgsWxTags) GetOrgApplicationList

func (o *OrgsWxTags) GetOrgApplicationList(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.SearchWxtagAppsItem],
	error)

GetOrgApplicationList takes context, orgId as parameters and returns an models.ApiResponse with []models.SearchWxtagAppsItem data and an error if there was an issue with the request or response. Get Application List

func (*OrgsWxTags) GetOrgCurrentMatchingClientsOfAWxTag

func (o *OrgsWxTags) GetOrgCurrentMatchingClientsOfAWxTag(
	ctx context.Context,
	orgId uuid.UUID,
	wxtagId uuid.UUID) (
	models.ApiResponse[[]models.WxtagClient],
	error)

GetOrgCurrentMatchingClientsOfAWxTag takes context, orgId, wxtagId as parameters and returns an models.ApiResponse with []models.WxtagClient data and an error if there was an issue with the request or response. Get Current Matching Clients of a WXLAN Tag

func (*OrgsWxTags) GetOrgWxTag

func (o *OrgsWxTags) GetOrgWxTag(
	ctx context.Context,
	orgId uuid.UUID,
	wxtagId uuid.UUID) (
	models.ApiResponse[models.WxlanTag],
	error)

GetOrgWxTag takes context, orgId, wxtagId as parameters and returns an models.ApiResponse with models.WxlanTag data and an error if there was an issue with the request or response. Get WxLAN Tag Details

func (*OrgsWxTags) ListOrgWxTags

func (o *OrgsWxTags) ListOrgWxTags(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.WxlanTag],
	error)

ListOrgWxTags takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.WxlanTag data and an error if there was an issue with the request or response. Get List of Org WxLAN Tags

func (*OrgsWxTags) UpdateOrgWxTag

func (o *OrgsWxTags) UpdateOrgWxTag(
	ctx context.Context,
	orgId uuid.UUID,
	wxtagId uuid.UUID,
	body *models.WxlanTag) (
	models.ApiResponse[models.WxlanTag],
	error)

UpdateOrgWxTag takes context, orgId, wxtagId, body as parameters and returns an models.ApiResponse with models.WxlanTag data and an error if there was an issue with the request or response. Update WxLAN Tag

type OrgsWxTunnels

type OrgsWxTunnels struct {
	// contains filtered or unexported fields
}

OrgsWxTunnels represents a controller struct.

func NewOrgsWxTunnels

func NewOrgsWxTunnels(baseController baseController) *OrgsWxTunnels

NewOrgsWxTunnels creates a new instance of OrgsWxTunnels. It takes a baseController as a parameter and returns a pointer to the OrgsWxTunnels.

func (*OrgsWxTunnels) CreateOrgWxTunnel

func (o *OrgsWxTunnels) CreateOrgWxTunnel(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.WxlanTunnel) (
	models.ApiResponse[models.WxlanTunnel],
	error)

CreateOrgWxTunnel takes context, orgId, body as parameters and returns an models.ApiResponse with models.WxlanTunnel data and an error if there was an issue with the request or response. Create Org WxAN Tunnel

func (*OrgsWxTunnels) DeleteOrgWxTunnel

func (o *OrgsWxTunnels) DeleteOrgWxTunnel(
	ctx context.Context,
	orgId uuid.UUID,
	wxtunnelId uuid.UUID) (
	*http.Response,
	error)

DeleteOrgWxTunnel takes context, orgId, wxtunnelId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Org WxLAN Tunnel

func (*OrgsWxTunnels) GetOrgWxTunnel

func (o *OrgsWxTunnels) GetOrgWxTunnel(
	ctx context.Context,
	orgId uuid.UUID,
	wxtunnelId uuid.UUID) (
	models.ApiResponse[models.WxlanTunnel],
	error)

GetOrgWxTunnel takes context, orgId, wxtunnelId as parameters and returns an models.ApiResponse with models.WxlanTunnel data and an error if there was an issue with the request or response. Get Org WxLAN Tunnel Details

func (*OrgsWxTunnels) ListOrgWxTunnels

func (o *OrgsWxTunnels) ListOrgWxTunnels(
	ctx context.Context,
	orgId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.WxlanTunnel],
	error)

ListOrgWxTunnels takes context, orgId, limit, page as parameters and returns an models.ApiResponse with []models.WxlanTunnel data and an error if there was an issue with the request or response. Get List of Org WxLAN Tunnels

func (*OrgsWxTunnels) UpdateOrgWxTunnel

func (o *OrgsWxTunnels) UpdateOrgWxTunnel(
	ctx context.Context,
	orgId uuid.UUID,
	wxtunnelId uuid.UUID,
	body *models.WxlanTunnel) (
	models.ApiResponse[models.WxlanTunnel],
	error)

UpdateOrgWxTunnel takes context, orgId, wxtunnelId, body as parameters and returns an models.ApiResponse with models.WxlanTunnel data and an error if there was an issue with the request or response. Update Org WxLAN Tunnel

type RetryConfiguration

type RetryConfiguration = https.RetryConfiguration

RetryConfiguration holds the configuration options for the client.

func CreateRetryConfiguration

func CreateRetryConfiguration(options ...RetryConfigurationOptions) RetryConfiguration

CreateRetryConfiguration creates a new RetryConfiguration with the provided options.

func DefaultRetryConfiguration

func DefaultRetryConfiguration() RetryConfiguration

DefaultRetryConfiguration returns the default RetryConfiguration for HTTP requests. It also configures various retry options.

type RetryConfigurationOptions

type RetryConfigurationOptions = https.RetryConfigurationOptions

RetryConfigurationOptions is a function type that modifies the RetryConfiguration.

type SdkLoggerInterface

type SdkLoggerInterface = logger.SdkLoggerInterface

SdkLoggerInterface holds the configuration options for the client.

type SelfAPIToken

type SelfAPIToken struct {
	// contains filtered or unexported fields
}

SelfAPIToken represents a controller struct.

func NewSelfAPIToken

func NewSelfAPIToken(baseController baseController) *SelfAPIToken

NewSelfAPIToken creates a new instance of SelfAPIToken. It takes a baseController as a parameter and returns a pointer to the SelfAPIToken.

func (*SelfAPIToken) CreateApiToken

func (s *SelfAPIToken) CreateApiToken(
	ctx context.Context,
	body *models.UserApitoken) (
	models.ApiResponse[[]models.UserApitoken],
	error)

CreateApiToken takes context, body as parameters and returns an models.ApiResponse with []models.UserApitoken data and an error if there was an issue with the request or response. Create API Token Note that the key is only available during creation time.

func (*SelfAPIToken) DeleteApiToken

func (s *SelfAPIToken) DeleteApiToken(
	ctx context.Context,
	apitokenId uuid.UUID) (
	*http.Response,
	error)

DeleteApiToken takes context, apitokenId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete an API Token

func (*SelfAPIToken) GetApiToken

func (s *SelfAPIToken) GetApiToken(
	ctx context.Context,
	apitokenId uuid.UUID) (
	models.ApiResponse[models.UserApitoken],
	error)

GetApiToken takes context, apitokenId as parameters and returns an models.ApiResponse with models.UserApitoken data and an error if there was an issue with the request or response. Get User API Token

func (*SelfAPIToken) ListApiTokens

func (s *SelfAPIToken) ListApiTokens(ctx context.Context) (
	models.ApiResponse[[]models.UserApitoken],
	error)

ListApiTokens takes context as parameters and returns an models.ApiResponse with []models.UserApitoken data and an error if there was an issue with the request or response. Get List of Current User API Tokens

func (*SelfAPIToken) UpdateApiToken

func (s *SelfAPIToken) UpdateApiToken(
	ctx context.Context,
	apitokenId uuid.UUID,
	body *models.UserApitoken) (
	models.ApiResponse[models.UserApitoken],
	error)

UpdateApiToken takes context, apitokenId, body as parameters and returns an models.ApiResponse with models.UserApitoken data and an error if there was an issue with the request or response. Update User API Token

type SelfAccount

type SelfAccount struct {
	// contains filtered or unexported fields
}

SelfAccount represents a controller struct.

func NewSelfAccount

func NewSelfAccount(baseController baseController) *SelfAccount

NewSelfAccount creates a new instance of SelfAccount. It takes a baseController as a parameter and returns a pointer to the SelfAccount.

func (*SelfAccount) DeleteSelf

func (s *SelfAccount) DeleteSelf(ctx context.Context) (
	*http.Response,
	error)

DeleteSelf takes context as parameters and returns an *Response and an error if there was an issue with the request or response. To delete ones account and every associated with it. The effects: the account would be deleted any orphaned Org (that only has this account as admin) will be deleted along with all data with Org (sites, wlans, devices) will be gone.

func (*SelfAccount) GetSelf

GetSelf takes context as parameters and returns an models.ApiResponse with models.Admin data and an error if there was an issue with the request or response. Get ‘whoami’ and privileges (which org and which sites I have access to)

func (*SelfAccount) GetSelfApiUsage added in v0.4.54

func (s *SelfAccount) GetSelfApiUsage(ctx context.Context) (
	models.ApiResponse[models.ApiUsage],
	error)

GetSelfApiUsage takes context as parameters and returns an models.ApiResponse with models.ApiUsage data and an error if there was an issue with the request or response. Get the status of the API usage for the current user or API Token

func (*SelfAccount) GetSelfLoginFailures added in v0.4.74

func (s *SelfAccount) GetSelfLoginFailures(ctx context.Context) (
	models.ApiResponse[models.LoginFailures],
	error)

GetSelfLoginFailures takes context as parameters and returns an models.ApiResponse with models.LoginFailures data and an error if there was an issue with the request or response. Get a list of failed login attempts across all Orgs for the current admin

func (*SelfAccount) UpdateSelf

func (s *SelfAccount) UpdateSelf(
	ctx context.Context,
	body *models.Admin) (
	models.ApiResponse[models.Admin],
	error)

UpdateSelf takes context, body as parameters and returns an models.ApiResponse with models.Admin data and an error if there was an issue with the request or response. Update Account Information

func (*SelfAccount) UpdateSelfEmail

func (s *SelfAccount) UpdateSelfEmail(
	ctx context.Context,
	body *models.EmailString) (
	*http.Response,
	error)

UpdateSelfEmail takes context, body as parameters and returns an *Response and an error if there was an issue with the request or response. Change Email We require the user to verify that they actually own the email address they intend to change it to. After the API call, the user will receive an email to the new email address with a link like https://manage.mist.com/verify/update?expire=:exp_time&email=:admin_email&token=:token Upon clicking the link, the user is provided with a login page to authenticate using existing credentials. After successful login, the email address of the user gets updated **Note**: The request parameter email can be used by UI to validate that the current session (if any) belongs to the admin or provide a login page (by pre-populating the email on login screen). UI can also use the request parameter expire to validate token expiry.

func (*SelfAccount) VerifySelfEmail

func (s *SelfAccount) VerifySelfEmail(
	ctx context.Context,
	token string) (
	*http.Response,
	error)

VerifySelfEmail takes context, token as parameters and returns an *Response and an error if there was an issue with the request or response. Verify Email change

type SelfAlarms

type SelfAlarms struct {
	// contains filtered or unexported fields
}

SelfAlarms represents a controller struct.

func NewSelfAlarms

func NewSelfAlarms(baseController baseController) *SelfAlarms

NewSelfAlarms creates a new instance of SelfAlarms. It takes a baseController as a parameter and returns a pointer to the SelfAlarms.

func (*SelfAlarms) ListAlarmSubscriptions

func (s *SelfAlarms) ListAlarmSubscriptions(ctx context.Context) (
	models.ApiResponse[[]models.ResponseSelfSubscription],
	error)

ListAlarmSubscriptions takes context as parameters and returns an models.ApiResponse with []models.ResponseSelfSubscription data and an error if there was an issue with the request or response. Get List of all the subscriptions

type SelfAuditLogs

type SelfAuditLogs struct {
	// contains filtered or unexported fields
}

SelfAuditLogs represents a controller struct.

func NewSelfAuditLogs

func NewSelfAuditLogs(baseController baseController) *SelfAuditLogs

NewSelfAuditLogs creates a new instance of SelfAuditLogs. It takes a baseController as a parameter and returns a pointer to the SelfAuditLogs.

func (*SelfAuditLogs) ListSelfAuditLogs

func (s *SelfAuditLogs) ListSelfAuditLogs(
	ctx context.Context,
	message *string,
	sort *models.ListOrgLogsSortEnum,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseSelfAuditLogs],
	error)

ListSelfAuditLogs takes context, message, sort, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseSelfAuditLogs data and an error if there was an issue with the request or response. Get List of change logs across all Orgs for current admin Audit logs records all administrative activities done by current admin across all orgs

type SelfMFA

type SelfMFA struct {
	// contains filtered or unexported fields
}

SelfMFA represents a controller struct.

func NewSelfMFA

func NewSelfMFA(baseController baseController) *SelfMFA

NewSelfMFA creates a new instance of SelfMFA. It takes a baseController as a parameter and returns a pointer to the SelfMFA.

func (*SelfMFA) GenerateSecretFor2faVerification

func (s *SelfMFA) GenerateSecretFor2faVerification(
	ctx context.Context,
	by *models.MfaSecretTypeEnum) (
	models.ApiResponse[models.ResponseTwoFactorJson],
	error)

GenerateSecretFor2faVerification takes context, by as parameters and returns an models.ApiResponse with models.ResponseTwoFactorJson data and an error if there was an issue with the request or response. Generate Secret Key for 2FA verification

func (*SelfMFA) VerifyTwoFactor

func (s *SelfMFA) VerifyTwoFactor(
	ctx context.Context,
	body *models.TwoFactorCode) (
	*http.Response,
	error)

VerifyTwoFactor takes context, body as parameters and returns an *Response and an error if there was an issue with the request or response. Verify Two-factor (OTP) To verify two-factor authentication by using a code generated by app (e.g. Google Authenticator, Authy). Upon successful verification, the `two_factor_passed` will be set to true if it hasn’t already been.

type SelfOAuth2

type SelfOAuth2 struct {
	// contains filtered or unexported fields
}

SelfOAuth2 represents a controller struct.

func NewSelfOAuth2

func NewSelfOAuth2(baseController baseController) *SelfOAuth2

NewSelfOAuth2 creates a new instance of SelfOAuth2. It takes a baseController as a parameter and returns a pointer to the SelfOAuth2.

func (*SelfOAuth2) GetOauth2UrlForLinking

func (s *SelfOAuth2) GetOauth2UrlForLinking(
	ctx context.Context,
	provider string,
	forward *string) (
	models.ApiResponse[models.ResponseSelfOauthUrl],
	error)

GetOauth2UrlForLinking takes context, provider, forward as parameters and returns an models.ApiResponse with models.ResponseSelfOauthUrl data and an error if there was an issue with the request or response. Obtain Authorization URL for Linking

func (*SelfOAuth2) LinkOauth2MistAccount

func (s *SelfOAuth2) LinkOauth2MistAccount(
	ctx context.Context,
	provider string,
	body *models.CodeString) (
	models.ApiResponse[models.ResponseSelfOauthLinkSuccess],
	error)

LinkOauth2MistAccount takes context, provider, body as parameters and returns an models.ApiResponse with models.ResponseSelfOauthLinkSuccess data and an error if there was an issue with the request or response. Link Mist account with an OAuth2 Provider

type Server

type Server string

Server represents available servers.

const (
	APIHOST Server = "API Host"
)

type Sites

type Sites struct {
	// contains filtered or unexported fields
}

Sites represents a controller struct.

func NewSites

func NewSites(baseController baseController) *Sites

NewSites creates a new instance of Sites. It takes a baseController as a parameter and returns a pointer to the Sites.

func (*Sites) DeleteSite

func (s *Sites) DeleteSite(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

DeleteSite takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site

func (*Sites) GetSiteInfo

func (s *Sites) GetSiteInfo(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.Site],
	error)

GetSiteInfo takes context, siteId as parameters and returns an models.ApiResponse with models.Site data and an error if there was an issue with the request or response. Provides information about the site, including its name, address, timezone, and associated templates. This endpoint is useful for retrieving the current configuration and details of a specific site.

func (*Sites) UpdateSiteInfo

func (s *Sites) UpdateSiteInfo(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Site) (
	models.ApiResponse[models.Site],
	error)

UpdateSiteInfo takes context, siteId, body as parameters and returns an models.ApiResponse with models.Site data and an error if there was an issue with the request or response. Updates the configuration and metadata for an existing site. This endpoint allows modification of site properties including location details (address, coordinates, timezone), template associations (alarm, network, RF, security policy templates), site group memberships, and general information (name, notes). All fields are optional and only provided fields will be updated.

type SitesAPTemplates

type SitesAPTemplates struct {
	// contains filtered or unexported fields
}

SitesAPTemplates represents a controller struct.

func NewSitesAPTemplates

func NewSitesAPTemplates(baseController baseController) *SitesAPTemplates

NewSitesAPTemplates creates a new instance of SitesAPTemplates. It takes a baseController as a parameter and returns a pointer to the SitesAPTemplates.

func (*SitesAPTemplates) ListSiteApTemplatesDerived added in v0.4.74

func (s *SitesAPTemplates) ListSiteApTemplatesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.ApTemplate],
	error)

ListSiteApTemplatesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.ApTemplate data and an error if there was an issue with the request or response. Get the list of derived AP Templates for a site

type SitesAdvancedAntiMalwareProfiles added in v0.4.74

type SitesAdvancedAntiMalwareProfiles struct {
	// contains filtered or unexported fields
}

SitesAdvancedAntiMalwareProfiles represents a controller struct.

func NewSitesAdvancedAntiMalwareProfiles added in v0.4.74

func NewSitesAdvancedAntiMalwareProfiles(baseController baseController) *SitesAdvancedAntiMalwareProfiles

NewSitesAdvancedAntiMalwareProfiles creates a new instance of SitesAdvancedAntiMalwareProfiles. It takes a baseController as a parameter and returns a pointer to the SitesAdvancedAntiMalwareProfiles.

func (*SitesAdvancedAntiMalwareProfiles) ListSiteAAMWProfilesDerived added in v0.4.74

func (s *SitesAdvancedAntiMalwareProfiles) ListSiteAAMWProfilesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Avprofile],
	error)

ListSiteAAMWProfilesDerived takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Avprofile data and an error if there was an issue with the request or response. Get the list of derived Advanced Anti Malware Profile (SkyAtp) for a site

type SitesAlarms

type SitesAlarms struct {
	// contains filtered or unexported fields
}

SitesAlarms represents a controller struct.

func NewSitesAlarms

func NewSitesAlarms(baseController baseController) *SitesAlarms

NewSitesAlarms creates a new instance of SitesAlarms. It takes a baseController as a parameter and returns a pointer to the SitesAlarms.

func (*SitesAlarms) AckSiteAlarm

func (s *SitesAlarms) AckSiteAlarm(
	ctx context.Context,
	siteId uuid.UUID,
	alarmId uuid.UUID,
	body *models.NoteString) (
	*http.Response,
	error)

AckSiteAlarm takes context, siteId, alarmId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Ack Site Alarm

func (*SitesAlarms) AckSiteAllAlarms

func (s *SitesAlarms) AckSiteAllAlarms(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.NoteString) (
	*http.Response,
	error)

AckSiteAllAlarms takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Ack all Site Alarms **N.B.**: Batch size for multiple alarm ack and unack has to be less or or equal to 1000.

func (*SitesAlarms) AckSiteMultipleAlarms

func (s *SitesAlarms) AckSiteMultipleAlarms(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.AlarmAck) (
	*http.Response,
	error)

AckSiteMultipleAlarms takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Ack multiple Site Alarms

func (*SitesAlarms) CountSiteAlarms

func (s *SitesAlarms) CountSiteAlarms(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.AlarmCountDistinctEnum,
	ackAdminName *string,
	acked *bool,
	mType *string,
	severity *string,
	group *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteAlarms takes context, siteId, distinct, ackAdminName, acked, mType, severity, group, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count alarms for a site, optionally grouped by the `distinct` field and filtered by time range. Use [Count Org Alarms]($e/Orgs%20Alarms/countOrgAlarms) to count alarms across the organization.

func (*SitesAlarms) SearchSiteAlarms

func (s *SitesAlarms) SearchSiteAlarms(
	ctx context.Context,
	siteId uuid.UUID,
	group *models.AlarmGroupEnum,
	severity *models.AlarmSeverityEnum,
	mType *string,
	ackAdminName *string,
	acked *bool,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.AlarmSearchResult],
	error)

SearchSiteAlarms takes context, siteId, group, severity, mType, ackAdminName, acked, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.AlarmSearchResult data and an error if there was an issue with the request or response. Search alarms for a site with filters for alarm group, severity, type, acknowledgement state, acknowledgement admin, and time range. Use [Search Org Alarms]($e/Orgs%20Alarms/searchOrgAlarms) to search alarms across the organization.

func (*SitesAlarms) SubscribeSiteAlarms

func (s *SitesAlarms) SubscribeSiteAlarms(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

SubscribeSiteAlarms takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. Subscribe to Site Alarms

func (*SitesAlarms) UnackSiteAlarm

func (s *SitesAlarms) UnackSiteAlarm(
	ctx context.Context,
	siteId uuid.UUID,
	alarmId uuid.UUID,
	body *models.NoteString) (
	*http.Response,
	error)

UnackSiteAlarm takes context, siteId, alarmId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Unack Site Alarm

func (*SitesAlarms) UnackSiteAllAlarms added in v0.4.54

func (s *SitesAlarms) UnackSiteAllAlarms(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.NoteString) (
	*http.Response,
	error)

UnackSiteAllAlarms takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Unack all Site Alarms **N.B.**: Batch size for multiple alarm ack and unack has to be less or or equal to 1000.

func (*SitesAlarms) UnackSiteMultipleAlarms

func (s *SitesAlarms) UnackSiteMultipleAlarms(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.AlarmAck) (
	*http.Response,
	error)

UnackSiteMultipleAlarms takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Unack multiple Site Alarms

func (*SitesAlarms) UnsubscribeSiteAlarms

func (s *SitesAlarms) UnsubscribeSiteAlarms(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

UnsubscribeSiteAlarms takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. Unsubscribe to Site Alarms

type SitesAnomaly

type SitesAnomaly struct {
	// contains filtered or unexported fields
}

SitesAnomaly represents a controller struct.

func NewSitesAnomaly

func NewSitesAnomaly(baseController baseController) *SitesAnomaly

NewSitesAnomaly creates a new instance of SitesAnomaly. It takes a baseController as a parameter and returns a pointer to the SitesAnomaly.

func (*SitesAnomaly) GetSiteAnomalyEventsForClient

func (s *SitesAnomaly) GetSiteAnomalyEventsForClient(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string,
	metric string) (
	models.ApiResponse[models.ResponseAnomalySearch],
	error)

GetSiteAnomalyEventsForClient takes context, siteId, clientMac, metric as parameters and returns an models.ApiResponse with models.ResponseAnomalySearch data and an error if there was an issue with the request or response. Get Client Anomaly Events

func (*SitesAnomaly) GetSiteAnomalyEventsForDevice added in v0.4.54

func (s *SitesAnomaly) GetSiteAnomalyEventsForDevice(
	ctx context.Context,
	siteId uuid.UUID,
	metric string,
	deviceMac string) (
	models.ApiResponse[models.ResponseAnomalySearch],
	error)

GetSiteAnomalyEventsForDevice takes context, siteId, metric, deviceMac as parameters and returns an models.ApiResponse with models.ResponseAnomalySearch data and an error if there was an issue with the request or response. Get Device Anomaly Events

func (*SitesAnomaly) ListSiteAnomalyEvents added in v0.4.69

func (s *SitesAnomaly) ListSiteAnomalyEvents(
	ctx context.Context,
	siteId uuid.UUID,
	metric string) (
	models.ApiResponse[models.ResponseAnomalySearch],
	error)

ListSiteAnomalyEvents takes context, siteId, metric as parameters and returns an models.ApiResponse with models.ResponseAnomalySearch data and an error if there was an issue with the request or response. List Site Anomaly Events

type SitesAntivirusProfiles added in v0.4.74

type SitesAntivirusProfiles struct {
	// contains filtered or unexported fields
}

SitesAntivirusProfiles represents a controller struct.

func NewSitesAntivirusProfiles added in v0.4.74

func NewSitesAntivirusProfiles(baseController baseController) *SitesAntivirusProfiles

NewSitesAntivirusProfiles creates a new instance of SitesAntivirusProfiles. It takes a baseController as a parameter and returns a pointer to the SitesAntivirusProfiles.

func (*SitesAntivirusProfiles) ListSiteAntivirusProfilesDerived added in v0.4.74

func (s *SitesAntivirusProfiles) ListSiteAntivirusProfilesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Avprofile],
	error)

ListSiteAntivirusProfilesDerived takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Avprofile data and an error if there was an issue with the request or response. Get the list of derived Antivirus Profiles for a site

type SitesApplications

type SitesApplications struct {
	// contains filtered or unexported fields
}

SitesApplications represents a controller struct.

func NewSitesApplications

func NewSitesApplications(baseController baseController) *SitesApplications

NewSitesApplications creates a new instance of SitesApplications. It takes a baseController as a parameter and returns a pointer to the SitesApplications.

func (*SitesApplications) ListSiteApps

func (s *SitesApplications) ListSiteApps(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]models.SiteApp],
	error)

ListSiteApps takes context, siteId as parameters and returns an models.ApiResponse with []models.SiteApp data and an error if there was an issue with the request or response. Get List of Site Applications

type SitesAssetFilters

type SitesAssetFilters struct {
	// contains filtered or unexported fields
}

SitesAssetFilters represents a controller struct.

func NewSitesAssetFilters

func NewSitesAssetFilters(baseController baseController) *SitesAssetFilters

NewSitesAssetFilters creates a new instance of SitesAssetFilters. It takes a baseController as a parameter and returns a pointer to the SitesAssetFilters.

func (*SitesAssetFilters) CreateSiteAssetFilter added in v0.4.69

func (s *SitesAssetFilters) CreateSiteAssetFilter(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.AssetFilter) (
	models.ApiResponse[models.AssetFilter],
	error)

CreateSiteAssetFilter takes context, siteId, body as parameters and returns an models.ApiResponse with models.AssetFilter data and an error if there was an issue with the request or response. Create Site Asset Filter

func (*SitesAssetFilters) DeleteSiteAssetFilter

func (s *SitesAssetFilters) DeleteSiteAssetFilter(
	ctx context.Context,
	siteId uuid.UUID,
	assetfilterId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteAssetFilter takes context, siteId, assetfilterId as parameters and returns an *Response and an error if there was an issue with the request or response. Deletes an existing BLE asset filter for the given site.

func (*SitesAssetFilters) GetSiteAssetFilter

func (s *SitesAssetFilters) GetSiteAssetFilter(
	ctx context.Context,
	siteId uuid.UUID,
	assetfilterId uuid.UUID) (
	models.ApiResponse[models.AssetFilter],
	error)

GetSiteAssetFilter takes context, siteId, assetfilterId as parameters and returns an models.ApiResponse with models.AssetFilter data and an error if there was an issue with the request or response. Get Site Asset Filter Details

func (*SitesAssetFilters) ListSiteAssetFilters

func (s *SitesAssetFilters) ListSiteAssetFilters(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.AssetFilter],
	error)

ListSiteAssetFilters takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.AssetFilter data and an error if there was an issue with the request or response. Get List of Site Asset Filters

func (*SitesAssetFilters) UpdateSiteAssetFilter

func (s *SitesAssetFilters) UpdateSiteAssetFilter(
	ctx context.Context,
	siteId uuid.UUID,
	assetfilterId uuid.UUID,
	body *models.AssetFilter) (
	models.ApiResponse[models.AssetFilter],
	error)

UpdateSiteAssetFilter takes context, siteId, assetfilterId, body as parameters and returns an models.ApiResponse with models.AssetFilter data and an error if there was an issue with the request or response. Updates an existing BLE asset filter for the given site.

type SitesAssets

type SitesAssets struct {
	// contains filtered or unexported fields
}

SitesAssets represents a controller struct.

func NewSitesAssets

func NewSitesAssets(baseController baseController) *SitesAssets

NewSitesAssets creates a new instance of SitesAssets. It takes a baseController as a parameter and returns a pointer to the SitesAssets.

func (*SitesAssets) AttachSiteAssetImage added in v0.4.100

func (s *SitesAssets) AttachSiteAssetImage(
	ctx context.Context,
	siteId uuid.UUID,
	assetId uuid.UUID,
	file models.FileWrapper,
	json *string) (
	*http.Response,
	error)

AttachSiteAssetImage takes context, siteId, assetId, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Attach Image to Site Asset

func (*SitesAssets) CreateSiteAsset

func (s *SitesAssets) CreateSiteAsset(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Asset) (
	models.ApiResponse[models.Asset],
	error)

CreateSiteAsset takes context, siteId, body as parameters and returns an models.ApiResponse with models.Asset data and an error if there was an issue with the request or response. Create Site Asset

func (*SitesAssets) DeleteSiteAsset

func (s *SitesAssets) DeleteSiteAsset(
	ctx context.Context,
	siteId uuid.UUID,
	assetId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteAsset takes context, siteId, assetId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Asset

func (*SitesAssets) DeleteSiteAssetImage added in v0.4.100

func (s *SitesAssets) DeleteSiteAssetImage(
	ctx context.Context,
	siteId uuid.UUID,
	assetId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteAssetImage takes context, siteId, assetId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Asset Image

func (*SitesAssets) GetSiteAsset

func (s *SitesAssets) GetSiteAsset(
	ctx context.Context,
	siteId uuid.UUID,
	assetId uuid.UUID) (
	models.ApiResponse[models.Asset],
	error)

GetSiteAsset takes context, siteId, assetId as parameters and returns an models.ApiResponse with models.Asset data and an error if there was an issue with the request or response. Get Site Asset Details

func (*SitesAssets) ImportSiteAssets

func (s *SitesAssets) ImportSiteAssets(
	ctx context.Context,
	siteId uuid.UUID,
	upsert *models.ImportSiteAssetsUpsertEnum,
	file *models.FileWrapper) (
	*http.Response,
	error)

ImportSiteAssets takes context, siteId, upsert, file as parameters and returns an *Response and an error if there was an issue with the request or response. Import Site Assets. It can be done via a CSV file or a JSON payload. ## CSV File Format ```csv name,mac "asset_name",5c5b53010101 ```

func (*SitesAssets) ListSiteAssets

func (s *SitesAssets) ListSiteAssets(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Asset],
	error)

ListSiteAssets takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Asset data and an error if there was an issue with the request or response. List assets for a site. Use [List Org Assets]($e/Orgs%20Assets/listOrgAssets) to retrieve assets across the organization.

func (*SitesAssets) UpdateSiteAsset

func (s *SitesAssets) UpdateSiteAsset(
	ctx context.Context,
	siteId uuid.UUID,
	assetId uuid.UUID,
	body *models.Asset) (
	models.ApiResponse[models.Asset],
	error)

UpdateSiteAsset takes context, siteId, assetId, body as parameters and returns an models.ApiResponse with models.Asset data and an error if there was an issue with the request or response. Update Site Asset

type SitesAutoMapAssignment added in v0.4.103

type SitesAutoMapAssignment struct {
	// contains filtered or unexported fields
}

SitesAutoMapAssignment represents a controller struct.

func NewSitesAutoMapAssignment added in v0.4.103

func NewSitesAutoMapAssignment(baseController baseController) *SitesAutoMapAssignment

NewSitesAutoMapAssignment creates a new instance of SitesAutoMapAssignment. It takes a baseController as a parameter and returns a pointer to the SitesAutoMapAssignment.

func (*SitesAutoMapAssignment) ApplySiteAutoMapAssignment added in v0.4.103

ApplySiteAutoMapAssignment takes context, siteId, body as parameters and returns an models.ApiResponse with models.ResponseAutoMapAssignmentApply data and an error if there was an issue with the request or response. Apply (accept) auto map assignment results for a site. Devices are associated with their assigned maps. Omit `map_ids` or provide an empty list to accept all pending assignments; provide specific `map_ids` for a partial accept.

func (*SitesAutoMapAssignment) CancelSiteAutoMapAssignment added in v0.4.103

func (s *SitesAutoMapAssignment) CancelSiteAutoMapAssignment(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

CancelSiteAutoMapAssignment takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. Cancel an in-progress auto map assignment operation for the site. Validates that auto map assignment is currently running, notifies all APs to fetch new configuration, and sends a cancel command to the orchestration service.

func (*SitesAutoMapAssignment) ClearSiteAutoMapAssignment added in v0.4.103

ClearSiteAutoMapAssignment takes context, siteId, body as parameters and returns an models.ApiResponse with models.ResponseAutoMapAssignmentClear data and an error if there was an issue with the request or response. Clear (reject) auto map assignment results for a site without applying them. The cached assignment results are cleared. Omit `map_ids` or provide an empty list to reject all pending assignments; provide specific `map_ids` for a partial reject.

func (*SitesAutoMapAssignment) GetSiteAutoMapAssignmentStatus added in v0.4.103

func (s *SitesAutoMapAssignment) GetSiteAutoMapAssignmentStatus(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.ResponseAutoMapAssignmentInfo],
	error)

GetSiteAutoMapAssignmentStatus takes context, siteId as parameters and returns an models.ApiResponse with models.ResponseAutoMapAssignmentInfo data and an error if there was an issue with the request or response. Get the current status of auto map assignment for the site.

func (*SitesAutoMapAssignment) StartSiteAutoMapAssignment added in v0.4.103

StartSiteAutoMapAssignment takes context, siteId, body as parameters and returns an models.ApiResponse with models.ResponseAutoMapAssignment data and an error if there was an issue with the request or response. Start the auto map assignment process for a site. The service automatically assigns APs to maps based on BLE ranging data and requires at least 3 APs with compatible firmware and model support for BLE. Repeated POST requests while a site assignment is still running will be rejected.

type SitesBeacons

type SitesBeacons struct {
	// contains filtered or unexported fields
}

SitesBeacons represents a controller struct.

func NewSitesBeacons

func NewSitesBeacons(baseController baseController) *SitesBeacons

NewSitesBeacons creates a new instance of SitesBeacons. It takes a baseController as a parameter and returns a pointer to the SitesBeacons.

func (*SitesBeacons) CreateSiteBeacon

func (s *SitesBeacons) CreateSiteBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Beacon) (
	models.ApiResponse[models.Beacon],
	error)

CreateSiteBeacon takes context, siteId, body as parameters and returns an models.ApiResponse with models.Beacon data and an error if there was an issue with the request or response. Create Site Beacon

func (*SitesBeacons) DeleteSiteBeacon added in v0.4.69

func (s *SitesBeacons) DeleteSiteBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	beaconId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteBeacon takes context, siteId, beaconId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Beacon

func (*SitesBeacons) GetSiteBeacon

func (s *SitesBeacons) GetSiteBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	beaconId uuid.UUID) (
	models.ApiResponse[models.Beacon],
	error)

GetSiteBeacon takes context, siteId, beaconId as parameters and returns an models.ApiResponse with models.Beacon data and an error if there was an issue with the request or response. Get Site Beacon Details

func (*SitesBeacons) ListSiteBeacons

func (s *SitesBeacons) ListSiteBeacons(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Beacon],
	error)

ListSiteBeacons takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Beacon data and an error if there was an issue with the request or response. Get List of Site Beacons

func (*SitesBeacons) UpdateSiteBeacon added in v0.4.69

func (s *SitesBeacons) UpdateSiteBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	beaconId uuid.UUID,
	body *models.Beacon) (
	models.ApiResponse[models.Beacon],
	error)

UpdateSiteBeacon takes context, siteId, beaconId, body as parameters and returns an models.ApiResponse with models.Beacon data and an error if there was an issue with the request or response. Update Site Beacon

type SitesClientsNAC

type SitesClientsNAC struct {
	// contains filtered or unexported fields
}

SitesClientsNAC represents a controller struct.

func NewSitesClientsNAC

func NewSitesClientsNAC(baseController baseController) *SitesClientsNAC

NewSitesClientsNAC creates a new instance of SitesClientsNAC. It takes a baseController as a parameter and returns a pointer to the SitesClientsNAC.

func (*SitesClientsNAC) CountSiteNacClientEvents

func (s *SitesClientsNAC) CountSiteNacClientEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteNacClientEventsCountDistinctEnum,
	mType *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteNacClientEvents takes context, siteId, distinct, mType, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count NAC client events for a site, optionally grouped by the `distinct` field and filtered by event type and time range. Use [Count Org NAC Client Events]($e/Orgs%20Clients%20-%20NAC/countOrgNacClientEvents) to count NAC client events across the organization.

func (*SitesClientsNAC) CountSiteNacClients

func (s *SitesClientsNAC) CountSiteNacClients(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteNacClientsCountDistinctEnum,
	lastNacruleId *string,
	nacruleMatched *bool,
	authType *string,
	lastVlanId *string,
	lastNasVendor *string,
	idpId *string,
	lastSsid *string,
	lastUsername *string,
	lastAp *string,
	mac *string,
	lastStatus *string,
	mType *string,
	mdmComplianceStatus *string,
	mdmProvider *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteNacClients takes context, siteId, distinct, lastNacruleId, nacruleMatched, authType, lastVlanId, lastNasVendor, idpId, lastSsid, lastUsername, lastAp, mac, lastStatus, mType, mdmComplianceStatus, mdmProvider, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count NAC clients for a site, optionally grouped by the `distinct` field and filtered by authentication, identity, endpoint, network, and time attributes. Use [Count Org NAC Clients]($e/Orgs%20Clients%20-%20NAC/countOrgNacClients) to count NAC clients across the organization.

func (*SitesClientsNAC) SearchSiteNacClientEvents added in v0.2.18

func (s *SitesClientsNAC) SearchSiteNacClientEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mType *string,
	nacruleId *uuid.UUID,
	nacruleMatched *bool,
	dryrunNacruleId *string,
	dryrunNacruleMatched *bool,
	authType *string,
	vlan *int,
	nasVendor *string,
	bssid *string,
	idpId *uuid.UUID,
	idpRole *string,
	idpUsername *string,
	respAttrs []string,
	ssid *string,
	username *string,
	ap *string,
	randomMac *bool,
	mac *string,
	usermacLabel *string,
	text *string,
	nasIp *string,
	ingressVlan *string,
	start *string,
	end *string,
	duration *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsNacClientSearch],
	error)

SearchSiteNacClientEvents takes context, siteId, mType, nacruleId, nacruleMatched, dryrunNacruleId, dryrunNacruleMatched, authType, vlan, nasVendor, bssid, idpId, idpRole, idpUsername, respAttrs, ssid, username, ap, randomMac, mac, usermacLabel, text, nasIp, ingressVlan, start, end, duration, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsNacClientSearch data and an error if there was an issue with the request or response. Search NAC client events for a site with filters for authentication, NAC rule, identity provider, RADIUS, network, endpoint, and time attributes. Use [Search Org NAC Client Events]($e/Orgs%20Clients%20-%20NAC/searchOrgNacClientEvents) to search NAC client events across the organization.

func (*SitesClientsNAC) SearchSiteNacClients

func (s *SitesClientsNAC) SearchSiteNacClients(
	ctx context.Context,
	siteId uuid.UUID,
	ap *string,
	authType *string,
	certExpiryDuration *string,
	edrManaged *bool,
	edrProvider *models.EdrProviderEnum,
	edrStatus *models.EdrStatusEnum,
	family *string,
	hostname *string,
	idpId *string,
	mac *string,
	mdmCompliance *string,
	mdmProvider *string,
	mdmManaged *bool,
	mfg *string,
	model *string,
	nacruleName *string,
	nacruleId *string,
	nacruleMatched *bool,
	nasVendor *string,
	nasIp *string,
	ingressVlan *string,
	os *string,
	ssid *string,
	status *models.NacClientLastStatusEnum,
	text *string,
	mType *string,
	usermacLabel []string,
	username *string,
	vlan *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseClientNacSearch],
	error)

SearchSiteNacClients takes context, siteId, ap, authType, certExpiryDuration, edrManaged, edrProvider, edrStatus, family, hostname, idpId, mac, mdmCompliance, mdmProvider, mdmManaged, mfg, model, nacruleName, nacruleId, nacruleMatched, nasVendor, nasIp, ingressVlan, os, ssid, status, text, mType, usermacLabel, username, vlan, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseClientNacSearch data and an error if there was an issue with the request or response. Search NAC clients for a site with filters for authentication, endpoint posture, identity, network, NAC rule, and time attributes. Use [Search Org NAC Clients]($e/Orgs%20Clients%20-%20NAC/searchOrgNacClients) to search NAC clients across the organization.

func (*SitesClientsNAC) SendSiteNacClientCoA added in v0.4.103

func (s *SitesClientsNAC) SendSiteNacClientCoA(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string,
	body *models.NacClientCoa) (
	models.ApiResponse[models.NacClientCoaResponse],
	error)

SendSiteNacClientCoA takes context, siteId, clientMac, body as parameters and returns an models.ApiResponse with models.NacClientCoaResponse data and an error if there was an issue with the request or response. Sends CoA (Change of Authorization) command to a NAC client.

type SitesClientsWan

type SitesClientsWan struct {
	// contains filtered or unexported fields
}

SitesClientsWan represents a controller struct.

func NewSitesClientsWan

func NewSitesClientsWan(baseController baseController) *SitesClientsWan

NewSitesClientsWan creates a new instance of SitesClientsWan. It takes a baseController as a parameter and returns a pointer to the SitesClientsWan.

func (*SitesClientsWan) CountSiteWanClientEvents

func (s *SitesClientsWan) CountSiteWanClientEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteWanClientEventsDistinctEnum,
	mType *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteWanClientEvents takes context, siteId, distinct, mType, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count WAN client events for a site, optionally grouped by the `distinct` field and filtered by event type and time range. Use [Count Org WAN Client Events]($e/Orgs%20Clients%20-%20Wan/countOrgWanClientEvents) to count WAN client events across the organization.

func (*SitesClientsWan) CountSiteWanClients

func (s *SitesClientsWan) CountSiteWanClients(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteWanClientsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteWanClients takes context, siteId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count WAN clients for a site, optionally grouped by the `distinct` field and filtered by time range. Use [Count Org WAN Clients]($e/Orgs%20Clients%20-%20Wan/countOrgWanClients) to count WAN clients across the organization.

func (*SitesClientsWan) SearchSiteWanClientEvents

func (s *SitesClientsWan) SearchSiteWanClientEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mType *string,
	mac *string,
	hostname *string,
	ip *string,
	mfg *string,
	nacruleId *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchEventsWanClient],
	error)

SearchSiteWanClientEvents takes context, siteId, mType, mac, hostname, ip, mfg, nacruleId, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchEventsWanClient data and an error if there was an issue with the request or response. Search WAN client events for a site with filters for client identity, manufacturer, NAC rule, event type, and time range. Use [Search Org WAN Client Events]($e/Orgs%20Clients%20-%20Wan/searchOrgWanClientEvents) to search WAN client events across the organization.

func (*SitesClientsWan) SearchSiteWanClients

func (s *SitesClientsWan) SearchSiteWanClients(
	ctx context.Context,
	siteId uuid.UUID,
	hostname *string,
	ip *string,
	ipSrc *string,
	mac *string,
	mfg *string,
	network *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchWanClient],
	error)

SearchSiteWanClients takes context, siteId, hostname, ip, ipSrc, mac, mfg, network, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchWanClient data and an error if there was an issue with the request or response. Search WAN clients for a site with filters for hostname, IP address, source IP, MAC address, manufacturer, network, and time range. Use [Search Org WAN Clients]($e/Orgs%20Clients%20-%20Wan/searchOrgWanClients) to search WAN clients across the organization.

type SitesClientsWired

type SitesClientsWired struct {
	// contains filtered or unexported fields
}

SitesClientsWired represents a controller struct.

func NewSitesClientsWired

func NewSitesClientsWired(baseController baseController) *SitesClientsWired

NewSitesClientsWired creates a new instance of SitesClientsWired. It takes a baseController as a parameter and returns a pointer to the SitesClientsWired.

func (*SitesClientsWired) CountSiteWiredClients

func (s *SitesClientsWired) CountSiteWiredClients(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteWiredClientsCountDistinctEnum,
	mac *string,
	deviceMac *string,
	portId *string,
	vlan *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteWiredClients takes context, siteId, distinct, mac, deviceMac, portId, vlan, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count wired clients for a site, optionally grouped by the `distinct` field and filtered by MAC address, switch port, VLAN, and time range. Use [Count Org Wired Clients]($e/Orgs%20Clients%20-%20Wired/countOrgWiredClients) to count wired clients across the organization.

func (*SitesClientsWired) SearchSiteWiredClients

func (s *SitesClientsWired) SearchSiteWiredClients(
	ctx context.Context,
	siteId uuid.UUID,
	deviceMac *string,
	mac *string,
	ip *string,
	portId *string,
	source *models.ClientInfoSourceEnum,
	vlan *string,
	manufacture *string,
	text *string,
	nacruleId *string,
	dhcpHostname *string,
	dhcpFqdn *string,
	dhcpClientIdentifier *string,
	dhcpVendorClassIdentifier *string,
	dhcpRequestParams *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchWiredClient],
	error)

SearchSiteWiredClients takes context, siteId, deviceMac, mac, ip, portId, source, vlan, manufacture, text, nacruleId, dhcpHostname, dhcpFqdn, dhcpClientIdentifier, dhcpVendorClassIdentifier, dhcpRequestParams, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchWiredClient data and an error if there was an issue with the request or response. Search wired clients for a site with filters for device MAC address, client MAC address, IP address, switch port, VLAN, manufacturer, DHCP attributes, NAC rule, and time range. Use [Search Org Wired Clients]($e/Orgs%20Clients%20-%20Wired/searchOrgWiredClients) to search wired clients across the organization.

type SitesClientsWireless

type SitesClientsWireless struct {
	// contains filtered or unexported fields
}

SitesClientsWireless represents a controller struct.

func NewSitesClientsWireless

func NewSitesClientsWireless(baseController baseController) *SitesClientsWireless

NewSitesClientsWireless creates a new instance of SitesClientsWireless. It takes a baseController as a parameter and returns a pointer to the SitesClientsWireless.

func (*SitesClientsWireless) CountSiteWirelessClientEvents

func (s *SitesClientsWireless) CountSiteWirelessClientEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteClientEventsCountDistinctEnum,
	mType *string,
	reasonCode *int,
	ssid *string,
	ap *string,
	proto *models.Dot11ProtoEnum,
	band *models.Dot11BandEnum,
	wlanId *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteWirelessClientEvents takes context, siteId, distinct, mType, reasonCode, ssid, ap, proto, band, wlanId, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count wireless client events for a site, optionally grouped by the `distinct` field and filtered by event attributes and time range. Use [Count Org Wireless Client Events]($e/Orgs%20Clients%20-%20Wireless/countOrgWirelessClientEvents) to count wireless client events across the organization.

func (*SitesClientsWireless) CountSiteWirelessClientSessions

func (s *SitesClientsWireless) CountSiteWirelessClientSessions(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteClientSessionsCountDistinctEnum,
	ap *string,
	band *models.Dot11BandEnum,
	clientFamily *string,
	clientManufacture *string,
	clientModel *string,
	clientOs *string,
	ssid *string,
	wlanId *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteWirelessClientSessions takes context, siteId, distinct, ap, band, clientFamily, clientManufacture, clientModel, clientOs, ssid, wlanId, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count wireless client sessions for a site, optionally grouped by the `distinct` field and filtered by AP, SSID, WLAN, client attributes, and time range. Use [Count Org Wireless Client Sessions]($e/Orgs%20Clients%20-%20Wireless/countOrgWirelessClientsSessions) to count wireless client sessions across the organization.

func (*SitesClientsWireless) CountSiteWirelessClients

func (s *SitesClientsWireless) CountSiteWirelessClients(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteClientsCountDistinctEnum,
	ssid *string,
	ap *string,
	ip *string,
	vlan *string,
	hostname *string,
	os *string,
	model *string,
	device *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteWirelessClients takes context, siteId, distinct, ssid, ap, ip, vlan, hostname, os, model, device, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count wireless clients for a site, optionally grouped by the `distinct` field and filtered by client attributes and time range. Use [Count Org Wireless Clients]($e/Orgs%20Clients%20-%20Wireless/countOrgWirelessClients) to count wireless clients across the organization.

func (*SitesClientsWireless) GetSiteEventsForClient

func (s *SitesClientsWireless) GetSiteEventsForClient(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string,
	mType *string,
	proto *models.Dot11ProtoEnum,
	band *models.Dot11BandEnum,
	channel *string,
	wlanId *string,
	ssid *string,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseClientEventsSearch],
	error)

GetSiteEventsForClient takes context, siteId, clientMac, mType, proto, band, channel, wlanId, ssid, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseClientEventsSearch data and an error if there was an issue with the request or response. Get the list of events for a specific client

func (*SitesClientsWireless) SearchSiteWirelessClientEvents

func (s *SitesClientsWireless) SearchSiteWirelessClientEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mType *string,
	reasonCode *int,
	ssid *string,
	ap *string,
	proto *models.Dot11ProtoEnum,
	band *models.Dot11BandEnum,
	wlanId *string,
	nacruleId *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsSearch],
	error)

SearchSiteWirelessClientEvents takes context, siteId, mType, reasonCode, ssid, ap, proto, band, wlanId, nacruleId, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsSearch data and an error if there was an issue with the request or response. Search wireless client events for a site with filters for event type, AP, SSID, WLAN, radio band, and time range. Use [Search Org Wireless Client Events]($e/Orgs%20Clients%20-%20Wireless/searchOrgWirelessClientEvents) to search wireless client events across the organization.

func (*SitesClientsWireless) SearchSiteWirelessClientSessions

func (s *SitesClientsWireless) SearchSiteWirelessClientSessions(
	ctx context.Context,
	siteId uuid.UUID,
	ap *string,
	band *models.Dot11BandEnum,
	clientFamily *string,
	clientManufacture *string,
	clientModel *string,
	clientUsername *string,
	clientOs *string,
	ssid *string,
	wlanId *string,
	pskId *string,
	pskName *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseClientSessionsSearch],
	error)

SearchSiteWirelessClientSessions takes context, siteId, ap, band, clientFamily, clientManufacture, clientModel, clientUsername, clientOs, ssid, wlanId, pskId, pskName, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseClientSessionsSearch data and an error if there was an issue with the request or response. Search wireless client sessions for a site with filters for AP, SSID, WLAN, client attributes, PSK, and time range. Use [Search Org Wireless Client Sessions]($e/Orgs%20Clients%20-%20Wireless/searchOrgWirelessClientSessions) to search wireless client sessions across the organization.

func (*SitesClientsWireless) SearchSiteWirelessClients

func (s *SitesClientsWireless) SearchSiteWirelessClients(
	ctx context.Context,
	siteId uuid.UUID,
	ap *string,
	band *string,
	device *string,
	hostname *string,
	ip *string,
	mac *string,
	model *string,
	os *string,
	pskId *string,
	pskName *string,
	ssid *string,
	text *string,
	username *string,
	vlan *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseClientSearch],
	error)

SearchSiteWirelessClients takes context, siteId, ap, band, device, hostname, ip, mac, model, os, pskId, pskName, ssid, text, username, vlan, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseClientSearch data and an error if there was an issue with the request or response. Search wireless clients connected to a site with filters for client identity, AP, SSID, VLAN, radio band, and time range. Fuzzy matching with `*` is supported on `mac`, `hostname`, `device`, `os`, and `model`, for example `/clients/search?device=Mac*&hostname=jerry`. Use [Search Org Wireless Clients]($e/Orgs%20Clients%20-%20Wireless/searchOrgWirelessClients) to search wireless clients across the organization.

type SitesDeviceProfiles

type SitesDeviceProfiles struct {
	// contains filtered or unexported fields
}

SitesDeviceProfiles represents a controller struct.

func NewSitesDeviceProfiles

func NewSitesDeviceProfiles(baseController baseController) *SitesDeviceProfiles

NewSitesDeviceProfiles creates a new instance of SitesDeviceProfiles. It takes a baseController as a parameter and returns a pointer to the SitesDeviceProfiles.

func (*SitesDeviceProfiles) ListSiteDeviceProfilesDerived

func (s *SitesDeviceProfiles) ListSiteDeviceProfilesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.Deviceprofile],
	error)

ListSiteDeviceProfilesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.Deviceprofile data and an error if there was an issue with the request or response. Get the list of derived Device Profiles for a Site

type SitesDevices

type SitesDevices struct {
	// contains filtered or unexported fields
}

SitesDevices represents a controller struct.

func NewSitesDevices

func NewSitesDevices(baseController baseController) *SitesDevices

NewSitesDevices creates a new instance of SitesDevices. It takes a baseController as a parameter and returns a pointer to the SitesDevices.

func (*SitesDevices) AddSiteDeviceImage

func (s *SitesDevices) AddSiteDeviceImage(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	imageNumber int,
	file models.FileWrapper,
	json *string) (
	*http.Response,
	error)

AddSiteDeviceImage takes context, siteId, deviceId, imageNumber, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Attach up to 3 images to a device

func (*SitesDevices) CountSiteDeviceConfigHistory

func (s *SitesDevices) CountSiteDeviceConfigHistory(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *string,
	mac *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteDeviceConfigHistory takes context, siteId, distinct, mac, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Counts the number of entries in device config history for distinct field with given filters

func (*SitesDevices) CountSiteDeviceEvents

func (s *SitesDevices) CountSiteDeviceEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteDeviceEventsCountDistinctEnum,
	model *string,
	mType *string,
	typeCode *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteDeviceEvents takes context, siteId, distinct, model, mType, typeCode, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count device events for a site, optionally grouped by the `distinct` field and filtered by event attributes and time range. Use [Count Org Device Events]($e/Orgs%20Devices/countOrgDeviceEvents) to count device events across the organization.

func (*SitesDevices) CountSiteDeviceLastConfig

func (s *SitesDevices) CountSiteDeviceLastConfig(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteDeviceLastConfigCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteDeviceLastConfig takes context, siteId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Counts the number of entries in device config history for distinct field with given filters

func (*SitesDevices) CountSiteDevices

func (s *SitesDevices) CountSiteDevices(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteDevicesCountDistinctEnum,
	hostname *string,
	model *string,
	mac *string,
	version *string,
	mxtunnelStatus *string,
	mxedgeId *string,
	lldpSystemName *string,
	lldpSystemDesc *string,
	lldpPortId *string,
	lldpMgmtAddr *string,
	mapId *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteDevices takes context, siteId, distinct, hostname, model, mac, version, mxtunnelStatus, mxedgeId, lldpSystemName, lldpSystemDesc, lldpPortId, lldpMgmtAddr, mapId, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count devices for a site, optionally grouped by the `distinct` field and filtered by device inventory attributes and time range. Use [Count Org Devices]($e/Orgs%20Devices/countOrgDevices) to count devices across the organization.

func (*SitesDevices) DeleteSiteDeviceImage

func (s *SitesDevices) DeleteSiteDeviceImage(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	imageNumber int) (
	*http.Response,
	error)

DeleteSiteDeviceImage takes context, siteId, deviceId, imageNumber as parameters and returns an *Response and an error if there was an issue with the request or response. Delete image from a device

func (*SitesDevices) ExportSiteDevices

func (s *SitesDevices) ExportSiteDevices(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]byte],
	error)

ExportSiteDevices takes context, siteId as parameters and returns an models.ApiResponse with []byte data and an error if there was an issue with the request or response. To download the exported device information

func (*SitesDevices) GetSiteDevice

func (s *SitesDevices) GetSiteDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.MistDevice],
	error)

GetSiteDevice takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.MistDevice data and an error if there was an issue with the request or response. Get Device Configuration

func (*SitesDevices) ImportSiteDevices

func (s *SitesDevices) ImportSiteDevices(
	ctx context.Context,
	siteId uuid.UUID,
	file models.FileWrapper) (
	models.ApiResponse[[]models.ConfigDevice],
	error)

ImportSiteDevices takes context, siteId, file as parameters and returns an models.ApiResponse with []models.ConfigDevice data and an error if there was an issue with the request or response. Import Information for Multiple Devices CSV format: ```csv mac,name,map_id,x,y,height,orientation,labels,band_24.power,band_24.bandwidth,band_24.channel,band_24.disabled,band_5.power,band_5.bandwidth,band_5.channel,band_5.disabled,band_6.power,band_6.bandwidth,band_6.channel,band_6.disabled 5c5b53010101,"AP 1",845a23bf-bed9-e43c-4c86-6fa474be7ae5,30,10,2.3,45,"guest, campus, vip",1,20,0,false,0,40,0,false,17,80,0,false ```

func (*SitesDevices) ListSiteDevices

func (s *SitesDevices) ListSiteDevices(
	ctx context.Context,
	siteId uuid.UUID,
	mType *string,
	name *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.ConfigDevice],
	error)

ListSiteDevices takes context, siteId, mType, name, limit, page as parameters and returns an models.ApiResponse with []models.ConfigDevice data and an error if there was an issue with the request or response. List devices in a site. Use [List Org Devices]($e/Orgs%20Devices/listOrgDevices) to retrieve devices across the organization, or [Search Org Devices]($e/Orgs%20Devices/searchOrgDevices) when filters are needed.

func (*SitesDevices) SearchSiteDeviceConfigHistory

func (s *SitesDevices) SearchSiteDeviceConfigHistory(
	ctx context.Context,
	siteId uuid.UUID,
	mType *models.DeviceTypeDefaultApEnum,
	mac *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseConfigHistorySearch],
	error)

SearchSiteDeviceConfigHistory takes context, siteId, mType, mac, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseConfigHistorySearch data and an error if there was an issue with the request or response. Search for entries in device config history

func (*SitesDevices) SearchSiteDeviceEvents

func (s *SitesDevices) SearchSiteDeviceEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	model *string,
	text *string,
	mType *string,
	lastBy *string,
	includes *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsDevices],
	error)

SearchSiteDeviceEvents takes context, siteId, mac, model, text, mType, lastBy, includes, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsDevices data and an error if there was an issue with the request or response. Search device events for a site with filters for MAC address, model, event type, message text, and time range. Use [Search Org Device Events]($e/Orgs%20Devices/searchOrgDeviceEvents) to search device events across the organization.

func (*SitesDevices) SearchSiteDeviceLastConfigs

func (s *SitesDevices) SearchSiteDeviceLastConfigs(
	ctx context.Context,
	siteId uuid.UUID,
	certExpiryDuration *string,
	deviceType *models.LastConfigDeviceTypeEnum,
	mac *string,
	version *string,
	name *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseConfigHistorySearch],
	error)

SearchSiteDeviceLastConfigs takes context, siteId, certExpiryDuration, deviceType, mac, version, name, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseConfigHistorySearch data and an error if there was an issue with the request or response. Search last known device configuration records for a site with filters for device type, MAC address, name, software version, certificate expiry, and time range. Use [Search Org Device Last Configs]($e/Orgs%20Devices/searchOrgDeviceLastConfigs) to search last known device configuration records across the organization.

func (*SitesDevices) SearchSiteDevices

func (s *SitesDevices) SearchSiteDevices(
	ctx context.Context,
	siteId uuid.UUID,
	band24Channel *int,
	band5Channel *int,
	band6Channel *int,
	band24Bandwidth *int,
	band5Bandwidth *int,
	band6Bandwidth *int,
	band24Power *int,
	band5Power *int,
	band6Power *int,
	clustered *bool,
	eth0PortSpeed *int,
	evpntopoId *uuid.UUID,
	extIp *string,
	hostname *string,
	ip *string,
	lastConfigStatus *string,
	lastHostname *string,
	lldpMgmtAddr *string,
	lldpPortId *string,
	lldpSystemDesc *string,
	lldpSystemName *string,
	mac *string,
	model *string,
	mxedgeId *uuid.UUID,
	mxedgeIds *string,
	mxtunnelStatus *models.SearchSiteDevicesMxtunnelStatusEnum,
	node *models.HaClusterNodeEnum,
	node0Mac *string,
	node1Mac *string,
	powerConstrained *bool,
	radiusStats *string,
	stats *bool,
	t128agentVersion *string,
	mType *models.DeviceTypeDefaultApEnum,
	version *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *models.SearchSiteDevicesSortEnum,
	descSort *models.SearchSiteDevicesDescSortEnum,
	searchAfter *string) (
	models.ApiResponse[models.ResponseDeviceSearch],
	error)

SearchSiteDevices takes context, siteId, band24Channel, band5Channel, band6Channel, band24Bandwidth, band5Bandwidth, band6Bandwidth, band24Power, band5Power, band6Power, clustered, eth0PortSpeed, evpntopoId, extIp, hostname, ip, lastConfigStatus, lastHostname, lldpMgmtAddr, lldpPortId, lldpSystemDesc, lldpSystemName, mac, model, mxedgeId, mxedgeIds, mxtunnelStatus, node, node0Mac, node1Mac, powerConstrained, radiusStats, stats, t128agentVersion, mType, version, limit, start, end, duration, sort, descSort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseDeviceSearch data and an error if there was an issue with the request or response. Search devices in a site with filters for device type, identifiers, model, software version, radio settings, LLDP details, and other inventory attributes. Use [Search Org Devices]($e/Orgs%20Devices/searchOrgDevices) to search devices across the organization.

func (*SitesDevices) SetSiteDevicesGbpTag added in v0.4.92

func (s *SitesDevices) SetSiteDevicesGbpTag(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.DevicesGbpTag) (
	*http.Response,
	error)

SetSiteDevicesGbpTag takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Set GBP Tag for multiple devices

func (*SitesDevices) UpdateSiteDevice

func (s *SitesDevices) UpdateSiteDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.MistDevice) (
	models.ApiResponse[models.MistDevice],
	error)

UpdateSiteDevice takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.MistDevice data and an error if there was an issue with the request or response. Update Device Configuration

type SitesDevicesOthers

type SitesDevicesOthers struct {
	// contains filtered or unexported fields
}

SitesDevicesOthers represents a controller struct.

func NewSitesDevicesOthers

func NewSitesDevicesOthers(baseController baseController) *SitesDevicesOthers

NewSitesDevicesOthers creates a new instance of SitesDevicesOthers. It takes a baseController as a parameter and returns a pointer to the SitesDevicesOthers.

func (*SitesDevicesOthers) CountSiteOtherDeviceEvents

func (s *SitesDevicesOthers) CountSiteOtherDeviceEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteOtherDeviceEventsCountDistinctEnum,
	mType *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteOtherDeviceEvents takes context, siteId, distinct, mType, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count third-party device events for a site, optionally grouped by the `distinct` field and filtered by event type and time range. Use [Count Org Other Device Events]($e/Orgs%20Devices%20-%20Others/countOrgOtherDeviceEvents) to count third-party device events across the organization.

func (*SitesDevicesOthers) ListSiteOtherDevices

func (s *SitesDevicesOthers) ListSiteOtherDevices(
	ctx context.Context,
	siteId uuid.UUID,
	vendor *string,
	mac *string,
	serial *string,
	model *string,
	name *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.DeviceOther],
	error)

ListSiteOtherDevices takes context, siteId, vendor, mac, serial, model, name, limit, page as parameters and returns an models.ApiResponse with []models.DeviceOther data and an error if there was an issue with the request or response. List third-party devices in a site, such as devices discovered or tracked outside the managed Mist device inventory. Use [List Org Other Devices]($e/Orgs%20Devices%20-%20Others/listOrgOtherDevices) to retrieve third-party devices across the organization.

func (*SitesDevicesOthers) SearchSiteOtherDeviceEvents

func (s *SitesDevicesOthers) SearchSiteOtherDeviceEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	deviceMac *string,
	vendor *string,
	mType *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsOtherDevicesSearch],
	error)

SearchSiteOtherDeviceEvents takes context, siteId, mac, deviceMac, vendor, mType, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsOtherDevicesSearch data and an error if there was an issue with the request or response. Search third-party device events for a site with filters for device identifiers, model, vendor, event type, and time range. Use [Search Org Other Device Events]($e/Orgs%20Devices%20-%20Others/searchOrgOtherDeviceEvents) to search third-party device events across the organization.

type SitesDevicesWANCluster

type SitesDevicesWANCluster struct {
	// contains filtered or unexported fields
}

SitesDevicesWANCluster represents a controller struct.

func NewSitesDevicesWANCluster

func NewSitesDevicesWANCluster(baseController baseController) *SitesDevicesWANCluster

NewSitesDevicesWANCluster creates a new instance of SitesDevicesWANCluster. It takes a baseController as a parameter and returns a pointer to the SitesDevicesWANCluster.

func (*SitesDevicesWANCluster) CreateSiteDeviceHaCluster

func (s *SitesDevicesWANCluster) CreateSiteDeviceHaCluster(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.GatewayCluster) (
	models.ApiResponse[models.GatewayCluster],
	error)

CreateSiteDeviceHaCluster takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.GatewayCluster data and an error if there was an issue with the request or response. ## Create HA Cluster Both nodes has to be in the same site. We expect the user to configure ha_sync / ha_data port in port_configs already ### SRX cabling see [Chassis Cluster User Guide for SRX Series Devices](https://www.juniper.net/documentation/us/en/software/junos/chassis-cluster-security-devices/topics/concept/chassis-cluster-srx-series-node-interface-understanding.html) Here’s the recommended cabling. #### SRX300 From ZTP / default state, ge-0/0/0 and ge-0/0/7 (SFP) are default WAN ports and will get DHCP IP. However, ge-0/0/0 becomes OOB/fxp0 after cluster is enabled (i.e. using it for reach Mist is not recommended) 1. form cluster in UI 2. configure ge-0/0/7,ge-1/0/7 for WAN (reth0) 3. configure ge-0/0/2,ge-1/0/2 for ha_data 4. configure ge-0/0/3- for LAN or additional WAN e.g. ``` json { "port_config": { "ge-0/0/2,ge-1/0/2": { "usage": "ha_data" }, "ge-0/0/7,ge-1/0/7": { "usage": "wan", "redundant": true, "reth_idx": 0, "ip_config": {"type": "dhcp"} }, } } ``` 1. connect ge-0/0/1 back to back for ha_control 2. connect ge-0/0/2 back to back for ha_data 3. connect both ge-0/0/7 to uplink switch to WAN and to reach Mist 4. power up both devices 5. it takes about 30 minutes for the cluster to form #### SRX320 From ZTP / default state, ge-0/0/0, ge-0/0/7 (SFP) and cl-1/0/0 (LTE) are default WAN ports and will get DHCP IP. However, ge-0/0/0 becomes OOB/fxp0 after cluster is enabled (i.e. using it for reach Mist is not recommended) ##### ZTP via ge-0/0/7 Similar to SRX300 ##### ZTP via cl-1/0/0 (LTE) 1. form cluster in UI 2. configure cl-1/0/0, cl-3/0/0 as WAN (reth0) 3. configure ge-0/0/2,ge-3/0/2 for ha_data 4. same as above #### SRX340 / SRX345 / SRX380 SRX340/SRX345 has dedicated OOB/fxp0 ports 1. form cluster in UI 2. configure ge-0/0/0,ge-5/0/0 for WAN (reth0) 3. configure ge-0/0/2,ge-5/0/2 for ha_data 4. configure ge-0/0/3- for LAN or additional WAN 5. connect ge-0/0/0 to uplink switch to WAN and to reach Mist 6. connect ge-0/0/1 back-to-back for ha_control 7. connect ge-0/0/2 back-to-back for ha_data (fabric); or for SRX380, xe-0/0/16 if 10G SFP+ is used 8. connect ge-0/0/3- to LAN or additional WANs #### SRX550 ge-0/0/0 becomes OOB/fxp0 after cluster is enabled, make enable oob_ip_config as dhcp to maintain cloud connectivity 1. connect ge-0/0/0 to reach Mist (after cluster is fully up, this port becomes OOB/fxp0) 2. connect ge-0/0/1 back-to-back for ha_control 3. connect ge-0/0/2 back-to-back for ha_data (fabric) 4. connect ge-0/0/3 to WAN (after cluster is up, intended to be used for reth0) 5. connect ge-0/0/4- to LAN or additional WANs #### SRX1500 SRX1500 has, additionally, dedicated HA Control port 1. form cluster in UI 2. configure ge-0/0/0,ge-5/0/0 for WAN (reth0) 3. configure ge-0/0/1,ge-5/0/1 for ha_data 4. configure ge-0/0/2- for LAN or additional WAN 5. connect dedicated ha_control back-to-back 6. connect ge-0/0/0 to uplink switch to WAN and to reach Mist 7. connect ge-0/0/1 back-to-back for ha_data 8. connect ge-0/0/2- to LAN or additional WANs #### SRX4100 SRX4100 has dedicated ha_control and ha_data (fabric) ports 1. connect dedicated ha_control back-to-back 2. connect dedicated ha_data back-to-back 3. connect xe-0/0/0 to WAN to reach Mist 4. connect xe-0/0/1- to LAN or additional WANs #### VSRX When standalone, VSRX has fxp0 as first Network Adapter, then ge-0/0/0-N When clustered, VSRX has fxp0, em0, then ge-0/0/0-N 1. connect net0 (fxp0) to WAN to reach Mist 2. connect net1 back-to-back for ha_control 3. connect net2 (ge-0/0/0) back-to-back for ha_data (fab0/fab1) 4. connect net3 (ge-0/0/1) to WAN, intended to be used for reth0 5. connect net4 (ge-0/0/2) to LAN SRX340/SRX345 has dedicated OOB/fxp0 ports VSRX has fxp0 as first Network Adapter, then ge-0/0/0-N 1. connect ge-0/0/0 to WAN to reach Mist 2. connect ge-0/0/1 back-to-back for ha_control 3. connect ge-0/0/2 back-to-back for ha_data (fabric); or for SRX380, xe-0/0/16 if 10G SFP+ is used 4. connect ge-0/0/3- to LAN or additional WANs #### SRX550 ge-0/0/0 becomes OOB/fxp0 after cluster is enabled, make enable oob_ip_config as dhcp to maintain cloud connectivity 1. connect ge-0/0/0 to reach Mist (after cluster is fully up, this port becomes OOB/fxp0) 2. connect ge-0/0/1 back-to-back for ha_control 3. connect ge-0/0/2 back-to-back for ha_data (fabric) 4. connect ge-0/0/3 to WAN (after cluster is up, intended to be used for reth0) 5. connect ge-0/0/4- to LAN or additional WANs #### SRX1500 SRX1500 has, additionally, dedicated HA Control port 1. form cluster in UI 2. configure ge-0/0/0,ge-7/0/0 for WAN (reth0) 3. configure ge-0/0/1,ge-7/0/1 for ha_data 4. configure ge-0/0/2- for LAN or additional WAN 5. connect dedicated ha_control back-to-back 6. connect ge-0/0/0 to uplink switch to WAN and to reach Mist 7. connect ge-0/0/1 back-to-back for ha_data 8. connect ge-0/0/2- to LAN or additional WANs #### SRX1600 SRX1600 has, additionally, two dedicated HA Control port 1. form cluster in UI 2. configure ge-0/0/0,ge-7/0/0 for WAN (reth0) 3. configure ge-0/0/1,ge-7/0/1 for ha_data 4. configure ge-0/0/2- for LAN or additional WAN 5. connect dedicated both ha_control back-to-back 6. connect ge-0/0/0 to uplink switch to WAN and to reach Mist 7. connect ge-0/0/1 back-to-back for ha_data 8. connect ge-0/0/2- to LAN or additional WANs #### SRX4100 SRX4100 has dedicated ha_control and ha_data (fabric) ports 1. connect dedicated ha_control back-to-back 2. connect dedicated ha_data back-to-back 3. connect xe-0/0/0 to WAN to reach Mist 4. connect xe-0/0/1- to LAN or additional WANs ## Replace a Node in a HA Cluster Usually Device Replacement is done by Device Replacement API. For a HA cluster, you can also replace a node by another device in the same site.

func (*SitesDevicesWANCluster) DeleteSiteDeviceHaCluster

func (s *SitesDevicesWANCluster) DeleteSiteDeviceHaCluster(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteDeviceHaCluster takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete HA Cluster

func (*SitesDevicesWANCluster) GetSiteDeviceHaClusterNode

func (s *SitesDevicesWANCluster) GetSiteDeviceHaClusterNode(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.GatewayCluster],
	error)

GetSiteDeviceHaClusterNode takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.GatewayCluster data and an error if there was an issue with the request or response. Delete HA Cluster

type SitesDevicesWired

type SitesDevicesWired struct {
	// contains filtered or unexported fields
}

SitesDevicesWired represents a controller struct.

func NewSitesDevicesWired

func NewSitesDevicesWired(baseController baseController) *SitesDevicesWired

NewSitesDevicesWired creates a new instance of SitesDevicesWired. It takes a baseController as a parameter and returns a pointer to the SitesDevicesWired.

func (*SitesDevicesWired) DeleteSiteLocalSwitchPortConfig

func (s *SitesDevicesWired) DeleteSiteLocalSwitchPortConfig(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteLocalSwitchPortConfig takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. API Calls delete all the existing port config local overrides, and reapply the configured planed at the device level (with site / template heritance).

func (*SitesDevicesWired) UpdateSiteLocalSwitchPortConfig

func (s *SitesDevicesWired) UpdateSiteLocalSwitchPortConfig(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body map[string]models.JunosLocalPortConfig) (
	*http.Response,
	error)

UpdateSiteLocalSwitchPortConfig takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. API Calls to add port config local overrides. This can be used by Switch Port Operators or Helpdesk administrators to change a Switch Port configuration without having to change the switch configuration. The local overrides configured for the switchports with `no_local_overwrite`==`true` won't be applied to the switch configuration. > NOTE: > > When using the API Call, it is required to put send all overrides in the PUT request Payload, even the existing once. > > The current overrides can be retrieved with the API Call [Get Site Device]($e/Sites%20Devices/getSiteDevice). The local overrides will show up separately from the `port_config` in the `local_port_config` so it can be easily identified (and cleared)

type SitesDevicesWiredVirtualChassis

type SitesDevicesWiredVirtualChassis struct {
	// contains filtered or unexported fields
}

SitesDevicesWiredVirtualChassis represents a controller struct.

func NewSitesDevicesWiredVirtualChassis

func NewSitesDevicesWiredVirtualChassis(baseController baseController) *SitesDevicesWiredVirtualChassis

NewSitesDevicesWiredVirtualChassis creates a new instance of SitesDevicesWiredVirtualChassis. It takes a baseController as a parameter and returns a pointer to the SitesDevicesWiredVirtualChassis.

func (*SitesDevicesWiredVirtualChassis) ChangeSiteSwitchVcPortMode added in v0.4.94

func (s *SitesDevicesWiredVirtualChassis) ChangeSiteSwitchVcPortMode(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.VcPort) (
	*http.Response,
	error)

ChangeSiteSwitchVcPortMode takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Change VCP port mode Some switch model allows changing VCP port behaviors, e.g. - use them as regular network ports - change vcp protocol Note, this command will reboot the switch

func (*SitesDevicesWiredVirtualChassis) ConvertSiteVirtualChassisToVirtualMac added in v0.4.74

func (s *SitesDevicesWiredVirtualChassis) ConvertSiteVirtualChassisToVirtualMac(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

ConvertSiteVirtualChassisToVirtualMac takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Converts an FPC0-based VC to a Virtualmac VC, removing the limitation where the device ID must change whenever FPC0 is renumbered or removed. HTTP400 Error possible reasons: - The device is not an OC device - Virtualmac VC is disabled in the Org Knob settings - The VC is already a Virtualmac VC - The VC is currently disconnected - The device is standalone - A new FPC0 exists with its own device config, causing ambiguity.

func (*SitesDevicesWiredVirtualChassis) CreateSiteVirtualChassis

func (s *SitesDevicesWiredVirtualChassis) CreateSiteVirtualChassis(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.VirtualChassisConfig) (
	*http.Response,
	error)

CreateSiteVirtualChassis takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. For models (e.g. EX3400 and up) having dedicated VC ports, it is easier to form a VC by just connecting cables with the dedicated VC ports. Cloud will detect the new VC and update the inventory. In case that the user would like to choose the dedicated switch as a VC master or for EX2300-C-12P and EX2300-C-12T which doesn't have dedicated VC ports, below are procedures to automate the VC creation: 1. Power on the switch that is chosen as the VC master first, and then powering on the other member switches. 2. Claim or adopt all these switches under the same organization's Inventory 3. Assign these switches into the same Site 4. Wait for all the switches to be connected to Mist 5. Invoke vc command on the switch chosen to be the VC master. For EX2300-C-12P, VC ports will be created automatically. 6. Connect the cables to the VC ports for these switches 7. Wait for the VC to be formed. The Org's inventory will be updated for the new VC.

func (*SitesDevicesWiredVirtualChassis) DeleteSiteVirtualChassis

func (s *SitesDevicesWiredVirtualChassis) DeleteSiteVirtualChassis(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteVirtualChassis takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. When all the member switches of VC are removed and only member ID 0 is left, the cloud would detect this situation and automatically changes the single switch to non-VC role. For some unexpected cases that the VC is gone and disconnected, the API below could be used to change the state of VC’s switches to be standalone. After it is executed, all the switches will be shown as standalone switches under Inventory.

func (*SitesDevicesWiredVirtualChassis) GetSiteDeviceVirtualChassis

func (s *SitesDevicesWiredVirtualChassis) GetSiteDeviceVirtualChassis(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.ResponseVirtualChassisConfig],
	error)

GetSiteDeviceVirtualChassis takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.ResponseVirtualChassisConfig data and an error if there was an issue with the request or response. Get VC Status The API returns a combined view of the VC status which includes topology and stats_

func (*SitesDevicesWiredVirtualChassis) SetSiteVcPort

func (s *SitesDevicesWiredVirtualChassis) SetSiteVcPort(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.VirtualChassisPort) (
	*http.Response,
	error)

SetSiteVcPort takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Set VC port

func (*SitesDevicesWiredVirtualChassis) UpdateSiteVirtualChassisMember

func (s *SitesDevicesWiredVirtualChassis) UpdateSiteVirtualChassisMember(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.VirtualChassisUpdate) (
	*http.Response,
	error)

UpdateSiteVirtualChassisMember takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. The VC creation and adding member switch API will update the device' s virtual chassis config which is applied after VC is formed to create JUNOS pre-provisioned virtual chassis configuration. **Note:** Update Device's VC config can achieve similar purpose by directly modifying current virtual_chassis config. However, it cannot fulfill requests to enabling vc_ports on new members that are yet to belong to current VC. ## Change to use preprovisioned VC To switch the VC to use preprovisioned VC, enable preprovisioned in virtual_chassis config. Both vc_role master and backup will be matched to routing-engine role in Junos preprovisioned VC config. In this config, fpc0 has to be the same as the mac of device_id. Use renumber if you want to replace fpc0 which involves device_id change. **Notice:** to configure preprovisioned VC, every member of the VC must be in the inventory. ## Add new members For models (e.g. EX4300 and up) having dedicated VC ports, it is easier to add new member switches into a VC by just connecting cables with the dedicated VC ports. Cloud will detect the new members and update the inventory. For EX2300 VC, adding new members requires to follow the procedures below: 1. Powering on the new member switches and ensuring cables are not connected to any VC ports. 2. Claim or adopt all new member switches under the VC's organization Inventory 3. Assign all new member switches to the same Site as the VC 4. Invoke vc command to add switches to the VC. 5. Connect the cables to the VC ports for these switches 6. After a while, the Org's Inventory shows that new switches has been added into the VC. ## Removing member switch To remove a member switch from the VC, following the procedures below: 1. Ensuring the VC is connected to the cloud first 2. Unplug the cable from the VC port of the switch 3. Waiting for the VC state (vc_state) of this switch is changed to not-present 4. Invoke update_vc with remove to remove this switch from the VC 5. The Org's Inventory shows the switch is removed. Please notice that member ID 0 (fpc0) cannot be removed. When a VC has two switches left, unplugging the cable may result in the situation that fpc0 becomes a line card (LC). When this situation is happening, please re-plug in the cable, wait for both switches becoming present (show virtual-chassis) and then removing the cable again. ## Renumber a member switch When a member switch doesn' t work properly and needed to be replaced, the renumber API could be used. The following two types of renumber are supported: 1. Replace a non-fpc0 member switch 2. Replace fpc0. When fpc0 is replaced, PAPI device config and JUNOS config will be both updated. For renumber to work, the following procedures are needed: 1. Ensuring the VC is connected to the cloud and the state of the member switch to be replaced must be non present. 2. Adding the new member switch to the VC 3. Waiting for the VC state (vc_state) of this VC to be updated to API server 4. Invoke vc with renumber to replace\ the new member switch from fpc X to ## Perprovision VC members By specifying "preprovision" op, you can convert the current VC to pre-provisioned mode, update VC members as well as specify vc_ports when adding new members for device models without dedicated vc ports. Use renumber for fpc0 replacement which involves device_id change. Note: 1. vc_ports is used for adding new members and not needed if * the device model has dedicated vc ports, or * no new member is added 2. New VC members to be added should exist in the same Site as the VC

type SitesDevicesWireless

type SitesDevicesWireless struct {
	// contains filtered or unexported fields
}

SitesDevicesWireless represents a controller struct.

func NewSitesDevicesWireless

func NewSitesDevicesWireless(baseController baseController) *SitesDevicesWireless

NewSitesDevicesWireless creates a new instance of SitesDevicesWireless. It takes a baseController as a parameter and returns a pointer to the SitesDevicesWireless.

func (*SitesDevicesWireless) EnableSiteDeviceZigbeeJoin added in v0.4.103

func (s *SitesDevicesWireless) EnableSiteDeviceZigbeeJoin(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsZigbeeJoin) (
	models.ApiResponse[models.ZigbeeJoinResponse],
	error)

EnableSiteDeviceZigbeeJoin takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.ZigbeeJoinResponse data and an error if there was an issue with the request or response. Allow Zigbee end devices to join the network for a configurable duration. After the duration expires, new joins will be blocked (unless `allow_join`==`always` is configured on the device). #### Subscribe to Zigbee Join Events `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/zigbee_join" } ``` ##### Example output from ws stream ```json { "event": "data", "channel": "/sites/4ac1dcf4-9d8b-7211-65c4-057819f0862b/devices/00000000-0000-0000-1000-5c5b350e0060/cmd", "data": { "session": "19e73828-937f-05e6-f709-e29efdb0a82b", "zigbee_mac": "fd05eb86c04ac04a", "event_type": "associated", "detail": { "lqi": 180 } } } ```

func (*SitesDevicesWireless) GetSiteDeviceIotPort

func (s *SitesDevicesWireless) GetSiteDeviceIotPort(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[map[string]int],
	error)

GetSiteDeviceIotPort takes context, siteId, deviceId as parameters and returns an models.ApiResponse with map[string]int data and an error if there was an issue with the request or response. Returns the current state of each enabled IoT pin configured as an output.

func (*SitesDevicesWireless) KickSiteDeviceZigbeeClients added in v0.4.107

func (s *SitesDevicesWireless) KickSiteDeviceZigbeeClients(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsZigbeeKick) (
	*http.Response,
	error)

KickSiteDeviceZigbeeClients takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Kick one or more Zigbee clients from a Zigbee-enabled AP. The AP must be connected.

func (*SitesDevicesWireless) ListSiteDeviceRadioChannels added in v0.4.69

func (s *SitesDevicesWireless) ListSiteDeviceRadioChannels(
	ctx context.Context,
	siteId uuid.UUID,
	countryCode *string) (
	models.ApiResponse[models.ResponseDeviceRadioChannels],
	error)

ListSiteDeviceRadioChannels takes context, siteId, countryCode as parameters and returns an models.ApiResponse with models.ResponseDeviceRadioChannels data and an error if there was an issue with the request or response. Get a list of allowed channels (per channel width)

func (*SitesDevicesWireless) SetSiteDeviceIotPort

func (s *SitesDevicesWireless) SetSiteDeviceIotPort(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body map[string]int) (
	models.ApiResponse[map[string]int],
	error)

SetSiteDeviceIotPort takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with map[string]int data and an error if there was an issue with the request or response. **Note**: For each IoT pin referenced: * The pin must be enabled using the Device `iot_config` API * The pin must support the output direction

func (*SitesDevicesWireless) StartSiteDeviceZigbeeEventTrail added in v0.4.107

func (s *SitesDevicesWireless) StartSiteDeviceZigbeeEventTrail(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.ZigbeeTrailResponse],
	error)

StartSiteDeviceZigbeeEventTrail takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.ZigbeeTrailResponse data and an error if there was an issue with the request or response. Start a Zigbee event trail session on an AP. Returns a `session` that the UI can use to stream results.

func (*SitesDevicesWireless) StartSiteDeviceZigbeePacketTrail added in v0.4.107

func (s *SitesDevicesWireless) StartSiteDeviceZigbeePacketTrail(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.ZigbeeTrailResponse],
	error)

StartSiteDeviceZigbeePacketTrail takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.ZigbeeTrailResponse data and an error if there was an issue with the request or response. Start a Zigbee packet trail session on an AP. Returns a `session` that the UI can use to stream results.

func (*SitesDevicesWireless) StopSiteDeviceZigbeeJoin added in v0.4.107

func (s *SitesDevicesWireless) StopSiteDeviceZigbeeJoin(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

StopSiteDeviceZigbeeJoin takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Stop allowing new Zigbee end devices to join the network through the specified AP.

type SitesEVPNTopologies

type SitesEVPNTopologies struct {
	// contains filtered or unexported fields
}

SitesEVPNTopologies represents a controller struct.

func NewSitesEVPNTopologies

func NewSitesEVPNTopologies(baseController baseController) *SitesEVPNTopologies

NewSitesEVPNTopologies creates a new instance of SitesEVPNTopologies. It takes a baseController as a parameter and returns a pointer to the SitesEVPNTopologies.

func (*SitesEVPNTopologies) CreateSiteEvpnTopology

func (s *SitesEVPNTopologies) CreateSiteEvpnTopology(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.EvpnTopology) (
	models.ApiResponse[models.EvpnTopology],
	error)

CreateSiteEvpnTopology takes context, siteId, body as parameters and returns an models.ApiResponse with models.EvpnTopology data and an error if there was an issue with the request or response. While all the `evpn_id` / `downlink_ips` can be specified by hand, the easiest way is to call the `build_vpn_topology` API, allowing you to examine the diff, and update it yourself. You can also simply call it with `overwrite=true` which will apply the updates for you. **Notes:** 1. You can use `core` / `distribution` / `access` to create a CLOS topology 2. You can also use `core` / `distribution` to form a 2-tier EVPN topology where ESI-Lag is configured distribution to connect to access switches 3. In a small/medium campus, `collapsed-core` can be used where core switches are the inter-connected to do EVPN

func (*SitesEVPNTopologies) DeleteSiteEvpnTopology

func (s *SitesEVPNTopologies) DeleteSiteEvpnTopology(
	ctx context.Context,
	siteId uuid.UUID,
	evpnTopologyId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteEvpnTopology takes context, siteId, evpnTopologyId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete the site EVPN Topology

func (*SitesEVPNTopologies) GetSiteEvpnTopology

func (s *SitesEVPNTopologies) GetSiteEvpnTopology(
	ctx context.Context,
	siteId uuid.UUID,
	evpnTopologyId uuid.UUID) (
	models.ApiResponse[models.EvpnTopology],
	error)

GetSiteEvpnTopology takes context, siteId, evpnTopologyId as parameters and returns an models.ApiResponse with models.EvpnTopology data and an error if there was an issue with the request or response. Get One EVPN Topology Detail

func (*SitesEVPNTopologies) ListSiteEvpnTopologies

func (s *SitesEVPNTopologies) ListSiteEvpnTopologies(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.EvpnTopologyResponse],
	error)

ListSiteEvpnTopologies takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.EvpnTopologyResponse data and an error if there was an issue with the request or response. Get the existing EVPN topology

func (*SitesEVPNTopologies) UpdateSiteEvpnTopology

func (s *SitesEVPNTopologies) UpdateSiteEvpnTopology(
	ctx context.Context,
	siteId uuid.UUID,
	evpnTopologyId uuid.UUID,
	body *models.EvpnTopology) (
	models.ApiResponse[models.EvpnTopology],
	error)

UpdateSiteEvpnTopology takes context, siteId, evpnTopologyId, body as parameters and returns an models.ApiResponse with models.EvpnTopology data and an error if there was an issue with the request or response. Update the EVPN Topology

type SitesEvents

type SitesEvents struct {
	// contains filtered or unexported fields
}

SitesEvents represents a controller struct.

func NewSitesEvents

func NewSitesEvents(baseController baseController) *SitesEvents

NewSitesEvents creates a new instance of SitesEvents. It takes a baseController as a parameter and returns a pointer to the SitesEvents.

func (*SitesEvents) CountSiteSystemEvents

func (s *SitesEvents) CountSiteSystemEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteSystemEventsCountDistinctEnum,
	mType *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteSystemEvents takes context, siteId, distinct, mType, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count system events for a site, optionally grouped by the `distinct` field and filtered by time range. Use [Count Org System Events]($e/Orgs%20Events/countOrgSystemEvents) to count system events across the organization.

func (*SitesEvents) ListSiteRoamingEvents added in v0.4.69

func (s *SitesEvents) ListSiteRoamingEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mType *models.FastRoamResultEnum,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.ResponseEventsFastroam],
	error)

ListSiteRoamingEvents takes context, siteId, mType, limit, start, end, duration as parameters and returns an models.ApiResponse with models.ResponseEventsFastroam data and an error if there was an issue with the request or response. List Roaming Events data

func (*SitesEvents) SearchSiteSystemEvents

func (s *SitesEvents) SearchSiteSystemEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mType *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseDeviceEventsSearch],
	error)

SearchSiteSystemEvents takes context, siteId, mType, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseDeviceEventsSearch data and an error if there was an issue with the request or response. Search system events for a site with time range, sorting, and pagination controls. Use [Search Org System Events]($e/Orgs%20Events/searchOrgSystemEvents) to search system events across the organization.

type SitesGatewayTemplates

type SitesGatewayTemplates struct {
	// contains filtered or unexported fields
}

SitesGatewayTemplates represents a controller struct.

func NewSitesGatewayTemplates

func NewSitesGatewayTemplates(baseController baseController) *SitesGatewayTemplates

NewSitesGatewayTemplates creates a new instance of SitesGatewayTemplates. It takes a baseController as a parameter and returns a pointer to the SitesGatewayTemplates.

func (*SitesGatewayTemplates) ListSiteGatewayTemplatesDerived added in v0.4.74

func (s *SitesGatewayTemplates) ListSiteGatewayTemplatesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.GatewayTemplate],
	error)

ListSiteGatewayTemplatesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.GatewayTemplate data and an error if there was an issue with the request or response. Get the list of derived Gateway Templates a Site

type SitesGuests

type SitesGuests struct {
	// contains filtered or unexported fields
}

SitesGuests represents a controller struct.

func NewSitesGuests

func NewSitesGuests(baseController baseController) *SitesGuests

NewSitesGuests creates a new instance of SitesGuests. It takes a baseController as a parameter and returns a pointer to the SitesGuests.

func (*SitesGuests) CountSiteGuestAuthorizations

func (s *SitesGuests) CountSiteGuestAuthorizations(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteGuestsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteGuestAuthorizations takes context, siteId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count authorized guest records for a site, optionally grouped by the `distinct` field and filtered by time range. Use [Count Org Guest Authorizations]($e/Orgs%20Guests/countOrgGuestAuthorizations) to count authorized guest records across the organization.

func (*SitesGuests) DeleteSiteGuestAuthorization

func (s *SitesGuests) DeleteSiteGuestAuthorization(
	ctx context.Context,
	siteId uuid.UUID,
	guestMac string) (
	*http.Response,
	error)

DeleteSiteGuestAuthorization takes context, siteId, guestMac as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Guest Authorization

func (*SitesGuests) GetSiteGuestAuthorization

func (s *SitesGuests) GetSiteGuestAuthorization(
	ctx context.Context,
	siteId uuid.UUID,
	guestMac string) (
	models.ApiResponse[models.Guest],
	error)

GetSiteGuestAuthorization takes context, siteId, guestMac as parameters and returns an models.ApiResponse with models.Guest data and an error if there was an issue with the request or response. Get Guest Authorization

func (*SitesGuests) ListSiteAllGuestAuthorizations

func (s *SitesGuests) ListSiteAllGuestAuthorizations(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId *string) (
	models.ApiResponse[[]models.Guest],
	error)

ListSiteAllGuestAuthorizations takes context, siteId, wlanId as parameters and returns an models.ApiResponse with []models.Guest data and an error if there was an issue with the request or response. Get List of Site Guest Authorizations

func (*SitesGuests) ListSiteAllGuestAuthorizationsDerived

func (s *SitesGuests) ListSiteAllGuestAuthorizationsDerived(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId *string,
	crossSite *bool) (
	models.ApiResponse[[]models.Guest],
	error)

ListSiteAllGuestAuthorizationsDerived takes context, siteId, wlanId, crossSite as parameters and returns an models.ApiResponse with []models.Guest data and an error if there was an issue with the request or response. Get the list of derived Guest Authorizations for a site

func (*SitesGuests) SearchSiteGuestAuthorization

func (s *SitesGuests) SearchSiteGuestAuthorization(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId *string,
	authMethod *string,
	ssid *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseGuestSearch],
	error)

SearchSiteGuestAuthorization takes context, siteId, wlanId, authMethod, ssid, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseGuestSearch data and an error if there was an issue with the request or response. Search authorized guest records for a site with filters for WLAN, SSID, authentication method, and time range. Use [Search Org Guest Authorization]($e/Orgs%20Guests/searchOrgGuestAuthorization) to search authorized guest records across the organization.

func (*SitesGuests) UpdateSiteGuestAuthorization

func (s *SitesGuests) UpdateSiteGuestAuthorization(
	ctx context.Context,
	siteId uuid.UUID,
	guestMac string,
	body *models.Guest) (
	models.ApiResponse[models.Guest],
	error)

UpdateSiteGuestAuthorization takes context, siteId, guestMac, body as parameters and returns an models.ApiResponse with models.Guest data and an error if there was an issue with the request or response. Update Guest Authorization

type SitesIDPProfiles added in v0.4.74

type SitesIDPProfiles struct {
	// contains filtered or unexported fields
}

SitesIDPProfiles represents a controller struct.

func NewSitesIDPProfiles added in v0.4.74

func NewSitesIDPProfiles(baseController baseController) *SitesIDPProfiles

NewSitesIDPProfiles creates a new instance of SitesIDPProfiles. It takes a baseController as a parameter and returns a pointer to the SitesIDPProfiles.

func (*SitesIDPProfiles) ListSiteIdpProfilesDerived added in v0.4.74

func (s *SitesIDPProfiles) ListSiteIdpProfilesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Avprofile],
	error)

ListSiteIdpProfilesDerived takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Avprofile data and an error if there was an issue with the request or response. Get the list of derived IDP Profiles for a site

type SitesInsights

type SitesInsights struct {
	// contains filtered or unexported fields
}

SitesInsights represents a controller struct.

func NewSitesInsights

func NewSitesInsights(baseController baseController) *SitesInsights

NewSitesInsights creates a new instance of SitesInsights. It takes a baseController as a parameter and returns a pointer to the SitesInsights.

func (*SitesInsights) GetSiteInsightMetrics

func (s *SitesInsights) GetSiteInsightMetrics(
	ctx context.Context,
	siteId uuid.UUID,
	metrics string,
	start *string,
	end *string,
	duration *string,
	interval *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.InsightMetrics],
	error)

GetSiteInsightMetrics takes context, siteId, metrics, start, end, duration, interval, limit, page as parameters and returns an models.ApiResponse with models.InsightMetrics data and an error if there was an issue with the request or response. Get Site Insight Metrics

func (*SitesInsights) GetSiteInsightMetricsForAP added in v0.4.103

func (s *SitesInsights) GetSiteInsightMetricsForAP(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	metrics string,
	start *string,
	end *string,
	duration *string,
	interval *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseDeviceMetrics],
	error)

GetSiteInsightMetricsForAP takes context, siteId, deviceId, metrics, start, end, duration, interval, limit, page as parameters and returns an models.ApiResponse with models.ResponseDeviceMetrics data and an error if there was an issue with the request or response. Get AP Insight Metrics

func (*SitesInsights) GetSiteInsightMetricsForClient

func (s *SitesInsights) GetSiteInsightMetricsForClient(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string,
	metrics string,
	start *string,
	end *string,
	duration *string,
	interval *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.InsightMetrics],
	error)

GetSiteInsightMetricsForClient takes context, siteId, clientMac, metrics, start, end, duration, interval, limit, page as parameters and returns an models.ApiResponse with models.InsightMetrics data and an error if there was an issue with the request or response. Get Client Insight Metrics

func (*SitesInsights) GetSiteInsightMetricsForDevice

func (s *SitesInsights) GetSiteInsightMetricsForDevice(
	ctx context.Context,
	siteId uuid.UUID,
	metric string,
	deviceMac string,
	portId *string,
	start *string,
	end *string,
	duration *string,
	interval *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseDeviceMetrics],
	error)

GetSiteInsightMetricsForDevice takes context, siteId, metric, deviceMac, portId, start, end, duration, interval, limit, page as parameters and returns an models.ApiResponse with models.ResponseDeviceMetrics data and an error if there was an issue with the request or response. Get AP Insight Metrics See metrics possibilities at [List Insight Metrics]($e/Constants%20Definitions/listInsightMetrics)

func (*SitesInsights) GetSiteInsightMetricsForGateway added in v0.4.99

func (s *SitesInsights) GetSiteInsightMetricsForGateway(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	metrics string,
	portId *string,
	start *string,
	end *string,
	duration *string,
	interval *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseDeviceMetrics],
	error)

GetSiteInsightMetricsForGateway takes context, siteId, deviceId, metrics, portId, start, end, duration, interval, limit, page as parameters and returns an models.ApiResponse with models.ResponseDeviceMetrics data and an error if there was an issue with the request or response. Get Gateway Insight Metrics

func (*SitesInsights) GetSiteInsightMetricsForMxEdge added in v0.4.99

func (s *SitesInsights) GetSiteInsightMetricsForMxEdge(
	ctx context.Context,
	siteId uuid.UUID,
	metric string,
	deviceMac string,
	portId *string,
	start *string,
	end *string,
	duration *string,
	interval *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseDeviceMetrics],
	error)

GetSiteInsightMetricsForMxEdge takes context, siteId, metric, deviceMac, portId, start, end, duration, interval, limit, page as parameters and returns an models.ApiResponse with models.ResponseDeviceMetrics data and an error if there was an issue with the request or response. Get MxEdge Insight Metrics See metrics possibilities at [List Insight Metrics](/#operations/listInsightMetrics)

func (*SitesInsights) GetSiteInsightMetricsForSwitch added in v0.4.99

func (s *SitesInsights) GetSiteInsightMetricsForSwitch(
	ctx context.Context,
	siteId uuid.UUID,
	metric string,
	deviceMac string,
	portId *string,
	start *string,
	end *string,
	duration *string,
	interval *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseDeviceMetrics],
	error)

GetSiteInsightMetricsForSwitch takes context, siteId, metric, deviceMac, portId, start, end, duration, interval, limit, page as parameters and returns an models.ApiResponse with models.ResponseDeviceMetrics data and an error if there was an issue with the request or response. Get Switch Insight Metrics See metrics possibilities at [List Insight Metrics](/#operations/listInsightMetrics)

type SitesJSE

type SitesJSE struct {
	// contains filtered or unexported fields
}

SitesJSE represents a controller struct.

func NewSitesJSE

func NewSitesJSE(baseController baseController) *SitesJSE

NewSitesJSE creates a new instance of SitesJSE. It takes a baseController as a parameter and returns a pointer to the SitesJSE.

func (*SitesJSE) GetSiteJseInfo

func (s *SitesJSE) GetSiteJseInfo(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.AccountJseInfo],
	error)

GetSiteJseInfo takes context, siteId as parameters and returns an models.ApiResponse with models.AccountJseInfo data and an error if there was an issue with the request or response. Retrieves the list of JSE orgs associated with the account

type SitesLicenses

type SitesLicenses struct {
	// contains filtered or unexported fields
}

SitesLicenses represents a controller struct.

func NewSitesLicenses

func NewSitesLicenses(baseController baseController) *SitesLicenses

NewSitesLicenses creates a new instance of SitesLicenses. It takes a baseController as a parameter and returns a pointer to the SitesLicenses.

func (*SitesLicenses) GetSiteLicenseUsage

func (s *SitesLicenses) GetSiteLicenseUsage(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.LicenseUsageSite],
	error)

GetSiteLicenseUsage takes context, siteId as parameters and returns an models.ApiResponse with models.LicenseUsageSite data and an error if there was an issue with the request or response. This shows license usage (i.e. needed) based on the features enabled for the site.

type SitesLocation

type SitesLocation struct {
	// contains filtered or unexported fields
}

SitesLocation represents a controller struct.

func NewSitesLocation

func NewSitesLocation(baseController baseController) *SitesLocation

NewSitesLocation creates a new instance of SitesLocation. It takes a baseController as a parameter and returns a pointer to the SitesLocation.

func (*SitesLocation) ClearSiteMlOverwriteForDevice

func (s *SitesLocation) ClearSiteMlOverwriteForDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

ClearSiteMlOverwriteForDevice takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Clear ML Overwrite for Device

func (*SitesLocation) ClearSiteMlOverwriteForMap

func (s *SitesLocation) ClearSiteMlOverwriteForMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	*http.Response,
	error)

ClearSiteMlOverwriteForMap takes context, siteId, mapId as parameters and returns an *Response and an error if there was an issue with the request or response. Clear ML Overwrite for Map

func (*SitesLocation) GetSiteBeamCoverageOverview

func (s *SitesLocation) GetSiteBeamCoverageOverview(
	ctx context.Context,
	siteId uuid.UUID,
	mapId *string,
	mType *models.RfClientTypeEnum,
	clientType *string,
	duration *string,
	resolution *models.ResolutionEnum,
	start *string,
	end *string) (
	models.ApiResponse[models.ResponseLocationCoverage],
	error)

GetSiteBeamCoverageOverview takes context, siteId, mapId, mType, clientType, duration, resolution, start, end as parameters and returns an models.ApiResponse with models.ResponseLocationCoverage data and an error if there was an issue with the request or response. Get Beam Coverage Overview

func (*SitesLocation) GetSiteDefaultPlfForModels

func (s *SitesLocation) GetSiteDefaultPlfForModels(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]interface{}],
	error)

GetSiteDefaultPlfForModels takes context, siteId as parameters and returns an models.ApiResponse with []interface{} data and an error if there was an issue with the request or response. Get Default PLF for Models

func (*SitesLocation) GetSiteMachineLearningCurrentStat

func (s *SitesLocation) GetSiteMachineLearningCurrentStat(
	ctx context.Context,
	siteId uuid.UUID,
	mapId *string) (
	models.ApiResponse[[]interface{}],
	error)

GetSiteMachineLearningCurrentStat takes context, siteId, mapId as parameters and returns an models.ApiResponse with []interface{} data and an error if there was an issue with the request or response. Get Machine Learning Current Stat For each VBLE AP, it has ML model parameters (e.g. Path-loss-estimate, Intercept) as well as completion indicators (Level and PercentageComplete). For the completeness, ML takes N sample to finish its first level and use N*0.25 samples to complete each successive level. When a device is moved, the completeness will be reset as it has to re-learn.

func (*SitesLocation) OverwriteSiteMlForDevice

func (s *SitesLocation) OverwriteSiteMlForDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body map[string]models.MlOverwriteAdditionalProperties) (
	models.ApiResponse[[]interface{}],
	error)

OverwriteSiteMlForDevice takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with []interface{} data and an error if there was an issue with the request or response. Overwrite ML For Device

func (*SitesLocation) OverwriteSiteMlForMap

func (s *SitesLocation) OverwriteSiteMlForMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body map[string]models.MlOverwriteAdditionalProperties) (
	models.ApiResponse[[]interface{}],
	error)

OverwriteSiteMlForMap takes context, siteId, mapId, body as parameters and returns an models.ApiResponse with []interface{} data and an error if there was an issue with the request or response. Overwrite ML For Map

func (*SitesLocation) ResetSiteMlStatsByMap

func (s *SitesLocation) ResetSiteMlStatsByMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	*http.Response,
	error)

ResetSiteMlStatsByMap takes context, siteId, mapId as parameters and returns an *Response and an error if there was an issue with the request or response. Reset ML Stats by Map

type SitesMapStacks added in v0.4.102

type SitesMapStacks struct {
	// contains filtered or unexported fields
}

SitesMapStacks represents a controller struct.

func NewSitesMapStacks added in v0.4.102

func NewSitesMapStacks(baseController baseController) *SitesMapStacks

NewSitesMapStacks creates a new instance of SitesMapStacks. It takes a baseController as a parameter and returns a pointer to the SitesMapStacks.

func (*SitesMapStacks) CreateSiteMapStack added in v0.4.102

func (s *SitesMapStacks) CreateSiteMapStack(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Mapstack) (
	models.ApiResponse[models.MapstackResponse],
	error)

CreateSiteMapStack takes context, siteId, body as parameters and returns an models.ApiResponse with models.MapstackResponse data and an error if there was an issue with the request or response. Create Site Map Stack

func (*SitesMapStacks) ListSiteMapStacks added in v0.4.102

func (s *SitesMapStacks) ListSiteMapStacks(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int,
	name *string) (
	models.ApiResponse[[]models.MapstackResponse],
	error)

ListSiteMapStacks takes context, siteId, limit, page, name as parameters and returns an models.ApiResponse with []models.MapstackResponse data and an error if there was an issue with the request or response. Get List of Site Map Stacks

type SitesMaps

type SitesMaps struct {
	// contains filtered or unexported fields
}

SitesMaps represents a controller struct.

func NewSitesMaps

func NewSitesMaps(baseController baseController) *SitesMaps

NewSitesMaps creates a new instance of SitesMaps. It takes a baseController as a parameter and returns a pointer to the SitesMaps.

func (*SitesMaps) AddSiteMapImage

func (s *SitesMaps) AddSiteMapImage(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	file models.FileWrapper,
	json *string) (
	*http.Response,
	error)

AddSiteMapImage takes context, siteId, mapId, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Add image map is a multipart POST which has an file (Image) and an optional json parameter

func (*SitesMaps) BulkAssignSiteApsToMap

func (s *SitesMaps) BulkAssignSiteApsToMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body *models.MacAddresses) (
	models.ApiResponse[models.ResponseSetDevicesMap],
	error)

BulkAssignSiteApsToMap takes context, siteId, mapId, body as parameters and returns an models.ApiResponse with models.ResponseSetDevicesMap data and an error if there was an issue with the request or response. This API can be used to assign a list of AP Macs associated with site_id to the specified map_id. Note that map_id must be associated with corresponding site_id. This API obeys the following rules 1. if AP is unassigned to any Map, it gets associated with map_id 2. Any moved APs are returned in the response 3. If the AP is considered a locked AP, no action will be taken

func (*SitesMaps) CreateSiteMap

func (s *SitesMaps) CreateSiteMap(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Map) (
	models.ApiResponse[models.Map],
	error)

CreateSiteMap takes context, siteId, body as parameters and returns an models.ApiResponse with models.Map data and an error if there was an issue with the request or response. Create Site Map

func (*SitesMaps) DeleteSiteMap

func (s *SitesMaps) DeleteSiteMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteMap takes context, siteId, mapId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Map

func (*SitesMaps) DeleteSiteMapImage

func (s *SitesMaps) DeleteSiteMapImage(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteMapImage takes context, siteId, mapId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Map Image

func (*SitesMaps) GetSiteMap

func (s *SitesMaps) GetSiteMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	models.ApiResponse[models.Map],
	error)

GetSiteMap takes context, siteId, mapId as parameters and returns an models.ApiResponse with models.Map data and an error if there was an issue with the request or response. Get Site Map Details

func (*SitesMaps) ImportSiteMaps

func (s *SitesMaps) ImportSiteMaps(
	ctx context.Context,
	siteId uuid.UUID,
	autoDeviceprofileAssignment *bool,
	csv *models.FileWrapper,
	file *models.FileWrapper,
	json *models.MapImportJson) (
	models.ApiResponse[models.ResponseMapImport],
	error)

ImportSiteMaps takes context, siteId, autoDeviceprofileAssignment, csv, file, json as parameters and returns an models.ApiResponse with models.ResponseMapImport data and an error if there was an issue with the request or response. Import data from files is a multipart POST which has an file, an optional json, and an optional csv, to create floorplan, assign matching inventory to specific site, place ap if name or mac matches. # Note This endpoint (at the site level), the AP must be already assigned to the site to be placed on the floorplan. If you want to place APs from the Org inventory, it is required to use the endpoint at the Org level [importOrgMaps](#operation/importOrgMaps) # CSV File Format ```csv Vendor AP name,Mist AP Mac US Office AP-2,5c:5b:35:00:00:02 US Office AP-3,5c5b35000002 ```

func (*SitesMaps) ImportSiteWayfindings

func (s *SitesMaps) ImportSiteWayfindings(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body *models.WayfindingImportJson) (
	*http.Response,
	error)

ImportSiteWayfindings takes context, siteId, mapId, body as parameters and returns an *Response and an error if there was an issue with the request or response. This imports the vendor map meta data into the Map JSON. This is required by the SDK and App in order to access/render the vendor Map properly.

func (*SitesMaps) ListSiteMaps

func (s *SitesMaps) ListSiteMaps(
	ctx context.Context,
	siteId uuid.UUID,
	mapstackId *uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Map],
	error)

ListSiteMaps takes context, siteId, mapstackId, limit, page as parameters and returns an models.ApiResponse with []models.Map data and an error if there was an issue with the request or response. Get List of Site Maps

func (*SitesMaps) ReplaceSiteMapImage

func (s *SitesMaps) ReplaceSiteMapImage(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	file models.FileWrapper,
	json *models.MapSiteReplaceFileJson) (
	*http.Response,
	error)

ReplaceSiteMapImage takes context, siteId, mapId, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. Replace Map Image This works like an PUT where the image will be replaced. If transform is provided, all the locations of the objects on the map (AP, Zone, Vbeacon, Beacon) will be transformed as well (relative to the new Map)

func (*SitesMaps) StartSiteMapAutoGeofence added in v0.4.100

func (s *SitesMaps) StartSiteMapAutoGeofence(
	ctx context.Context,
	mapId uuid.UUID,
	siteId uuid.UUID) (
	*http.Response,
	error)

StartSiteMapAutoGeofence takes context, mapId, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. The auto geofence service is a map parsing service that uses map image data to identify the exterior of buildings in the map image also known as "geofences". This API processes a single given MapId. This map must have an image to parse for the auto geofence service. Repeated POST requests to this endpoint while the auto geofence service is processing the map will be rejected.

func (*SitesMaps) StartSiteMapsAutoGeofence added in v0.4.100

func (s *SitesMaps) StartSiteMapsAutoGeofence(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

StartSiteMapsAutoGeofence takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. The auto geofence service is a map parsing service that uses map image data to identify the exterior of buildings in the map image also known as "geofences". This API processes all maps for a given SiteId. The maps must have an image to parse for the auto geofence service. Repeated POST requests to this endpoint while the auto geofence service is processing the map will be rejected.

func (*SitesMaps) UpdateSiteMap

func (s *SitesMaps) UpdateSiteMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body *models.Map) (
	models.ApiResponse[models.Map],
	error)

UpdateSiteMap takes context, siteId, mapId, body as parameters and returns an models.ApiResponse with models.Map data and an error if there was an issue with the request or response. Update Site Map

type SitesMapsAutoPlacement

type SitesMapsAutoPlacement struct {
	// contains filtered or unexported fields
}

SitesMapsAutoPlacement represents a controller struct.

func NewSitesMapsAutoPlacement

func NewSitesMapsAutoPlacement(baseController baseController) *SitesMapsAutoPlacement

NewSitesMapsAutoPlacement creates a new instance of SitesMapsAutoPlacement. It takes a baseController as a parameter and returns a pointer to the SitesMapsAutoPlacement.

func (*SitesMapsAutoPlacement) AcceptSiteApLocalizationData added in v0.4.104

func (s *SitesMapsAutoPlacement) AcceptSiteApLocalizationData(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body *models.AutoplacementLocalizationSelector) (
	*http.Response,
	error)

AcceptSiteApLocalizationData takes context, siteId, mapId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Accept the cached autoplacement and auto-orientation values of a map or subset of APs on a map. Any APs that have autoplacement values are stored in cache for up to 7 days while awaiting acceptance. Accepting the autoplacement values overwrites the existing X, Y, and orientation of the accepted APs with their cached autoplacement values. Once a decision to accept is made, or the 7-day time-to-live (TTL) expires, the cached values are deleted.

func (*SitesMapsAutoPlacement) ClearSiteApAutoOrient added in v0.2.25

func (s *SitesMapsAutoPlacement) ClearSiteApAutoOrient(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body *models.MacAddresses) (
	*http.Response,
	error)

ClearSiteApAutoOrient takes context, siteId, mapId, body as parameters and returns an *Response and an error if there was an issue with the request or response. This API is used to destroy the autoorientations of a map or subset of APs on a map.

func (*SitesMapsAutoPlacement) ClearSiteApAutoplacement

func (s *SitesMapsAutoPlacement) ClearSiteApAutoplacement(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body *models.AutoplacementLocalizationSelector) (
	*http.Response,
	error)

ClearSiteApAutoplacement takes context, siteId, mapId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Reject the cached autoplacement and auto-orientation values of a map or subset of APs on a map. Any APs that have autoplacement values are stored in cache for up to 7 days while awaiting rejection. Rejecting the autoplacement values causes the APs to retain their current X, Y, and orientation. Once a decision to reject is made, or the 7-day time-to-live (TTL) expires, the cached values are deleted.

func (*SitesMapsAutoPlacement) ConfirmSiteApLocalizationData

func (s *SitesMapsAutoPlacement) ConfirmSiteApLocalizationData(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body *models.UseAutoApValues) (
	*http.Response,
	error)

ConfirmSiteApLocalizationData takes context, siteId, mapId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Deprecated: confirmSiteApLocalizationData is deprecated **Deprecated** — use [Accept Site AP Autoplacement]($e/Sites%20Maps%20-%20Auto-placement/acceptSiteApLocalizationData) to accept cached values, or [Clear Site AP Autoplacement]($e/Sites%20Maps%20-%20Auto-placement/clearSiteApAutoplacement) to reject them.

func (*SitesMapsAutoPlacement) DeleteSiteApAutoOrientation added in v0.2.25

func (s *SitesMapsAutoPlacement) DeleteSiteApAutoOrientation(
	ctx context.Context,
	mapId uuid.UUID,
	siteId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteApAutoOrientation takes context, mapId, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. This API is called to force stop auto placement for a given map

func (*SitesMapsAutoPlacement) DeleteSiteApAutoplacement

func (s *SitesMapsAutoPlacement) DeleteSiteApAutoplacement(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteApAutoplacement takes context, siteId, mapId as parameters and returns an *Response and an error if there was an issue with the request or response. This API is called to force stop auto placement for a given map

func (*SitesMapsAutoPlacement) GetSiteApAutoOrientation added in v0.4.74

func (s *SitesMapsAutoPlacement) GetSiteApAutoOrientation(
	ctx context.Context,
	mapId uuid.UUID,
	siteId uuid.UUID) (
	models.ApiResponse[models.ResponseAutoOrientationInfo],
	error)

GetSiteApAutoOrientation takes context, mapId, siteId as parameters and returns an models.ApiResponse with models.ResponseAutoOrientationInfo data and an error if there was an issue with the request or response. This API is called to view the current status of auto orient for a given map.

func (*SitesMapsAutoPlacement) GetSiteApAutoPlacement

func (s *SitesMapsAutoPlacement) GetSiteApAutoPlacement(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	models.ApiResponse[models.ResponseAutoPlacementInfo],
	error)

GetSiteApAutoPlacement takes context, siteId, mapId as parameters and returns an models.ApiResponse with models.ResponseAutoPlacementInfo data and an error if there was an issue with the request or response. This API is called to view the current status of auto placement for a given map. #### Status Descriptions | Status | Description | | --- | --- | | `pending` | Autoplacement has not been requested for this map | | `inprogress` | Autoplacement is currently processing | | `done` | The autoplacement process has completed | | `data_needed` | Additional position data is required for autoplacement. Users should verify the requested anchor APs have a position on the map | | `invalid_model` | Autoplacement is not supported on the model of the APs on the map | | `invalid_version` | Autoplacement is not supported with the APs current firmware version | | `error` | There was an error in the autoplacement process |

func (*SitesMapsAutoPlacement) RunSiteApAutoplacement

func (s *SitesMapsAutoPlacement) RunSiteApAutoplacement(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	body *models.AutoPlacement) (
	models.ApiResponse[models.ResponseAutoplacement],
	error)

RunSiteApAutoplacement takes context, siteId, mapId, body as parameters and returns an models.ApiResponse with models.ResponseAutoplacement data and an error if there was an issue with the request or response. This API is called to trigger auto placement for a map. For the auto placement feature to work, RTT-FTM data needs to be collected from the APs on the map. This scan is disruptive, and users must be notified of service disruption during the auto placement process. Repeated POST requests to this endpoint while a map is still running will be rejected. `force_collection` is set to `false` by default. If `force_collection` is set to `false`, the API attempts to start localization with existing data. If no data exists, the API attempts to start orchestration. If `force_collection` is set to `true`, the API attempts to start orchestration. Providing a list of devices is optional. If provided, autoplacement suggestions will be made only for the specified devices. If no list is provided, all APs associated with the map are considered by default.

func (*SitesMapsAutoPlacement) StartSiteApAutoOrientation added in v0.2.25

func (s *SitesMapsAutoPlacement) StartSiteApAutoOrientation(
	ctx context.Context,
	mapId uuid.UUID,
	siteId uuid.UUID,
	body *models.AutoOrient) (
	models.ApiResponse[models.ResponseAutoOrientation],
	error)

StartSiteApAutoOrientation takes context, mapId, siteId, body as parameters and returns an models.ApiResponse with models.ResponseAutoOrientation data and an error if there was an issue with the request or response. This API is called to trigger a map for auto orient. For auto orient feature to work, BLE data needs to be collected from the APs on the map. This precess is not disruptive unlike FTM collection. Repeated POST requests to this endpoint while a map is still running will be rejected. `force_collection` is set to `false` by default. If `force_collection`==`false`, the API attempts to start orientation with existing data. If no data exists, the API attempts to start collecting orientation data. If `force_collection`==`true`, the API attempts to start collecting orientation data. Providing a list of device macs is optional. If provided, auto orientation suggestions will be made only for the specified devices. If no list is provided, all APs associated with the map are considered by default.

type SitesMapsAutoZone added in v0.4.0

type SitesMapsAutoZone struct {
	// contains filtered or unexported fields
}

SitesMapsAutoZone represents a controller struct.

func NewSitesMapsAutoZone added in v0.4.0

func NewSitesMapsAutoZone(baseController baseController) *SitesMapsAutoZone

NewSitesMapsAutoZone creates a new instance of SitesMapsAutoZone. It takes a baseController as a parameter and returns a pointer to the SitesMapsAutoZone.

func (*SitesMapsAutoZone) DeleteSiteMapAutoZone added in v0.4.0

func (s *SitesMapsAutoZone) DeleteSiteMapAutoZone(
	ctx context.Context,
	mapId uuid.UUID,
	siteId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteMapAutoZone takes context, mapId, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. This API starts the auto zones service for a specified map. This map must have an image to parse for the auto zones service. Repeated POST requests to this endpoint while the auto zones service is processing the map or awaiting review will be rejected.

func (*SitesMapsAutoZone) GetSiteMapAutoZoneStatus added in v0.4.0

func (s *SitesMapsAutoZone) GetSiteMapAutoZoneStatus(
	ctx context.Context,
	mapId uuid.UUID,
	siteId uuid.UUID) (
	models.ApiResponse[models.ResponseAutoZone],
	error)

GetSiteMapAutoZoneStatus takes context, mapId, siteId as parameters and returns an models.ApiResponse with models.ResponseAutoZone data and an error if there was an issue with the request or response. This API provides the current status of the auto zones service for a given map

func (*SitesMapsAutoZone) StartSiteMapAutoZone added in v0.4.0

func (s *SitesMapsAutoZone) StartSiteMapAutoZone(
	ctx context.Context,
	mapId uuid.UUID,
	siteId uuid.UUID) (
	*http.Response,
	error)

StartSiteMapAutoZone takes context, mapId, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. This API starts the auto zones service for a specified map. This map must have an image to parse for the auto zones service. Repeated POST requests to this endpoint while the auto zones service is processing the map will be rejected.

type SitesMarvisConfigs added in v0.4.104

type SitesMarvisConfigs struct {
	// contains filtered or unexported fields
}

SitesMarvisConfigs represents a controller struct.

func NewSitesMarvisConfigs added in v0.4.104

func NewSitesMarvisConfigs(baseController baseController) *SitesMarvisConfigs

NewSitesMarvisConfigs creates a new instance of SitesMarvisConfigs. It takes a baseController as a parameter and returns a pointer to the SitesMarvisConfigs.

func (*SitesMarvisConfigs) CountSiteMarvisConfigActions added in v0.4.104

func (s *SitesMarvisConfigs) CountSiteMarvisConfigActions(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *string,
	mac *string,
	mType *string,
	src *string,
	adminId *string,
	op *string,
	portId *string,
	vlanIds *int,
	reason *string,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteMarvisConfigActions takes context, siteId, distinct, mac, mType, src, adminId, op, portId, vlanIds, reason, limit, start, end, duration as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Marvis Config Actions for a site by a distinct field.

func (*SitesMarvisConfigs) DeleteSiteMarvisConfigAction added in v0.4.104

func (s *SitesMarvisConfigs) DeleteSiteMarvisConfigAction(
	ctx context.Context,
	siteId uuid.UUID,
	id uuid.UUID) (
	*http.Response,
	error)

DeleteSiteMarvisConfigAction takes context, siteId, id as parameters and returns an *Response and an error if there was an issue with the request or response. Delete a Marvis Config Action.

func (*SitesMarvisConfigs) SearchSiteMarvisConfigActions added in v0.4.104

func (s *SitesMarvisConfigs) SearchSiteMarvisConfigActions(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	mType *string,
	src *string,
	adminId *string,
	op *string,
	portId *string,
	vlanIds *int,
	reason *string,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.MarvisConfigActionsSearch],
	error)

SearchSiteMarvisConfigActions takes context, siteId, mac, mType, src, adminId, op, portId, vlanIds, reason, limit, start, end, duration as parameters and returns an models.ApiResponse with models.MarvisConfigActionsSearch data and an error if there was an issue with the request or response. Search Marvis Config Actions for a site.

func (*SitesMarvisConfigs) SubmitSiteMarvisConfigFeedback added in v0.4.104

SubmitSiteMarvisConfigFeedback takes context, siteId, id, body as parameters and returns an models.ApiResponse with models.MarvisConfigFeedbackResponse data and an error if there was an issue with the request or response. Submit feedback on a Marvis-injected config action (e.g. mark as invalid).

type SitesMxEdges

type SitesMxEdges struct {
	// contains filtered or unexported fields
}

SitesMxEdges represents a controller struct.

func NewSitesMxEdges

func NewSitesMxEdges(baseController baseController) *SitesMxEdges

NewSitesMxEdges creates a new instance of SitesMxEdges. It takes a baseController as a parameter and returns a pointer to the SitesMxEdges.

func (*SitesMxEdges) CountSiteMxEdgeEvents

func (s *SitesMxEdges) CountSiteMxEdgeEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteMxedgeEventsCountDistinctEnum,
	mxedgeId *string,
	mxclusterId *string,
	mType *string,
	service *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteMxEdgeEvents takes context, siteId, distinct, mxedgeId, mxclusterId, mType, service, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Mist Edge Events

func (*SitesMxEdges) DeleteSiteMxEdge

func (s *SitesMxEdges) DeleteSiteMxEdge(
	ctx context.Context,
	siteId uuid.UUID,
	mxedgeId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteMxEdge takes context, siteId, mxedgeId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Mist Edge

func (*SitesMxEdges) GetSiteMxEdge

func (s *SitesMxEdges) GetSiteMxEdge(
	ctx context.Context,
	siteId uuid.UUID,
	mxedgeId uuid.UUID) (
	*http.Response,
	error)

GetSiteMxEdge takes context, siteId, mxedgeId as parameters and returns an *Response and an error if there was an issue with the request or response. Get Site Mist Edge

func (*SitesMxEdges) ListSiteMxEdges

func (s *SitesMxEdges) ListSiteMxEdges(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Mxedge],
	error)

ListSiteMxEdges takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Mxedge data and an error if there was an issue with the request or response. List Mist Edges for a site. Use [List Org Mist Edges]($e/Orgs%20MxEdges/listOrgMxEdges) to retrieve Mist Edges across the organization.

func (*SitesMxEdges) SearchSiteMistEdgeEvents

func (s *SitesMxEdges) SearchSiteMistEdgeEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mxedgeId *string,
	mxclusterId *string,
	mType *string,
	service *string,
	component *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseMxedgeEventsSearch],
	error)

SearchSiteMistEdgeEvents takes context, siteId, mxedgeId, mxclusterId, mType, service, component, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseMxedgeEventsSearch data and an error if there was an issue with the request or response. Search Mist Edge events for a site with filters for Mist Edge, Mist Edge cluster, event type, service, component, and time range. Use [Search Org Mist Edge Events]($e/Orgs%20MxEdges/searchOrgMistEdgeEvents) to search Mist Edge events across the organization.

func (*SitesMxEdges) UpdateSiteMxEdge

func (s *SitesMxEdges) UpdateSiteMxEdge(
	ctx context.Context,
	siteId uuid.UUID,
	mxedgeId uuid.UUID,
	body *models.Mxedge) (
	models.ApiResponse[models.Mxedge],
	error)

UpdateSiteMxEdge takes context, siteId, mxedgeId, body as parameters and returns an models.ApiResponse with models.Mxedge data and an error if there was an issue with the request or response. Update Site Mist Edge settings

func (*SitesMxEdges) UploadSiteMxEdgeSupportFiles

func (s *SitesMxEdges) UploadSiteMxEdgeSupportFiles(
	ctx context.Context,
	siteId uuid.UUID,
	mxedgeId uuid.UUID) (
	*http.Response,
	error)

UploadSiteMxEdgeSupportFiles takes context, siteId, mxedgeId as parameters and returns an *Response and an error if there was an issue with the request or response. Support / Upload Mist Edge support files

type SitesNACFingerprints added in v0.4.103

type SitesNACFingerprints struct {
	// contains filtered or unexported fields
}

SitesNACFingerprints represents a controller struct.

func NewSitesNACFingerprints added in v0.4.103

func NewSitesNACFingerprints(baseController baseController) *SitesNACFingerprints

NewSitesNACFingerprints creates a new instance of SitesNACFingerprints. It takes a baseController as a parameter and returns a pointer to the SitesNACFingerprints.

func (*SitesNACFingerprints) CountSiteClientFingerprints added in v0.4.103

func (s *SitesNACFingerprints) CountSiteClientFingerprints(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.FingerprintsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteClientFingerprints takes context, siteId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Client Fingerprints

func (*SitesNACFingerprints) SearchSiteClientFingerprints added in v0.4.103

func (s *SitesNACFingerprints) SearchSiteClientFingerprints(
	ctx context.Context,
	siteId uuid.UUID,
	family *string,
	clientType *models.NacAccessTypeEnum,
	model *string,
	mfg *string,
	os *string,
	osType *string,
	mac *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	interval *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.FingerprintSearchResult],
	error)

SearchSiteClientFingerprints takes context, siteId, family, clientType, model, mfg, os, osType, mac, limit, start, end, duration, interval, sort, searchAfter as parameters and returns an models.ApiResponse with models.FingerprintSearchResult data and an error if there was an issue with the request or response. Search Client Fingerprints

type SitesNetworkTemplates

type SitesNetworkTemplates struct {
	// contains filtered or unexported fields
}

SitesNetworkTemplates represents a controller struct.

func NewSitesNetworkTemplates

func NewSitesNetworkTemplates(baseController baseController) *SitesNetworkTemplates

NewSitesNetworkTemplates creates a new instance of SitesNetworkTemplates. It takes a baseController as a parameter and returns a pointer to the SitesNetworkTemplates.

func (*SitesNetworkTemplates) ListSiteNetworkTemplatesDerived added in v0.4.74

func (s *SitesNetworkTemplates) ListSiteNetworkTemplatesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[models.NetworkTemplate],
	error)

ListSiteNetworkTemplatesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with models.NetworkTemplate data and an error if there was an issue with the request or response. Get the list of derived Network Templates a Site

type SitesNetworks

type SitesNetworks struct {
	// contains filtered or unexported fields
}

SitesNetworks represents a controller struct.

func NewSitesNetworks

func NewSitesNetworks(baseController baseController) *SitesNetworks

NewSitesNetworks creates a new instance of SitesNetworks. It takes a baseController as a parameter and returns a pointer to the SitesNetworks.

func (*SitesNetworks) ListSiteNetworksDerived

func (s *SitesNetworks) ListSiteNetworksDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.Network],
	error)

ListSiteNetworksDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.Network data and an error if there was an issue with the request or response. Get the list of derived Networks for a Site

type SitesPsks

type SitesPsks struct {
	// contains filtered or unexported fields
}

SitesPsks represents a controller struct.

func NewSitesPsks

func NewSitesPsks(baseController baseController) *SitesPsks

NewSitesPsks creates a new instance of SitesPsks. It takes a baseController as a parameter and returns a pointer to the SitesPsks.

func (*SitesPsks) CreateSitePsk

func (s *SitesPsks) CreateSitePsk(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Psk) (
	models.ApiResponse[models.Psk],
	error)

CreateSitePsk takes context, siteId, body as parameters and returns an models.ApiResponse with models.Psk data and an error if there was an issue with the request or response. Create Site PSK When `usage`==`macs`, corresponding "macs" field will hold a list consisting of client MAC addresses (["xx:xx:xx:xx:xx",...]) or mac patterns(["xx:xx:*","xx*",...]) or both (["xx:xx:xx:xx:xx:xx", "xx:*", ...]). This list is capped at 5000

func (*SitesPsks) DeleteSitePsk

func (s *SitesPsks) DeleteSitePsk(
	ctx context.Context,
	siteId uuid.UUID,
	pskId uuid.UUID) (
	*http.Response,
	error)

DeleteSitePsk takes context, siteId, pskId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site PSK

func (*SitesPsks) GetSitePsk

func (s *SitesPsks) GetSitePsk(
	ctx context.Context,
	siteId uuid.UUID,
	pskId uuid.UUID) (
	models.ApiResponse[models.Psk],
	error)

GetSitePsk takes context, siteId, pskId as parameters and returns an models.ApiResponse with models.Psk data and an error if there was an issue with the request or response. Get Site PSK Details

func (*SitesPsks) ImportSitePsks

func (s *SitesPsks) ImportSitePsks(
	ctx context.Context,
	siteId uuid.UUID,
	file *models.FileWrapper) (
	models.ApiResponse[[]models.Psk],
	error)

ImportSitePsks takes context, siteId, file as parameters and returns an models.ApiResponse with []models.Psk data and an error if there was an issue with the request or response. Import PSK from CSV file or JSON ## CSV File Format ```csv PSK Import CSV File Format: name,ssid,passphrase,usage,vlan_id,mac Common,warehouse,foryoureyesonly,single,35,a31425f31278 Justin,reception,visible,multi,1002 ```

func (*SitesPsks) ListSitePsks

func (s *SitesPsks) ListSitePsks(
	ctx context.Context,
	siteId uuid.UUID,
	ssid *string,
	role *string,
	name *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Psk],
	error)

ListSitePsks takes context, siteId, ssid, role, name, limit, page as parameters and returns an models.ApiResponse with []models.Psk data and an error if there was an issue with the request or response. Get List of Site PSKs

func (*SitesPsks) UpdateSiteMultiplePsks

func (s *SitesPsks) UpdateSiteMultiplePsks(
	ctx context.Context,
	siteId uuid.UUID,
	body []models.Psk) (
	models.ApiResponse[[]models.Psk],
	error)

UpdateSiteMultiplePsks takes context, siteId, body as parameters and returns an models.ApiResponse with []models.Psk data and an error if there was an issue with the request or response. Update multiple PSKs

func (*SitesPsks) UpdateSitePsk

func (s *SitesPsks) UpdateSitePsk(
	ctx context.Context,
	siteId uuid.UUID,
	pskId uuid.UUID,
	body *models.Psk) (
	models.ApiResponse[models.Psk],
	error)

UpdateSitePsk takes context, siteId, pskId, body as parameters and returns an models.ApiResponse with models.Psk data and an error if there was an issue with the request or response. Update Site PSK

type SitesRFTemplates

type SitesRFTemplates struct {
	// contains filtered or unexported fields
}

SitesRFTemplates represents a controller struct.

func NewSitesRFTemplates

func NewSitesRFTemplates(baseController baseController) *SitesRFTemplates

NewSitesRFTemplates creates a new instance of SitesRFTemplates. It takes a baseController as a parameter and returns a pointer to the SitesRFTemplates.

func (*SitesRFTemplates) ListSiteRfTemplatesDerived added in v0.4.74

func (s *SitesRFTemplates) ListSiteRfTemplatesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.RfTemplate],
	error)

ListSiteRfTemplatesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.RfTemplate data and an error if there was an issue with the request or response. Get the list of derived RF Templates a Site

type SitesRRM

type SitesRRM struct {
	// contains filtered or unexported fields
}

SitesRRM represents a controller struct.

func NewSitesRRM

func NewSitesRRM(baseController baseController) *SitesRRM

NewSitesRRM creates a new instance of SitesRRM. It takes a baseController as a parameter and returns a pointer to the SitesRRM.

func (*SitesRRM) GetSiteChannelScores added in v0.4.103

func (s *SitesRRM) GetSiteChannelScores(
	ctx context.Context,
	siteId uuid.UUID,
	band models.Dot11BandEnum,
	start *string,
	end *string) (
	models.ApiResponse[models.ResponseRrmChannelScores],
	error)

GetSiteChannelScores takes context, siteId, band, start, end as parameters and returns an models.ApiResponse with models.ResponseRrmChannelScores data and an error if there was an issue with the request or response. Get Site Channel Scores

func (*SitesRRM) GetSiteCurrentChannelPlanning

func (s *SitesRRM) GetSiteCurrentChannelPlanning(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.Rrm],
	error)

GetSiteCurrentChannelPlanning takes context, siteId as parameters and returns an models.ApiResponse with models.Rrm data and an error if there was an issue with the request or response. Get Current Channel Planning

func (*SitesRRM) GetSiteCurrentRrmConsiderations

func (s *SitesRRM) GetSiteCurrentRrmConsiderations(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	band models.Dot11BandEnum) (
	models.ApiResponse[models.ResponseRrmConsideration],
	error)

GetSiteCurrentRrmConsiderations takes context, siteId, deviceId, band as parameters and returns an models.ApiResponse with models.ResponseRrmConsideration data and an error if there was an issue with the request or response. Get Current RRM Considerations for an AP on a Specific Band

func (*SitesRRM) ListSiteCurrentRrmNeighbors added in v0.4.69

func (s *SitesRRM) ListSiteCurrentRrmNeighbors(
	ctx context.Context,
	siteId uuid.UUID,
	band models.Dot11BandEnum,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseRrmNeighbors],
	error)

ListSiteCurrentRrmNeighbors takes context, siteId, band, limit, page as parameters and returns an models.ApiResponse with models.ResponseRrmNeighbors data and an error if there was an issue with the request or response. List Current RRM observed neighbors

func (*SitesRRM) ListSiteRrmEvents added in v0.4.69

func (s *SitesRRM) ListSiteRrmEvents(
	ctx context.Context,
	siteId uuid.UUID,
	band *models.Dot11BandEnum,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseEventsRrm],
	error)

ListSiteRrmEvents takes context, siteId, band, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseEventsRrm data and an error if there was an issue with the request or response. List Site RRM Events

type SitesRSSIZones

type SitesRSSIZones struct {
	// contains filtered or unexported fields
}

SitesRSSIZones represents a controller struct.

func NewSitesRSSIZones

func NewSitesRSSIZones(baseController baseController) *SitesRSSIZones

NewSitesRSSIZones creates a new instance of SitesRSSIZones. It takes a baseController as a parameter and returns a pointer to the SitesRSSIZones.

func (*SitesRSSIZones) CreateSiteRssiZone

func (s *SitesRSSIZones) CreateSiteRssiZone(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.RssiZone) (
	models.ApiResponse[models.RssiZone],
	error)

CreateSiteRssiZone takes context, siteId, body as parameters and returns an models.ApiResponse with models.RssiZone data and an error if there was an issue with the request or response. Create RSSI Zone

func (*SitesRSSIZones) DeleteSiteRssiZone

func (s *SitesRSSIZones) DeleteSiteRssiZone(
	ctx context.Context,
	siteId uuid.UUID,
	rssizoneId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteRssiZone takes context, siteId, rssizoneId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site RSSI Zone

func (*SitesRSSIZones) GetSiteRssiZone

func (s *SitesRSSIZones) GetSiteRssiZone(
	ctx context.Context,
	siteId uuid.UUID,
	rssizoneId uuid.UUID) (
	models.ApiResponse[[]models.RssiZone],
	error)

GetSiteRssiZone takes context, siteId, rssizoneId as parameters and returns an models.ApiResponse with []models.RssiZone data and an error if there was an issue with the request or response. Get Site RSSI Zone details

func (*SitesRSSIZones) ListSiteRssiZones

func (s *SitesRSSIZones) ListSiteRssiZones(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.RssiZone],
	error)

ListSiteRssiZones takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.RssiZone data and an error if there was an issue with the request or response. Get List of Site RSSI Zone (RSSI-based)

func (*SitesRSSIZones) UpdateSiteRssiZone

func (s *SitesRSSIZones) UpdateSiteRssiZone(
	ctx context.Context,
	siteId uuid.UUID,
	rssizoneId uuid.UUID,
	body *models.RssiZone) (
	models.ApiResponse[models.RssiZone],
	error)

UpdateSiteRssiZone takes context, siteId, rssizoneId, body as parameters and returns an models.ApiResponse with models.RssiZone data and an error if there was an issue with the request or response. Update Site RSSI Zone

type SitesRfdiags

type SitesRfdiags struct {
	// contains filtered or unexported fields
}

SitesRfdiags represents a controller struct.

func NewSitesRfdiags

func NewSitesRfdiags(baseController baseController) *SitesRfdiags

NewSitesRfdiags creates a new instance of SitesRfdiags. It takes a baseController as a parameter and returns a pointer to the SitesRfdiags.

func (*SitesRfdiags) DeleteSiteRfdiagRecording

func (s *SitesRfdiags) DeleteSiteRfdiagRecording(
	ctx context.Context,
	siteId uuid.UUID,
	rfdiagId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteRfdiagRecording takes context, siteId, rfdiagId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Recording

func (*SitesRfdiags) DownloadSiteRfdiagRecording

func (s *SitesRfdiags) DownloadSiteRfdiagRecording(
	ctx context.Context,
	siteId uuid.UUID,
	rfdiagId uuid.UUID) (
	models.ApiResponse[[]byte],
	error)

DownloadSiteRfdiagRecording takes context, siteId, rfdiagId as parameters and returns an models.ApiResponse with []byte data and an error if there was an issue with the request or response. Download Recording Download raw_events blob

func (*SitesRfdiags) GetSiteRfdiagRecording

func (s *SitesRfdiags) GetSiteRfdiagRecording(
	ctx context.Context,
	siteId uuid.UUID,
	rfdiagId uuid.UUID) (
	models.ApiResponse[[]models.RfDiagInfoItem],
	error)

GetSiteRfdiagRecording takes context, siteId, rfdiagId as parameters and returns an models.ApiResponse with []models.RfDiagInfoItem data and an error if there was an issue with the request or response. Get RF Diag Recording Details

func (*SitesRfdiags) GetSiteSiteRfdiagRecording

func (s *SitesRfdiags) GetSiteSiteRfdiagRecording(
	ctx context.Context,
	siteId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[][]models.RfDiagInfoItem],
	error)

GetSiteSiteRfdiagRecording takes context, siteId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with [][]models.RfDiagInfoItem data and an error if there was an issue with the request or response. List RF Glass Recording

func (*SitesRfdiags) StartSiteRecording

func (s *SitesRfdiags) StartSiteRecording(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.RfDiag) (
	models.ApiResponse[[]models.RfDiagInfoItem],
	error)

StartSiteRecording takes context, siteId, body as parameters and returns an models.ApiResponse with []models.RfDiagInfoItem data and an error if there was an issue with the request or response. Start RF Glass Recording

func (*SitesRfdiags) StopSiteRfdiagRecording

func (s *SitesRfdiags) StopSiteRfdiagRecording(
	ctx context.Context,
	siteId uuid.UUID,
	rfdiagId uuid.UUID) (
	*http.Response,
	error)

StopSiteRfdiagRecording takes context, siteId, rfdiagId as parameters and returns an *Response and an error if there was an issue with the request or response. If the recording session is active for the given rfdiag_id, it will finish the recording. duration and end_time will be updated to reflect the correct values.

func (*SitesRfdiags) UpdateSiteRfdiagRecording

func (s *SitesRfdiags) UpdateSiteRfdiagRecording(
	ctx context.Context,
	siteId uuid.UUID,
	rfdiagId uuid.UUID,
	body *models.RfDiag) (
	models.ApiResponse[[]models.RfDiagInfoItem],
	error)

UpdateSiteRfdiagRecording takes context, siteId, rfdiagId, body as parameters and returns an models.ApiResponse with []models.RfDiagInfoItem data and an error if there was an issue with the request or response. Update Recording

type SitesRogues

type SitesRogues struct {
	// contains filtered or unexported fields
}

SitesRogues represents a controller struct.

func NewSitesRogues

func NewSitesRogues(baseController baseController) *SitesRogues

NewSitesRogues creates a new instance of SitesRogues. It takes a baseController as a parameter and returns a pointer to the SitesRogues.

func (*SitesRogues) CountSiteRogueEvents

func (s *SitesRogues) CountSiteRogueEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteRogueEventsCountDistinctEnum,
	mType *models.RogueTypeEnum,
	ssid *string,
	bssid *string,
	apMac *string,
	channel *string,
	seenOnLan *bool,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteRogueEvents takes context, siteId, distinct, mType, ssid, bssid, apMac, channel, seenOnLan, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Rogue Events

func (*SitesRogues) GetSiteRogueAP

func (s *SitesRogues) GetSiteRogueAP(
	ctx context.Context,
	siteId uuid.UUID,
	rogueBssid string) (
	models.ApiResponse[models.RogueDetails],
	error)

GetSiteRogueAP takes context, siteId, rogueBssid as parameters and returns an models.ApiResponse with models.RogueDetails data and an error if there was an issue with the request or response. Get Rogue AP Details

func (*SitesRogues) ListSiteRogueAPs

func (s *SitesRogues) ListSiteRogueAPs(
	ctx context.Context,
	siteId uuid.UUID,
	mType *models.RogueTypeEnum,
	limit *int,
	start *string,
	end *string,
	duration *string,
	interval *string) (
	models.ApiResponse[models.ResponseInsightRogue],
	error)

ListSiteRogueAPs takes context, siteId, mType, limit, start, end, duration, interval as parameters and returns an models.ApiResponse with models.ResponseInsightRogue data and an error if there was an issue with the request or response. Get List of Site Rogue/Neighbor APs

func (*SitesRogues) ListSiteRogueClients

func (s *SitesRogues) ListSiteRogueClients(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	start *string,
	end *string,
	duration *string,
	interval *string) (
	models.ApiResponse[models.ResponseInsightRogueClient],
	error)

ListSiteRogueClients takes context, siteId, limit, start, end, duration, interval as parameters and returns an models.ApiResponse with models.ResponseInsightRogueClient data and an error if there was an issue with the request or response. Get List of Site Rogue Clients

func (*SitesRogues) SearchSiteRogueEvents

func (s *SitesRogues) SearchSiteRogueEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mType *models.RogueTypeEnum,
	ssid *string,
	bssid *string,
	apMac *string,
	channel *int,
	seenOnLan *bool,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsRogueSearch],
	error)

SearchSiteRogueEvents takes context, siteId, mType, ssid, bssid, apMac, channel, seenOnLan, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsRogueSearch data and an error if there was an issue with the request or response. Search Rogue Events

type SitesSLEs

type SitesSLEs struct {
	// contains filtered or unexported fields
}

SitesSLEs represents a controller struct.

func NewSitesSLEs

func NewSitesSLEs(baseController baseController) *SitesSLEs

NewSitesSLEs creates a new instance of SitesSLEs. It takes a baseController as a parameter and returns a pointer to the SitesSLEs.

func (*SitesSLEs) GetSiteSleClassifierDetails

func (s *SitesSLEs) GetSiteSleClassifierDetails(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SleSummaryScopeEnum,
	scopeId string,
	metric string,
	classifier string,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.SleClassifierSummary],
	error)

GetSiteSleClassifierDetails takes context, siteId, scope, scopeId, metric, classifier, start, end, duration as parameters and returns an models.ApiResponse with models.SleClassifierSummary data and an error if there was an issue with the request or response. Deprecated: getSiteSleClassifierDetails is deprecated Get SLE classifier details This API Endpoint is deprecated and replaced by [Get Site SLE Classifier Summary Trend]($e/Sites%20SLEs/getSiteSleClassifierSummaryTrend)

func (*SitesSLEs) GetSiteSleClassifierSummaryTrend added in v0.4.99

func (s *SitesSLEs) GetSiteSleClassifierSummaryTrend(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SleSummaryScopeEnum,
	scopeId string,
	metric string,
	classifier string,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.SleClassifierSummaryTrend],
	error)

GetSiteSleClassifierSummaryTrend takes context, siteId, scope, scopeId, metric, classifier, start, end, duration as parameters and returns an models.ApiResponse with models.SleClassifierSummaryTrend data and an error if there was an issue with the request or response. Get SLE classifier Summary Trend

func (*SitesSLEs) GetSiteSleHistogram

func (s *SitesSLEs) GetSiteSleHistogram(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleHistogramScopeParametersEnum,
	scopeId string,
	metric string,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.SleHistogram],
	error)

GetSiteSleHistogram takes context, siteId, scope, scopeId, metric, start, end, duration as parameters and returns an models.ApiResponse with models.SleHistogram data and an error if there was an issue with the request or response. Get the histogram for the SLE metric

func (*SitesSLEs) GetSiteSleImpactSummary

func (s *SitesSLEs) GetSiteSleImpactSummary(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleImpactSummaryScopeParametersEnum,
	scopeId string,
	metric string,
	start *string,
	end *string,
	duration *string,
	fields *models.SiteSleImpactSummaryFieldsParameterEnum,
	classifier *string) (
	models.ApiResponse[models.SleImpactSummary],
	error)

GetSiteSleImpactSummary takes context, siteId, scope, scopeId, metric, start, end, duration, fields, classifier as parameters and returns an models.ApiResponse with models.SleImpactSummary data and an error if there was an issue with the request or response. Get impact summary counts optionally filtered by classifier and failure type * Wireless SLE Fields: `wlan`, `device_type`, `device_os` ,`band`, `ap`, `server`, `mxedge` * Wired SLE Fields: `switch`, `client`, `vlan`, `interface`, `chassis` * WAN SLE Fields: `gateway`, `client`, `interface`, `chassis`, `peer_path`, `gateway_zones`

func (*SitesSLEs) GetSiteSleSummary

func (s *SitesSLEs) GetSiteSleSummary(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleMetricSummaryScopeParametersEnum,
	scopeId string,
	metric string,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.SleSummary],
	error)

GetSiteSleSummary takes context, siteId, scope, scopeId, metric, start, end, duration as parameters and returns an models.ApiResponse with models.SleSummary data and an error if there was an issue with the request or response. Deprecated: getSiteSleSummary is deprecated Get the summary for the SLE metric This API Endpoint is deprecated and replaced by [Get Site SLE Summary Trend]($e/Sites%20SLEs/getSiteSleSummaryTrend)

func (*SitesSLEs) GetSiteSleSummaryTrend added in v0.4.99

func (s *SitesSLEs) GetSiteSleSummaryTrend(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleMetricSummaryScopeParametersEnum,
	scopeId string,
	metric string,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.SleSummaryTrend],
	error)

GetSiteSleSummaryTrend takes context, siteId, scope, scopeId, metric, start, end, duration as parameters and returns an models.ApiResponse with models.SleSummaryTrend data and an error if there was an issue with the request or response. Get the summary for the SLE metric trend

func (*SitesSLEs) GetSiteSleThreshold

func (s *SitesSLEs) GetSiteSleThreshold(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleThresholdScopeParameterEnum,
	scopeId string,
	metric string) (
	models.ApiResponse[models.SleThreshold],
	error)

GetSiteSleThreshold takes context, siteId, scope, scopeId, metric as parameters and returns an models.ApiResponse with models.SleThreshold data and an error if there was an issue with the request or response. Get the SLE threshold

func (*SitesSLEs) ListSiteSleImpactedApplications added in v0.4.69

func (s *SitesSLEs) ListSiteSleImpactedApplications(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleScopeEnum,
	scopeId uuid.UUID,
	metric string,
	start *string,
	end *string,
	duration *string,
	classifier *string) (
	models.ApiResponse[models.SleImpactedApplications],
	error)

ListSiteSleImpactedApplications takes context, siteId, scope, scopeId, metric, start, end, duration, classifier as parameters and returns an models.ApiResponse with models.SleImpactedApplications data and an error if there was an issue with the request or response. For WAN SLEs. List the impacted interfaces optionally filtered by classifier and failure type

func (*SitesSLEs) ListSiteSleImpactedAps added in v0.4.69

func (s *SitesSLEs) ListSiteSleImpactedAps(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleImpactedApsScopeParametersEnum,
	scopeId uuid.UUID,
	metric string,
	start *string,
	end *string,
	duration *string,
	classifier *string) (
	models.ApiResponse[models.SleImpactedAps],
	error)

ListSiteSleImpactedAps takes context, siteId, scope, scopeId, metric, start, end, duration, classifier as parameters and returns an models.ApiResponse with models.SleImpactedAps data and an error if there was an issue with the request or response. For Wireless SLEs. List the impacted APs optionally filtered by classifier and failure type

func (*SitesSLEs) ListSiteSleImpactedChassis added in v0.4.69

func (s *SitesSLEs) ListSiteSleImpactedChassis(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleImpactedChassisScopeParametersEnum,
	scopeId uuid.UUID,
	metric string,
	start *string,
	end *string,
	duration *string,
	classifier *string) (
	models.ApiResponse[models.SleImpactedChassis],
	error)

ListSiteSleImpactedChassis takes context, siteId, scope, scopeId, metric, start, end, duration, classifier as parameters and returns an models.ApiResponse with models.SleImpactedChassis data and an error if there was an issue with the request or response. For Wired and WAN SLEs. List the impacted interfaces optionally filtered by classifier and failure type

func (*SitesSLEs) ListSiteSleImpactedGateways added in v0.4.69

func (s *SitesSLEs) ListSiteSleImpactedGateways(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleImpactedGatewaysScopeParametersEnum,
	scopeId uuid.UUID,
	metric string,
	start *string,
	end *string,
	duration *string,
	classifier *string) (
	models.ApiResponse[models.SleImpactedGateways],
	error)

ListSiteSleImpactedGateways takes context, siteId, scope, scopeId, metric, start, end, duration, classifier as parameters and returns an models.ApiResponse with models.SleImpactedGateways data and an error if there was an issue with the request or response. For WAN SLEs. List the impacted interfaces optionally filtered by classifier and failure type

func (*SitesSLEs) ListSiteSleImpactedInterfaces added in v0.4.69

func (s *SitesSLEs) ListSiteSleImpactedInterfaces(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleImpactedInterfacesScopeParametersEnum,
	scopeId uuid.UUID,
	metric string,
	start *string,
	end *string,
	duration *string,
	classifier *string) (
	models.ApiResponse[models.SleImpactedInterfaces],
	error)

ListSiteSleImpactedInterfaces takes context, siteId, scope, scopeId, metric, start, end, duration, classifier as parameters and returns an models.ApiResponse with models.SleImpactedInterfaces data and an error if there was an issue with the request or response. For Wired and WAN SLEs. List the impacted interfaces optionally filtered by classifier and failure type

func (*SitesSLEs) ListSiteSleImpactedSwitches added in v0.4.69

func (s *SitesSLEs) ListSiteSleImpactedSwitches(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleImpactedSwitchesScopeParametersEnum,
	scopeId uuid.UUID,
	metric string,
	start *string,
	end *string,
	duration *string,
	classifier *string) (
	models.ApiResponse[models.SleImpactedSwitches],
	error)

ListSiteSleImpactedSwitches takes context, siteId, scope, scopeId, metric, start, end, duration, classifier as parameters and returns an models.ApiResponse with models.SleImpactedSwitches data and an error if there was an issue with the request or response. For Wired SLEs. List the impacted switches optionally filtered by classifier and failure type

func (*SitesSLEs) ListSiteSleImpactedWiredClients added in v0.4.69

func (s *SitesSLEs) ListSiteSleImpactedWiredClients(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleImpactedClientsScopeParametersEnum,
	scopeId uuid.UUID,
	metric string,
	start *string,
	end *string,
	duration *string,
	classifier *string) (
	models.ApiResponse[models.SleImpactedClients],
	error)

ListSiteSleImpactedWiredClients takes context, siteId, scope, scopeId, metric, start, end, duration, classifier as parameters and returns an models.ApiResponse with models.SleImpactedClients data and an error if there was an issue with the request or response. For Wired SLEs. List the impacted interfaces optionally filtered by classifier and failure type

func (*SitesSLEs) ListSiteSleImpactedWirelessClients added in v0.4.69

func (s *SitesSLEs) ListSiteSleImpactedWirelessClients(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleImpactedUsersScopeParameterEnum,
	scopeId uuid.UUID,
	metric string,
	start *string,
	end *string,
	duration *string,
	classifier *string) (
	models.ApiResponse[models.SleImpactedUsers],
	error)

ListSiteSleImpactedWirelessClients takes context, siteId, scope, scopeId, metric, start, end, duration, classifier as parameters and returns an models.ApiResponse with models.SleImpactedUsers data and an error if there was an issue with the request or response. For Wireless SLEs. List the impacted wireless users optionally filtered by classifier and failure type

func (*SitesSLEs) ListSiteSleMetricClassifiers added in v0.4.69

func (s *SitesSLEs) ListSiteSleMetricClassifiers(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleMetricClassifiersScopeParametersEnum,
	scopeId string,
	metric string) (
	models.ApiResponse[[]string],
	error)

ListSiteSleMetricClassifiers takes context, siteId, scope, scopeId, metric as parameters and returns an models.ApiResponse with []string data and an error if there was an issue with the request or response. List classifiers for a specific metric

func (*SitesSLEs) ListSiteSlesMetrics added in v0.4.69

func (s *SitesSLEs) ListSiteSlesMetrics(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleMetricsScopeParametersEnum,
	scopeId string) (
	models.ApiResponse[models.SiteSleMetrics],
	error)

ListSiteSlesMetrics takes context, siteId, scope, scopeId as parameters and returns an models.ApiResponse with models.SiteSleMetrics data and an error if there was an issue with the request or response. List the metrics for the given scope

func (*SitesSLEs) ReplaceSiteSleThreshold

func (s *SitesSLEs) ReplaceSiteSleThreshold(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleThresholdScopeParameterEnum,
	scopeId string,
	metric string,
	body *models.SleThreshold) (
	models.ApiResponse[models.SleThreshold],
	error)

ReplaceSiteSleThreshold takes context, siteId, scope, scopeId, metric, body as parameters and returns an models.ApiResponse with models.SleThreshold data and an error if there was an issue with the request or response. Replace the SLE threshold

func (*SitesSLEs) UpdateSiteSleThreshold

func (s *SitesSLEs) UpdateSiteSleThreshold(
	ctx context.Context,
	siteId uuid.UUID,
	scope models.SiteSleThresholdScopeParameterEnum,
	scopeId string,
	metric string,
	body *models.SleThreshold) (
	models.ApiResponse[models.SleThreshold],
	error)

UpdateSiteSleThreshold takes context, siteId, scope, scopeId, metric, body as parameters and returns an models.ApiResponse with models.SleThreshold data and an error if there was an issue with the request or response. Update the SLE threshold

type SitesSecIntelProfiles added in v0.3.17

type SitesSecIntelProfiles struct {
	// contains filtered or unexported fields
}

SitesSecIntelProfiles represents a controller struct.

func NewSitesSecIntelProfiles added in v0.3.17

func NewSitesSecIntelProfiles(baseController baseController) *SitesSecIntelProfiles

NewSitesSecIntelProfiles creates a new instance of SitesSecIntelProfiles. It takes a baseController as a parameter and returns a pointer to the SitesSecIntelProfiles.

func (*SitesSecIntelProfiles) ListSiteSecIntelProfilesDerived added in v0.3.17

func (s *SitesSecIntelProfiles) ListSiteSecIntelProfilesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.SecintelProfile],
	error)

ListSiteSecIntelProfilesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.SecintelProfile data and an error if there was an issue with the request or response. Get the list of derived Sky-ATP secintel profiles a Site

type SitesServicePolicies

type SitesServicePolicies struct {
	// contains filtered or unexported fields
}

SitesServicePolicies represents a controller struct.

func NewSitesServicePolicies

func NewSitesServicePolicies(baseController baseController) *SitesServicePolicies

NewSitesServicePolicies creates a new instance of SitesServicePolicies. It takes a baseController as a parameter and returns a pointer to the SitesServicePolicies.

func (*SitesServicePolicies) ListSiteServicePoliciesDerived

func (s *SitesServicePolicies) ListSiteServicePoliciesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.OrgServicePolicy],
	error)

ListSiteServicePoliciesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.OrgServicePolicy data and an error if there was an issue with the request or response. Get the list of derived Service Policies for a Site

type SitesServices

type SitesServices struct {
	// contains filtered or unexported fields
}

SitesServices represents a controller struct.

func NewSitesServices

func NewSitesServices(baseController baseController) *SitesServices

NewSitesServices creates a new instance of SitesServices. It takes a baseController as a parameter and returns a pointer to the SitesServices.

func (*SitesServices) CountSiteServicePathEvents

func (s *SitesServices) CountSiteServicePathEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteServiceEventsCountDistinctEnum,
	mType *string,
	text *string,
	vpnName *string,
	vpnPath *string,
	policy *string,
	portId *string,
	model *string,
	version *string,
	mac *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteServicePathEvents takes context, siteId, distinct, mType, text, vpnName, vpnPath, policy, portId, model, version, mac, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Service Path Events

func (*SitesServices) ListSiteServicesDerived

func (s *SitesServices) ListSiteServicesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.Service],
	error)

ListSiteServicesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.Service data and an error if there was an issue with the request or response. Get the list of derived Services for a Site

func (*SitesServices) SearchSiteServicePathEvents

func (s *SitesServices) SearchSiteServicePathEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mType *string,
	text *string,
	peerPortId *string,
	peerMac *string,
	vpnName *string,
	vpnPath *string,
	policy *string,
	portId *string,
	model *string,
	version *string,
	mac *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsPathSearch],
	error)

SearchSiteServicePathEvents takes context, siteId, mType, text, peerPortId, peerMac, vpnName, vpnPath, policy, portId, model, version, mac, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsPathSearch data and an error if there was an issue with the request or response. Search Service Path Events

type SitesSetting

type SitesSetting struct {
	// contains filtered or unexported fields
}

SitesSetting represents a controller struct.

func NewSitesSetting

func NewSitesSetting(baseController baseController) *SitesSetting

NewSitesSetting creates a new instance of SitesSetting. It takes a baseController as a parameter and returns a pointer to the SitesSetting.

func (*SitesSetting) CreateSiteWatchedStations

func (s *SitesSetting) CreateSiteWatchedStations(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.MacAddresses) (
	models.ApiResponse[models.MacAddresses],
	error)

CreateSiteWatchedStations takes context, siteId, body as parameters and returns an models.ApiResponse with models.MacAddresses data and an error if there was an issue with the request or response. This endpoint is to provide list of client macs for annotation as watched station. Retrieve the current clients list from `watched_station_url` under Site:Setting

func (*SitesSetting) CreateSiteWirelessClientsAllowlist

func (s *SitesSetting) CreateSiteWirelessClientsAllowlist(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.MacAddresses) (
	models.ApiResponse[models.MacAddresses],
	error)

CreateSiteWirelessClientsAllowlist takes context, siteId, body as parameters and returns an models.ApiResponse with models.MacAddresses data and an error if there was an issue with the request or response. This endpoint is to provide list of client macs for annotation as whitelist. Retrieve the current clients list from `whitelist_url` under Site:Setting

func (*SitesSetting) CreateSiteWirelessClientsBlocklist

func (s *SitesSetting) CreateSiteWirelessClientsBlocklist(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.MacAddresses) (
	models.ApiResponse[models.MacAddresses],
	error)

CreateSiteWirelessClientsBlocklist takes context, siteId, body as parameters and returns an models.ApiResponse with models.MacAddresses data and an error if there was an issue with the request or response. This endpoint is to provide list of client macs for annotation blacklist. Retrieve the current clients list `blacklist_url` under Site:Setting

func (*SitesSetting) DeleteSiteWatchedStations

func (s *SitesSetting) DeleteSiteWatchedStations(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWatchedStations takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Watched Station Clients

func (*SitesSetting) DeleteSiteWirelessClientsAllowlist

func (s *SitesSetting) DeleteSiteWirelessClientsAllowlist(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWirelessClientsAllowlist takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Whitelist Station Clients

func (*SitesSetting) DeleteSiteWirelessClientsBlocklist

func (s *SitesSetting) DeleteSiteWirelessClientsBlocklist(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWirelessClientsBlocklist takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Blacklist Station Clients

func (*SitesSetting) GetSiteSetting

func (s *SitesSetting) GetSiteSetting(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.SiteSetting],
	error)

GetSiteSetting takes context, siteId as parameters and returns an models.ApiResponse with models.SiteSetting data and an error if there was an issue with the request or response. Get the Site Settings

func (*SitesSetting) GetSiteSettingDerived added in v0.4.0

func (s *SitesSetting) GetSiteSettingDerived(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.SiteSettingDerived],
	error)

GetSiteSettingDerived takes context, siteId as parameters and returns an models.ApiResponse with models.SiteSettingDerived data and an error if there was an issue with the request or response. Get the Derived Site Settings, generated by merging the Org level templates (network templates, gateway templates) and the Site level configuration. If the same parameter is defined in both scopes, the Site level one is used. In addition, the Zoom and Teams accounts are also merged into the derived settings.

func (*SitesSetting) UpdateSiteSettings

func (s *SitesSetting) UpdateSiteSettings(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.SiteSetting) (
	models.ApiResponse[models.SiteSetting],
	error)

UpdateSiteSettings takes context, siteId, body as parameters and returns an models.ApiResponse with models.SiteSetting data and an error if there was an issue with the request or response. Update Site Settings

type SitesSiteTemplates

type SitesSiteTemplates struct {
	// contains filtered or unexported fields
}

SitesSiteTemplates represents a controller struct.

func NewSitesSiteTemplates

func NewSitesSiteTemplates(baseController baseController) *SitesSiteTemplates

NewSitesSiteTemplates creates a new instance of SitesSiteTemplates. It takes a baseController as a parameter and returns a pointer to the SitesSiteTemplates.

func (*SitesSiteTemplates) ListSiteSiteTemplatesDerived added in v0.4.74

func (s *SitesSiteTemplates) ListSiteSiteTemplatesDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.SiteTemplate],
	error)

ListSiteSiteTemplatesDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.SiteTemplate data and an error if there was an issue with the request or response. Get the list of derived Site Templates for Site

type SitesSkyatp

type SitesSkyatp struct {
	// contains filtered or unexported fields
}

SitesSkyatp represents a controller struct.

func NewSitesSkyatp

func NewSitesSkyatp(baseController baseController) *SitesSkyatp

NewSitesSkyatp creates a new instance of SitesSkyatp. It takes a baseController as a parameter and returns a pointer to the SitesSkyatp.

func (*SitesSkyatp) CountSiteSkyatpEvents

func (s *SitesSkyatp) CountSiteSkyatpEvents(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteSkyAtpEventsCountDistinctEnum,
	mType *string,
	mac *string,
	deviceMac *string,
	threatLevel *int,
	ip *string,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteSkyatpEvents takes context, siteId, distinct, mType, mac, deviceMac, threatLevel, ip, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Skyatp Events (WIP)

func (*SitesSkyatp) SearchSiteSkyatpEvents

func (s *SitesSkyatp) SearchSiteSkyatpEvents(
	ctx context.Context,
	siteId uuid.UUID,
	mType *string,
	mac *string,
	deviceMac *string,
	threatLevel *int,
	ip *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseEventsSkyAtpSearch],
	error)

SearchSiteSkyatpEvents takes context, siteId, mType, mac, deviceMac, threatLevel, ip, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseEventsSkyAtpSearch data and an error if there was an issue with the request or response. Search Skyatp Events (WIP)

type SitesSpectrumAnalysis added in v0.4.85

type SitesSpectrumAnalysis struct {
	// contains filtered or unexported fields
}

SitesSpectrumAnalysis represents a controller struct.

func NewSitesSpectrumAnalysis added in v0.4.85

func NewSitesSpectrumAnalysis(baseController baseController) *SitesSpectrumAnalysis

NewSitesSpectrumAnalysis creates a new instance of SitesSpectrumAnalysis. It takes a baseController as a parameter and returns a pointer to the SitesSpectrumAnalysis.

func (*SitesSpectrumAnalysis) GetSiteRunningSpectrumAnalysis added in v0.4.85

func (s *SitesSpectrumAnalysis) GetSiteRunningSpectrumAnalysis(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.ResponseRunningSpectrumAnalysis],
	error)

GetSiteRunningSpectrumAnalysis takes context, siteId as parameters and returns an models.ApiResponse with models.ResponseRunningSpectrumAnalysis data and an error if there was an issue with the request or response. Get the running spectrum analysis for a site

func (*SitesSpectrumAnalysis) InitiateSiteAnalyzeSpectrum added in v0.4.85

func (s *SitesSpectrumAnalysis) InitiateSiteAnalyzeSpectrum(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.SpectrumAnalysis) (
	models.ApiResponse[models.WebsocketSession],
	error)

InitiateSiteAnalyzeSpectrum takes context, siteId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Initiate a spectrum analysis for a site The output will be available through websocket. As there can be multiple command issued against the same device at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/analyze_spectrum" } ``` #### Example output from ws stream ```json { "event": "data", "channel": "/sites/4ac1dcf4-9d8b-7211-65c4-057819f0862b/analyze_spectrum", "data": { "session": "session_id", "fft_samples": [ { "frequency": 2437.0, "rssi / signal ?": -93 }, ... ], "channel_usage": [ { "channel": 36, "noise": -78, "wifi": 0.13, "non_wifi": 0.08 }, ... ] } } ```

func (*SitesSpectrumAnalysis) ListSiteSpectrumAnalysis added in v0.4.85

func (s *SitesSpectrumAnalysis) ListSiteSpectrumAnalysis(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.ResponsePastSpectrumAnalysis],
	error)

ListSiteSpectrumAnalysis takes context, siteId, limit, start, end, duration as parameters and returns an models.ApiResponse with models.ResponsePastSpectrumAnalysis data and an error if there was an issue with the request or response. List the past spectrum analysis for a site

type SitesStats added in v0.2.25

type SitesStats struct {
	// contains filtered or unexported fields
}

SitesStats represents a controller struct.

func NewSitesStats added in v0.2.25

func NewSitesStats(baseController baseController) *SitesStats

NewSitesStats creates a new instance of SitesStats. It takes a baseController as a parameter and returns a pointer to the SitesStats.

func (*SitesStats) GetSiteStats added in v0.2.25

func (s *SitesStats) GetSiteStats(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.StatsSite],
	error)

GetSiteStats takes context, siteId as parameters and returns an models.ApiResponse with models.StatsSite data and an error if there was an issue with the request or response. Get Sites Stats

type SitesStatsApps added in v0.2.25

type SitesStatsApps struct {
	// contains filtered or unexported fields
}

SitesStatsApps represents a controller struct.

func NewSitesStatsApps added in v0.2.25

func NewSitesStatsApps(baseController baseController) *SitesStatsApps

NewSitesStatsApps creates a new instance of SitesStatsApps. It takes a baseController as a parameter and returns a pointer to the SitesStatsApps.

func (*SitesStatsApps) CountSiteApps added in v0.2.25

func (s *SitesStatsApps) CountSiteApps(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteAppsCountDistinctEnum,
	deviceMac *string,
	app *string,
	wired *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteApps takes context, siteId, distinct, deviceMac, app, wired, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Applications

type SitesStatsAssets added in v0.2.25

type SitesStatsAssets struct {
	// contains filtered or unexported fields
}

SitesStatsAssets represents a controller struct.

func NewSitesStatsAssets added in v0.2.25

func NewSitesStatsAssets(baseController baseController) *SitesStatsAssets

NewSitesStatsAssets creates a new instance of SitesStatsAssets. It takes a baseController as a parameter and returns a pointer to the SitesStatsAssets.

func (*SitesStatsAssets) CountSiteAssets added in v0.2.25

func (s *SitesStatsAssets) CountSiteAssets(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteAssetsCountDistinctEnum,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteAssets takes context, siteId, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Site Asset

func (*SitesStatsAssets) GetSiteAssetStats added in v0.2.25

func (s *SitesStatsAssets) GetSiteAssetStats(
	ctx context.Context,
	siteId uuid.UUID,
	assetId uuid.UUID,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.StatsAsset],
	error)

GetSiteAssetStats takes context, siteId, assetId, start, end, duration as parameters and returns an models.ApiResponse with models.StatsAsset data and an error if there was an issue with the request or response. Get Site Asset Details

func (*SitesStatsAssets) GetSiteAssetsOfInterest added in v0.2.25

func (s *SitesStatsAssets) GetSiteAssetsOfInterest(
	ctx context.Context,
	siteId uuid.UUID,
	duration *string,
	start *string,
	end *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.AssetOfInterest],
	error)

GetSiteAssetsOfInterest takes context, siteId, duration, start, end, limit, page as parameters and returns an models.ApiResponse with []models.AssetOfInterest data and an error if there was an issue with the request or response. Get a list of BLE beacons that matches Asset or AssetFilter

func (*SitesStatsAssets) GetSiteDiscoveredAssetByMap added in v0.2.25

func (s *SitesStatsAssets) GetSiteDiscoveredAssetByMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	models.ApiResponse[[]models.StatsAsset],
	error)

GetSiteDiscoveredAssetByMap takes context, siteId, mapId as parameters and returns an models.ApiResponse with []models.StatsAsset data and an error if there was an issue with the request or response. Get a list of BLE beacons that we discovered (whether they’ re defined as assets or not)

func (*SitesStatsAssets) ListSiteAssetsStats added in v0.2.25

func (s *SitesStatsAssets) ListSiteAssetsStats(
	ctx context.Context,
	siteId uuid.UUID,
	mapId *uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsAsset],
	error)

ListSiteAssetsStats takes context, siteId, mapId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with []models.StatsAsset data and an error if there was an issue with the request or response. List asset statistics for a site over the requested time range. Use [List Org Asset Stats]($e/Orgs%20Stats%20-%20Assets/listOrgAssetsStats) to retrieve asset statistics across the organization.

func (*SitesStatsAssets) ListSiteDiscoveredAssets added in v0.2.25

func (s *SitesStatsAssets) ListSiteDiscoveredAssets(
	ctx context.Context,
	siteId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Asset],
	error)

ListSiteDiscoveredAssets takes context, siteId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with []models.Asset data and an error if there was an issue with the request or response. Get List of Site Discovered BLE Assets that doesn’t match any of the Asset / Assetfilters

func (*SitesStatsAssets) SearchSiteAssets added in v0.2.25

func (s *SitesStatsAssets) SearchSiteAssets(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	mapId *string,
	ibeaconUuid *string,
	ibeaconMajor *int,
	ibeaconMinor *int,
	eddystoneUidNamespace *string,
	eddystoneUidInstance *string,
	eddystoneUrl *string,
	deviceName *string,
	by *string,
	name *string,
	apMac *string,
	beam *string,
	rssi *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseStatsAssets],
	error)

SearchSiteAssets takes context, siteId, mac, mapId, ibeaconUuid, ibeaconMajor, ibeaconMinor, eddystoneUidNamespace, eddystoneUidInstance, eddystoneUrl, deviceName, by, name, apMac, beam, rssi, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseStatsAssets data and an error if there was an issue with the request or response. Search asset statistics for a site with filters for asset identifiers, device, map, beacon, AP, RSSI, and time range. Use [Search Org Assets]($e/Orgs%20Stats%20-%20Assets/searchOrgAssets) to search asset statistics across the organization.

type SitesStatsBGPPeers added in v0.2.25

type SitesStatsBGPPeers struct {
	// contains filtered or unexported fields
}

SitesStatsBGPPeers represents a controller struct.

func NewSitesStatsBGPPeers added in v0.2.25

func NewSitesStatsBGPPeers(baseController baseController) *SitesStatsBGPPeers

NewSitesStatsBGPPeers creates a new instance of SitesStatsBGPPeers. It takes a baseController as a parameter and returns a pointer to the SitesStatsBGPPeers.

func (*SitesStatsBGPPeers) CountSiteBgpStats added in v0.2.25

func (s *SitesStatsBGPPeers) CountSiteBgpStats(
	ctx context.Context,
	siteId uuid.UUID,
	state *string,
	distinct *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteBgpStats takes context, siteId, state, distinct, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count BGP peer statistics for a site, optionally grouped by the `distinct` field and filtered by peer state. Use [Count Org BGP Stats]($e/Orgs%20Stats%20-%20BGP%20Peers/countOrgBgpStats) to count BGP peer statistics across the organization.

func (*SitesStatsBGPPeers) SearchSiteBgpStats added in v0.2.25

func (s *SitesStatsBGPPeers) SearchSiteBgpStats(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	neighborMac *string,
	vrfName *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseSearchBgps],
	error)

SearchSiteBgpStats takes context, siteId, mac, neighborMac, vrfName, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseSearchBgps data and an error if there was an issue with the request or response. Search BGP peer statistics for a site with filters for device, neighbor, VRF, and time range. Use [Search Org BGP Stats]($e/Orgs%20Stats%20-%20BGP%20Peers/searchOrgBgpStats) to search BGP peer statistics across the organization.

type SitesStatsBeacons added in v0.2.25

type SitesStatsBeacons struct {
	// contains filtered or unexported fields
}

SitesStatsBeacons represents a controller struct.

func NewSitesStatsBeacons added in v0.2.25

func NewSitesStatsBeacons(baseController baseController) *SitesStatsBeacons

NewSitesStatsBeacons creates a new instance of SitesStatsBeacons. It takes a baseController as a parameter and returns a pointer to the SitesStatsBeacons.

func (*SitesStatsBeacons) ListSiteBeaconsStats added in v0.2.25

func (s *SitesStatsBeacons) ListSiteBeaconsStats(
	ctx context.Context,
	siteId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsBeacon],
	error)

ListSiteBeaconsStats takes context, siteId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with []models.StatsBeacon data and an error if there was an issue with the request or response. Get List of Site Beacons Stats

type SitesStatsCalls added in v0.2.25

type SitesStatsCalls struct {
	// contains filtered or unexported fields
}

SitesStatsCalls represents a controller struct.

func NewSitesStatsCalls added in v0.2.25

func NewSitesStatsCalls(baseController baseController) *SitesStatsCalls

NewSitesStatsCalls creates a new instance of SitesStatsCalls. It takes a baseController as a parameter and returns a pointer to the SitesStatsCalls.

func (*SitesStatsCalls) CountSiteCalls added in v0.2.25

func (s *SitesStatsCalls) CountSiteCalls(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.CountSiteCallsDistinctEnum,
	rating *int,
	app *string,
	start *string,
	end *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteCalls takes context, siteId, distinct, rating, app, start, end, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Calls

func (*SitesStatsCalls) GetSiteCallsSummary added in v0.4.0

func (s *SitesStatsCalls) GetSiteCallsSummary(
	ctx context.Context,
	siteId uuid.UUID,
	apMac *string,
	app *string,
	wired *bool,
	start *string,
	end *string) (
	models.ApiResponse[models.ResponseStatsCallsSummary],
	error)

GetSiteCallsSummary takes context, siteId, apMac, app, wired, start, end as parameters and returns an models.ApiResponse with models.ResponseStatsCallsSummary data and an error if there was an issue with the request or response. Summarized, aggregated stats for the site calls

func (*SitesStatsCalls) ListSiteTroubleshootCalls added in v0.2.25

func (s *SitesStatsCalls) ListSiteTroubleshootCalls(
	ctx context.Context,
	siteId uuid.UUID,
	ap *string,
	meetingId *string,
	mac *string,
	app *string,
	wired *bool,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponseCallTroubleshootSummary],
	error)

ListSiteTroubleshootCalls takes context, siteId, ap, meetingId, mac, app, wired, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponseCallTroubleshootSummary data and an error if there was an issue with the request or response. Summary of calls troubleshoot by site

func (*SitesStatsCalls) SearchSiteCalls added in v0.2.25

func (s *SitesStatsCalls) SearchSiteCalls(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	app *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseStatsCalls],
	error)

SearchSiteCalls takes context, siteId, mac, app, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseStatsCalls data and an error if there was an issue with the request or response. Search Calls

func (*SitesStatsCalls) TroubleshootSiteCall added in v0.2.25

func (s *SitesStatsCalls) TroubleshootSiteCall(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string,
	meetingId string,
	mac *string,
	app *string,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.CallTroubleshoot],
	error)

TroubleshootSiteCall takes context, siteId, clientMac, meetingId, mac, app, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.CallTroubleshoot data and an error if there was an issue with the request or response. Troubleshoot a call

type SitesStatsClientsSDK added in v0.2.25

type SitesStatsClientsSDK struct {
	// contains filtered or unexported fields
}

SitesStatsClientsSDK represents a controller struct.

func NewSitesStatsClientsSDK added in v0.2.25

func NewSitesStatsClientsSDK(baseController baseController) *SitesStatsClientsSDK

NewSitesStatsClientsSDK creates a new instance of SitesStatsClientsSDK. It takes a baseController as a parameter and returns a pointer to the SitesStatsClientsSDK.

func (*SitesStatsClientsSDK) GetSiteSdkStats added in v0.2.25

func (s *SitesStatsClientsSDK) GetSiteSdkStats(
	ctx context.Context,
	siteId uuid.UUID,
	sdkclientId uuid.UUID) (
	models.ApiResponse[models.SdkstatsWirelessClient],
	error)

GetSiteSdkStats takes context, siteId, sdkclientId as parameters and returns an models.ApiResponse with models.SdkstatsWirelessClient data and an error if there was an issue with the request or response. Get Detail Stats of a SdkClient

func (*SitesStatsClientsSDK) GetSiteSdkStatsByMap added in v0.2.25

func (s *SitesStatsClientsSDK) GetSiteSdkStatsByMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	models.ApiResponse[[]models.StatsSdkclient],
	error)

GetSiteSdkStatsByMap takes context, siteId, mapId as parameters and returns an models.ApiResponse with []models.StatsSdkclient data and an error if there was an issue with the request or response. Get SdkClient Stats By Map

type SitesStatsClientsWireless added in v0.2.25

type SitesStatsClientsWireless struct {
	// contains filtered or unexported fields
}

SitesStatsClientsWireless represents a controller struct.

func NewSitesStatsClientsWireless added in v0.2.25

func NewSitesStatsClientsWireless(baseController baseController) *SitesStatsClientsWireless

NewSitesStatsClientsWireless creates a new instance of SitesStatsClientsWireless. It takes a baseController as a parameter and returns a pointer to the SitesStatsClientsWireless.

func (*SitesStatsClientsWireless) GetSiteWirelessClientStats added in v0.2.25

func (s *SitesStatsClientsWireless) GetSiteWirelessClientStats(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string,
	wired *bool) (
	models.ApiResponse[models.StatsClient],
	error)

GetSiteWirelessClientStats takes context, siteId, clientMac, wired as parameters and returns an models.ApiResponse with models.StatsClient data and an error if there was an issue with the request or response. Get Site Client Stats Details

func (*SitesStatsClientsWireless) GetSiteWirelessClientsStatsByMap added in v0.2.25

func (s *SitesStatsClientsWireless) GetSiteWirelessClientsStatsByMap(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsWirelessClient],
	error)

GetSiteWirelessClientsStatsByMap takes context, siteId, mapId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with []models.StatsWirelessClient data and an error if there was an issue with the request or response. Get Site Clients Stats By Map

func (*SitesStatsClientsWireless) ListSiteUnconnectedClientStats added in v0.2.25

func (s *SitesStatsClientsWireless) ListSiteUnconnectedClientStats(
	ctx context.Context,
	siteId uuid.UUID,
	mapId uuid.UUID) (
	models.ApiResponse[[]models.StatsUnconnectedClient],
	error)

ListSiteUnconnectedClientStats takes context, siteId, mapId as parameters and returns an models.ApiResponse with []models.StatsUnconnectedClient data and an error if there was an issue with the request or response. Get List of Site Unconnected Client Location

func (*SitesStatsClientsWireless) ListSiteWirelessClientsStats added in v0.2.25

func (s *SitesStatsClientsWireless) ListSiteWirelessClientsStats(
	ctx context.Context,
	siteId uuid.UUID,
	wired *bool,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[[]models.StatsClient],
	error)

ListSiteWirelessClientsStats takes context, siteId, wired, limit, start, end, duration as parameters and returns an models.ApiResponse with []models.StatsClient data and an error if there was an issue with the request or response. Get List of Site All Clients Stats Details

type SitesStatsDevices added in v0.2.25

type SitesStatsDevices struct {
	// contains filtered or unexported fields
}

SitesStatsDevices represents a controller struct.

func NewSitesStatsDevices added in v0.2.25

func NewSitesStatsDevices(baseController baseController) *SitesStatsDevices

NewSitesStatsDevices creates a new instance of SitesStatsDevices. It takes a baseController as a parameter and returns a pointer to the SitesStatsDevices.

func (*SitesStatsDevices) GetSiteAllClientsStatsByDevice added in v0.2.25

func (s *SitesStatsDevices) GetSiteAllClientsStatsByDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[[]models.StatsWirelessClient],
	error)

GetSiteAllClientsStatsByDevice takes context, siteId, deviceId as parameters and returns an models.ApiResponse with []models.StatsWirelessClient data and an error if there was an issue with the request or response. Get wireless client stat by Device

func (*SitesStatsDevices) GetSiteDeviceStats added in v0.2.25

func (s *SitesStatsDevices) GetSiteDeviceStats(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	fields *string) (
	models.ApiResponse[models.StatsDevice],
	error)

GetSiteDeviceStats takes context, siteId, deviceId, fields as parameters and returns an models.ApiResponse with models.StatsDevice data and an error if there was an issue with the request or response. Get Site Device Stats Details

func (*SitesStatsDevices) GetSiteGatewayMetrics added in v0.2.25

func (s *SitesStatsDevices) GetSiteGatewayMetrics(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.GatewayMetrics],
	error)

GetSiteGatewayMetrics takes context, siteId as parameters and returns an models.ApiResponse with models.GatewayMetrics data and an error if there was an issue with the request or response. Get Site Gateway Metrics

func (*SitesStatsDevices) GetSiteSwitchesMetrics added in v0.2.25

GetSiteSwitchesMetrics takes context, siteId, mType, scope, switchMac as parameters and returns an models.ApiResponse with models.ResponseSwitchMetrics data and an error if there was an issue with the request or response. Get version compliance metrics for managed or monitored switches

func (*SitesStatsDevices) ListSiteDevicesStats added in v0.2.25

func (s *SitesStatsDevices) ListSiteDevicesStats(
	ctx context.Context,
	siteId uuid.UUID,
	mType *string,
	status *models.StatDeviceStatusFilterEnum,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsDevice],
	error)

ListSiteDevicesStats takes context, siteId, mType, status, limit, page as parameters and returns an models.ApiResponse with []models.StatsDevice data and an error if there was an issue with the request or response. List device statistics for a site, including high-level status and performance fields over the requested time range. Use [List Org Device Stats]($e/Orgs%20Stats%20-%20Devices/listOrgDevicesStats) to retrieve device statistics across the organization.

type SitesStatsDiscoveredSwitches added in v0.2.25

type SitesStatsDiscoveredSwitches struct {
	// contains filtered or unexported fields
}

SitesStatsDiscoveredSwitches represents a controller struct.

func NewSitesStatsDiscoveredSwitches added in v0.2.25

func NewSitesStatsDiscoveredSwitches(baseController baseController) *SitesStatsDiscoveredSwitches

NewSitesStatsDiscoveredSwitches creates a new instance of SitesStatsDiscoveredSwitches. It takes a baseController as a parameter and returns a pointer to the SitesStatsDiscoveredSwitches.

func (*SitesStatsDiscoveredSwitches) CountSiteDiscoveredSwitches added in v0.2.25

func (s *SitesStatsDiscoveredSwitches) CountSiteDiscoveredSwitches(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteDiscoveredSwitchesCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteDiscoveredSwitches takes context, siteId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Discovered Switches

func (*SitesStatsDiscoveredSwitches) ListSiteDiscoveredSwitchesMetrics added in v0.4.69

func (s *SitesStatsDiscoveredSwitches) ListSiteDiscoveredSwitchesMetrics(
	ctx context.Context,
	siteId uuid.UUID,
	threshold *string,
	systemName *string) (
	models.ApiResponse[models.ResponseDswitchesMetrics],
	error)

ListSiteDiscoveredSwitchesMetrics takes context, siteId, threshold, systemName as parameters and returns an models.ApiResponse with models.ResponseDswitchesMetrics data and an error if there was an issue with the request or response. Discovered switches related metrics, lists related switch system names & details if not compliant

func (*SitesStatsDiscoveredSwitches) SearchSiteDiscoveredSwitches added in v0.2.25

func (s *SitesStatsDiscoveredSwitches) SearchSiteDiscoveredSwitches(
	ctx context.Context,
	siteId uuid.UUID,
	adopted *bool,
	systemName *string,
	hostname *string,
	vendor *string,
	model *string,
	version *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseDiscoveredSwitches],
	error)

SearchSiteDiscoveredSwitches takes context, siteId, adopted, systemName, hostname, vendor, model, version, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseDiscoveredSwitches data and an error if there was an issue with the request or response. Search Discovered Switches

func (*SitesStatsDiscoveredSwitches) SearchSiteDiscoveredSwitchesMetrics added in v0.2.25

func (s *SitesStatsDiscoveredSwitches) SearchSiteDiscoveredSwitchesMetrics(
	ctx context.Context,
	siteId uuid.UUID,
	scope *models.DiscoveredSwitchesMetricScopeEnum,
	mType *models.DiscoveredSwitchMetricTypeEnum,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseDiscoveredSwitchMetrics],
	error)

SearchSiteDiscoveredSwitchesMetrics takes context, siteId, scope, mType, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseDiscoveredSwitchMetrics data and an error if there was an issue with the request or response. Search Discovered Switch Metrics

type SitesStatsIoTEndpoints added in v0.4.103

type SitesStatsIoTEndpoints struct {
	// contains filtered or unexported fields
}

SitesStatsIoTEndpoints represents a controller struct.

func NewSitesStatsIoTEndpoints added in v0.4.103

func NewSitesStatsIoTEndpoints(baseController baseController) *SitesStatsIoTEndpoints

NewSitesStatsIoTEndpoints creates a new instance of SitesStatsIoTEndpoints. It takes a baseController as a parameter and returns a pointer to the SitesStatsIoTEndpoints.

func (*SitesStatsIoTEndpoints) CountSiteIotEndpoints added in v0.4.107

func (s *SitesStatsIoTEndpoints) CountSiteIotEndpoints(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SiteIotendpointsCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteIotEndpoints takes context, siteId, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count IoT Endpoints

func (*SitesStatsIoTEndpoints) RejoinSiteIotEndpointZigbee added in v0.4.107

func (s *SitesStatsIoTEndpoints) RejoinSiteIotEndpointZigbee(
	ctx context.Context,
	siteId uuid.UUID,
	id uuid.UUID) (
	*http.Response,
	error)

RejoinSiteIotEndpointZigbee takes context, siteId, id as parameters and returns an *Response and an error if there was an issue with the request or response. Trigger a Zigbee endpoint to rejoin the network

func (*SitesStatsIoTEndpoints) SearchSiteIotEndpoints added in v0.4.103

func (s *SitesStatsIoTEndpoints) SearchSiteIotEndpoints(
	ctx context.Context,
	siteId uuid.UUID,
	apMac *string,
	mac *string,
	mType *string,
	mfg *string,
	limit *int,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.ResponseIotEndpointsSearch],
	error)

SearchSiteIotEndpoints takes context, siteId, apMac, mac, mType, mfg, limit, start, end, duration as parameters and returns an models.ApiResponse with models.ResponseIotEndpointsSearch data and an error if there was an issue with the request or response. Search IoT Endpoints

type SitesStatsMxEdges added in v0.2.25

type SitesStatsMxEdges struct {
	// contains filtered or unexported fields
}

SitesStatsMxEdges represents a controller struct.

func NewSitesStatsMxEdges added in v0.2.25

func NewSitesStatsMxEdges(baseController baseController) *SitesStatsMxEdges

NewSitesStatsMxEdges creates a new instance of SitesStatsMxEdges. It takes a baseController as a parameter and returns a pointer to the SitesStatsMxEdges.

func (*SitesStatsMxEdges) GetSiteMxEdgeStats added in v0.2.25

func (s *SitesStatsMxEdges) GetSiteMxEdgeStats(
	ctx context.Context,
	siteId uuid.UUID,
	mxedgeId uuid.UUID,
	start *string,
	end *string,
	duration *string) (
	models.ApiResponse[models.StatsMxedge],
	error)

GetSiteMxEdgeStats takes context, siteId, mxedgeId, start, end, duration as parameters and returns an models.ApiResponse with models.StatsMxedge data and an error if there was an issue with the request or response. Get One Site MxEdge Stats

func (*SitesStatsMxEdges) ListSiteMxEdgesStats added in v0.2.25

func (s *SitesStatsMxEdges) ListSiteMxEdgesStats(
	ctx context.Context,
	siteId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.StatsMxedge],
	error)

ListSiteMxEdgesStats takes context, siteId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with []models.StatsMxedge data and an error if there was an issue with the request or response. List Mist Edge statistics for a site over the requested time range. Use [List Org Mist Edge Stats]($e/Orgs%20Stats%20-%20MxEdges/listOrgMxEdgesStats) to retrieve Mist Edge statistics across the organization.

type SitesStatsOspf added in v0.4.92

type SitesStatsOspf struct {
	// contains filtered or unexported fields
}

SitesStatsOspf represents a controller struct.

func NewSitesStatsOspf added in v0.4.92

func NewSitesStatsOspf(baseController baseController) *SitesStatsOspf

NewSitesStatsOspf creates a new instance of SitesStatsOspf. It takes a baseController as a parameter and returns a pointer to the SitesStatsOspf.

func (*SitesStatsOspf) CountSiteOspfStats added in v0.4.92

func (s *SitesStatsOspf) CountSiteOspfStats(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.OspfPeerStatsCountDistinctEnum,
	start *string,
	end *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteOspfStats takes context, siteId, distinct, start, end, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count OSPF peer statistics for a site, optionally grouped by the `distinct` field and filtered by time range. Use [Count Org OSPF Stats]($e/Orgs%20Stats%20-%20Ospf/countOrgOspfStats) to count OSPF peer statistics across the organization.

func (*SitesStatsOspf) SearchSiteOspfStats added in v0.4.92

func (s *SitesStatsOspf) SearchSiteOspfStats(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	vrfName *string,
	peerIp *string,
	start *string,
	end *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.OspfPeerStatsSearchResult],
	error)

SearchSiteOspfStats takes context, siteId, mac, vrfName, peerIp, start, end, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.OspfPeerStatsSearchResult data and an error if there was an issue with the request or response. Search OSPF peer statistics for a site with filters for device, VRF, peer IP, and time range. Use [Search Org OSPF Stats]($e/Orgs%20Stats%20-%20Ospf/searchOrgOspfStats) to search OSPF peer statistics across the organization.

type SitesStatsPorts added in v0.2.25

type SitesStatsPorts struct {
	// contains filtered or unexported fields
}

SitesStatsPorts represents a controller struct.

func NewSitesStatsPorts added in v0.2.25

func NewSitesStatsPorts(baseController baseController) *SitesStatsPorts

NewSitesStatsPorts creates a new instance of SitesStatsPorts. It takes a baseController as a parameter and returns a pointer to the SitesStatsPorts.

func (*SitesStatsPorts) CountSiteSwOrGwPorts added in v0.2.25

func (s *SitesStatsPorts) CountSiteSwOrGwPorts(
	ctx context.Context,
	siteId uuid.UUID,
	distinct *models.SitePortsCountDistinctEnum,
	fullDuplex *bool,
	mac *string,
	neighborMac *string,
	neighborPortDesc *string,
	neighborSystemName *string,
	poeDisabled *bool,
	poeMode *string,
	poeOn *bool,
	portId *string,
	portMac *string,
	powerDraw *float64,
	txPkts *int,
	rxPkts *int,
	rxBytes *int,
	txBps *int,
	rxBps *int,
	txMcastPkts *int,
	txBcastPkts *int,
	rxMcastPkts *int,
	rxBcastPkts *int,
	speed *int,
	stpState *models.PortStpStateEnum,
	stpRole *models.PortStpRoleEnum,
	authState *models.PortAuthStateEnum,
	up *bool,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteSwOrGwPorts takes context, siteId, distinct, fullDuplex, mac, neighborMac, neighborPortDesc, neighborSystemName, poeDisabled, poeMode, poeOn, portId, portMac, powerDraw, txPkts, rxPkts, rxBytes, txBps, rxBps, txMcastPkts, txBcastPkts, rxMcastPkts, rxBcastPkts, speed, stpState, stpRole, authState, up, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count switch and gateway port statistics for a site, optionally grouped by the `distinct` field and filtered by port, neighbor, PoE, STP, traffic, and time attributes. Use [Count Org Switch/Gateway Ports]($e/Orgs%20Stats%20-%20Ports/countOrgSwOrGwPorts) to count switch and gateway port statistics across the organization.

func (*SitesStatsPorts) SearchSiteSwOrGwPorts added in v0.2.25

func (s *SitesStatsPorts) SearchSiteSwOrGwPorts(
	ctx context.Context,
	siteId uuid.UUID,
	deviceType *models.SearchOrgSwOrGwPortsTypeEnum,
	authState *models.PortAuthStateEnum,
	fullDuplex *bool,
	lteImsi *string,
	lteIccid *string,
	lteImei *string,
	mac *string,
	neighborMac *string,
	neighborPortDesc *string,
	neighborSystemName *string,
	poeDisabled *bool,
	poeMode *string,
	poeOn *bool,
	poePriority *models.PoePriorityEnum,
	portId *string,
	portMac *string,
	speed *int,
	stpState *models.PortStpStateEnum,
	stpRole *models.PortStpRoleEnum,
	up *bool,
	xcvrPartNumber *string,
	limit *int,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseSwitchPortSearch],
	error)

SearchSiteSwOrGwPorts takes context, siteId, deviceType, authState, fullDuplex, lteImsi, lteIccid, lteImei, mac, neighborMac, neighborPortDesc, neighborSystemName, poeDisabled, poeMode, poeOn, poePriority, portId, portMac, speed, stpState, stpRole, up, xcvrPartNumber, limit, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseSwitchPortSearch data and an error if there was an issue with the request or response. Search switch and gateway port statistics for a site. Returns ports that match the search criteria, including current or most recent port status and statistics within the hour. Traffic information (Tx/Rx) is reported as cumulative counters since the last device reboot. Use [Search Org Switch/Gateway Ports]($e/Orgs%20Stats%20-%20Ports/searchOrgSwOrGwPorts) to search switch and gateway port statistics across the organization.

type SitesStatsWxRules added in v0.2.25

type SitesStatsWxRules struct {
	// contains filtered or unexported fields
}

SitesStatsWxRules represents a controller struct.

func NewSitesStatsWxRules added in v0.2.25

func NewSitesStatsWxRules(baseController baseController) *SitesStatsWxRules

NewSitesStatsWxRules creates a new instance of SitesStatsWxRules. It takes a baseController as a parameter and returns a pointer to the SitesStatsWxRules.

func (*SitesStatsWxRules) GetSiteWxRulesUsage added in v0.2.25

func (s *SitesStatsWxRules) GetSiteWxRulesUsage(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]models.StatsWxrule],
	error)

GetSiteWxRulesUsage takes context, siteId as parameters and returns an models.ApiResponse with []models.StatsWxrule data and an error if there was an issue with the request or response. Get Wxlan Rule usage

type SitesStatsZones added in v0.2.25

type SitesStatsZones struct {
	// contains filtered or unexported fields
}

SitesStatsZones represents a controller struct.

func NewSitesStatsZones added in v0.2.25

func NewSitesStatsZones(baseController baseController) *SitesStatsZones

NewSitesStatsZones creates a new instance of SitesStatsZones. It takes a baseController as a parameter and returns a pointer to the SitesStatsZones.

func (*SitesStatsZones) GetSiteRssiZoneStats added in v0.4.18

func (s *SitesStatsZones) GetSiteRssiZoneStats(
	ctx context.Context,
	siteId uuid.UUID,
	zoneId uuid.UUID) (
	models.ApiResponse[models.StatsZoneDetails],
	error)

GetSiteRssiZoneStats takes context, siteId, zoneId as parameters and returns an models.ApiResponse with models.StatsZoneDetails data and an error if there was an issue with the request or response. Get Detail RSSI Zone Stats

func (*SitesStatsZones) GetSiteZoneStats added in v0.2.25

func (s *SitesStatsZones) GetSiteZoneStats(
	ctx context.Context,
	siteId uuid.UUID,
	zoneId uuid.UUID) (
	models.ApiResponse[models.StatsZoneDetails],
	error)

GetSiteZoneStats takes context, siteId, zoneId as parameters and returns an models.ApiResponse with models.StatsZoneDetails data and an error if there was an issue with the request or response. Get Detail Zone Stats

func (*SitesStatsZones) ListSiteRssiZonesStats added in v0.4.18

func (s *SitesStatsZones) ListSiteRssiZonesStats(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]models.StatsRssiZone],
	error)

ListSiteRssiZonesStats takes context, siteId as parameters and returns an models.ApiResponse with []models.StatsRssiZone data and an error if there was an issue with the request or response. Get List of Site RSSI Zones Stats

func (*SitesStatsZones) ListSiteZonesStats added in v0.2.25

func (s *SitesStatsZones) ListSiteZonesStats(
	ctx context.Context,
	siteId uuid.UUID,
	mapId *string,
	minDuration *int) (
	models.ApiResponse[[]models.StatsZone],
	error)

ListSiteZonesStats takes context, siteId, mapId, minDuration as parameters and returns an models.ApiResponse with []models.StatsZone data and an error if there was an issue with the request or response. Get List of Site Zones Stats

type SitesSyntheticTests

type SitesSyntheticTests struct {
	// contains filtered or unexported fields
}

SitesSyntheticTests represents a controller struct.

func NewSitesSyntheticTests

func NewSitesSyntheticTests(baseController baseController) *SitesSyntheticTests

NewSitesSyntheticTests creates a new instance of SitesSyntheticTests. It takes a baseController as a parameter and returns a pointer to the SitesSyntheticTests.

func (*SitesSyntheticTests) GetSiteDeviceSyntheticTest

func (s *SitesSyntheticTests) GetSiteDeviceSyntheticTest(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.SynthetictestInfo],
	error)

GetSiteDeviceSyntheticTest takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.SynthetictestInfo data and an error if there was an issue with the request or response. Get Device Synthetic Test

func (*SitesSyntheticTests) SearchSiteSyntheticTest

func (s *SitesSyntheticTests) SearchSiteSyntheticTest(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	portId *string,
	vlanId *string,
	by *string,
	reason *string,
	mType *models.SynthetictestTypeEnum,
	protocol *models.SynthetictestProtocolEnum,
	tenant *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseSynthetictestSearch],
	error)

SearchSiteSyntheticTest takes context, siteId, mac, portId, vlanId, by, reason, mType, protocol, tenant, limit, start, end, duration, searchAfter as parameters and returns an models.ApiResponse with models.ResponseSynthetictestSearch data and an error if there was an issue with the request or response. Search Site Synthetic Testing

func (*SitesSyntheticTests) StartSiteSwitchRadiusSyntheticTest

func (s *SitesSyntheticTests) StartSiteSwitchRadiusSyntheticTest(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.SynthetictestRadiusServer) (
	models.ApiResponse[models.WebsocketSession],
	error)

StartSiteSwitchRadiusSyntheticTest takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Ping test from the AP to confirm 'reachability' of the RADIUS server. Utilize Juniper EX switch(to which an AP is connected to) radius test capabilities to get details on the RADIUS Server 'availability'. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ```json { "event": "data", "channel": "/sites/d6fb4f96-3ba4-4cf5-8af2-a8d7b85087ac/devices/00000000-0000-0000-1000-2093390b3580/cmd", "data": "{\"event\": \"data\", \"channel\": \"/sites/d6fb4f96-3ba4-4cf5-8af2-a8d7b85087ac/devices/2093390b3580/cmd\", \"data\": {\"session\": \"6043daff-884e-48bc-aa9a-810d268aceb1\", \"raw\": \" Reason : fail\"}}" } { "event": "data", "channel": "/sites/d6fb4f96-3ba4-4cf5-8af2-a8d7b85087ac/devices/00000000-0000-0000-1000-2093390b3580/cmd", "data": "{\"event\": \"data\", \"channel\": \"/sites/d6fb4f96-3ba4-4cf5-8af2-a8d7b85087ac/devices/2093390b3580/cmd\", \"data\": {\"session\": \"6043daff-884e-48bc-aa9a-810d268aceb1\", \"raw\": \" Test complete. Exiting\"}}" } ```

func (*SitesSyntheticTests) TriggerSiteDeviceSyntheticTest

func (s *SitesSyntheticTests) TriggerSiteDeviceSyntheticTest(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.SynthetictestDevice) (
	*http.Response,
	error)

TriggerSiteDeviceSyntheticTest takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Trigger Device Synthetic Test

func (*SitesSyntheticTests) TriggerSiteSyntheticTest

func (s *SitesSyntheticTests) TriggerSiteSyntheticTest(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Synthetictest) (
	models.ApiResponse[models.ResponseSynthetictest],
	error)

TriggerSiteSyntheticTest takes context, siteId, body as parameters and returns an models.ApiResponse with models.ResponseSynthetictest data and an error if there was an issue with the request or response. Trigger Synthetic Testing

type SitesUISettings

type SitesUISettings struct {
	// contains filtered or unexported fields
}

SitesUISettings represents a controller struct.

func NewSitesUISettings

func NewSitesUISettings(baseController baseController) *SitesUISettings

NewSitesUISettings creates a new instance of SitesUISettings. It takes a baseController as a parameter and returns a pointer to the SitesUISettings.

func (*SitesUISettings) CreateSiteUiSettings

func (s *SitesUISettings) CreateSiteUiSettings(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.UiSettings) (
	models.ApiResponse[models.UiSettings],
	error)

CreateSiteUiSettings takes context, siteId, body as parameters and returns an models.ApiResponse with models.UiSettings data and an error if there was an issue with the request or response. Create a Site UI settings/databoard

func (*SitesUISettings) DeleteSiteUiSetting

func (s *SitesUISettings) DeleteSiteUiSetting(
	ctx context.Context,
	siteId uuid.UUID,
	uisettingId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteUiSetting takes context, siteId, uisettingId as parameters and returns an *Response and an error if there was an issue with the request or response. Site UI settings

func (*SitesUISettings) GetSiteUiSetting

func (s *SitesUISettings) GetSiteUiSetting(
	ctx context.Context,
	siteId uuid.UUID,
	uisettingId uuid.UUID) (
	models.ApiResponse[models.UiSettings],
	error)

GetSiteUiSetting takes context, siteId, uisettingId as parameters and returns an models.ApiResponse with models.UiSettings data and an error if there was an issue with the request or response. Site UI settings

func (*SitesUISettings) ListSiteUiSettingDerived added in v0.3.17

func (s *SitesUISettings) ListSiteUiSettingDerived(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.UiSettings],
	error)

ListSiteUiSettingDerived takes context, siteId as parameters and returns an models.ApiResponse with models.UiSettings data and an error if there was an issue with the request or response. Get both site UI settings(for_site=true) and org UI settings (for_site=false)

func (*SitesUISettings) ListSiteUiSettings

func (s *SitesUISettings) ListSiteUiSettings(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]models.UiSettings],
	error)

ListSiteUiSettings takes context, siteId as parameters and returns an models.ApiResponse with []models.UiSettings data and an error if there was an issue with the request or response. List the Site UI settings/databoard

func (*SitesUISettings) UpdateSiteUiSetting

func (s *SitesUISettings) UpdateSiteUiSetting(
	ctx context.Context,
	siteId uuid.UUID,
	uisettingId uuid.UUID,
	body *models.UiSettings) (
	models.ApiResponse[models.UiSettings],
	error)

UpdateSiteUiSetting takes context, siteId, uisettingId, body as parameters and returns an models.ApiResponse with models.UiSettings data and an error if there was an issue with the request or response. Site UI settings

type SitesVBeacons

type SitesVBeacons struct {
	// contains filtered or unexported fields
}

SitesVBeacons represents a controller struct.

func NewSitesVBeacons

func NewSitesVBeacons(baseController baseController) *SitesVBeacons

NewSitesVBeacons creates a new instance of SitesVBeacons. It takes a baseController as a parameter and returns a pointer to the SitesVBeacons.

func (*SitesVBeacons) CreateSiteVBeacon

func (s *SitesVBeacons) CreateSiteVBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Vbeacon) (
	models.ApiResponse[models.Vbeacon],
	error)

CreateSiteVBeacon takes context, siteId, body as parameters and returns an models.ApiResponse with models.Vbeacon data and an error if there was an issue with the request or response. Create Virtual Beacon

func (*SitesVBeacons) DeleteSiteVBeacon

func (s *SitesVBeacons) DeleteSiteVBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	vbeaconId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteVBeacon takes context, siteId, vbeaconId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Virtual Beacon

func (*SitesVBeacons) GetSiteVBeacon

func (s *SitesVBeacons) GetSiteVBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	vbeaconId uuid.UUID) (
	models.ApiResponse[models.Vbeacon],
	error)

GetSiteVBeacon takes context, siteId, vbeaconId as parameters and returns an models.ApiResponse with models.Vbeacon data and an error if there was an issue with the request or response. Get Site Virtual Beacon Details

func (*SitesVBeacons) ListSiteVBeacons

func (s *SitesVBeacons) ListSiteVBeacons(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Vbeacon],
	error)

ListSiteVBeacons takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Vbeacon data and an error if there was an issue with the request or response. Get List of Site Virtual Beacons

func (*SitesVBeacons) UpdateSiteVBeacon

func (s *SitesVBeacons) UpdateSiteVBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	vbeaconId uuid.UUID,
	body *models.Vbeacon) (
	models.ApiResponse[models.Vbeacon],
	error)

UpdateSiteVBeacon takes context, siteId, vbeaconId, body as parameters and returns an models.ApiResponse with models.Vbeacon data and an error if there was an issue with the request or response. Update Site Virtual Beacon

type SitesVPNs

type SitesVPNs struct {
	// contains filtered or unexported fields
}

SitesVPNs represents a controller struct.

func NewSitesVPNs

func NewSitesVPNs(baseController baseController) *SitesVPNs

NewSitesVPNs creates a new instance of SitesVPNs. It takes a baseController as a parameter and returns a pointer to the SitesVPNs.

func (*SitesVPNs) ListSiteVpnsDerived

func (s *SitesVPNs) ListSiteVpnsDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool) (
	models.ApiResponse[[]models.Vpn],
	error)

ListSiteVpnsDerived takes context, siteId, resolve as parameters and returns an models.ApiResponse with []models.Vpn data and an error if there was an issue with the request or response. Get the list of derived VPNs for a site

type SitesWANUsages

type SitesWANUsages struct {
	// contains filtered or unexported fields
}

SitesWANUsages represents a controller struct.

func NewSitesWANUsages

func NewSitesWANUsages(baseController baseController) *SitesWANUsages

NewSitesWANUsages creates a new instance of SitesWANUsages. It takes a baseController as a parameter and returns a pointer to the SitesWANUsages.

func (*SitesWANUsages) CountSiteWanUsage

func (s *SitesWANUsages) CountSiteWanUsage(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	peerMac *string,
	portId *string,
	peerPortId *string,
	policy *string,
	tenant *string,
	pathType *string,
	distinct *models.WanUsagesCountDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteWanUsage takes context, siteId, mac, peerMac, portId, peerPortId, policy, tenant, pathType, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Site WAN Usages

func (*SitesWANUsages) SearchSiteWanUsage

func (s *SitesWANUsages) SearchSiteWanUsage(
	ctx context.Context,
	siteId uuid.UUID,
	mac *string,
	peerMac *string,
	portId *string,
	peerPortId *string,
	policy *string,
	tenant *string,
	pathType *string,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string) (
	models.ApiResponse[models.SearchWanUsage],
	error)

SearchSiteWanUsage takes context, siteId, mac, peerMac, portId, peerPortId, policy, tenant, pathType, limit, start, end, duration, sort as parameters and returns an models.ApiResponse with models.SearchWanUsage data and an error if there was an issue with the request or response. Search Site WAN Usages

type SitesWebhooks

type SitesWebhooks struct {
	// contains filtered or unexported fields
}

SitesWebhooks represents a controller struct.

func NewSitesWebhooks

func NewSitesWebhooks(baseController baseController) *SitesWebhooks

NewSitesWebhooks creates a new instance of SitesWebhooks. It takes a baseController as a parameter and returns a pointer to the SitesWebhooks.

func (*SitesWebhooks) CountSiteWebhooksDeliveries

func (s *SitesWebhooks) CountSiteWebhooksDeliveries(
	ctx context.Context,
	siteId uuid.UUID,
	webhookId uuid.UUID,
	mError *string,
	statusCode *int,
	status *models.WebhookDeliveryStatusEnum,
	topic *models.WebhookDeliveryTopicEnum,
	distinct *models.WebhookDeliveryDistinctEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteWebhooksDeliveries takes context, siteId, webhookId, mError, statusCode, status, topic, distinct, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count Site Webhooks deliveries Topics Supported: - alarms - audits - device-updowns - occupancy-alerts - ping

func (*SitesWebhooks) CreateSiteWebhook

func (s *SitesWebhooks) CreateSiteWebhook(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Webhook) (
	models.ApiResponse[models.Webhook],
	error)

CreateSiteWebhook takes context, siteId, body as parameters and returns an models.ApiResponse with models.Webhook data and an error if there was an issue with the request or response. Webhook defines a webhook, modeled after [github\u2019s model](https://developer.github.com/webhooks/). There is two types of webhooks: * webhooks ([examples](https://www.postman.com/juniper-mist/workspace/mist-systems-s-public-workspace/folder/224925-be01e694-7253-4195-8563-78e2a745e114)) * raw data webhooks ([examples](https://www.postman.com/juniper-mist/workspace/mist-systems-s-public-workspace/folder/224925-e2d5d5f8-4bdb-4efc-93e4-90f4b33d0b2b)) ##### Webhooks Webhooks can be configured at the org level (subset of topics only) and at the site level. It is possible to have multiple topics in the same webhook configuration and/or to have multiple webhooks configured at the same time. ##### Client Raw Data Webhooks Raw data webhooks are a special subset of webhooks that provide insight into raw data packets emitted by a client, identified by their advertising MAC address (assets, discovered BLE, connected Wi-Fi, unconnected Wi-Fi). The data that client raw data webhooks encompasses are reporting AP information, RSSI Data, and any special packets/telemetry packets that the client may emit. Note that client raw webhooks are the raw data coming from the client and do not contain the X,Y location data of the client. In order to get the location data for a client please see our location webhooks. Clients can be identified uniquely across these client raw data topics and location webhook topic using MAC address as the Unique identifier (client identifier). ###### Client Raw Data Webhooks Topics Topics that correspond to client raw data for different client types. * `asset-raw-rssi` - Raw data from packets emitted by named and filtered assets * `discovered-raw-rssi` - Raw data from packets emitted by passive BLE devices * `wifi-conn-raw` - Raw data from packets emitted by connected devices * `wifi-unconn-raw` - Raw data from packets emitted by unconnected devices (passive) ### Asset Filtering for Client Raw Data Webhooks The `asset-raw-rssi` webhook topic supports filtering of raw data by incorporating asset filters in the webhook payload. The filter topic allows multiple Webhooks to receive a subset of the a`asset-raw-rssi` data by assigning asset filters to a given webhook. The `asset-raw-rssi` filter topic is filtered-asset-rssi. A webhook assigned to a filter topic can take a list of AssetFilter IDs, which act as inclusive filters to determine which named asset and filtered asset data is sent to the assigned filter topic. Filters can be applied to multiple webhooks, and the same data can be sent to multiple filter topics. ### Rules for Configuring Client Raw Data Webhooks 1. Only four instances of a webhook object can contain a specific filter topic. - A site-level entry will override an org-level entry for the same client raw data webhook topic. 2. An assigned asset filter must exist and belong to the same site as the webhook it is assigned to.

func (*SitesWebhooks) DeleteSiteWebhook

func (s *SitesWebhooks) DeleteSiteWebhook(
	ctx context.Context,
	siteId uuid.UUID,
	webhookId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWebhook takes context, siteId, webhookId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Webhook

func (*SitesWebhooks) GetSiteWebhook

func (s *SitesWebhooks) GetSiteWebhook(
	ctx context.Context,
	siteId uuid.UUID,
	webhookId uuid.UUID) (
	models.ApiResponse[models.Webhook],
	error)

GetSiteWebhook takes context, siteId, webhookId as parameters and returns an models.ApiResponse with models.Webhook data and an error if there was an issue with the request or response. Get Site Webhook Details

func (*SitesWebhooks) ListSiteWebhooks

func (s *SitesWebhooks) ListSiteWebhooks(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Webhook],
	error)

ListSiteWebhooks takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Webhook data and an error if there was an issue with the request or response. Get List of Site Webhooks

func (*SitesWebhooks) PingSiteWebhook

func (s *SitesWebhooks) PingSiteWebhook(
	ctx context.Context,
	siteId uuid.UUID,
	webhookId uuid.UUID) (
	*http.Response,
	error)

PingSiteWebhook takes context, siteId, webhookId as parameters and returns an *Response and an error if there was an issue with the request or response. Send a Ping event to the webhook

func (*SitesWebhooks) SearchSiteWebhooksDeliveries

func (s *SitesWebhooks) SearchSiteWebhooksDeliveries(
	ctx context.Context,
	siteId uuid.UUID,
	webhookId uuid.UUID,
	mError *string,
	statusCode *int,
	status *models.WebhookDeliveryStatusEnum,
	topic *models.WebhookDeliveryTopicEnum,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.SearchWebhookDelivery],
	error)

SearchSiteWebhooksDeliveries takes context, siteId, webhookId, mError, statusCode, status, topic, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.SearchWebhookDelivery data and an error if there was an issue with the request or response. Search Site Webhooks deliveries Topics Supported: - alarms - audits - device-updowns - occupancy-alerts - ping

func (*SitesWebhooks) UpdateSiteWebhook

func (s *SitesWebhooks) UpdateSiteWebhook(
	ctx context.Context,
	siteId uuid.UUID,
	webhookId uuid.UUID,
	body *models.Webhook) (
	models.ApiResponse[models.Webhook],
	error)

UpdateSiteWebhook takes context, siteId, webhookId, body as parameters and returns an models.ApiResponse with models.Webhook data and an error if there was an issue with the request or response. Update Site Webhook

type SitesWlans

type SitesWlans struct {
	// contains filtered or unexported fields
}

SitesWlans represents a controller struct.

func NewSitesWlans

func NewSitesWlans(baseController baseController) *SitesWlans

NewSitesWlans creates a new instance of SitesWlans. It takes a baseController as a parameter and returns a pointer to the SitesWlans.

func (*SitesWlans) CreateSiteWlan

func (s *SitesWlans) CreateSiteWlan(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Wlan) (
	models.ApiResponse[models.Wlan],
	error)

CreateSiteWlan takes context, siteId, body as parameters and returns an models.ApiResponse with models.Wlan data and an error if there was an issue with the request or response. Create Site WLAN

func (*SitesWlans) DeleteSiteWlan

func (s *SitesWlans) DeleteSiteWlan(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWlan takes context, siteId, wlanId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site WLAN

func (*SitesWlans) DeleteSiteWlanPortalImage added in v0.3.13

func (s *SitesWlans) DeleteSiteWlanPortalImage(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWlanPortalImage takes context, siteId, wlanId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site WLAN Portal Image

func (*SitesWlans) GetSiteWlan

func (s *SitesWlans) GetSiteWlan(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId uuid.UUID) (
	models.ApiResponse[models.Wlan],
	error)

GetSiteWlan takes context, siteId, wlanId as parameters and returns an models.ApiResponse with models.Wlan data and an error if there was an issue with the request or response. Get Site WLAN

func (*SitesWlans) ListSiteWlans

func (s *SitesWlans) ListSiteWlans(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Wlan],
	error)

ListSiteWlans takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Wlan data and an error if there was an issue with the request or response. Get List of Site WLANs

func (*SitesWlans) ListSiteWlansDerived added in v0.4.74

func (s *SitesWlans) ListSiteWlansDerived(
	ctx context.Context,
	siteId uuid.UUID,
	resolve *bool,
	wlanId *string) (
	models.ApiResponse[[]models.Wlan],
	error)

ListSiteWlansDerived takes context, siteId, resolve, wlanId as parameters and returns an models.ApiResponse with []models.Wlan data and an error if there was an issue with the request or response. Get the list of derived Wlans for a Site

func (*SitesWlans) UpdateSiteWlan

func (s *SitesWlans) UpdateSiteWlan(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId uuid.UUID,
	body *models.Wlan) (
	models.ApiResponse[models.Wlan],
	error)

UpdateSiteWlan takes context, siteId, wlanId, body as parameters and returns an models.ApiResponse with models.Wlan data and an error if there was an issue with the request or response. Update Site WLAN

func (*SitesWlans) UpdateSiteWlanPortalTemplate

func (s *SitesWlans) UpdateSiteWlanPortalTemplate(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId uuid.UUID,
	body *models.WlanPortalTemplate) (
	models.ApiResponse[models.WlanPortalTemplate],
	error)

UpdateSiteWlanPortalTemplate takes context, siteId, wlanId, body as parameters and returns an models.ApiResponse with models.WlanPortalTemplate data and an error if there was an issue with the request or response. Update a Portal Template #### Sponsor Email Template Sponsor Email Template supports following template variables: | **Name** | **Description** | | --- | --- | | approve_url | Renders URL to approve the request; optionally &minutes=N query param can be appended to change the Authorization period of the guest, where N is a valid integer denoting number of minutes a guest remains authorized | | deny_url | Renders URL to reject the request | | guest_email | Renders Email ID of the guest | | guest_name | Renders Name of the guest | | field1 | Renders value of the Custom Field 1 | | field2 | Renders value of the Custom Field 2 | | company | Renders value of the Company field | | sponsor_link_validity_duration | Renders validity time of the request (i.e. Approve/Deny URL) | | auth_expire_minutes | Renders Wlan-level configured Guest Authorization Expiration time period (in minutes), If not configured then default (1 day in minutes) |

func (*SitesWlans) UploadSiteWlanPortalImage

func (s *SitesWlans) UploadSiteWlanPortalImage(
	ctx context.Context,
	siteId uuid.UUID,
	wlanId uuid.UUID,
	file models.FileWrapper,
	json *string) (
	*http.Response,
	error)

UploadSiteWlanPortalImage takes context, siteId, wlanId, file, json as parameters and returns an *Response and an error if there was an issue with the request or response. WLAN Portal Image Upload

type SitesWxRules

type SitesWxRules struct {
	// contains filtered or unexported fields
}

SitesWxRules represents a controller struct.

func NewSitesWxRules

func NewSitesWxRules(baseController baseController) *SitesWxRules

NewSitesWxRules creates a new instance of SitesWxRules. It takes a baseController as a parameter and returns a pointer to the SitesWxRules.

func (*SitesWxRules) CreateSiteWxRule

func (s *SitesWxRules) CreateSiteWxRule(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.WxlanRule) (
	models.ApiResponse[models.WxlanRule],
	error)

CreateSiteWxRule takes context, siteId, body as parameters and returns an models.ApiResponse with models.WxlanRule data and an error if there was an issue with the request or response. Create Site WxLan Rule

func (*SitesWxRules) DeleteSiteWxRule

func (s *SitesWxRules) DeleteSiteWxRule(
	ctx context.Context,
	siteId uuid.UUID,
	wxruleId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWxRule takes context, siteId, wxruleId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site WxLan Rule

func (*SitesWxRules) GetSiteWxRule

func (s *SitesWxRules) GetSiteWxRule(
	ctx context.Context,
	siteId uuid.UUID,
	wxruleId uuid.UUID) (
	models.ApiResponse[models.WxlanRule],
	error)

GetSiteWxRule takes context, siteId, wxruleId as parameters and returns an models.ApiResponse with models.WxlanRule data and an error if there was an issue with the request or response. Get Site WxLan Rule Details

func (*SitesWxRules) ListSiteWxRules

func (s *SitesWxRules) ListSiteWxRules(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.WxlanRule],
	error)

ListSiteWxRules takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.WxlanRule data and an error if there was an issue with the request or response. Get List of Site WxLan Rules

func (*SitesWxRules) ListSiteWxRulesDerived added in v0.4.0

func (s *SitesWxRules) ListSiteWxRulesDerived(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]models.WxlanRule],
	error)

ListSiteWxRulesDerived takes context, siteId as parameters and returns an models.ApiResponse with []models.WxlanRule data and an error if there was an issue with the request or response. Get the list of derived WxLan Rule for a site

func (*SitesWxRules) UpdateSiteWxRule

func (s *SitesWxRules) UpdateSiteWxRule(
	ctx context.Context,
	siteId uuid.UUID,
	wxruleId uuid.UUID,
	body *models.WxlanRule) (
	models.ApiResponse[models.WxlanRule],
	error)

UpdateSiteWxRule takes context, siteId, wxruleId, body as parameters and returns an models.ApiResponse with models.WxlanRule data and an error if there was an issue with the request or response. Update Site WxLan Rule

type SitesWxTags

type SitesWxTags struct {
	// contains filtered or unexported fields
}

SitesWxTags represents a controller struct.

func NewSitesWxTags

func NewSitesWxTags(baseController baseController) *SitesWxTags

NewSitesWxTags creates a new instance of SitesWxTags. It takes a baseController as a parameter and returns a pointer to the SitesWxTags.

func (*SitesWxTags) CreateSiteWxTag

func (s *SitesWxTags) CreateSiteWxTag(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.WxlanTag) (
	models.ApiResponse[models.WxlanTag],
	error)

CreateSiteWxTag takes context, siteId, body as parameters and returns an models.ApiResponse with models.WxlanTag data and an error if there was an issue with the request or response. Create Site WxTag

func (*SitesWxTags) DeleteSiteWxTag

func (s *SitesWxTags) DeleteSiteWxTag(
	ctx context.Context,
	siteId uuid.UUID,
	wxtagId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWxTag takes context, siteId, wxtagId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site WxTag

func (*SitesWxTags) GetSiteApplicationList

func (s *SitesWxTags) GetSiteApplicationList(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]models.SearchWxtagAppsItem],
	error)

GetSiteApplicationList takes context, siteId as parameters and returns an models.ApiResponse with []models.SearchWxtagAppsItem data and an error if there was an issue with the request or response. Get Application List

func (*SitesWxTags) GetSiteWxTag

func (s *SitesWxTags) GetSiteWxTag(
	ctx context.Context,
	siteId uuid.UUID,
	wxtagId uuid.UUID) (
	models.ApiResponse[models.WxlanTag],
	error)

GetSiteWxTag takes context, siteId, wxtagId as parameters and returns an models.ApiResponse with models.WxlanTag data and an error if there was an issue with the request or response. Get Site WxTag Details

func (*SitesWxTags) ListSiteWxTags

func (s *SitesWxTags) ListSiteWxTags(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.WxlanTag],
	error)

ListSiteWxTags takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.WxlanTag data and an error if there was an issue with the request or response. Get List of Site WxTags

func (*SitesWxTags) UpdateSiteWxTag

func (s *SitesWxTags) UpdateSiteWxTag(
	ctx context.Context,
	siteId uuid.UUID,
	wxtagId uuid.UUID,
	body *models.WxlanTag) (
	models.ApiResponse[models.WxlanTag],
	error)

UpdateSiteWxTag takes context, siteId, wxtagId, body as parameters and returns an models.ApiResponse with models.WxlanTag data and an error if there was an issue with the request or response. Update Site WxTag

type SitesWxTunnels

type SitesWxTunnels struct {
	// contains filtered or unexported fields
}

SitesWxTunnels represents a controller struct.

func NewSitesWxTunnels

func NewSitesWxTunnels(baseController baseController) *SitesWxTunnels

NewSitesWxTunnels creates a new instance of SitesWxTunnels. It takes a baseController as a parameter and returns a pointer to the SitesWxTunnels.

func (*SitesWxTunnels) CreateSiteWxTunnel

func (s *SitesWxTunnels) CreateSiteWxTunnel(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.WxlanTunnel) (
	models.ApiResponse[models.WxlanTunnel],
	error)

CreateSiteWxTunnel takes context, siteId, body as parameters and returns an models.ApiResponse with models.WxlanTunnel data and an error if there was an issue with the request or response. Create Site WxLan Tunnel

func (*SitesWxTunnels) DeleteSiteWxTunnel

func (s *SitesWxTunnels) DeleteSiteWxTunnel(
	ctx context.Context,
	siteId uuid.UUID,
	wxtunnelId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteWxTunnel takes context, siteId, wxtunnelId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site WxLan Tunnel

func (*SitesWxTunnels) GetSiteWxTunnel

func (s *SitesWxTunnels) GetSiteWxTunnel(
	ctx context.Context,
	siteId uuid.UUID,
	wxtunnelId uuid.UUID) (
	models.ApiResponse[models.WxlanTunnel],
	error)

GetSiteWxTunnel takes context, siteId, wxtunnelId as parameters and returns an models.ApiResponse with models.WxlanTunnel data and an error if there was an issue with the request or response. Get Site WxLan tunnel Details

func (*SitesWxTunnels) ListSiteWxTunnels

func (s *SitesWxTunnels) ListSiteWxTunnels(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.WxlanTunnel],
	error)

ListSiteWxTunnels takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.WxlanTunnel data and an error if there was an issue with the request or response. Get List of Site WxLan Tunnels

func (*SitesWxTunnels) UpdateSiteWxTunnel

func (s *SitesWxTunnels) UpdateSiteWxTunnel(
	ctx context.Context,
	siteId uuid.UUID,
	wxtunnelId uuid.UUID,
	body *models.WxlanTunnel) (
	models.ApiResponse[models.WxlanTunnel],
	error)

UpdateSiteWxTunnel takes context, siteId, wxtunnelId, body as parameters and returns an models.ApiResponse with models.WxlanTunnel data and an error if there was an issue with the request or response. Update Site WxLan Tunnel

type SitesZones

type SitesZones struct {
	// contains filtered or unexported fields
}

SitesZones represents a controller struct.

func NewSitesZones

func NewSitesZones(baseController baseController) *SitesZones

NewSitesZones creates a new instance of SitesZones. It takes a baseController as a parameter and returns a pointer to the SitesZones.

func (*SitesZones) CountSiteZoneSessions

func (s *SitesZones) CountSiteZoneSessions(
	ctx context.Context,
	siteId uuid.UUID,
	zoneType models.ZoneTypeEnum,
	distinct *models.SiteZoneCountDistinctEnum,
	userType *models.RfClientTypeEnum,
	user *string,
	scopeId *string,
	scope *models.ZoneScopeEnum,
	start *string,
	end *string,
	duration *string,
	limit *int) (
	models.ApiResponse[models.ResponseCount],
	error)

CountSiteZoneSessions takes context, siteId, zoneType, distinct, userType, user, scopeId, scope, start, end, duration, limit as parameters and returns an models.ApiResponse with models.ResponseCount data and an error if there was an issue with the request or response. Count by Distinct Attributes of Site Zone Sessions

func (*SitesZones) CreateSiteZone

func (s *SitesZones) CreateSiteZone(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.Zone) (
	models.ApiResponse[models.Zone],
	error)

CreateSiteZone takes context, siteId, body as parameters and returns an models.ApiResponse with models.Zone data and an error if there was an issue with the request or response. Create Site Zone

func (*SitesZones) DeleteSiteZone

func (s *SitesZones) DeleteSiteZone(
	ctx context.Context,
	siteId uuid.UUID,
	zoneId uuid.UUID) (
	*http.Response,
	error)

DeleteSiteZone takes context, siteId, zoneId as parameters and returns an *Response and an error if there was an issue with the request or response. Delete Site Zone

func (*SitesZones) GetSiteZone

func (s *SitesZones) GetSiteZone(
	ctx context.Context,
	siteId uuid.UUID,
	zoneId uuid.UUID) (
	models.ApiResponse[models.Zone],
	error)

GetSiteZone takes context, siteId, zoneId as parameters and returns an models.ApiResponse with models.Zone data and an error if there was an issue with the request or response. Get Site Zone Details

func (*SitesZones) ListSiteZones

func (s *SitesZones) ListSiteZones(
	ctx context.Context,
	siteId uuid.UUID,
	limit *int,
	page *int) (
	models.ApiResponse[[]models.Zone],
	error)

ListSiteZones takes context, siteId, limit, page as parameters and returns an models.ApiResponse with []models.Zone data and an error if there was an issue with the request or response. Get List of Site Zones

func (*SitesZones) SearchSiteZoneSessions

func (s *SitesZones) SearchSiteZoneSessions(
	ctx context.Context,
	siteId uuid.UUID,
	zoneType models.ZoneTypeEnum,
	userType *models.RfClientTypeEnum,
	user *string,
	scopeId *string,
	scope *models.VisitsScopeEnum,
	limit *int,
	start *string,
	end *string,
	duration *string,
	sort *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseZoneSearch],
	error)

SearchSiteZoneSessions takes context, siteId, zoneType, userType, user, scopeId, scope, limit, start, end, duration, sort, searchAfter as parameters and returns an models.ApiResponse with models.ResponseZoneSearch data and an error if there was an issue with the request or response. Search Zone Sessions

func (*SitesZones) UpdateSiteZone

func (s *SitesZones) UpdateSiteZone(
	ctx context.Context,
	siteId uuid.UUID,
	zoneId uuid.UUID,
	body *models.Zone) (
	models.ApiResponse[models.Zone],
	error)

UpdateSiteZone takes context, siteId, zoneId, body as parameters and returns an models.ApiResponse with models.Zone data and an error if there was an issue with the request or response. Update Site Zone

type UtilitiesCommon

type UtilitiesCommon struct {
	// contains filtered or unexported fields
}

UtilitiesCommon represents a controller struct.

func NewUtilitiesCommon

func NewUtilitiesCommon(baseController baseController) *UtilitiesCommon

NewUtilitiesCommon creates a new instance of UtilitiesCommon. It takes a baseController as a parameter and returns a pointer to the UtilitiesCommon.

func (*UtilitiesCommon) ArpFromDevice

func (u *UtilitiesCommon) ArpFromDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.HaClusterNode) (
	models.ApiResponse[models.WebsocketSession],
	error)

ArpFromDevice takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. ARP can be performed on the Device. The output will be available through websocket. As there can be multiple commands issued against the same AP at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ```json { "event": "data", "channel": "/sites/4ac1dcf4-9d8b-7211-65c4-057819f0862b/devices/00000000-0000-0000-1000-5c5b350e0060/cmd", "data": { "session": "session_id", "raw": "Output": "\tMAC\t\tDEV\tVLAN\tRx Packets\t\t Rx Bytes\t\tTx Packets\t\t Tx Bytes\tFlows\tIdle sec\n-----------------------------------------------------------------------------------------------------------------------" } } ```

func (*UtilitiesCommon) BounceDevicePort added in v0.4.0

func (u *UtilitiesCommon) BounceDevicePort(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsBouncePort) (
	*http.Response,
	error)

BounceDevicePort takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Port Bounce can be performed from Switch/Gateway. **Note:** Ports starting with vme, ae, irb, and HA control ports (for SSR only) are not supported The output will be available through websocket. As there can be multiple commands issued against the same AP at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ```json { "event": "data", "channel": "/sites/4ac1dcf4-9d8b-7211-65c4-057819f0862b/devices/00000000-0000-0000-1000-5c5b350e0060/cmd", "data": { "session": "session_id", "raw": "Port bounce complete." } } ```

func (*UtilitiesCommon) ClearSiteDeviceMacTable

func (u *UtilitiesCommon) ClearSiteDeviceMacTable(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsMacTable) (
	models.ApiResponse[models.WebsocketSession],
	error)

ClearSiteDeviceMacTable takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Clear MAC Table from the Device. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ```

func (*UtilitiesCommon) ClearSiteDevicePolicyHitCount added in v0.2.38

func (u *UtilitiesCommon) ClearSiteDevicePolicyHitCount(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.ClearPolicyHitCount) (
	models.ApiResponse[models.WebsocketSessionWithUrl],
	error)

ClearSiteDevicePolicyHitCount takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSessionWithUrl data and an error if there was an issue with the request or response. Clear application policy hit counts for the specified policy.

func (*UtilitiesCommon) CreateSiteDeviceShellSession

func (u *UtilitiesCommon) CreateSiteDeviceShellSession(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.ShellNode) (
	models.ApiResponse[models.WebsocketSessionWithUrl],
	error)

CreateSiteDeviceShellSession takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSessionWithUrl data and an error if there was an issue with the request or response. Create Shell Session

func (*UtilitiesCommon) GetSiteDeviceConfigCmd

func (u *UtilitiesCommon) GetSiteDeviceConfigCmd(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	sort *bool) (
	models.ApiResponse[models.ResponseDeviceConfigCli],
	error)

GetSiteDeviceConfigCmd takes context, siteId, deviceId, sort as parameters and returns an models.ApiResponse with models.ResponseDeviceConfigCli data and an error if there was an issue with the request or response. Get Config CLI Commands For a brown-field switch deployment where we adopted the switch through Adoption Command, we do not wipe out / overwrite the existing config automatically. Instead, we generate CLI commands that we would have generated. The user can inspect, modify, and incorporate this into their existing config manually. Once they feel comfortable about the config we generate, they can enable allow_mist_config where we will take full control of their config like a claimed switch

func (*UtilitiesCommon) GetSiteDeviceZtpPassword

func (u *UtilitiesCommon) GetSiteDeviceZtpPassword(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.RootPasswordString],
	error)

GetSiteDeviceZtpPassword takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.RootPasswordString data and an error if there was an issue with the request or response. In the case where something happens during/after ZTP, the root-password is modified (required for ZTP to set up outbound-ssh) but the user-defined password config has not be configured. This API can be used to retrieve the temporary password.

func (*UtilitiesCommon) MonitorSiteDeviceTraffic

func (u *UtilitiesCommon) MonitorSiteDeviceTraffic(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsMonitorTraffic) (
	models.ApiResponse[models.WebsocketSessionWithUrl],
	error)

MonitorSiteDeviceTraffic takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSessionWithUrl data and an error if there was an issue with the request or response. Monitor traffic on switches and SRX. * JUNOS uses cmd "monitor interface <port>" to monitor traffic on particular <port> * JUNOS uses cmd "monitor interface traffic" to monitor traffic on all ports

func (*UtilitiesCommon) PingFromDevice

func (u *UtilitiesCommon) PingFromDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsPing) (
	models.ApiResponse[models.WebsocketSession],
	error)

PingFromDevice takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Ping from AP, Switch and SSR Ping can be performed from the Device. The output will be available through websocket. As there can be multiple commands issued against the same AP at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ```json { "event": "data", "channel": "/sites/4ac1dcf4-9d8b-7211-65c4-057819f0862b/devices/00000000-0000-0000-1000-5c5b350e0060/cmd", "data": { "session": "session_id", "raw": "64 bytes from 23.211.0.110: seq=8 ttl=58 time=12.323 ms\n" } } ```

func (*UtilitiesCommon) ReadoptSiteOctermDevice

func (u *UtilitiesCommon) ReadoptSiteOctermDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

ReadoptSiteOctermDevice takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. For the octerm devices, the device ID must come from fpc0. However, for a VC, the users may change the original fpc0 from CLI. To fix the issue, the readopt API could be used to trigger the readopt process so the device would get the correct device ID to connect the cloud.

func (*UtilitiesCommon) ReleaseSiteDeviceDhcpLease added in v0.2.38

func (u *UtilitiesCommon) ReleaseSiteDeviceDhcpLease(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsReleaseDhcpLeases) (
	*http.Response,
	error)

ReleaseSiteDeviceDhcpLease takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Releases an active DHCP lease.

func (*UtilitiesCommon) ReprovisionSiteOctermDevice

func (u *UtilitiesCommon) ReprovisionSiteOctermDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

ReprovisionSiteOctermDevice takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. To force one device to reprovision itself again.

func (*UtilitiesCommon) RestartSiteDevice

func (u *UtilitiesCommon) RestartSiteDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsDevicesRestart) (
	*http.Response,
	error)

RestartSiteDevice takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Restart / Reboot a device

func (*UtilitiesCommon) RestartSiteMultipleDevices added in v0.4.31

func (u *UtilitiesCommon) RestartSiteMultipleDevices(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.UtilsDevicesRestartMulti) (
	*http.Response,
	error)

RestartSiteMultipleDevices takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Note that only the devices that are connected will be restarted.

func (*UtilitiesCommon) ShowSiteDeviceBgpSummary added in v0.3.41

func (u *UtilitiesCommon) ShowSiteDeviceBgpSummary(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowBgpSummary) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteDeviceBgpSummary takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get BGP Summary from SSR, SRX and Switch. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ``` Tue 2024-04-23 16:36:06 UTC Retrieving bgp entries... BGP table version is 354, local router ID is 10.224.8.16, vrf id 0 Default local pref 100, local AS 65000 Status codes: s suppressed, d damped, h history, * valid, > best, = multipath, i internal, r RIB_failure, S Stale, R Removed Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self Origin codes: i - IGP, e - EGP, ? - incomplete RPKI validation codes: V valid, I invalid, N Not found Network Next Hop Metric LocPrf Weight Path *> 161.161.161.0/24 ```"

func (*UtilitiesCommon) ShowSiteDeviceDhcpLeases added in v0.2.38

func (u *UtilitiesCommon) ShowSiteDeviceDhcpLeases(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowDhcpLeases) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteDeviceDhcpLeases takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Shows DHCP leases

func (*UtilitiesCommon) ShowSiteDeviceDot1xTable added in v0.4.80

func (u *UtilitiesCommon) ShowSiteDeviceDot1xTable(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowDot1x) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteDeviceDot1xTable takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get Dot1X Table from the Device. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ```

func (*UtilitiesCommon) ShowSiteDeviceEvpnDatabase added in v0.3.41

func (u *UtilitiesCommon) ShowSiteDeviceEvpnDatabase(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowEvpnDatabase) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteDeviceEvpnDatabase takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get EVPN Database from the Device. The output will be available through websocket.

func (*UtilitiesCommon) ShowSiteDeviceForwardingTable added in v0.3.41

func (u *UtilitiesCommon) ShowSiteDeviceForwardingTable(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowForwardingTable) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteDeviceForwardingTable takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get forwarding table from the Device. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ``` Mon 2024-05-20 16:47:30 UTC Retrieving fib entries… Entry Count: 3268 Capacity: 22668 ==================== ====== ======= ================== ===== ====================== =========== =========== ====== IP Prefix Port Proto Tenant VRF Service Next Hops Vector Cost ==================== ====== ======= ================== ===== ====================== =========== =========== ====== 0.0.0.0/0 0 None Old_Mgmt - internet-wan_and_lte 1-2.0 broadband 1 1-4.0 lte 10 branch1-Kiosk - internet-wan_and_lte 1-2.0 broadband 1 1-4.0 lte 10 branch1-MGT - internet-wan_and_lte 1-2.0 broadband 1 1-4.0 lte 10 3.1.1.0/24 0 None Old_Mgmt - internet-wan_and_lte 1-2.0 broadband 1 1-4.0 lte 10 branch1-Kiosk - internet-wan_and_lte 1-2.0 broadband 1 1-4.0 lte 10 branch1-MGT - internet-wan_and_lte 1-2.0 broadband 1 1-4.0 lte 10 ```

func (*UtilitiesCommon) ShowSiteDeviceMacTable added in v0.3.41

func (u *UtilitiesCommon) ShowSiteDeviceMacTable(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsMacTable) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteDeviceMacTable takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get MAC Table from the Device. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" ``` #### Example output from ws stream ```json { "event": "data", "channel": "/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/00000000-0000-0000-1000-209339xxxxxx/cmd", "data": "{\"event\": \"data\", \"channel\": \"/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/209339xxxxxx/cmd\", \"data\": {\"session\": \"eec2b6e4-1e63-4f9f-9cf8-ef7f9632861e\", \"raw\": \"\\nMAC flags (S - static MAC, D - dynamic MAC, L - locally learned, P - Persistent static, C - Control MAC\\n SE - statistics enabled, NM - non configured MAC, R - remote PE MAC, O - ovsdb MAC\\n GBP - group based policy, B - Blocked MAC)\\n\\n\\nE\"}}" } { "event": "data", "channel": "/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/00000000-0000-0000-1000-209339xxxxxx/cmd", "data": "{\"event\": \"data\", \"channel\": \"/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/209339xxxxxx/cmd\", \"data\": {\"session\": \"eec2b6e4-1e63-4f9f-9cf8-ef7f9632861e\", \"raw\": \"thernet switching table : 59 entries, 59 learned\\nRouting instance : default-switch\\n Vlan MAC MAC Age GBP Logical NH MAC RTR\\n name address flags \"}}" } { "event": "data", "channel": "/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/00000000-0000-0000-1000-209339xxxxxx/cmd", "data": "{\"event\": \"data\", \"channel\": \"/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/209339xxxxxx/cmd\", \"data\": {\"session\": \"eec2b6e4-1e63-4f9f-9cf8-ef7f9632861e\", \"raw\": \" Tag interface Index property ID\\n corp 00:50:56:87:4f:69 D - xe-0/1/3.0 0 0 \\n corp 00:50:56:87:ce:f5 D - x\"}}" } { "event": "data", "channel": "/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/00000000-0000-0000-1000-209339xxxxxx/cmd", "data": "{\"event\": \"data\", \"channel\": \"/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/209339xxxxxx/cmd\", \"data\": {\"session\": \"eec2b6e4-1e63-4f9f-9cf8-ef7f9632861e\", \"raw\": \"e-0/1/3.0 0 0 \\n corp 20:93:39:0f:62:00 D - xe-0/1/3.0 0 0 \\n ifo 00:50:56:87:2d:42 D - xe-0/1/3.0 \"}}" } ... ```

func (*UtilitiesCommon) StartSiteLocateDevice

func (u *UtilitiesCommon) StartSiteLocateDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.LocateSwitch) (
	*http.Response,
	error)

StartSiteLocateDevice takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. ### Access Points Locate an Access Point by blinking it's LED. It is a persisted state that has to be stopped by calling Stop Locating API ### Switches Locate a Switch by blinking all port LEDs. By default, request is sent to `master` switch and LEDs will keep flashing for 5 minutes. In case of virtual chassis (VC) the desired member mac has to be passed in the request payload. At anypoint, only one VC member can be requested to flash the LED. To stop LED flashing before the duration ends /unlocate API request can be made. If /unlocate API is not called LED will continue to flash on device for the given duration. Default duration is 5 minutes and 120 minutes is the maximum.

func (*UtilitiesCommon) StopSiteLocateDevice

func (u *UtilitiesCommon) StopSiteLocateDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

StopSiteLocateDevice takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Stop Locate a Device

func (*UtilitiesCommon) TracerouteFromDevice

func (u *UtilitiesCommon) TracerouteFromDevice(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsTraceroute) (
	models.ApiResponse[models.WebsocketSession],
	error)

TracerouteFromDevice takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Traceroute can be performed from the Device. The output will be available through websocket. As there can be multiple commands issued against the same Device at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ```json { "channel": "/sites/d6fb4f96-xxxx-xxxx-xxxx-xxxxxxxxxxxx/devices/00000000-0000-0000-1000-xxxxxxxxxxxx/cmd", "event": "data", "data": { "session": "9106e908-74dc-4a4f-9050-9c2adcaf44a5", "raw": "Running traceroute...\ntraceroute to 8.8.8.8, 64 hops max\n 0 192.168.1.1 1 ms 192.168.1.1 1 ms 192.168.1.1 1 ms\n 1 80.10.236.81 2 ms 80.10.236.81 4 ms 80.10.236.81 2 ms\n 2 193.253.80.250 3 ms 193.253.80.250 2 ms 193.253.80.250 2 ms\n 3 193.252.159.41 2 ms 193.252.159.41 1 ms 193.252.159.41 3 ms\n" } ```

func (*UtilitiesCommon) UploadSiteDeviceSupportFile

func (u *UtilitiesCommon) UploadSiteDeviceSupportFile(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsSendSupportLogs) (
	*http.Response,
	error)

UploadSiteDeviceSupportFile takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Support / Upload device support files #### Info Param | Name | Type | Description | | --- | --- | --- | | process | string | Upload 1 file with output of show system processes extensive | | outbound-ssh | string | Upload 1 file that concatenates all /var/log/outbound-ssh.log* files | | messages | string | Upload 1 to 10 /var/log/messages* files | | core-dumps | string | Upload all core dump files, if any. Uploads for all members of VC on switches.| | full | string | Upload 1 file with output of request support information, 1 file that concatenates all /var/log/outbound-ssh.log files, all core dump files, the 3 most recent /var/log/messages files, and Mist agent logs (for Junos devices running the Mist agent) | | var-logs | string | Upload all non-empty files in the /var/log/ directory | | jma-logs | string | Upload Mist agent logs (for Junos devices running the Mist agent only) | "

type UtilitiesLAN

type UtilitiesLAN struct {
	// contains filtered or unexported fields
}

UtilitiesLAN represents a controller struct.

func NewUtilitiesLAN

func NewUtilitiesLAN(baseController baseController) *UtilitiesLAN

NewUtilitiesLAN creates a new instance of UtilitiesLAN. It takes a baseController as a parameter and returns a pointer to the UtilitiesLAN.

func (*UtilitiesLAN) CableTestFromSwitch

func (u *UtilitiesLAN) CableTestFromSwitch(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsCableTests) (
	models.ApiResponse[models.WebsocketSession],
	error)

CableTestFromSwitch takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. TDR can be performed from the Switch. The output will be available through websocket. As there can be multiple commands issued against the same Switch at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ```json { "event": "data", "channel": "/sites/4ac1dcf4-9d8b-7211-65c4-057819f0862b/devices/00000000-0000-0000-1000-5c5b350e0060/cmd", "data": { "session": "session_id", "raw": "Interface TDR detail:\nTest status : Test successfully executed ge-0/0/0\n" } } ```

func (*UtilitiesLAN) ClearAllLearnedMacsFromPortOnSwitch

func (u *UtilitiesLAN) ClearAllLearnedMacsFromPortOnSwitch(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsClearMacs) (
	*http.Response,
	error)

ClearAllLearnedMacsFromPortOnSwitch takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Clear all learned MAC addresses, including persistent MAC addresses, on a port.

func (*UtilitiesLAN) ClearBpduErrorsFromPortsOnSwitch added in v0.4.54

func (u *UtilitiesLAN) ClearBpduErrorsFromPortsOnSwitch(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsClearBpdu) (
	*http.Response,
	error)

ClearBpduErrorsFromPortsOnSwitch takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Clear bridge protocol data unit (BPDU) error condition caused by the detection of a possible bridging loop from Spanning Tree Protocol (STP) operation that renders the port unoperational.

func (*UtilitiesLAN) ClearSiteDeviceDot1xSession added in v0.4.87

func (u *UtilitiesLAN) ClearSiteDeviceDot1xSession(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.ClearDot1xSession) (
	models.ApiResponse[models.WebsocketSession],
	error)

ClearSiteDeviceDot1xSession takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Clear Dot1x Session. The output will be available through websocket.

func (*UtilitiesLAN) ClearSiteDevicePendingVersion added in v0.4.87

func (u *UtilitiesLAN) ClearSiteDevicePendingVersion(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

ClearSiteDevicePendingVersion takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Clear device pending fw version (Available on Junos OS EX2300-, EX3400-, EX4000-, EX4100-, EX4400- devices)

func (*UtilitiesLAN) ClearSiteMultipleDevicePendingVersion added in v0.4.87

func (u *UtilitiesLAN) ClearSiteMultipleDevicePendingVersion(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.DevicesIds) (
	*http.Response,
	error)

ClearSiteMultipleDevicePendingVersion takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Clear device pending fw version (Available on Junos OS EX2300-, EX3400-, EX4000-, EX4100-, EX4400- devices)

func (*UtilitiesLAN) CreateSiteDeviceSnapshot

func (u *UtilitiesLAN) CreateSiteDeviceSnapshot(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

CreateSiteDeviceSnapshot takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Create recovery device snapshot (Available on Junos OS EX2300-, EX3400-, EX4400- devices)

func (*UtilitiesLAN) PollSiteSwitchStats

func (u *UtilitiesLAN) PollSiteSwitchStats(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

PollSiteSwitchStats takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. This API can be used to poll statistics from the Switch proactively once. After it is called, the statistics will be pushed back to the cloud within the statistics interval.

func (*UtilitiesLAN) ReauthOrgDot1xWiredClient added in v0.2.38

func (u *UtilitiesLAN) ReauthOrgDot1xWiredClient(
	ctx context.Context,
	orgId uuid.UUID,
	clientMac string) (
	models.ApiResponse[models.ResponseWiredCoa],
	error)

ReauthOrgDot1xWiredClient takes context, orgId, clientMac as parameters and returns an models.ApiResponse with models.ResponseWiredCoa data and an error if there was an issue with the request or response. Trigger a CoA (change of authorization) against a Wired client

func (*UtilitiesLAN) ReauthSiteDot1xWiredClient added in v0.2.38

func (u *UtilitiesLAN) ReauthSiteDot1xWiredClient(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string) (
	models.ApiResponse[models.ResponseWiredCoa],
	error)

ReauthSiteDot1xWiredClient takes context, siteId, clientMac as parameters and returns an models.ApiResponse with models.ResponseWiredCoa data and an error if there was an issue with the request or response. Trigger a CoA (change of authorization) against a Wired client

func (*UtilitiesLAN) RestoreSiteDeviceBackupVersion added in v0.4.87

func (u *UtilitiesLAN) RestoreSiteDeviceBackupVersion(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

RestoreSiteDeviceBackupVersion takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. Restore device backup fw version (Available on Junos OS EX4000-, EX4100-, EX4400- devices)

func (*UtilitiesLAN) RestoreSiteMultipleDeviceBackupVersion added in v0.4.87

func (u *UtilitiesLAN) RestoreSiteMultipleDeviceBackupVersion(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.DevicesIds) (
	*http.Response,
	error)

RestoreSiteMultipleDeviceBackupVersion takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Restore device backup fw version (Available on Junos OS EX4000-, EX4100-, EX4400- devices)

func (*UtilitiesLAN) SearchSiteDeviceFlowRecords added in v0.4.107

func (u *UtilitiesLAN) SearchSiteDeviceFlowRecords(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	start *string,
	end *string,
	limit *int,
	sort *string,
	srcIp *string,
	dstIp *string,
	srcPort *string,
	dstPort *string,
	protocol *string,
	state *string,
	direction *string,
	searchAfter *string) (
	models.ApiResponse[models.ResponseDeviceFlowRecordsSearch],
	error)

SearchSiteDeviceFlowRecords takes context, siteId, deviceId, start, end, limit, sort, srcIp, dstIp, srcPort, dstPort, protocol, state, direction, searchAfter as parameters and returns an models.ApiResponse with models.ResponseDeviceFlowRecordsSearch data and an error if there was an issue with the request or response. Search network flow records for a specific device within a site. Note: Only supported for switch devices. The device must be manageable. The `device_mac` is automatically scoped to the device in the URL path and cannot be overridden by query parameter.

func (*UtilitiesLAN) ShowSiteDeviceArpTable added in v0.4.103

func (u *UtilitiesLAN) ShowSiteDeviceArpTable(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowArp) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteDeviceArpTable takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get ARP Table from the Device. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ```

func (*UtilitiesLAN) ToogleSiteDeviceVcRoutingEnginesRole added in v0.4.87

func (u *UtilitiesLAN) ToogleSiteDeviceVcRoutingEnginesRole(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	*http.Response,
	error)

ToogleSiteDeviceVcRoutingEnginesRole takes context, siteId, deviceId as parameters and returns an *Response and an error if there was an issue with the request or response. In a pre-provisioned VC, mastership is system-determined. This command allows manual toggling between primary and backup Routing Engines.

func (*UtilitiesLAN) UpgradeDeviceBios

func (u *UtilitiesLAN) UpgradeDeviceBios(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UpgradeBios) (
	models.ApiResponse[models.ResponseDeviceBiosUpgrade],
	error)

UpgradeDeviceBios takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.ResponseDeviceBiosUpgrade data and an error if there was an issue with the request or response. Upgrade device bios

func (*UtilitiesLAN) UpgradeDeviceFPGA

func (u *UtilitiesLAN) UpgradeDeviceFPGA(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UpgradeFpga) (
	models.ApiResponse[models.ResponseDeviceBiosUpgrade],
	error)

UpgradeDeviceFPGA takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.ResponseDeviceBiosUpgrade data and an error if there was an issue with the request or response. Upgrade device fpga

func (*UtilitiesLAN) UpgradeSiteDevicesBios

func (u *UtilitiesLAN) UpgradeSiteDevicesBios(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.UpgradeBiosMulti) (
	*http.Response,
	error)

UpgradeSiteDevicesBios takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Upgrade Bios on Multiple Device

func (*UtilitiesLAN) UpgradeSiteDevicesFpga

func (u *UtilitiesLAN) UpgradeSiteDevicesFpga(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.UpgradeFpgaMulti) (
	*http.Response,
	error)

UpgradeSiteDevicesFpga takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Upgrade Bios on Multiple Device

type UtilitiesLocation

type UtilitiesLocation struct {
	// contains filtered or unexported fields
}

UtilitiesLocation represents a controller struct.

func NewUtilitiesLocation

func NewUtilitiesLocation(baseController baseController) *UtilitiesLocation

NewUtilitiesLocation creates a new instance of UtilitiesLocation. It takes a baseController as a parameter and returns a pointer to the UtilitiesLocation.

func (*UtilitiesLocation) SendSiteDevicesArbitraryBleBeacon added in v0.4.54

func (u *UtilitiesLocation) SendSiteDevicesArbitraryBleBeacon(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.UtilsSendBleBeacon) (
	*http.Response,
	error)

SendSiteDevicesArbitraryBleBeacon takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Send arbitrary BLE Beacon for a period of time Note that only the devices that are connected will be restarted.

type UtilitiesMxEdge

type UtilitiesMxEdge struct {
	// contains filtered or unexported fields
}

UtilitiesMxEdge represents a controller struct.

func NewUtilitiesMxEdge

func NewUtilitiesMxEdge(baseController baseController) *UtilitiesMxEdge

NewUtilitiesMxEdge creates a new instance of UtilitiesMxEdge. It takes a baseController as a parameter and returns a pointer to the UtilitiesMxEdge.

func (*UtilitiesMxEdge) PreemptSitesMxTunnel

func (u *UtilitiesMxEdge) PreemptSitesMxTunnel(
	ctx context.Context,
	siteId uuid.UUID,
	mxtunnelId uuid.UUID) (
	models.ApiResponse[models.ResponseMxtunnelsPreemptAps],
	error)

PreemptSitesMxTunnel takes context, siteId, mxtunnelId as parameters and returns an models.ApiResponse with models.ResponseMxtunnelsPreemptAps data and an error if there was an issue with the request or response. To preempt AP’s which are not connected to preferred peer to the preferred peer

type UtilitiesPCAPs

type UtilitiesPCAPs struct {
	// contains filtered or unexported fields
}

UtilitiesPCAPs represents a controller struct.

func NewUtilitiesPCAPs

func NewUtilitiesPCAPs(baseController baseController) *UtilitiesPCAPs

NewUtilitiesPCAPs creates a new instance of UtilitiesPCAPs. It takes a baseController as a parameter and returns a pointer to the UtilitiesPCAPs.

func (*UtilitiesPCAPs) GetOrgCapturingStatus

func (u *UtilitiesPCAPs) GetOrgCapturingStatus(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[models.ResponsePcapStatus],
	error)

GetOrgCapturingStatus takes context, orgId as parameters and returns an models.ApiResponse with models.ResponsePcapStatus data and an error if there was an issue with the request or response. Retrieve the current organization packet capture status, including active capture targets and progress.

func (*UtilitiesPCAPs) GetSiteCapturingStatus

func (u *UtilitiesPCAPs) GetSiteCapturingStatus(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[models.ResponsePcapStatus],
	error)

GetSiteCapturingStatus takes context, siteId as parameters and returns an models.ApiResponse with models.ResponsePcapStatus data and an error if there was an issue with the request or response. Get Capturing status

func (*UtilitiesPCAPs) ListOrgPacketCaptures

func (u *UtilitiesPCAPs) ListOrgPacketCaptures(
	ctx context.Context,
	orgId uuid.UUID,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponsePcapSearch],
	error)

ListOrgPacketCaptures takes context, orgId, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponsePcapSearch data and an error if there was an issue with the request or response. List organization packet capture sessions and generated capture files for the selected time range.

func (*UtilitiesPCAPs) ListSitePacketCaptures

func (u *UtilitiesPCAPs) ListSitePacketCaptures(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac *string,
	start *string,
	end *string,
	duration *string,
	limit *int,
	page *int) (
	models.ApiResponse[models.ResponsePcapSearch],
	error)

ListSitePacketCaptures takes context, siteId, clientMac, start, end, duration, limit, page as parameters and returns an models.ApiResponse with models.ResponsePcapSearch data and an error if there was an issue with the request or response. List packet captures for a site, optionally filtered by client MAC address and time range. Use [List Org Packet Captures]($e/Utilities%20PCAPs/listOrgPacketCaptures) to retrieve packet captures across the organization.

func (*UtilitiesPCAPs) StartOrgPacketCapture

func (u *UtilitiesPCAPs) StartOrgPacketCapture(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.CaptureOrg) (
	models.ApiResponse[models.ResponsePcapStart],
	error)

StartOrgPacketCapture takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponsePcapStart data and an error if there was an issue with the request or response. Start an organization-level packet capture for org-level Mist Edges **NOTE**: For packet captures of org level Mist Edges only. Use [Start Site Packet Capture]($e/Utilities%20PCAPs/startSitePacketCapture) for site level Mist Edges. The output will be available through websocket. As there can be multiple commands issued against the same AP at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/orgs/:org_id/pcaps" } ``` #### Response (MxEdge) ```json { "event": "data" "channel": "/orgs/67970e46-4e12-11e6-9188-0242ac110007/pcaps" "data": { "capture_id": "f039b1b4-a23e-48b2-906a-0da40524de73", "pcap_dict": { "dst_mac": "68:ec:c5:09:2e:87", "src_mac": "8c:3b:ad:e0:47:40", "vlan": 1, "src_ip": "34.224.147.117", "dst_ip": "192.168.1.55", "dst_port": 51635, "src_port": 443, "protocol": "TCP", "mxedge_id": "00000000-0000-0000-1000-001122334455", "direction": "tx", "timestamp": 1652247615, "length": 159.0, "lost_messages": 0, "interface": "port0", "info": "1652247616.007409 IP ec2-34-224-147-117.compute-1.amazonaws.com.https > ip-192-168-1-55.ec2.internal.51635: Flags [P.], seq \n 2192123968:2192124057, ack 4035166782, win 12, options [nop,nop,TS val 597467050 ecr 740580660], length 89\\n", }, "pcap_raw": "1MOyoQIABAAAAAAAAAAAAP//AAABAAAAQEx7YhMzAACfAAAAnwAAAGjsxQkuh4w7reBHQIEAAAEIAEUAAI1bLEAAKAZ/CiLgk3XAqAE3AbvJs4KpKEDwg8I+gBgADFf9AAABAQgKI5yfqiwkXTQXAwMAVKY5JopoKQrVEn0/3ld4YntctGEH/rTZuwtCvzSncFw71QJveJi9uxHs57KC8w9Apph3YvXJrmWg7M37+o+YV0KH/xmr626s5Bkhb3QhKOu+NoNEmA==" } } ``` #### Stop Response ```json { "event": "data" "channel": "/orgs/67970e46-4e12-11e6-9188-0242ac110007/pcaps" "data": { "capture_id": "a2f7374d-6a70-41fd-8a3f-71e42573baaf", "pcap_dict": null } } ```

func (*UtilitiesPCAPs) StartSitePacketCapture

func (u *UtilitiesPCAPs) StartSitePacketCapture(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.CaptureSite) (
	models.ApiResponse[models.ResponsePcapStart],
	error)

StartSitePacketCapture takes context, siteId, body as parameters and returns an models.ApiResponse with models.ResponsePcapStart data and an error if there was an issue with the request or response. Initiate a Site Packet Capture The output will be available through websocket. As there can be multiple commands issued against the same AP at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/pcaps" } ``` #### Response (MxEdge) ```json { "event": "data" "channel": "/sites/{site_id}/pcaps" "data": { "capture_id": "6b1be4fb-b239-44d9-9d3b-cb1ff3af1721", "lost_messages": 0 "pcap_dict": { "channel_frequency": 2412, "channel": "1", "datarate": "1.0 Mbps", "rssi": -75, "dst": "78:bd:bc:ca:0b:0a", "src": "18:b8:1f:4c:91:c0", "bssid": "18:b8:1f:4c:91:c0", "frame_type": "Management", "frame_subtype": "Probe Response", "proto": "802.11", "ap_mac": "d4:20:b0:81:99:2e", "direction": "tx", "timestamp": 1652246543, "length": 416.0, "interface": "radiotap", "info": "1652246544.467733 1683216786us tsft 1.0 Mb/s 2412 MHz 11g -75dBm signal -82dBm noise antenna 0 Probe Response (ATTKmsWiVS) [1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0 Mbit] CH: 2, PRIVACY\\n", }, "pcap_raw": "1MOyoQIABAAAAAAAAAAAAP//AAABAAAAEEh7Yh5VBwCgAQAAoAEAAAAAKwBvCADAAQAAAIw7reCS2VNkAAAAABACbAmABLWuAAEAEBgAAwACAABQADoBeL28ygsKGLgfTJHAGLgfTJHAcIZ2WDlBJQAAAGQAERUACkFUVEttc1dpVlMBCIKEi5YkMEhsAwECBwZVUyABCx4gAQAjAhkAKgEEMgQMEhhgMBQBAAAPrAQBAAAPrAQBAAAPrAIMAAsFAQAbAABGBTIIAQAALRqtCR////8AAAAAAAAAAAAAAAAAAAAAAAAAAD0WAggVAAAAAAAAAAAAAAAAAAAAAAAAAH8IBAAIAAAAAEDdkwBQ8gQQSgABEBBEAAECEDsAAQMQRwAQn2481frn3KT+uGod2ERx+RAhAAtBcnJpcywgSW5jLhAjAApCR1cyMTAtNzAwECQACkJHVzIxMC03MDAQQgAKQkdXMjEwLTcwMBBUAAgABgBQ8gQAARARAA5BcnJpcyBXaXJlbGVzcxAIAAIgCBA8AAEBEEkABgA3KgABIN0JABAYAgEQHAAA3RgAUPICAQGEAAOkAAAnpAAAQkNeAGIyLwAzjakr" } ``` #### Response (Wired) ```json { "event": "data" "channel": "/sites/67970e46-4e12-11e6-9188-0242ac110007/pcaps" "data": { "capture_id": "f039b1b4-a23e-48b2-906a-0da40524de73", "pcap_dict": { "dst_mac": "68:ec:c5:09:2e:87", "src_mac": "8c:3b:ad:e0:47:40", "vlan": 1, "src_ip": "34.224.147.117", "dst_ip": "192.168.1.55", "dst_port": 51635, "src_port": 443, "proto": "TCP", "ap_mac": "d4:20:b0:81:99:2e", "direction": "tx", "timestamp": 1652247615, "length": 159.0, "interface": "wired", "info": "1652247616.007409 IP ec2-34-224-147-117.compute-1.amazonaws.com.https > ip-192-168-1-55.ec2.internal.51635: Flags [P.], seq 2192123968:2192124057, ack 4035166782, win 12, options [nop,nop,TS val 597467050 ecr 740580660], length 89\\n", }, "pcap_raw": "1MOyoQIABAAAAAAAAAAAAP//AAABAAAAQEx7YhMzAACfAAAAnwAAAGjsxQkuh4w7reBHQIEAAAEIAEUAAI1bLEAAKAZ/CiLgk3XAqAE3AbvJs4KpKEDwg8I+gBgADFf9AAABAQgKI5yfqiwkXTQXAwMAVKY5JopoKQrVEn0/3ld4YntctGEH/rTZuwtCvzSncFw71QJveJi9uxHs57KC8w9Apph3YvXJrmWg7M37+o+YV0KH/xmr626s5Bkhb3QhKOu+NoNEmA==" } } ``` #### Stop Response (Wired/Wireless) ```json { "event": "data" "channel": "/sites/67970e46-4e12-11e6-9188-0242ac110007/pcaps" "data": { "capture_id": "a2f7374d-6a70-41fd-8a3f-71e42573baaf", "lost_messages": 0, "pcap_dict": null } } ```

func (*UtilitiesPCAPs) StopOrgPacketCapture

func (u *UtilitiesPCAPs) StopOrgPacketCapture(
	ctx context.Context,
	orgId uuid.UUID) (
	*http.Response,
	error)

StopOrgPacketCapture takes context, orgId as parameters and returns an *Response and an error if there was an issue with the request or response. Stop the currently running organization packet capture and end its websocket output stream.

func (*UtilitiesPCAPs) StopSitePacketCapture

func (u *UtilitiesPCAPs) StopSitePacketCapture(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

StopSitePacketCapture takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. Stop current capture

func (*UtilitiesPCAPs) UpdateSitePacketCapture

func (u *UtilitiesPCAPs) UpdateSitePacketCapture(
	ctx context.Context,
	siteId uuid.UUID,
	pcapId uuid.UUID,
	body *models.NotesString) (
	*http.Response,
	error)

UpdateSitePacketCapture takes context, siteId, pcapId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Update or add notes to a completed packet capture

type UtilitiesUpgrade

type UtilitiesUpgrade struct {
	// contains filtered or unexported fields
}

UtilitiesUpgrade represents a controller struct.

func NewUtilitiesUpgrade

func NewUtilitiesUpgrade(baseController baseController) *UtilitiesUpgrade

NewUtilitiesUpgrade creates a new instance of UtilitiesUpgrade. It takes a baseController as a parameter and returns a pointer to the UtilitiesUpgrade.

func (*UtilitiesUpgrade) CancelOrgDeviceUpgrade added in v0.4.31

func (u *UtilitiesUpgrade) CancelOrgDeviceUpgrade(
	ctx context.Context,
	orgId uuid.UUID,
	upgradeId uuid.UUID) (
	*http.Response,
	error)

CancelOrgDeviceUpgrade takes context, orgId, upgradeId as parameters and returns an *Response and an error if there was an issue with the request or response. Cancel an organization-level device upgrade job on a best-effort basis. Devices that have already completed the upgrade are not changed.

func (*UtilitiesUpgrade) CancelOrgMxEdgeUpgrade added in v0.4.103

func (u *UtilitiesUpgrade) CancelOrgMxEdgeUpgrade(
	ctx context.Context,
	orgId uuid.UUID,
	upgradeId uuid.UUID) (
	*http.Response,
	error)

CancelOrgMxEdgeUpgrade takes context, orgId, upgradeId as parameters and returns an *Response and an error if there was an issue with the request or response. Cancel a Mist Edge upgrade request on a best-effort basis. Mist Edges that have already been upgraded are not changed.

func (*UtilitiesUpgrade) CancelOrgSsrUpgrade

func (u *UtilitiesUpgrade) CancelOrgSsrUpgrade(
	ctx context.Context,
	orgId uuid.UUID,
	upgradeId uuid.UUID) (
	*http.Response,
	error)

CancelOrgSsrUpgrade takes context, orgId, upgradeId as parameters and returns an *Response and an error if there was an issue with the request or response. Cancel an SSR firmware upgrade job on a best-effort basis. Devices that have already upgraded are not changed.

func (*UtilitiesUpgrade) CancelSiteDeviceUpgrade

func (u *UtilitiesUpgrade) CancelSiteDeviceUpgrade(
	ctx context.Context,
	siteId uuid.UUID,
	upgradeId uuid.UUID) (
	*http.Response,
	error)

CancelSiteDeviceUpgrade takes context, siteId, upgradeId as parameters and returns an *Response and an error if there was an issue with the request or response. Best effort to cancel an upgrade. Devices which are already upgraded wont be touched

func (*UtilitiesUpgrade) CancelSiteMxEdgeUpgrade added in v0.4.103

func (u *UtilitiesUpgrade) CancelSiteMxEdgeUpgrade(
	ctx context.Context,
	siteId uuid.UUID,
	upgradeId uuid.UUID) (
	*http.Response,
	error)

CancelSiteMxEdgeUpgrade takes context, siteId, upgradeId as parameters and returns an *Response and an error if there was an issue with the request or response. Cancel Mist Edge Upgrade. Best effort to cancel an upgrade. MxEdges which are already upgraded won't be touched.

func (*UtilitiesUpgrade) GetOrgDeviceUpgrade

func (u *UtilitiesUpgrade) GetOrgDeviceUpgrade(
	ctx context.Context,
	orgId uuid.UUID,
	upgradeId uuid.UUID) (
	models.ApiResponse[models.ResponseUpgradeOrgDevices],
	error)

GetOrgDeviceUpgrade takes context, orgId, upgradeId as parameters and returns an models.ApiResponse with models.ResponseUpgradeOrgDevices data and an error if there was an issue with the request or response. Retrieve details for an organization-level device upgrade job, including per-site upgrade status and device targets.

func (*UtilitiesUpgrade) GetOrgMxEdgeUpgrade

func (u *UtilitiesUpgrade) GetOrgMxEdgeUpgrade(
	ctx context.Context,
	orgId uuid.UUID,
	upgradeId uuid.UUID) (
	models.ApiResponse[models.ResponseMxedgeUpgrade],
	error)

GetOrgMxEdgeUpgrade takes context, orgId, upgradeId as parameters and returns an models.ApiResponse with models.ResponseMxedgeUpgrade data and an error if there was an issue with the request or response. Retrieve status, rollout strategy, target versions, and target counts for a specific Mist Edge upgrade request.

func (*UtilitiesUpgrade) GetOrgSsrUpgrade added in v0.4.75

func (u *UtilitiesUpgrade) GetOrgSsrUpgrade(
	ctx context.Context,
	orgId uuid.UUID,
	upgradeId uuid.UUID) (
	models.ApiResponse[models.ResponseSsrUpgradeStatus],
	error)

GetOrgSsrUpgrade takes context, orgId, upgradeId as parameters and returns an models.ApiResponse with models.ResponseSsrUpgradeStatus data and an error if there was an issue with the request or response. Return detailed status for an SSR firmware upgrade job, including target device IDs grouped by upgrade status.

func (*UtilitiesUpgrade) GetSiteDeviceUpgrade

func (u *UtilitiesUpgrade) GetSiteDeviceUpgrade(
	ctx context.Context,
	siteId uuid.UUID,
	upgradeId uuid.UUID) (
	models.ApiResponse[models.ResponseSiteDeviceUpgrade],
	error)

GetSiteDeviceUpgrade takes context, siteId, upgradeId as parameters and returns an models.ApiResponse with models.ResponseSiteDeviceUpgrade data and an error if there was an issue with the request or response. Get Site Device Upgrade

func (*UtilitiesUpgrade) GetSiteMxEdgeUpgrade added in v0.4.103

func (u *UtilitiesUpgrade) GetSiteMxEdgeUpgrade(
	ctx context.Context,
	siteId uuid.UUID,
	upgradeId uuid.UUID) (
	models.ApiResponse[models.ResponseMxedgeUpgrade],
	error)

GetSiteMxEdgeUpgrade takes context, siteId, upgradeId as parameters and returns an models.ApiResponse with models.ResponseMxedgeUpgrade data and an error if there was an issue with the request or response. Get Mist Edge Upgrade

func (*UtilitiesUpgrade) GetSiteSsrUpgrade

func (u *UtilitiesUpgrade) GetSiteSsrUpgrade(
	ctx context.Context,
	siteId uuid.UUID,
	upgradeId uuid.UUID) (
	models.ApiResponse[models.ResponseSsrUpgradeStatus],
	error)

GetSiteSsrUpgrade takes context, siteId, upgradeId as parameters and returns an models.ApiResponse with models.ResponseSsrUpgradeStatus data and an error if there was an issue with the request or response. Get Specific Site SSR Upgrade

func (*UtilitiesUpgrade) ListOrgAvailableDeviceVersions added in v0.3.17

func (u *UtilitiesUpgrade) ListOrgAvailableDeviceVersions(
	ctx context.Context,
	orgId uuid.UUID,
	mType *models.DeviceTypeDefaultApEnum,
	model *string) (
	models.ApiResponse[[]models.DeviceVersionItem],
	error)

ListOrgAvailableDeviceVersions takes context, orgId, mType, model as parameters and returns an models.ApiResponse with []models.DeviceVersionItem data and an error if there was an issue with the request or response. List available firmware versions for organization devices, optionally filtered by device type and model.

func (*UtilitiesUpgrade) ListOrgAvailableSsrVersions

func (u *UtilitiesUpgrade) ListOrgAvailableSsrVersions(
	ctx context.Context,
	orgId uuid.UUID,
	channel *models.SsrVersionChannelEnum,
	mac *string) (
	models.ApiResponse[[]models.SsrVersion],
	error)

ListOrgAvailableSsrVersions takes context, orgId, channel, mac as parameters and returns an models.ApiResponse with []models.SsrVersion data and an error if there was an issue with the request or response. List SSR firmware versions available for upgrade, optionally filtered by release channel and one or more SSR MAC addresses.

func (*UtilitiesUpgrade) ListOrgDeviceUpgrades

func (u *UtilitiesUpgrade) ListOrgDeviceUpgrades(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.UpgradeOrgDevicesItem],
	error)

ListOrgDeviceUpgrades takes context, orgId as parameters and returns an models.ApiResponse with []models.UpgradeOrgDevicesItem data and an error if there was an issue with the request or response. List organization-level device upgrade jobs, including the site-level upgrade jobs created under each organization upgrade.

func (*UtilitiesUpgrade) ListOrgMxEdgeUpgrades

func (u *UtilitiesUpgrade) ListOrgMxEdgeUpgrades(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.ResponseMxedgeUpgrade],
	error)

ListOrgMxEdgeUpgrades takes context, orgId as parameters and returns an models.ApiResponse with []models.ResponseMxedgeUpgrade data and an error if there was an issue with the request or response. List Mist Edge upgrade requests for the organization, including status, rollout strategy, target versions, and per-status target counts.

func (*UtilitiesUpgrade) ListOrgSsrUpgrades

func (u *UtilitiesUpgrade) ListOrgSsrUpgrades(
	ctx context.Context,
	orgId uuid.UUID) (
	models.ApiResponse[[]models.ResponseSsrUpgrade],
	error)

ListOrgSsrUpgrades takes context, orgId as parameters and returns an models.ApiResponse with []models.ResponseSsrUpgrade data and an error if there was an issue with the request or response. List SSR firmware upgrade jobs for the organization, including status, rollout strategy, target versions, release channel, and device counts.

func (*UtilitiesUpgrade) ListSiteAvailableDeviceVersions

func (u *UtilitiesUpgrade) ListSiteAvailableDeviceVersions(
	ctx context.Context,
	siteId uuid.UUID,
	mType *models.DeviceTypeDefaultApEnum,
	model *string) (
	models.ApiResponse[[]models.DeviceVersionItem],
	error)

ListSiteAvailableDeviceVersions takes context, siteId, mType, model as parameters and returns an models.ApiResponse with []models.DeviceVersionItem data and an error if there was an issue with the request or response. List firmware versions available for devices in a site, optionally filtered by device type and model. Use [List Org Available Device Versions]($e/Utilities%20Upgrade/listOrgAvailableDeviceVersions) to retrieve available device versions across the organization.

func (*UtilitiesUpgrade) ListSiteDeviceUpgrades

ListSiteDeviceUpgrades takes context, siteId, status as parameters and returns an models.ApiResponse with []models.ResponseSiteDeviceUpgradesItem data and an error if there was an issue with the request or response. List device upgrade operations for a site, optionally filtered by upgrade status. Use [List Org Device Upgrades]($e/Utilities%20Upgrade/listOrgDeviceUpgrades) to retrieve device upgrade operations across the organization.

func (*UtilitiesUpgrade) ListSiteMxEdgeUpgrades added in v0.4.103

func (u *UtilitiesUpgrade) ListSiteMxEdgeUpgrades(
	ctx context.Context,
	siteId uuid.UUID) (
	models.ApiResponse[[]models.ResponseMxedgeUpgrade],
	error)

ListSiteMxEdgeUpgrades takes context, siteId as parameters and returns an models.ApiResponse with []models.ResponseMxedgeUpgrade data and an error if there was an issue with the request or response. List Mist Edge upgrade operations for a site. Use [List Org Mist Edge Upgrades]($e/Utilities%20Upgrade/listOrgMxEdgeUpgrades) to retrieve Mist Edge upgrade operations across the organization.

func (*UtilitiesUpgrade) UpdateOrgMxEdgeUpgrade added in v0.4.103

func (u *UtilitiesUpgrade) UpdateOrgMxEdgeUpgrade(
	ctx context.Context,
	orgId uuid.UUID,
	upgradeId uuid.UUID,
	body *models.MxedgeUpgradeMulti) (
	models.ApiResponse[models.ResponseMxedgeUpgrade],
	error)

UpdateOrgMxEdgeUpgrade takes context, orgId, upgradeId, body as parameters and returns an models.ApiResponse with models.ResponseMxedgeUpgrade data and an error if there was an issue with the request or response. Update a queued Mist Edge upgrade request, such as target versions, rollout strategy, start time, or target Mist Edge IDs. Only upgrades in `queued` state can be updated.

func (*UtilitiesUpgrade) UpdateSiteMxEdgeUpgrade added in v0.4.103

func (u *UtilitiesUpgrade) UpdateSiteMxEdgeUpgrade(
	ctx context.Context,
	siteId uuid.UUID,
	upgradeId uuid.UUID,
	body *models.MxedgeUpgradeMulti) (
	models.ApiResponse[models.ResponseMxedgeUpgrade],
	error)

UpdateSiteMxEdgeUpgrade takes context, siteId, upgradeId, body as parameters and returns an models.ApiResponse with models.ResponseMxedgeUpgrade data and an error if there was an issue with the request or response. Update Mist Edge Upgrade. Only upgrades in `queued` state can be updated.

func (*UtilitiesUpgrade) UpgradeDevice

UpgradeDevice takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.ResponseDeviceUpgrade data and an error if there was an issue with the request or response. Device Upgrade

func (*UtilitiesUpgrade) UpgradeOrgDevices

UpgradeOrgDevices takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseUpgradeOrgDevices data and an error if there was an issue with the request or response. Start an organization-level device upgrade job across selected sites. The request selects device type, sites, models, firmware versions, and upgrade strategy; AP-specific and Junos-specific options apply only where supported.

func (*UtilitiesUpgrade) UpgradeOrgJsiDevice

func (u *UtilitiesUpgrade) UpgradeOrgJsiDevice(
	ctx context.Context,
	orgId uuid.UUID,
	deviceMac string,
	body *models.VersionString) (
	*http.Response,
	error)

UpgradeOrgJsiDevice takes context, orgId, deviceMac, body as parameters and returns an *Response and an error if there was an issue with the request or response. Start a software upgrade for a JSI-connected device identified by MAC address using the requested target version.

func (*UtilitiesUpgrade) UpgradeOrgMxEdges

func (u *UtilitiesUpgrade) UpgradeOrgMxEdges(
	ctx context.Context,
	orgId uuid.UUID,
	body *models.MxedgeUpgradeMulti) (
	*http.Response,
	error)

UpgradeOrgMxEdges takes context, orgId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Schedule a Mist Edge upgrade for selected Mist Edges, using service target versions or an optional Linux distro upgrade with rollout strategy and canary settings.

func (*UtilitiesUpgrade) UpgradeOrgSsrs

UpgradeOrgSsrs takes context, orgId, body as parameters and returns an models.ApiResponse with models.ResponseSsrUpgrade data and an error if there was an issue with the request or response. Create an SSR firmware upgrade job for selected devices, with firmware version or channel, rollout strategy, and optional download or reboot timing.

func (*UtilitiesUpgrade) UpgradeSiteDevices

UpgradeSiteDevices takes context, siteId, body as parameters and returns an models.ApiResponse with models.ResponseUpgradeId data and an error if there was an issue with the request or response. Upgrade Site Device **Note**: this call doesn’t guarantee the devices to be upgraded right away (they may be offline)

func (*UtilitiesUpgrade) UpgradeSiteMxEdges added in v0.4.103

func (u *UtilitiesUpgrade) UpgradeSiteMxEdges(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.MxedgeUpgradeMulti) (
	*http.Response,
	error)

UpgradeSiteMxEdges takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Upgrade Mist Edges in a Site. See [Org Mist Edges](/#tag/Utilities-Upgrade/operation/upgradeOrgMxEdges) for package upgrades See [Org Mist Edges Distro](/#tag/Utilities-Upgrade/operation/upgradeOrgMxEdges) for distro upgrades

func (*UtilitiesUpgrade) UpgradeSsr

func (u *UtilitiesUpgrade) UpgradeSsr(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.SsrUpgrade) (
	models.ApiResponse[models.ResponseSsrUpgrade],
	error)

UpgradeSsr takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.ResponseSsrUpgrade data and an error if there was an issue with the request or response. Upgrade Site SSR device

type UtilitiesWAN

type UtilitiesWAN struct {
	// contains filtered or unexported fields
}

UtilitiesWAN represents a controller struct.

func NewUtilitiesWAN

func NewUtilitiesWAN(baseController baseController) *UtilitiesWAN

NewUtilitiesWAN creates a new instance of UtilitiesWAN. It takes a baseController as a parameter and returns a pointer to the UtilitiesWAN.

func (*UtilitiesWAN) ClearSiteDeviceSession added in v0.2.38

func (u *UtilitiesWAN) ClearSiteDeviceSession(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsClearSession) (
	*http.Response,
	error)

ClearSiteDeviceSession takes context, siteId, deviceId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Clear session

func (*UtilitiesWAN) ClearSiteSsrArpCache

func (u *UtilitiesWAN) ClearSiteSsrArpCache(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsClearArp) (
	models.ApiResponse[models.WebsocketSession],
	error)

ClearSiteSsrArpCache takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Clear ARP cache for SSR, SRX and Switch Clear the entire ARP cache or a subset if arguments are provided. *Note*: port_id is optional if neither vlan nor ip is specified

func (*UtilitiesWAN) ClearSiteSsrBgpRoutes

func (u *UtilitiesWAN) ClearSiteSsrBgpRoutes(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsClearBgp) (
	models.ApiResponse[models.WebsocketSession],
	error)

ClearSiteSsrBgpRoutes takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Clear routes associated with one or all BGP neighbors

func (*UtilitiesWAN) ReleaseSiteSsrDhcpLease

func (u *UtilitiesWAN) ReleaseSiteSsrDhcpLease(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsReleaseDhcp) (
	models.ApiResponse[models.WebsocketSession],
	error)

ReleaseSiteSsrDhcpLease takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Releases an active DHCP lease. The output will be available through websocket. As there can be multiple commands issued against the same Device at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ```json { "event": "data", "channel": "/sites/d6fb4f96-3ba4-4cf5-8af2-a8d7b85087ac/devices/00000000-0000-0000-1000-0200010edbca/cmd", "data": "{\"event\": \"data\", \"channel\": \"/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/0200010edbca/cmd\",\"data\": {\"session\": \"356b2150-7307-4165-8411-52794c1ee8b0\",\"raw\": \"Releasing dhcp...\"}}" } { "event": "data", "channel": "/sites/d6fb4f96-3ba4-4cf5-8af2-a8d7b85087ac/devices/00000000-0000-0000-1000-0200010edbca/cmd", "data": "{\"event\": \"data\", \"channel\": \"/sites/d6fb4f96-xxxx-xxxx-xxxx-a8d7b85087ac/devices/0200010edbca/cmd\",\"data\": {\"session\": \"356b2150-7307-4165-8411-52794c1ee8b0\",\"raw\": \"Successfully released DHCP lease.\"}}" } ```

func (*UtilitiesWAN) RunSiteSrxTopCommand added in v0.3.17

func (u *UtilitiesWAN) RunSiteSrxTopCommand(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.WebsocketSessionWithUrl],
	error)

RunSiteSrxTopCommand takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.WebsocketSessionWithUrl data and an error if there was an issue with the request or response. Run top command on switches and SRX. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ```

func (*UtilitiesWAN) ServicePingFromSsr

func (u *UtilitiesWAN) ServicePingFromSsr(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsServicePing) (
	models.ApiResponse[models.WebsocketSession],
	error)

ServicePingFromSsr takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Ping from SSR Service Ping can be performed from the Device. The output will be available through websocket. As there can be multiple command issued against the same device at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ```json { "event": "data", "channel": "/sites/4ac1dcf4-9d8b-7211-65c4-057819f0862b/devices/00000000-0000-0000-1000-5c5b350e0060/cmd", "data": { "session": "session_id", "raw": "64 bytes from 23.211.0.110: seq=8 ttl=58 time=12.323 ms\n" } } ```

func (*UtilitiesWAN) ShowSiteGatewayOspfDatabase added in v0.4.54

func (u *UtilitiesWAN) ShowSiteGatewayOspfDatabase(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowOspfDatabase) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteGatewayOspfDatabase takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get OSPF Database from SSR and SRX. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ``` ===== ==================== ========== ======= ======== ================ =================== ================= Vrf Neighbor Router ID Priority State Uptime Dead Timer Due Interface Address Interface State ===== ==================== ========== ======= ======== ================ =================== ================= 1.0.0.3 1 Full 852 38 172.16.3.2 Backup 1.0.0.4 1 Full 811 33 172.16.3.2 DROther 1.0.0.3 1 Full 852 38 172.16.4.2 Backup 1.0.0.4 1 Full 811 34 172.16.4.2 DROther ```

func (*UtilitiesWAN) ShowSiteGatewayOspfInterfaces added in v0.4.54

func (u *UtilitiesWAN) ShowSiteGatewayOspfInterfaces(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowOspfInterfaces) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteGatewayOspfInterfaces takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get OSPF interfaces from SSR and SRX. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ``` ===== ================== =================== ============== =============== =========== ========= =========== Vrf Device Interface Network Interface Interface Up IP address OSPF Type Area ID Area Type ===== ================== =================== ============== =============== =========== ========= =========== net1 g1 True 172.16.1.2/24 Broadcast 0.0.0.0 default net3 g3 True 172.16.3.2/24 Broadcast 0.0.0.0 default net4 g4 True 172.16.4.2/24 Broadcast 0.0.0.4 default ```

func (*UtilitiesWAN) ShowSiteGatewayOspfNeighbors added in v0.4.54

func (u *UtilitiesWAN) ShowSiteGatewayOspfNeighbors(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowOspfNeighbors) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteGatewayOspfNeighbors takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get OSPF Neighbors from SSR and SRX. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ``` ===== ==================== ========== ======= ======== ================ =================== ================= Vrf Neighbor Router ID Priority State Uptime Dead Timer Due Interface Address Interface State ===== ==================== ========== ======= ======== ================ =================== ================= 1.0.0.3 1 Full 852 38 172.16.3.2 Backup 1.0.0.4 1 Full 811 33 172.16.3.2 DROther 1.0.0.3 1 Full 852 38 172.16.4.2 Backup 1.0.0.4 1 Full 811 34 172.16.4.2 DROther ```

func (*UtilitiesWAN) ShowSiteGatewayOspfSummary added in v0.4.54

func (u *UtilitiesWAN) ShowSiteGatewayOspfSummary(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowOspfSummary) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteGatewayOspfSummary takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get OSPF summary from SSR and SRX. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ``` ===== =========== ========== ============= ==================== ========= =========== ============= Vrf Router ID ABR Type ASBR Router External LSA Count Area ID Area Type Area Border Router ===== =========== ========== ============= ==================== ========= =========== ============= 1.0.0.2 cisco False 0 0.0.0.0 1.0.0.2 cisco False 0 0.0.0.4 default ```

func (*UtilitiesWAN) ShowSiteSsrAndSrxRoutes added in v0.3.41

func (u *UtilitiesWAN) ShowSiteSsrAndSrxRoutes(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowRoute) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteSsrAndSrxRoutes takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get routes from SSR, SRX and Switch. The output will be available through websocket. As there can be multiple commands issued against the same device at the same time and the output all goes through the same websocket stream, `session` is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ``` admin@labsystem1.fiedler# show bgp neighbors BGP neighbor is 192.168.4.1, remote AS 4200000001, local AS 4200000128, external link BGP version 4, remote router ID 1.1.1.1 BGP state = Established, up for 00:27:25 Last read 00:00:25, hold time is 90, keepalive interval is 30 seconds Configured hold time is 90, keepalive interval is 30 seconds Neighbor capabilities: 4 Byte AS: advertised and received Route refresh: advertised and received(old &amp; new) Address family IPv4 Unicast: advertised and received Graceful Restart Capability: advertised and received Remote Restart timer is 120 seconds Address families by peer: none ... ```

func (*UtilitiesWAN) ShowSiteSsrAndSrxSessions added in v0.3.41

func (u *UtilitiesWAN) ShowSiteSsrAndSrxSessions(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowSession) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteSsrAndSrxSessions takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get active sessions passing through the Device. The output will be available through websocket. As there can be multiple command issued against the same device at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ```json { "channel": "/sites/d6fb4f96-xxxx-xxxx-xxxx-xxxxxxxxxxxx/devices/00000000-0000-0000-1000-xxxxxxxxxxxx/cmd", "event": "data", "data": { "session": "f517bf29-1141-41ae-a084-17cacb0ccb57", "raw": "{\"status\":\"SUCCESS\",\"finished\":true,\"rows\":[{\"session_id\":\"a04b1cc7-dcc1-40a6-a010-0fe46ca38551\",\"direction\":\"forward\",\"service\":\"internet\",\"tenant\":\"SRV.PRD-Core\",\"device_interface\":\"ge-0/0/3\",\"network_interface\":\"ge-0/0/3.100\",\"protocol\":\"TCP\",\"source_ip\":\"10.3.20.101\",\"source_port\":45733,\"destination_ip\":\"13.38.46.35\",\"destination_port\":443,\"nat_ip\":\"192.168.1.115\",\"nat_port\":45256,\"payload_encrypted\":false,\"timeout\":1581,\"uptime\":319},{\"session_id\":\"a04b1cc7-dcc1-40a6-a010-0fe46ca38551\",\"direction\":\"reverse\",\"service\":\"internet\",\"tenant\":\"SRV.PRD-Core\",\"device_interface\":\"ge-0/0/0\",\"network_interface\":\"ge-0/0/0\",\"protocol\":\"TCP\",\"source_ip\":\"13.38.46.35\",\"source_port\":443,\"destination_ip\":\"192.168.1.115\",\"destination_port\":45256,\"nat_ip\":\"0.0.0.0\",\"nat_port\":0,\"payload_encrypted\":false,\"timeout\":1581,\"uptime\":319}]}\n" } } ```

func (*UtilitiesWAN) ShowSiteSsrServicePath added in v0.3.41

func (u *UtilitiesWAN) ShowSiteSsrServicePath(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID,
	body *models.UtilsShowServicePath) (
	models.ApiResponse[models.WebsocketSession],
	error)

ShowSiteSsrServicePath takes context, siteId, deviceId, body as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. Get service path information of the Device. The output will be available through websocket. As there can be multiple command issued against the same device at the same time and the output all goes through the same websocket stream, session is introduced for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` #### Example output from ws stream ```json { "channel": "/sites/d6fb4f96-xxxx-xxxx-xxxx-xxxxxxxxxxxx/devices/00000000-0000-0000-1000-xxxxxxxxxxxx/cmd", "event": "data", "data": { "session": "5cb8a6db-d11a-42cd-bed7-19e9f29e637", "raw": "{\"status\":\"SUCCESS\",\"finished\":true,\"rows\":[{\"service\":\"management\",\"type\":\"service-agent\",\"network_interface\":\"ge-0/0/0\",\"destination\":\"\",\"gateway_ip\":\"192.168.1.1\",\"vector\":\"\",\"cost\":0,\"rate\":0,\"state\":\"Up\",\"capacity\":\"0/unlimited\",\"meetsSLA\":\"Yes\"},{\"service\":\"management\",\"type\":\"service-agent\",\"network_interface\":\"ge-0/0/1\",\"destination\":\"\",\"gateway_ip\":\"192.168.0.1\",\"vector\":\"\",\"cost\":0,\"rate\":0,\"state\":\"Up\",\"capacity\":\"0/unlimited\",\"meetsSLA\":\"Yes\"}]}" } } ```

func (*UtilitiesWAN) TestSiteSsrDnsResolution

func (u *UtilitiesWAN) TestSiteSsrDnsResolution(
	ctx context.Context,
	siteId uuid.UUID,
	deviceId uuid.UUID) (
	models.ApiResponse[models.WebsocketSession],
	error)

TestSiteSsrDnsResolution takes context, siteId, deviceId as parameters and returns an models.ApiResponse with models.WebsocketSession data and an error if there was an issue with the request or response. DNS resolutions are performed on the Device. The output will be available through websocket. As there can be multiple commands issued against the same SSR at the same time and the output all goes through the same websocket stream, `session` is used for demux. #### Subscribe to Device Command outputs `WS /api-ws/v1/stream` ```json { "subscribe": "/sites/{site_id}/devices/{device_id}/cmd" } ``` ##### Example output from ws stream ``` Router | Hostname | Resolved | Last Resolved | Expiration -------------|------------------------|----------|----------------------|--------------------- test-device | xxx.yyy.net | Y | 2022-03-28T03:56:49Z | 2022-03-28T03:57:49Z ```

type UtilitiesWiFi

type UtilitiesWiFi struct {
	// contains filtered or unexported fields
}

UtilitiesWiFi represents a controller struct.

func NewUtilitiesWiFi

func NewUtilitiesWiFi(baseController baseController) *UtilitiesWiFi

NewUtilitiesWiFi creates a new instance of UtilitiesWiFi. It takes a baseController as a parameter and returns a pointer to the UtilitiesWiFi.

func (*UtilitiesWiFi) DeauthSiteWirelessClientsConnectedToARogue

func (u *UtilitiesWiFi) DeauthSiteWirelessClientsConnectedToARogue(
	ctx context.Context,
	siteId uuid.UUID,
	rogueBssid string) (
	*http.Response,
	error)

DeauthSiteWirelessClientsConnectedToARogue takes context, siteId, rogueBssid as parameters and returns an *Response and an error if there was an issue with the request or response. Send Deauth frame to clients connected to a Rogue AP

func (*UtilitiesWiFi) DisconnectSiteMultipleClients

func (u *UtilitiesWiFi) DisconnectSiteMultipleClients(
	ctx context.Context,
	siteId uuid.UUID,
	body []string) (
	*http.Response,
	error)

DisconnectSiteMultipleClients takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. To unauthorize multiple clients

func (*UtilitiesWiFi) DisconnectSiteWirelessClient

func (u *UtilitiesWiFi) DisconnectSiteWirelessClient(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string) (
	*http.Response,
	error)

DisconnectSiteWirelessClient takes context, siteId, clientMac as parameters and returns an *Response and an error if there was an issue with the request or response. This disconnect a client (and it’s likely to connect back)

func (*UtilitiesWiFi) OptimizeSiteRrm

func (u *UtilitiesWiFi) OptimizeSiteRrm(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.UtilsRrmOptimize) (
	*http.Response,
	error)

OptimizeSiteRrm takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Optimize Site RRM

func (*UtilitiesWiFi) ReauthOrgDot1xWirelessClient

func (u *UtilitiesWiFi) ReauthOrgDot1xWirelessClient(
	ctx context.Context,
	orgId uuid.UUID,
	clientMac string) (
	*http.Response,
	error)

ReauthOrgDot1xWirelessClient takes context, orgId, clientMac as parameters and returns an *Response and an error if there was an issue with the request or response. Trigger a CoA (change of authorization) against a client

func (*UtilitiesWiFi) ReauthSiteDot1xWirelessClient

func (u *UtilitiesWiFi) ReauthSiteDot1xWirelessClient(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string) (
	*http.Response,
	error)

ReauthSiteDot1xWirelessClient takes context, siteId, clientMac as parameters and returns an *Response and an error if there was an issue with the request or response. Trigger a CoA (change of authorization) against a Wireless client

func (*UtilitiesWiFi) ReprovisionSiteAllDevices added in v0.4.74

func (u *UtilitiesWiFi) ReprovisionSiteAllDevices(
	ctx context.Context,
	siteId uuid.UUID) (
	*http.Response,
	error)

ReprovisionSiteAllDevices takes context, siteId as parameters and returns an *Response and an error if there was an issue with the request or response. To force all Devices to reprovision itself again.

func (*UtilitiesWiFi) ResetSiteAllApsToUseRrm

func (u *UtilitiesWiFi) ResetSiteAllApsToUseRrm(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.UtilsResetRadioConfig) (
	*http.Response,
	error)

ResetSiteAllApsToUseRrm takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Reset all APs in the Site to use RRM

func (*UtilitiesWiFi) TestSiteWlanSmsGlobal added in v0.4.74

func (u *UtilitiesWiFi) TestSiteWlanSmsGlobal(
	ctx context.Context,
	body *models.TestSmsGlobal) (
	*http.Response,
	error)

TestSiteWlanSmsGlobal takes context, body as parameters and returns an *Response and an error if there was an issue with the request or response. Allows validation of Global sms gateway credentials. In case of success, a text message confirming successful setup should be received. In case of error, smsglobal error message are returned.

func (*UtilitiesWiFi) TestSiteWlanTelstraSetup

func (u *UtilitiesWiFi) TestSiteWlanTelstraSetup(
	ctx context.Context,
	body *models.TestTelstra) (
	*http.Response,
	error)

TestSiteWlanTelstraSetup takes context, body as parameters and returns an *Response and an error if there was an issue with the request or response. Allows validation of Telstra sms gateway credentials. In case of success, a text message confirming successful setup should be received. In case of error, telstra error message are returned.

func (*UtilitiesWiFi) TestSiteWlanTwilioSetup

func (u *UtilitiesWiFi) TestSiteWlanTwilioSetup(
	ctx context.Context,
	body *models.TestTwilio) (
	*http.Response,
	error)

TestSiteWlanTwilioSetup takes context, body as parameters and returns an *Response and an error if there was an issue with the request or response. Allows validation of twilio setup In case of success, a text message confirming successful setup should be received. In case of error, twilio error code and message are returned.

func (*UtilitiesWiFi) UnauthorizeSiteMultipleClients

func (u *UtilitiesWiFi) UnauthorizeSiteMultipleClients(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.MacAddresses) (
	*http.Response,
	error)

UnauthorizeSiteMultipleClients takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. This unauthorize clients (if they are guest) and disconnect them. From the guest’s perspective, they will see the splash page again and go through the flow (e.g. Terms of Use) again.

func (*UtilitiesWiFi) UnauthorizeSiteWirelessClient

func (u *UtilitiesWiFi) UnauthorizeSiteWirelessClient(
	ctx context.Context,
	siteId uuid.UUID,
	clientMac string) (
	*http.Response,
	error)

UnauthorizeSiteWirelessClient takes context, siteId, clientMac as parameters and returns an *Response and an error if there was an issue with the request or response. This unauthorize a client (if it’s a guest) and disconnect it. From the guest’s perspective, s/he will see the splash page again and go through the flow (e.g. Terms of Use) again.

func (*UtilitiesWiFi) ZeroizeSiteFipsAllAps

func (u *UtilitiesWiFi) ZeroizeSiteFipsAllAps(
	ctx context.Context,
	siteId uuid.UUID,
	body *models.UtilsZeroizeFips) (
	*http.Response,
	error)

ZeroizeSiteFipsAllAps takes context, siteId, body as parameters and returns an *Response and an error if there was an issue with the request or response. Zeroize all FIPS APs in the Site

Source Files

Directories

Path Synopsis
Package mistapi Copyright \xA9 2024 Juniper Networks, Inc.
Package mistapi Copyright \xA9 2024 Juniper Networks, Inc.
events
webhooks
Package mistapi Copyright \xA9 2024 Juniper Networks, Inc.
Package mistapi Copyright \xA9 2024 Juniper Networks, Inc.
Package mistapi Copyright \xA9 2024 Juniper Networks, Inc.
Package mistapi Copyright \xA9 2024 Juniper Networks, Inc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL