diff --git a/README.md b/README.md index c9884f8327..593ebf175f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The following table shows the supported versions. | 2.2.2.3 | 3.3.1 | 2.3.3 | | 2.2.3.3 | 6.4.0 | 2.4.11 | | 2.3.3.0 | 6.6.4 | 2.5.5 | -| 2.3.5.3 | 6.7.4 | 2.6.0 | +| 2.3.5.3 | 6.7.5 | 2.6.0 | If your Ansible collection is older please consider updating it first. diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 488a79f5fa..8f16937e35 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -703,4 +703,13 @@ releases: changes: release_summary: Updated sanity test. minor_changes: - - Updated test/sanity and remove unnecessary \ No newline at end of file + - Updated test/sanity and remove unnecessary + 6.7.5: + release_date: "2023-09-25" + changes: + release_summary: Updated different function names. + bugfixes: + - Updated from get_permissions_ap_i to get_permissions_api + - Updated from get_roles_ap_i to get_roles_api + - Updated from get_users_ap_i to get_users_api + - Updated from get_external_authentication_servers_ap_i to get_external_authentication_servers_api \ No newline at end of file diff --git a/galaxy.yml b/galaxy.yml index 016a7da845..07683c4ad4 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,7 +1,7 @@ --- namespace: cisco name: dnac -version: 6.7.4 +version: 6.7.5 readme: README.md authors: - Rafael Campos diff --git a/playbooks/user_info.yml b/playbooks/user_info.yml new file mode 100644 index 0000000000..da08c51c9b --- /dev/null +++ b/playbooks/user_info.yml @@ -0,0 +1,18 @@ +- hosts: dnac_servers + vars_files: + - credentials.yml + gather_facts: false + connection: local + tasks: + - name: Get all User + cisco.dnac.user_info: + dnac_host: "{{dnac_host}}" + dnac_username: "{{dnac_username}}" + dnac_password: "{{dnac_password}}" + dnac_verify: "{{dnac_verify}}" + dnac_port: "{{dnac_port}}" + dnac_version: "{{dnac_version}}" + dnac_debug: "{{dnac_debug}}" + #headers: "{{my_headers | from_json}}" + invokeSource: string + register: result \ No newline at end of file diff --git a/plugins/action/role_permissions_info.py b/plugins/action/role_permissions_info.py index 39728ba461..a1b758c744 100644 --- a/plugins/action/role_permissions_info.py +++ b/plugins/action/role_permissions_info.py @@ -78,8 +78,8 @@ def run(self, tmp=None, task_vars=None): dnac = DNACSDK(params=self._task.args) response = dnac.exec( - family="userand_roles", - function='get_permissions_ap_i', + family="user_and_roles", + function='get_permissions_api', params=self.get_object(self._task.args), ) self._result.update(dict(dnac_response=response)) diff --git a/plugins/action/roles_info.py b/plugins/action/roles_info.py index 380c9c6875..4283de11b0 100644 --- a/plugins/action/roles_info.py +++ b/plugins/action/roles_info.py @@ -78,8 +78,8 @@ def run(self, tmp=None, task_vars=None): dnac = DNACSDK(params=self._task.args) response = dnac.exec( - family="userand_roles", - function='get_roles_ap_i', + family="user_and_roles", + function='get_roles_api', params=self.get_object(self._task.args), ) self._result.update(dict(dnac_response=response)) diff --git a/plugins/action/user.py b/plugins/action/user.py index b9c8d5c4e3..1896e57ffb 100644 --- a/plugins/action/user.py +++ b/plugins/action/user.py @@ -91,8 +91,8 @@ def get_object_by_name(self, name): # NOTE: Does not have a get by name method, using get all try: items = self.dnac.exec( - family="userand_roles", - function="get_users_ap_i", + family="user_and_roles", + function="get_users_api", params=self.get_all_params(name=name), ) if isinstance(items, dict): @@ -148,8 +148,8 @@ def requires_update(self, current_obj): def create(self): result = self.dnac.exec( - family="userand_roles", - function="add_user_ap_i", + family="user_and_roles", + function="add_user_api", params=self.create_params(), op_modifies=True, ) @@ -160,8 +160,8 @@ def update(self): name = self.new_object.get("name") result = None result = self.dnac.exec( - family="userand_roles", - function="update_user_ap_i", + family="user_and_roles", + function="update_user_api", params=self.update_all_params(), op_modifies=True, ) diff --git a/plugins/action/user_info.py b/plugins/action/user_info.py index eb9ccc38e8..7a5906fcce 100644 --- a/plugins/action/user_info.py +++ b/plugins/action/user_info.py @@ -80,8 +80,8 @@ def run(self, tmp=None, task_vars=None): dnac = DNACSDK(params=self._task.args) response = dnac.exec( - family="userand_roles", - function='get_users_ap_i', + family="user_and_roles", + function='get_users_api', params=self.get_object(self._task.args), ) self._result.update(dict(dnac_response=response)) diff --git a/plugins/action/users_external_servers_info.py b/plugins/action/users_external_servers_info.py index 1436338cc6..b29ce6bb24 100644 --- a/plugins/action/users_external_servers_info.py +++ b/plugins/action/users_external_servers_info.py @@ -80,8 +80,8 @@ def run(self, tmp=None, task_vars=None): dnac = DNACSDK(params=self._task.args) response = dnac.exec( - family="userand_roles", - function='get_external_authentication_servers_ap_i', + family="user_and_roles", + function='get_external_authentication_servers_api', params=self.get_object(self._task.args), ) self._result.update(dict(dnac_response=response)) diff --git a/plugins/modules/role_permissions_info.py b/plugins/modules/role_permissions_info.py index 53d7a9b3ad..3f520a6972 100644 --- a/plugins/modules/role_permissions_info.py +++ b/plugins/modules/role_permissions_info.py @@ -28,7 +28,7 @@ link: https://developer.cisco.com/docs/dna-center/#!get-permissions-api notes: - SDK Method used are - userand_roles.UserandRoles.get_permissions_ap_i, + user_and_roles.UserandRoles.get_permissions_ap_i, - Paths used are get /dna/system/api/v1/role/permissions, diff --git a/plugins/modules/roles_info.py b/plugins/modules/roles_info.py index 279f9ed107..3e719be1a5 100644 --- a/plugins/modules/roles_info.py +++ b/plugins/modules/roles_info.py @@ -28,7 +28,7 @@ link: https://developer.cisco.com/docs/dna-center/#!get-roles-api notes: - SDK Method used are - userand_roles.UserandRoles.get_roles_ap_i, + user_and_roles.UserandRoles.get_roles_ap_i, - Paths used are get /dna/system/api/v1/roles, diff --git a/plugins/modules/user.py b/plugins/modules/user.py index 5bfdc9ced7..21769bb834 100644 --- a/plugins/modules/user.py +++ b/plugins/modules/user.py @@ -51,8 +51,8 @@ link: https://developer.cisco.com/docs/dna-center/#!update-user-api notes: - SDK Method used are - userand_roles.UserandRoles.add_user_ap_i, - userand_roles.UserandRoles.update_user_ap_i, + user_and_roles.UserandRoles.add_user_ap_i, + user_and_roles.UserandRoles.update_user_ap_i, - Paths used are post /dna/system/api/v1/user, diff --git a/plugins/modules/user_info.py b/plugins/modules/user_info.py index bb25c6659c..f00e1d66e4 100644 --- a/plugins/modules/user_info.py +++ b/plugins/modules/user_info.py @@ -32,7 +32,7 @@ link: https://developer.cisco.com/docs/dna-center/#!get-users-api notes: - SDK Method used are - userand_roles.UserandRoles.get_users_ap_i, + user_and_roles.UserandRoles.get_users_api, - Paths used are get /dna/system/api/v1/user, diff --git a/plugins/modules/users_external_servers_info.py b/plugins/modules/users_external_servers_info.py index 2360060adb..536f958c8d 100644 --- a/plugins/modules/users_external_servers_info.py +++ b/plugins/modules/users_external_servers_info.py @@ -32,7 +32,7 @@ link: https://developer.cisco.com/docs/dna-center/#!get-external-authentication-servers-api notes: - SDK Method used are - userand_roles.UserandRoles.get_external_authentication_servers_ap_i, + user_and_roles.UserandRoles.get_external_authentication_servers_ap_i, - Paths used are get /dna/system/api/v1/users/external-servers,