| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
DOCUMENTATION = r""" |
| 8 |
module: organizations_licenses_renew_seats |
| 9 |
short_description: Resource module for organizations _licenses _renewseats |
| 10 |
description: |
| 11 |
- Manage operation create of the resource organizations _licenses _renewseats. |
| 12 |
- > |
| 13 |
Renew SM seats of a license. This will extend the license expiration date of managed |
| 14 |
SM devices covered by this license. |
| 15 |
version_added: '1.0.0' |
| 16 |
extends_documentation_fragment: |
| 17 |
- cisco.meraki.module |
| 18 |
author: Francisco Munoz (@fmunoz) |
| 19 |
options: |
| 20 |
licenseIdToRenew: |
| 21 |
description: The ID of the SM license to renew. This license must already be assigned |
| 22 |
to an SM network. |
| 23 |
type: str |
| 24 |
organizationId: |
| 25 |
description: OrganizationId path parameter. Organization ID. |
| 26 |
type: str |
| 27 |
unusedLicenseId: |
| 28 |
description: The SM license to use to renew the seats on 'licenseIdToRenew'. This |
| 29 |
license must have at least as many seats available as there are seats on 'licenseIdToRenew'. |
| 30 |
type: str |
| 31 |
requirements: |
| 32 |
- meraki >= 2.4.9 |
| 33 |
- python >= 3.5 |
| 34 |
seealso: |
| 35 |
- name: Cisco Meraki documentation for organizations renewOrganizationLicensesSeats |
| 36 |
description: Complete reference of the renewOrganizationLicensesSeats API. |
| 37 |
link: https://developer.cisco.com/meraki/api-v1/#!renew-organization-licenses-seats |
| 38 |
notes: |
| 39 |
- SDK Method used are |
| 40 |
organizations.Organizations.renew_organization_licenses_seats, |
| 41 |
- Paths used are |
| 42 |
post /organizations/{organizationId}/licenses/renewSeats, |
| 43 |
""" |
| 44 |
|
| 45 |
EXAMPLES = r""" |
| 46 |
- name: Create |
| 47 |
cisco.meraki.organizations_licenses_renew_seats: |
| 48 |
meraki_api_key: "{{ meraki_api_key }}" |
| 49 |
meraki_base_url: "{{ meraki_base_url }}" |
| 50 |
meraki_single_request_timeout: "{{ meraki_single_request_timeout }}" |
| 51 |
meraki_certificate_path: "{{ meraki_certificate_path }}" |
| 52 |
meraki_requests_proxy: "{{ meraki_requests_proxy }}" |
| 53 |
meraki_wait_on_rate_limit: "{{ meraki_wait_on_rate_limit }}" |
| 54 |
meraki_nginx_429_retry_wait_time: "{{ meraki_nginx_429_retry_wait_time }}" |
| 55 |
meraki_action_batch_retry_wait_time: "{{ meraki_action_batch_retry_wait_time }}" |
| 56 |
meraki_retry_4xx_error: "{{ meraki_retry_4xx_error }}" |
| 57 |
meraki_retry_4xx_error_wait_time: "{{ meraki_retry_4xx_error_wait_time }}" |
| 58 |
meraki_maximum_retries: "{{ meraki_maximum_retries }}" |
| 59 |
meraki_output_log: "{{ meraki_output_log }}" |
| 60 |
meraki_log_file_prefix: "{{ meraki_log_file_prefix }}" |
| 61 |
meraki_log_path: "{{ meraki_log_path }}" |
| 62 |
meraki_print_console: "{{ meraki_print_console }}" |
| 63 |
meraki_suppress_logging: "{{ meraki_suppress_logging }}" |
| 64 |
meraki_simulate: "{{ meraki_simulate }}" |
| 65 |
meraki_be_geo_id: "{{ meraki_be_geo_id }}" |
| 66 |
meraki_caller: "{{ meraki_caller }}" |
| 67 |
meraki_use_iterator_for_get_pages: "{{ meraki_use_iterator_for_get_pages }}" |
| 68 |
meraki_inherit_logging_config: "{{ meraki_inherit_logging_config }}" |
| 69 |
licenseIdToRenew: '123' |
| 70 |
organizationId: string |
| 71 |
unusedLicenseId: '1234' |
| 72 |
""" |
| 73 |
RETURN = r""" |
| 74 |
meraki_response: |
| 75 |
description: A dictionary or list with the response returned by the Cisco Meraki Python SDK |
| 76 |
returned: always |
| 77 |
type: dict |
| 78 |
sample: > |
| 79 |
{ |
| 80 |
"resultingLicenses": [ |
| 81 |
{ |
| 82 |
"id": "string", |
| 83 |
"licenseType": "string", |
| 84 |
"licenseKey": "string", |
| 85 |
"orderNumber": "string", |
| 86 |
"deviceSerial": "string", |
| 87 |
"networkId": "string", |
| 88 |
"state": "string", |
| 89 |
"seatCount": 0, |
| 90 |
"totalDurationInDays": 0, |
| 91 |
"durationInDays": 0, |
| 92 |
"permanentlyQueuedLicenses": [ |
| 93 |
{ |
| 94 |
"id": "string", |
| 95 |
"licenseType": "string", |
| 96 |
"licenseKey": "string", |
| 97 |
"orderNumber": "string", |
| 98 |
"durationInDays": 0 |
| 99 |
} |
| 100 |
], |
| 101 |
"claimDate": "string", |
| 102 |
"activationDate": "string", |
| 103 |
"expirationDate": "string", |
| 104 |
"headLicenseId": "string" |
| 105 |
} |
| 106 |
] |
| 107 |
} |
| 108 |
""" |