Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Latest commit

 

History

History

resource_APIs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Table of Contents

About Resource APIs

Resource APIs can be used to:

  • Collect information about CVP inventory, tags, events ...
  • Configure tags, decommission devices ...

From CVP 2022.1.0, a resource API explorer is available in the CVP GUI.

Resources are modeled with .proto files:

Resources APIs are accessed with gRPC. CVP is the gRPC server. We can use gRPC clients (gPRCurl, grpc_cli, Postman, ...) to call the RPC methods on CVP.

REST APIs mappings are generated so we can also use a REST clients (cURL, Python request module, ...) for resource APIs.

Requirement

Token based authentication is required. To enable token based authentication, refer to this directory

Resource APIs Examples

You will find in this directory examples using:

  • The command-line tool
    • gRPCurl
    • cURL
  • The Python library
    • cvprac
    • requests
  • Postman using gPRC