Configuring the REST API Plug-in

This chapter contains the following sections:

Configuring the REST API Plug-in

You can configure the REST API plug-in and dynamically load content.

Procedure
     Command or ActionPurpose
    Step 1 switch (config)# plugin unload plugin_name
     

    Unloads the REST API plug-in completely from the system.

    Note   

    After unloading the REST API plug-in, wait for at least 10 seconds before you proceed to the next step to load the REST API plug-in.

    Note   

    When you unload the default REST API plug-in, the only way to reinstall the REST API plug-in is from the Cisco website and then load it on the Cisco Nexus 1000V switch.

     
    Step 2 switch (config)# plugin load location
     

    Loads the REST API plug-in.

    Note   

    When the VSM is in HA pair, ensure the REST API plug-in image is available on both the supervisors. Copying the file to bootflash://sup-standby/ copies the file to the standby VSM.

    Note   

    When a new plugin is loaded from the bootflash, the plugin file should not be removed from Active or Standby VSM.

     
    Step 3 switch (config)# show plugin status
     

    Displays the status of all the plug-ins installed in the system.

     

    This example shows how to unload and load the REST API plug-in:

    switch(config)# plugin unload rest
    switch(config)#  plugin load bootflash:///rest_sup1sf.gbin
    

    This example shows how to display the status of the installed plug-in:

    switch(config) # show plugin status 
    Plugin-name                Version            Status
    -------------------------  -----------------  -----------------
    Rest Plugin                1.0(1)             Loaded