meraki_admin - Added recently added return fields for query (#51876)

* Added recently added return fields for query
- Defined type of string for older fields too

* Fix incorrect type for org_id
pull/52605/head
Kevin Breit 6 years ago committed by ansibot
parent 81ab3995e2
commit 9f7584e311

@ -25,15 +25,18 @@ options:
description: description:
- Name of the dashboard administrator. - Name of the dashboard administrator.
- Required when creating a new administrator. - Required when creating a new administrator.
type: str
email: email:
description: description:
- Email address for the dashboard administrator. - Email address for the dashboard administrator.
- Email cannot be updated. - Email cannot be updated.
- Required when creating or editing an administrator. - Required when creating or editing an administrator.
type: str
orgAccess: orgAccess:
description: description:
- Privileges assigned to the administrator in the organization. - Privileges assigned to the administrator in the organization.
choices: [ full, none, read-only ] choices: [ full, none, read-only ]
type: str
tags: tags:
description: description:
- Tags the administrator has privileges on. - Tags the administrator has privileges on.
@ -49,15 +52,18 @@ options:
- If C(state) is C(absent), name takes priority over email if both are specified. - If C(state) is C(absent), name takes priority over email if both are specified.
choices: [ absent, present, query ] choices: [ absent, present, query ]
required: true required: true
type: str
org_name: org_name:
description: description:
- Name of organization. - Name of organization.
- Used when C(name) should refer to another object. - Used when C(name) should refer to another object.
- When creating a new administrator, C(org_name), C(network), or C(tags) must be specified. - When creating a new administrator, C(org_name), C(network), or C(tags) must be specified.
aliases: ['organization'] aliases: ['organization']
type: str
org_id: org_id:
description: description:
- ID of organization. - ID of organization.
type: str
author: author:
- Kevin Breit (@kbreit) - Kevin Breit (@kbreit)
extends_documentation_fragment: meraki extends_documentation_fragment: meraki
@ -141,6 +147,26 @@ data:
returned: success returned: success
type: str type: str
sample: John Doe sample: John Doe
accountStatus:
description: Status of account.
returned: success
type: str
sample: ok
twoFactorAuthEnabled:
description: Enabled state of two-factor authentication for administrator.
returned: success
type: bool
sample: false
hasApiKey:
description: Defines whether administrator has an API assigned to their account.
returned: success
type: bool
sample: false
lastActive:
description: Date and time of time the administrator was active within Dashboard.
returned: success
type: str
sample: 2019-01-28 14:58:56 -0800
networks: networks:
description: List of networks administrator has access on. description: List of networks administrator has access on.
returned: success returned: success
@ -176,6 +202,7 @@ data:
returned: success returned: success
type: str type: str
sample: full sample: full
''' '''
import os import os
@ -306,7 +333,7 @@ def main():
tags=dict(type='json'), tags=dict(type='json'),
networks=dict(type='json'), networks=dict(type='json'),
org_name=dict(type='str', aliases=['organization']), org_name=dict(type='str', aliases=['organization']),
org_id=dict(type='int'), org_id=dict(type='str'),
) )
# seed the result dict in the object # seed the result dict in the object

Loading…
Cancel
Save