racampos.dnac.virtual_account_sync (0.0.1) — module

Manage VirtualAccountSync objects of DeviceOnboardingPnp

| "added in version" 1.0 of racampos.dnac"

Authors: first last (@GitHubID)

preview | supported by community

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install racampos.dnac:==0.0.1


Add to requirements.yml

  collections:
    - name: racampos.dnac
      version: 0.0.1

Description

Synchronizes the device info from the given smart account & virtual account with the PnP database. The response payload returns a list of synced devices.

Returns the summary of devices synced from the given smart account & virtual account with PnP.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: sync_virtual_account_devices
  cisco.dnac.virtual_account_sync:
    state: create  # required
    profile:  # required
      addressFqdn: SomeValue  # string
      addressIpV4: SomeValue  # string
      cert: SomeValue  # string
      makeDefault: True  # boolean
      name: SomeValue  # string
      port: 1  #  integer
      profileId: SomeValue  # string
      proxy: True  # boolean
    smartAccountId: SomeValue  # string, required
    syncStatus: SomeValue  # string, required, valid values: 'NOT_SYNCED', 'SYNCING', 'SUCCESS', 'FAILURE'.
    virtualAccountId: SomeValue  # string, required
    autoSyncPeriod: 1  #  integer
    ccoUser: SomeValue  # string
    expiry: 1  #  integer
    lastSync: 1  #  integer
    syncResult:
      syncList:
      - deviceSnList:
        - SomeValue  # string
        syncType: SomeValue  # string
      syncMsg: SomeValue  # string
    syncResultStr: SomeValue  # string
    syncStartTime: 1  #  integer
    tenantId: SomeValue  # string
    token: SomeValue  # string
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  
- name: get_sync_result_for_virtual_account
  cisco.dnac.virtual_account_sync:
    state: query  # required
    domain: SomeValue  # string, required
    name: SomeValue  # string, required
  register: query_result

Inputs

    
name:
    description:
    - Virtual Account Name.
    - Required for state query.
    type: str

token:
    description:
    - SAVAMapping's token.
    type: str

domain:
    description:
    - Smart Account Domain.
    - Required for state query.
    type: str

expiry:
    description:
    - SAVAMapping's expiry.
    type: int

ccoUser:
    description:
    - SAVAMapping's ccoUser.
    type: str

profile:
    description:
    - SAVAMapping's profile.
    - Required for state create.
    suboptions:
      addressFqdn:
        description:
        - It is the virtual account sync's addressFqdn.
        type: str
      addressIpV4:
        description:
        - It is the virtual account sync's addressIpV4.
        type: str
      cert:
        description:
        - It is the virtual account sync's cert.
        type: str
      makeDefault:
        description:
        - It is the virtual account sync's makeDefault.
        type: bool
      name:
        description:
        - It is the virtual account sync's name.
        type: str
      port:
        description:
        - It is the virtual account sync's port.
        type: int
      profileId:
        description:
        - It is the virtual account sync's profileId.
        type: str
      proxy:
        description:
        - It is the virtual account sync's proxy.
        type: bool
    type: dict

lastSync:
    description:
    - SAVAMapping's lastSync.
    type: int

tenantId:
    description:
    - SAVAMapping's tenantId.
    type: str

syncResult:
    description:
    - SAVAMapping's syncResult.
    suboptions:
      syncList:
        description:
        - It is the virtual account sync's syncList.
        elements: dict
        suboptions:
          deviceSnList:
            description:
            - It is the virtual account sync's deviceSnList.
            type: list
          syncType:
            description:
            - It is the virtual account sync's syncType.
            type: str
        type: list
      syncMsg:
        description:
        - It is the virtual account sync's syncMsg.
        type: str
    type: dict

syncStatus:
    description:
    - SAVAMapping's syncStatus.
    - Available values are 'NOT_SYNCED', 'SYNCING', 'SUCCESS' and 'FAILURE'.
    - Required for state create.
    type: str

syncResultStr:
    description:
    - SAVAMapping's syncResultStr.
    type: str

syncStartTime:
    description:
    - SAVAMapping's syncStartTime.
    type: int

autoSyncPeriod:
    description:
    - SAVAMapping's autoSyncPeriod.
    type: int

smartAccountId:
    description:
    - SAVAMapping's smartAccountId.
    - Required for state create.
    type: str

virtualAccountId:
    description:
    - SAVAMapping's virtualAccountId.
    - Required for state create.
    type: str

Outputs

get_sync_result_for_virtual_account:
  autoSyncPeriod:
    description: AutoSyncPeriod, property of the response body.
    returned: always
    sample: 0
    type: int
  ccoUser:
    description: Cco User, property of the response body.
    returned: always
    sample: <ccouser>
    type: str
  contains: null
  description: Returns the summary of devices synced from the given smart account
    & virtual account with PnP.
  expiry:
    description: Expiry, property of the response body.
    returned: always
    sample: 0
    type: int
  lastSync:
    description: LastSync, property of the response body.
    returned: always
    sample: 0
    type: int
  profile:
    contains:
      addressFqdn:
        description: It is the virtual account sync's addressFqdn.
        returned: always
        sample: <addressfqdn>
        type: str
      addressIpV4:
        description: It is the virtual account sync's addressIpV4.
        returned: always
        sample: <addressipv4>
        type: str
      cert:
        description: It is the virtual account sync's cert.
        returned: always
        sample: <cert>
        type: str
      makeDefault:
        description: It is the virtual account sync's makeDefault.
        returned: always
        sample: false
        type: bool
      name:
        description: It is the virtual account sync's name.
        returned: always
        sample: <name>
        type: str
      port:
        description: It is the virtual account sync's port.
        returned: always
        sample: 0
        type: int
      profileId:
        description: It is the virtual account sync's profileId.
        returned: always
        sample: <profileid>
        type: str
      proxy:
        description: It is the virtual account sync's proxy.
        returned: always
        sample: false
        type: bool
    description: Profile, property of the response body.
    returned: always
    type: dict
  returned: always
  smartAccountId:
    description: Smart Account Id, property of the response body.
    returned: always
    sample: <smartaccountid>
    type: str
  syncResult:
    contains:
      syncList:
        contains:
          deviceSnList:
            description: It is the virtual account sync's deviceSnList.
            returned: always
            type: list
          syncType:
            description: It is the virtual account sync's syncType.
            returned: always
            sample: <synctype>
            type: str
        description: It is the virtual account sync's syncList.
        returned: always
        type: list
      syncMsg:
        description: It is the virtual account sync's syncMsg.
        returned: always
        sample: <syncmsg>
        type: str
    description: Sync Result, property of the response body.
    returned: always
    type: dict
  syncResultStr:
    description: Sync Result Str, property of the response body.
    returned: always
    sample: <syncresultstr>
    type: str
  syncStartTime:
    description: SyncStartTime, property of the response body.
    returned: always
    sample: 0
    type: int
  syncStatus:
    description: Sync Status, property of the response body.
    returned: always
    sample: <syncstatus>
    type: str
  tenantId:
    description: Tenant Id, property of the response body.
    returned: always
    sample: <tenantid>
    type: str
  token:
    description: Token, property of the response body.
    returned: always
    sample: <token>
    type: str
  type: dict
  virtualAccountId:
    description: Virtual Account Id, property of the response body.
    returned: always
    sample: <virtualaccountid>
    type: str
sync_virtual_account_devices:
  autoSyncPeriod:
    description: SAVAMapping's autoSyncPeriod.
    returned: success
    sample: 0
    type: int
  ccoUser:
    description: SAVAMapping's Cco User.
    returned: success
    sample: <ccouser>
    type: str
  contains: null
  description: Synchronizes the device info from the given smart account & virtual
    account with the PnP database. The response payload returns a list of synced devices.
  expiry:
    description: SAVAMapping's expiry.
    returned: success
    sample: 0
    type: int
  lastSync:
    description: SAVAMapping's lastSync.
    returned: success
    sample: 0
    type: int
  profile:
    contains:
      addressFqdn:
        description: It is the virtual account sync's addressFqdn.
        returned: success
        sample: <addressfqdn>
        type: str
      addressIpV4:
        description: It is the virtual account sync's addressIpV4.
        returned: success
        sample: <addressipv4>
        type: str
      cert:
        description: It is the virtual account sync's cert.
        returned: success
        sample: <cert>
        type: str
      makeDefault:
        description: It is the virtual account sync's makeDefault.
        returned: success
        sample: false
        type: bool
      name:
        description: It is the virtual account sync's name.
        returned: success
        sample: <name>
        type: str
      port:
        description: It is the virtual account sync's port.
        returned: success
        sample: 0
        type: int
      profileId:
        description: It is the virtual account sync's profileId.
        returned: success
        sample: <profileid>
        type: str
      proxy:
        description: It is the virtual account sync's proxy.
        returned: success
        sample: false
        type: bool
    description: SAVAMapping's Profile.
    returned: success
    type: dict
  returned: success
  smartAccountId:
    description: SAVAMapping's Smart Account Id.
    returned: success
    sample: <smartaccountid>
    type: str
  syncResult:
    contains:
      syncList:
        contains:
          deviceSnList:
            description: It is the virtual account sync's deviceSnList.
            returned: success
            type: list
          syncType:
            description: It is the virtual account sync's syncType.
            returned: success
            sample: <synctype>
            type: str
        description: It is the virtual account sync's syncList.
        returned: success
        type: list
      syncMsg:
        description: It is the virtual account sync's syncMsg.
        returned: success
        sample: <syncmsg>
        type: str
    description: SAVAMapping's Sync Result.
    returned: success
    type: dict
  syncResultStr:
    description: SAVAMapping's Sync Result Str.
    returned: success
    sample: <syncresultstr>
    type: str
  syncStartTime:
    description: SAVAMapping's syncStartTime.
    returned: success
    sample: 0
    type: int
  syncStatus:
    description: SAVAMapping's Sync Status.
    returned: success
    sample: <syncstatus>
    type: str
  tenantId:
    description: SAVAMapping's Tenant Id.
    returned: success
    sample: <tenantid>
    type: str
  token:
    description: SAVAMapping's Token.
    returned: success
    sample: <token>
    type: str
  type: dict
  virtualAccountId:
    description: SAVAMapping's Virtual Account Id.
    returned: success
    sample: <virtualaccountid>
    type: str

See also