Cisco Cisco Security Manager 4.11 Guía Del Usuario
Cisco Security Manager 4.11 API Specification (Version 2.3)
Page 122
Table 61: GetDeviceConfigById Response Elements and Attributes Description
Element.
Attribute
Name
Definition
deviceConfigResponse
Returns the device configuration that matches the object identifier
device
The device class as described in 2.1.3.
Figure 71: 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 62: 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.
<
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>