Chapter 8 Cisco Cr-1 Serie Xml Security; Retrieving Task Permissions; Task Privileges - Cisco CRS-1 - Carrier Routing System Router Api Manual

Carrier routing system xml api guide
Hide thumbs Also See for CRS-1 - Carrier Routing System Router:
Table of Contents

Advertisement

Retrieving Task Permissions

A client application requesting an operation through the XML interface must have the appropriate task
privileges enabled/assigned for any objects accessed in the operation:
The "configuration services" operations through configuration manager will also require the appropriate
predefined task privileges.
If an operation requested by a client application fails authorization, an appropriate <Error> element will
be returned in the response sent to the client. For "native data" operations, the <Error> element will
associated with the specific element or object classes for which the authorization error occurred.
Retrieving Task Permissions
A client application's capabilities and privileges in terms of task permissions are exposed by AAA
through command-line interface (CLI) show commands. A client application can also use the XML
interface to programatically retrieve the current AAA capabilities from the router. This retrieval can be
done by issuing the appropriate <Get> request to the <AAA> component.
The following example shows a request to retrieve all of the AAA configuration from the router:
Sample XLM Request to Retrieve AAA Configuration Information
<?xml version="1.0" encoding="UTF-8"?>
<Request MajorVersion="1" MinorVersion="0">
<Get>
</Get>
</Request>
Sample XML Response from the Cisco CRS-1 Series Router
<?xml version="1.0" encoding="UTF-8"?>
<Response MajorVersion="1" MinorVersion="0">
<Get>
</Get>
</Response>

Task Privileges

A client application requesting a native data operation through the XML interface must have the
appropriate task privileges enabled/assigned for any items accessed in the operation, as follows:
Cisco CRS-1 Series Carrier Routing System XML API Guide
8-88
<Get> operations require AAA "read" privileges.
<Set> and <Delete> operations require AAA "write" privileges.
<Configuration>
<AAA MajorVersion="1" MinorVersion="0"/>
</Configuration>
<Configuration>
<AAA MajorVersion="1"
MinorVersion="0">
.
.
.
AAA configuration returned here
.
.
.
</AAA>
</Configuration>
Chapter 8
Cisco CRS-1 Series XML Security
OL-4596-01

Advertisement

Table of Contents
loading

This manual is also suitable for:

Crs-1 series

Table of Contents