A .NET library for accessing Cisco Support APIs, including EoX, Product Information, PSIRT, PSS, Serial Number to Information, PX Cloud, and Umbrella APIs.
You must have an SNTC (Smart Net Total Care) or PSS (Product Support Services) account in order to use this library.
dotnet add package Cisco.ApiInstall-Package Cisco.Api- 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
Add the following to your .csproj file:
<PackageReference Include="Cisco.Api" Version="*" />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
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>" })
.ConfigureAwait(false);
var productDetails = productInformation.Products.First();
Console.WriteLine($"Product Name: {productDetails.ProductName}");
}
}
}- .NET 9.0
- .NET 10.0
The Cisco Support APIs documentation can be found here:
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.