| Server IP : 85.214.239.14 / Your IP : 216.73.216.178 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/ansible_collections/cisco/ise/plugins/modules/ |
Upload File : |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r"""
---
module: sxp_local_bindings
short_description: Resource module for SXP Local Bindings
description:
- Manage operations create, update and delete of the resource SXP Local Bindings.
- This API creates a SXP local binding.
- This API deletes a SXP local binding.
- This API allows the client to update a SXP local binding.
version_added: '1.0.0'
extends_documentation_fragment:
- cisco.ise.module
author: Rafael Campos (@racampos)
options:
bindingName:
description: This field is depricated from Cisco ISE 3.0.
type: str
description:
description: SXP Local Bindings's description.
type: str
id:
description: SXP Local Bindings's id.
type: str
ipAddressOrHost:
description: IP address for static mapping (hostname is not supported).
type: str
sgt:
description: SGT name or ID.
type: str
sxpVpn:
description: List of SXP Domains, separated with comma. At least one of sxpVpn or
vns should be defined.
type: str
vns:
description: List of Virtual Networks, separated with comma. At least one of sxpVpn
or vns should be defined.
type: str
requirements:
- ciscoisesdk >= 2.0.8
- python >= 3.5
notes:
- SDK Method used are
sxp_local_bindings.SxpLocalBindings.create_sxp_local_bindings,
sxp_local_bindings.SxpLocalBindings.delete_sxp_local_bindings_by_id,
sxp_local_bindings.SxpLocalBindings.update_sxp_local_bindings_by_id,
- Paths used are
post /ers/config/sxplocalbindings,
delete /ers/config/sxplocalbindings/{id},
put /ers/config/sxplocalbindings/{id},
"""
EXAMPLES = r"""
- name: Update by id
cisco.ise.sxp_local_bindings:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
bindingName: string
description: string
id: string
ipAddressOrHost: string
sgt: string
sxpVpn: string
vns: string
- name: Delete by id
cisco.ise.sxp_local_bindings:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: absent
id: string
- name: Create
cisco.ise.sxp_local_bindings:
ise_hostname: "{{ise_hostname}}"
ise_username: "{{ise_username}}"
ise_password: "{{ise_password}}"
ise_verify: "{{ise_verify}}"
state: present
bindingName: string
description: string
id: string
ipAddressOrHost: string
sgt: string
sxpVpn: string
vns: string
"""
RETURN = r"""
ise_response:
description: A dictionary or list with the response returned by the Cisco ISE Python SDK
returned: always
type: dict
sample: >
{
"id": "string",
"description": "string",
"bindingName": "string",
"ipAddressOrHost": "string",
"sxpVpn": "string",
"sgt": "string",
"vns": "string",
"link": {
"rel": "string",
"href": "string",
"type": "string"
}
}
ise_update_response:
description: A dictionary or list with the response returned by the Cisco ISE Python SDK
returned: always
version_added: '1.1.0'
type: dict
sample: >
{
"UpdatedFieldsList": {
"updatedField": [
{
"field": "string",
"oldValue": "string",
"newValue": "string"
}
],
"field": "string",
"oldValue": "string",
"newValue": "string"
}
}
"""