{"id":25020689,"url":"https://github.com/panoramicdata/cisco.dnacenter.api","last_synced_at":"2025-04-13T04:40:37.010Z","repository":{"id":38679843,"uuid":"255975495","full_name":"panoramicdata/Cisco.DnaCenter.Api","owner":"panoramicdata","description":"Cisco DNA Center API","archived":false,"fork":false,"pushed_at":"2024-05-03T16:20:16.000Z","size":930,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-04T17:11:33.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/panoramicdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-15T16:29:36.000Z","updated_at":"2024-05-04T17:11:33.889Z","dependencies_parsed_at":"2024-05-03T14:55:17.093Z","dependency_job_id":"7a2f874c-b4c8-43d1-bca4-8ca0789c5216","html_url":"https://github.com/panoramicdata/Cisco.DnaCenter.Api","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FCisco.DnaCenter.Api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FCisco.DnaCenter.Api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FCisco.DnaCenter.Api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panoramicdata%2FCisco.DnaCenter.Api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panoramicdata","download_url":"https://codeload.github.com/panoramicdata/Cisco.DnaCenter.Api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665782,"owners_count":21142122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-05T12:17:10.094Z","updated_at":"2025-04-13T04:40:36.993Z","avatar_url":"https://github.com/panoramicdata.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cisco.DnaCenter.Api\n\n[![Nuget](https://img.shields.io/nuget/v/Cisco.DnaCenter.Api)](https://www.nuget.org/packages/Cisco.DnaCenter.Api/)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/1dd6d6dbca1d45389c10ce38fd956769)](https://app.codacy.com/gh/panoramicdata/Cisco.DnaCenter.Api/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n\nTo use the Cisco DNA Center nuget package:\n\n## Visual Studio\n\n1. Open your project in Visual Studio\n1. Right-click on the project and click \"Manage Nuget packages\"\n1. Find the package \"Cisco.DnaCenter.Api\" - install the latest version\n\n## Example code (C# 8.0):\n\n``` C#\nusing Cisco.DnaCenter.Api;\nusing System;\nusing System.Collections.Generic;\nusing System.Threading.Tasks;\n\nnamespace My.Project\n{\n\tpublic static class Program\n\t{\n\t\tpublic static async Task Main()\n\t\t{\n\t\t\tvar dnaCenterClient = new DnaCenterClient(new DnaCenterClientOptions\n\t\t\t{\n\t\t\t\tUri = new Uri(\"https://mydnac.example.com/\"),\n\t\t\t\tUsername = \"username\",\n\t\t\t\tPassword = \"password\"\n\t\t\t});\n\n\t\t\tvar sites = await dnaCenterClient\n\t\t\t\t.Sites\n\t\t\t\t.GetAllAsync()\n\t\t\t\t.ConfigureAwait(false);\n\n\t\t\tvar firstSite = sites.Response[0];\n\n\t\t\tvar devicesResponse = await dnaCenterClient\n\t\t\t\t.Devices\n\t\t\t\t.GetAllAsync(locationName: new List\u003cstring\u003e { firstSite.SiteNameHierarchy })\n\t\t\t\t.ConfigureAwait(false);\n\n\t\t\tConsole.WriteLine(\"Devices:\");\n\t\t\tforeach (var device in devicesResponse.Response)\n\t\t\t{\n\t\t\t\tConsole.WriteLine($\"    - {device.SerialNumber}: {device.Hostname}\");\n\t\t\t}\n\t\t}\n\t}\n}\n````\n\n## API Documentation\n\nThe DNA Center Intent API documentation can be found here:\n\n- [DNA Center Intent API Documentation](https://developer.cisco.com/docs/dna-center/api/1-3-3-x/)\n\n## Testing\n\nYou can test this using a DNA Center Sandbox here:\n\n- [Cisco DNA Center AO 1.3.1.4](https://devnetsandbox.cisco.com/RM/Diagram/Index/471eb739-323e-4805-b2a6-d0ec813dc8fc?diagramType=Topology)\n- [Cisco DNA Center Lab 1](https://devnetsandbox.cisco.com/RM/Diagram/Index/b8d7aa34-aa8f-4bf2-9c42-302aaa2daafb?diagramType=Topology)\n\nAfter signing in, look in the lower left hand side of the page for your URL, username and password.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanoramicdata%2Fcisco.dnacenter.api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanoramicdata%2Fcisco.dnacenter.api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanoramicdata%2Fcisco.dnacenter.api/lists"}