Cisco Cisco Configuration Engine 3.5 Entwickleranleitung

Seite von 344
6-5
Cisco Configuration Engine Software Development Kit API Reference and Programmer Guide 3.5
OL-17661-02
Chapter 6      Namespace Administration, Group Administration, and Notification APIs
Namespace Administration API
List All Namespaces
The list-Namespace operation returns an array of existing namespace Ids.
Exceptions
This method could throw one of the following exceptions:
  •
DatastoreAccessException – General data-store access problem that is 
not described below.
  •
OperationTimeoutException – The current operation is not able to 
acquire a file lock within the time limit (for synchronizing data-store 
access), because other administration operation is currently in process.
  •
InvalidInputException – Any invalid inputs, such as NULL, “”, or 
newNamesapceId and namespaceId are the same.
  •
NamespaceNotFoundException – Original namespace not found.
  •
NamespaceAlreadyExistsException – New Namespace already exists.
  •
MessageFormatException – Problem with message syntax.
Additional exception that could be thrown by the remote API:
CommunicationException – General server access problem.
Method
String[ ] listNamespaces ()
Input parameter
None.
Return
An array of namespace IDs in Strings.
Exceptions
This method could throw one of the following exceptions:
  •
DatastoreAccessException – General data-store access problem that is 
not described below.
  •
MessageFormatException – Problem with message XML message syntax 
to be sent between the server and the remote API.
Additional exceptions that could be thrown by the remote API:
CommunicationException – General server access problem.