On this page
meraki_admin - Manage administrators in the Meraki cloud
New in version 2.6.
Synopsis
- Allows for creation, management, and visibility into administrators within Meraki.
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
auth_key |
Authentication key provided by the dashboard. Required if environmental variable MERAKI_KEY is not set.
|
|
Email address for the dashboard administrator.
Email cannot be updated.
Required when creating or editing an administrator.
|
||
host
string
|
Default:
"api.meraki.com"
|
Hostname for Meraki dashboard
Only useful for internal Meraki developers
|
name |
Name of the dashboard administrator.
Required when creating a new administrator.
|
|
networks |
List of networks the administrator has privileges on.
When creating a new administrator, org_name , network , or tags must be specified.
|
|
org_id |
ID of organization.
|
|
org_name |
Name of organization.
Used when
name should refer to another object.
When creating a new administrator,
org_name , network , or tags must be specified.
aliases: organization |
|
orgAccess |
|
Privileges assigned to the administrator in the organization.
|
output_level |
|
Set amount of debug output during module execution
|
state
required
|
|
Create or modify an organization
|
tags |
Tags the administrator has privileges on.
When creating a new administrator,
org_name , network , or tags must be specified.
If none is specified, network or tags must be specified.
|
|
timeout
int
|
Default:
30
|
Time to timeout for HTTP requests.
|
use_https
bool
|
|
If
no , it will use HTTP. Otherwise it will use HTTPS.
Only useful for internal Meraki developers
|
use_proxy
bool
|
|
If no , it will not use a proxy, even if one is defined in an environment variable on the target hosts.
|
validate_certs
bool
|
|
Whether to validate HTTP certificates.
|
Notes
Note
- More information about the Meraki API can be found at https://dashboard.meraki.com/api_docs.
- Some of the options are likely only used for developers within Meraki
Examples
- name: Query information about all administrators associated to the organization
meraki_admin:
auth_key: abc12345
state: query
delegate_to: localhost
- name: Query information about a single administrator by name
meraki_admin:
auth_key: abc12345
state: query
name: Jane Doe
- name: Query information about a single administrator by email
meraki_admin:
auth_key: abc12345
state: query
email: jane@doe.com
- name: new administrator with organization access
meraki_admin:
auth_key: abc12345
state: present
name: Jane Doe
orgAccess: read-only
email: jane@doe.com
- name: Create a new administrator with organization access
meraki_admin:
auth_key: abc12345
state: present
name: Jane Doe
orgAccess: read-only
email: jane@doe.com
- name: Revoke access to an organization for an administrator
meraki_admin:
auth_key: abc12345
state: absent
email: jane@doe.com
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description | ||
---|---|---|---|---|
data
complex
|
success |
List of administrators.
|
||
email
string
|
success |
Email address of administrator.
Sample:
your@email.com
|
||
id
string
|
success |
Unique identification number of administrator.
Sample:
1234567890
|
||
name
string
|
success |
Given name of administrator.
Sample:
John Doe
|
||
networks
complex
|
success |
List of networks administrator has access on.
|
||
id
string
|
when network permissions are set |
The network ID.
Sample:
N_0123456789
|
||
access
string
|
when network permissions are set |
Access level of administrator. Options are 'full', 'read-only', or 'none'.
Sample:
read-only
|
||
tags
complex
|
success |
Tags the adminsitrator has access on.
|
||
tag
string
|
when tag permissions are set |
Tag name.
Sample:
production
|
||
access
string
|
when tag permissions are set |
Access level of administrator. Options are 'full', 'read-only', or 'none'.
Sample:
full
|
||
orgAccess
string
|
success |
The privilege of the dashboard administrator on the organization. Options are 'full', 'read-only', or 'none'.
Sample:
full
|
Status
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
Maintenance
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
Author
- Kevin Breit (@kbreit)
Hint
If you notice any issues in this documentation you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.6/modules/meraki_admin_module.html