Cisco Cisco Security Manager 4.4 Guia De Especificaciones
Cisco Security Manager 4.4 API Specification (Version 1.1)
OL- 29074-01
Page 118
Figure 70: DeviceConfigResponse XML Schema
Method specific errors (in addition, the error codes defined for the GetGroupList method are also applicable here) :
Code
Description
2007
This error will be returned if the requested Device GID does not exist in the CSM
Server.
Server.
2008
This error will be returned if API is not able to communicate with the configuration
archive module.
archive module.
2009
This error will be returned if API is not able to fetch the configuration from the
Configuration Archive Module
Configuration Archive Module
2011
This error will be returned if the user is not authorized to view the configuration.
Table 61: GetDeviceConfigByGID Method Error Codes
3.2.6 Method GetDeviceConfigByName
The GetDeviceConfigByName method returns a specific device object and its associated configuration based on the
device name passed into the method. The user requesting the device configuration must have both the
“view_device” and “view_cli” privilege on the device for which the config is being requested. The data in the
“fullConfig” element that this method returns is equal to the data from a typical “show running-config” command
exectuted on the device. This full configuration is returned from CSM’s Configuration Archive (CA) component.
The CA is updated during device discovery and/or deployments. NOTE: This fullConfig will not contain any Out Of
Band (OOB) configuration updates done directly on the device without using CSM.
device name passed into the method. The user requesting the device configuration must have both the
“view_device” and “view_cli” privilege on the device for which the config is being requested. The data in the
“fullConfig” element that this method returns is equal to the data from a typical “show running-config” command
exectuted on the device. This full configuration is returned from CSM’s Configuration Archive (CA) component.
The CA is updated during device discovery and/or deployments. NOTE: This fullConfig will not contain any Out Of
Band (OOB) configuration updates done directly on the device without using CSM.
3.2.6.1 Request
An example of the method GetDeviceConfigByName request is shown in the figure below.. The fields in these
messages are described in the table below.
messages are described in the table below.
<
xs:element
name
="deviceConfigResponse"
type
="DeviceConfigResponse"/>
<
xs:complexType
name
="DeviceConfigResponse">
<
xs:complexContent
>
<
xs:extension
base
="BaseReqResp">
<
xs:sequence
>
<
xs:element
name
="device"
type
="Device"/>
</
xs:sequence
>
</
xs:extension
>
</
xs:complexContent
>
</
xs:complexType
>