| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
DOCUMENTATION = r""" |
| 8 |
module: organizations_sm_sentry_policies_assignments |
| 9 |
short_description: Resource module for organizations _sm _sentry _policies _assignments |
| 10 |
description: |
| 11 |
- Manage operation update of the resource organizations _sm _sentry _policies _assignments. |
| 12 |
- > |
| 13 |
Update an Organizations Sentry Policies using the provided list. Sentry Policies |
| 14 |
are ordered in descending order of priority i.e. Highest priority at the bottom, |
| 15 |
this is opposite the Dashboard UI. Policies not present in the request will be |
| 16 |
deleted. |
| 17 |
version_added: '1.0.0' |
| 18 |
extends_documentation_fragment: |
| 19 |
- cisco.meraki.module |
| 20 |
author: Francisco Munoz (@fmunoz) |
| 21 |
options: |
| 22 |
items: |
| 23 |
description: Sentry Group Policies for the Organization keyed by Network Id. |
| 24 |
elements: dict |
| 25 |
suboptions: |
| 26 |
networkId: |
| 27 |
description: The Id of the Network. |
| 28 |
type: str |
| 29 |
policies: |
| 30 |
description: Array of Sentry Group Policies for the Network. |
| 31 |
elements: dict |
| 32 |
suboptions: |
| 33 |
groupPolicyId: |
| 34 |
description: The Group Policy Id. |
| 35 |
type: str |
| 36 |
policyId: |
| 37 |
description: The Sentry Policy Id, if updating an existing Sentry Policy. |
| 38 |
type: str |
| 39 |
scope: |
| 40 |
description: The scope of the Sentry Policy. |
| 41 |
type: str |
| 42 |
smNetworkId: |
| 43 |
description: The Id of the Systems Manager Network. |
| 44 |
type: str |
| 45 |
tags: |
| 46 |
description: The tags for the Sentry Policy. |
| 47 |
elements: str |
| 48 |
type: list |
| 49 |
type: list |
| 50 |
type: list |
| 51 |
organizationId: |
| 52 |
description: OrganizationId path parameter. Organization ID. |
| 53 |
type: str |
| 54 |
requirements: |
| 55 |
- meraki >= 2.4.9 |
| 56 |
- python >= 3.5 |
| 57 |
seealso: |
| 58 |
- name: Cisco Meraki documentation for sm updateOrganizationSmSentryPoliciesAssignments |
| 59 |
description: Complete reference of the updateOrganizationSmSentryPoliciesAssignments |
| 60 |
API. |
| 61 |
link: https://developer.cisco.com/meraki/api-v1/#!update-organization-sm-sentry-policies-assignments |
| 62 |
notes: |
| 63 |
- SDK Method used are |
| 64 |
sm.Sm.update_organization_sm_sentry_policies_assignments, |
| 65 |
- Paths used are |
| 66 |
put /organizations/{organizationId}/sm/sentry/policies/assignments, |
| 67 |
""" |
| 68 |
|
| 69 |
EXAMPLES = r""" |
| 70 |
- name: Update all |
| 71 |
cisco.meraki.organizations_sm_sentry_policies_assignments: |
| 72 |
meraki_api_key: "{{ meraki_api_key }}" |
| 73 |
meraki_base_url: "{{ meraki_base_url }}" |
| 74 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 75 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 76 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 77 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 78 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 79 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 80 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 81 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 82 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 83 |
meraki_output_log: "{{ meraki_output_log }}" |
| 84 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 85 |
meraki_log_path: "{{ meraki_log_path }}" |
| 86 |
meraki_print_console: "{{ meraki_print_console }}" |
| 87 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 88 |
meraki_simulate: "{{ meraki_simulate }}" |
| 89 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 90 |
meraki_caller: "{{ meraki_caller }}" |
| 91 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 92 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 93 |
items: |
| 94 |
- networkId: N_24329156 |
| 95 |
policies: |
| 96 |
- groupPolicyId: '1284392014819' |
| 97 |
policyId: '1284392014819' |
| 98 |
scope: withAny |
| 99 |
smNetworkId: N_24329156 |
| 100 |
tags: |
| 101 |
- tag1 |
| 102 |
- tag2 |
| 103 |
organizationId: string |
| 104 |
""" |
| 105 |
RETURN = r""" |
| 106 |
meraki_response: |
| 107 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 108 |
returned: always |
| 109 |
type: dict |
| 110 |
sample: > |
| 111 |
{ |
| 112 |
"items": [ |
| 113 |
{ |
| 114 |
"networkId": "string", |
| 115 |
"policies": [ |
| 116 |
{ |
| 117 |
"policyId": "string", |
| 118 |
"networkId": "string", |
| 119 |
"smNetworkId": "string", |
| 120 |
"tags": [ |
| 121 |
"string" |
| 122 |
], |
| 123 |
"scope": "string", |
| 124 |
"groupNumber": "string", |
| 125 |
"groupPolicyId": "string", |
| 126 |
"priority": "string", |
| 127 |
"createdAt": "string", |
| 128 |
"lastUpdatedAt": "string" |
| 129 |
} |
| 130 |
] |
| 131 |
} |
| 132 |
] |
| 133 |
} |
| 134 |
""" |