Package: sdksio-juniper-mist-sdk
Getting Started with Mist APIIntroductionVersion:2306.2.8Date:July 10, 2023Available DocumentationPostmanOpen APIUseful linksMist HomepageMist DocumentationOfficial API Documentation(Mist account required)Mist BlogMist UpdatesInstall the PackageThe package is compatible with Python versions3 >=3.7, <= 3.11.
Install the package from PyPi using the following pip command:pipinstallsdksio-juniper-mist-sdk==1.0.0You can also view the package at:https://pypi.python.org/pypi/sdksio-juniper-mist-sdk/1.0.0Test the SDKYou can test the generated SDK and the server with test cases.unittestis used as the testing framework andpytestis used as the test runner. You can run the tests as follows:Navigate to the root directory of the SDK and run the following commandspip install -r test-requirements.txt
pytestInitialize the API ClientNote:Documentation for the client can be foundhere.The following parameters are configurable for the API Client:ParameterTypeDescriptionenvironmentEnvironmentThe API environment.Default:Environment.PRODUCTIONhttp_client_instanceHttpClientThe Http Client passed from the sdk user for making requestsoverride_http_client_configurationboolThe value which determines to override properties of the passed Http Client from the sdk userhttp_call_backHttpCallBackThe callback value that is invoked before and after an HTTP call is made to an endpointtimeoutfloatThe value to use for connection timeout.Default: 60max_retriesintThe number of times to retry an endpoint call if it fails.Default: 0backoff_factorfloatA backoff factor to apply between attempts after the second try.Default: 2retry_statusesArray of intThe http statuses on which retry is to be done.Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]retry_methodsArray of stringThe http methods on which retry is to be done.Default: ['GET', 'PUT']authorizationstringAuth Header. Replace {x-auth-key} with your Auth Key.Default:'Token {x-auth-key}'The API client can be initialized as follows:frommistapi.mistapi_clientimportMistapiClientfrommistapi.configurationimportEnvironmentclient=MistapiClient(authorization='Token {x-auth-key}')EnvironmentsThe SDK can be configured to use a different environment for making API calls. Available environments are:FieldsNameDescriptionproductionDefaultMist Global 01environment2Mist Global 02environment3Mist Global 03environment4Mist Global 04environment5Mist Europe 01AuthorizationThis API usesCustom Header Signature.List of APIsLogin With O Auth 2API TokenMsps AdminsMsps InventoryMsps InvitesMsps LogoMsps LogsMsps LicensesMsps MarvisMsps Org GroupsMsps OrgsMsps SL EsMsps SSO RolesMsps SSOMsps StatsMsps TicketsOrgs AdminsSites AlarmsSites ApplicationsSites AnomalySites Asset FiltersSites AssetsSites BeaconsSites CallsSites Clients-WanSites Clients-WiredSites Clients-WirelessSites DevicesSites Devices-WirelessSites Devices OthersSites Devices-WiredSites Devices-Wired Virtual ChassisSites Devices-WANSites Devices-WANHASites Devices StatsSites Devices UpgradesSites Devices UtilitiesSites EventsSites EVPN TopologiesSites GuestsSites InsightsSites LicensesSites LocationSites MapsSites Maps Auto-OrientationSites Maps Auto-PlacementSites Mx EdgesSites Mx TunnelsSites NetworksSites PcapsSites PsksSites RfdiagsSites RoguesSites RRMSites RssizonesSites ServicesSites Service PoliciesSites SettingSites SkyatpSites SL EsSites StatsSites SubscriptionsSites Synthetic TestsSites UI SettingsSitesv BeaconsSites VP NsSites WebhooksSites WlansSites Wx RulesSites Wx TagsSites Wx TunnelsSites ZonesWebhook SamplesOrgs AdminLoginInstallerAdminMobileMspsSitesConstantsSelfClasses DocumentationUtility ClassesHttpResponseHttpRequest