Cisco Cisco Security Manager 4.7 Guía Del Usuario
Cisco Security Manager 4.7 API Specification (Version 2.0)
OL- 32164-01
Page 137
Figure 86: PolicyNamesResponse XML Schema
3.2.11
Method CreateCSMSession
This method will create a CSMSession to be used with other write api methods. Internally it will create a ticket or
activity based on the mode of the CSM Server. All csm server modes supports this method. For detailed information
about it’s usage please see section
activity based on the mode of the CSM Server. All csm server modes supports this method. For detailed information
about it’s usage please see section
3.2.11.1
Request
Figure 87: Method CreateCSMSession Request Example
Table 74:Method CreateCSMSession Request URL Attribute Descriptions
HTTP/XML Content
Definition
newCSMSessionRequest
CSM Session request that contains request arguments
Element: csmSessionName
An element that provides a string value to use while creating the CSM Session.
This could be a ticketId or activity name.
This could be a ticketId or activity name.
Element: csmSessionDescription
An element that provides description (optionally) specifying the requirement for
creating a new CSMSession
creating a new CSMSession
HTTP Method
POST
HTTP Header: asCookie
The cookie returned by the login method that identifies the authentication
session
session
Returns
200 OK + XML
401 Unauthorized
URL:
https://hostname/configservice/createCSMSession
HTTP Header:
Set-Cookie: asCookie=732423sdfs73242; expires=Fri, 2-Sep-2013 23:59:59 GMT; path=/;
domain=.hostdomain.com
XML Argument:
https://hostname/configservice/createCSMSession
HTTP Header:
Set-Cookie: asCookie=732423sdfs73242; expires=Fri, 2-Sep-2013 23:59:59 GMT; path=/;
domain=.hostdomain.com
XML Argument:
<?xml version="1.0" encoding="UTF-8"?>
<p:newCSMSessionRequest xmlns:p="csm">
<csmSessionDescription>creating CSM API session to test</csmSessionDescription>
</p:newCSMSessionRequest>
<p:newCSMSessionRequest xmlns:p="csm">
<csmSessionDescription>creating CSM API session to test</csmSessionDescription>
</p:newCSMSessionRequest>