Cisco.Api
3.0.233
See the version list below for details.
dotnet add package Cisco.Api --version 3.0.233
NuGet\Install-Package Cisco.Api -Version 3.0.233
<PackageReference Include="Cisco.Api" Version="3.0.233" />
<PackageVersion Include="Cisco.Api" Version="3.0.233" />
<PackageReference Include="Cisco.Api" />
paket add Cisco.Api --version 3.0.233
#r "nuget: Cisco.Api, 3.0.233"
#:package Cisco.Api@3.0.233
#addin nuget:?package=Cisco.Api&version=3.0.233
#tool nuget:?package=Cisco.Api&version=3.0.233
Cisco.Api
Need help with APIs or .NET? Panoramic Data are experts in APIs and .NET, and we can help with your development. Contact us or see our software services.
A .NET library for accessing Cisco Support APIs, including EoX, Product Information, PSIRT, PSS, Serial Number to Information, PX Cloud, and Umbrella APIs.
Supports .NET 11.0.
Prerequisites
You must have an SNTC (Smart Net Total Care) or PSS (Product Support Services) account in order to use this library.
Installation
Using .NET CLI
dotnet add package Cisco.Api
Using Package Manager Console
Install-Package Cisco.Api
Using Visual Studio
- Open your project in Visual Studio
- Right-click on the project and click "Manage NuGet packages"
- Search for "Cisco.Api"
- Click "Install" to add the latest version to your project
Using PackageReference
Add the following to your .csproj file:
<PackageReference Include="Cisco.Api" Version="*" />
Setup
Before using the library, you need to obtain API credentials:
- Go to the Cisco API Console
- Sign in with your SNTC or PSS account
- Click "Register a New App"
- Add a new Application, selecting the API endpoints that you intend to use
- Note the Client ID and Client Secret - you'll need these for authentication
Example Code
using Cisco.Api;
using System;
using System.Linq;
using System.Threading.Tasks;
namespace My.Project
{
public static class Program
{
public static async Task Main()
{
var ciscoClient = new CiscoClient(
new CiscoClientOptions
{
ClientId = "<YOUR_CLIENT_ID>",
ClientSecret = "<YOUR_CLIENT_SECRET>"
});
var productInformation = await ciscoClient
.ProductInfo
.GetBySerialNumbersAsync(new[] { "<SERIAL_NUMBER>" }, default)
.ConfigureAwait(false);
var productDetails = productInformation.Products.First();
Console.WriteLine($"Product Name: {productDetails.ProductName}");
}
}
}
Breaking changes
CommerceSku.Create(...), a public static factory taking 21 positional parameters, has been removed. It only assigned each argument to the property of the same name, so use an object initializer instead:new CommerceSku { Eol = true, CustSuiteId = 1, SuiteCommerceSku = "sku", ... }. All properties are unchanged.
Migrating from 3.0.104
Releases after 3.0.104 removed the optional parameters from the interface methods and turned the old overloads into compile errors ([Obsolete(..., true)]). Code that compiled against 3.0.104 by omitting pageIndex, alias or the CancellationToken no longer compiles. Pass every argument explicitly, using default for the CancellationToken if you have no token to hand.
pageIndex is now required
pageIndex (previously defaulting to 1) must be passed on these methods, followed by a CancellationToken:
IEox.GetBySerialNumberAsync(string serialNumber, int pageIndex, CancellationToken cancellationToken)IEox.GetBySoftwareReleaseStringAsync(IEnumerable<string> softwareReleaseStrings, int pageIndex, CancellationToken cancellationToken)ISoftwareSuggestion.GetByProductIdsAsync(IEnumerable<string> productIds, int pageIndex, CancellationToken cancellationToken)
// Before (3.0.104)
var eox = await client.Eox.GetBySerialNumberAsync(serialNumber);
var suggestions = await client.SoftwareSuggestion.GetByProductIdsAsync(productIds);
// After
var eox = await client.Eox.GetBySerialNumberAsync(serialNumber, 1, cancellationToken);
var suggestions = await client.SoftwareSuggestion.GetByProductIdsAsync(productIds, 1, cancellationToken);
alias is now required
ISecurityAdvisory.GetAdvisoriesByOsTypeAndVersion previously defaulted alias to an empty string:
// Before (3.0.104)
var advisories = await client.SecurityAdvisory.GetAdvisoriesByOsTypeAndVersion("ios", "15.2(4)M1");
// After
var advisories = await client.SecurityAdvisory.GetAdvisoriesByOsTypeAndVersion("ios", "15.2(4)M1", "", cancellationToken);
CancellationToken is now required
Every overload without a CancellationToken is now a compile error. Add the token as the last argument, or default. This includes:
ISerialNumberToInfo.GetCoverageStatusBySerialNumbersAsyncISerialNumberToInfo.GetCoverageSummaryBySerialNumbersAsyncIProductInfo.GetBySerialNumbersAsyncISecurityAdvisory.GetOsVersionDataByTypeISecurityAdvisory.GetAdvisoriesByCveNameISecurityAdvisory.GetAdvisoriesByProduct
// Before (3.0.104)
var products = await client.ProductInfo.GetBySerialNumbersAsync(serialNumbers);
var cve = await client.SecurityAdvisory.GetAdvisoriesByCveName("CVE-2024-20353");
// After
var products = await client.ProductInfo.GetBySerialNumbersAsync(serialNumbers, cancellationToken);
var cve = await client.SecurityAdvisory.GetAdvisoriesByCveName("CVE-2024-20353", cancellationToken);
Supported Frameworks
- .NET 11.0
- .NET 11.0
API Documentation
The Cisco Support APIs documentation can be found here:
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Microsoft.Extensions.Logging (>= 11.0.0)
- refit (>= 17.1.0)
- Refit.Newtonsoft.Json (>= 17.1.0)
- Refit.Reflection (>= 17.1.0)
- SharpZipLib (>= 1.4.2)
- SimpleSOAPClient (>= 2.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.234 | 110 | 12/3/2026 |
| 3.0.233 | 88 | 12/3/2026 |
| 3.0.224 | 221 | 11/17/2026 |
| 3.0.217 | 175 | 11/11/2026 |
| 3.0.216 | 120 | 11/10/2026 |
| 3.0.212 | 211 | 10/27/2026 |
| 3.0.211 | 200 | 10/22/2026 |
| 3.0.184 | 508 | 9/20/2026 |
| 3.0.183 | 162 | 9/20/2026 |
| 3.0.179 | 188 | 9/12/2026 |
| 3.0.176 | 192 | 9/3/2026 |
| 3.0.174 | 152 | 8/31/2026 |
| 3.0.151 | 185 | 8/28/2026 |
| 3.0.149 | 173 | 8/28/2026 |
| 3.0.127-ge8f1822b2d | 148 | 6/22/2026 |
| 3.0.122 | 426 | 6/19/2026 |
| 3.0.119 | 167 | 5/29/2026 |
| 3.0.118 | 160 | 5/22/2026 |
| 3.0.117 | 629 | 4/16/2026 |
| 3.0.116 | 624 | 3/31/2026 |
Fix: EoX lookups by serial number now build a valid request on Refit 15.
IEox.GetBySerialNumberAsync marked its serialNumber parameter [Body] while the URL template
still declared a {serialNumber} path segment. Refit 13 allowed a single parameter to satisfy
both, so the request was correct and the conflict was invisible. Refit 15 does not, and every
call now fails inside the client, before anything is sent, with "URL
/supporttools/eox/rest/5/EOXBySerialNumber/{pageIndex}/{serialNumber} has parameter
{serialNumber}, but no method parameter matches".
If you are on Refit 15, take this version: EoX by serial number does not work at all without
it. If you are still on Refit 13, the outgoing URL is unchanged, including the escaping of
comma-separated serial numbers, so upgrading is safe and costs you nothing except a stray
text/plain body that was being attached to a GET.
Every other Refit method in the library was checked for the same URL template and parameter
attribute conflict. There were none, so no other call site changes.
This package now depends on Refit.Reflection. Four of its interfaces, IEox among them, cannot
be generated inline by Refit's source generator, and on Refit 15 the reflection request
builder is no longer included by default. Without it, constructing a CiscoClient throws
rather than merely failing on those calls. Declaring the dependency here means you inherit it
instead of discovering it at runtime.
New offline tests build a request for every Refit method in the library, so a URL template
that no parameter can satisfy now fails this library's own build rather than surfacing as a
runtime exception in your application.