Cisco Cisco Security Manager 4.11 Guía Del Usuario

Descargar
Página de 301
 
 
 
  
 
Cisco Security Manager 4.11 API Specification (Version 2.3) 
 
Page  163
 
3.2.24 
Method DeployConfigByGID 
Once the user has policy changes, config can be deployed to the device(s). If user has deploy privileges then he can 
deploy the config. In this release API supports immediate deploy option. The deployment to IPS devices will be 
blocked in this release. If IPS device is found in the request then an error will be thrown to the user. 
If the deployment options are not specified then we will use the values from admin settings.API will read the 
deployment options that are set (or default values) using CSM client and will use while deploying to the device. 
 
3.2.24.1 
Request 
The request takes the device GID and the other deployment options as mentioned below in the example and the 
XSD. 
 
 
Figure 127: DeployConfigByGID request Example 
 
Table 88: DeployConfigByGID XML element and attribute Description 
XML Element & Attributes 
Definition 
deployConfigRequest 
An element that mentions the details of the deploy 
operation 
Element List: 
deviceGID
 
Unique value that specifies the list of device ID for 
which the changes to be deployed 
Element: 
deploymentOptions
 
Deployment options which we can override for 
this  deployment. Options like deploy to file or 
detect OOB etc 
ElementList: 
deploymentComments
 
Boolean value – true , optionally user can specify 
comments. 
Element:
 
deployDeviceAttrbs.deployOptions.deployMethod.device
 
Fixed values to mention if we want to deploy to 
device or file. 
Element:
 
deployDeviceAttrbs.deployOptions.deployMethod.file
 
Deploy to file. 
Element:
 
deployDeviceAttrbs.deployOptions.deployMethod.file.filePath
 
If file option is selected then filePath should be 
provided 
URL: 
 
https://hostname/nbi/configservice/deployConfigByGID 
 
<?xml version="1.0" encoding="UTF-8"?> 
<csm:deployConfigRequest xmlns:csm="csm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance>" 
        <deviceGID> 
            <gid>00000000-0000-0000-0000-004294967326</gid> 
        </deviceGID> 
        <deploymentOptions> 
            <DeployOptions>device</DeployOptions> 
        </deploymentOptions> 
</csm:deployConfigRequest>