The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes how to start the API clients and process a batch.
The startup process for an API client interaction involves:
Before executing a simple client, ensure that you have completed the tasks listed in this section.
Note These tasks are part of an initial configuration workflow that you must complete before executing a simple client for the first time. Thereafter, you can execute any number of simple clients.
To execute a simple API client:
Note This procedure uses the AddDeviceExample.java classfile as an example.
Step 1 Compile the API classfile using the following code:
Note This example assumes that the bpr.jar, bacbase.jar and bac-common.jar files exist in the local directory.
Step 2 Execute the API classfile using the following code:
For example, the AddDeviceExample print success or failure messages. If there is no error, the following message appears:
You can also verify the results for the device record from the administrator user interface from the Devices > Manage Device page. For more information, see the Cisco Prime Cable Provisioning 6.0 User Guide.
This section describes how you can connect to the RDU, create a batch, post the batch to the RDU, and verify the result.
Note This procedure uses the AddDeviceExample.java classfile as an example.
Step 1 Create a connection to the Provisioning API Command Engine (PACE).
Step 2 Get a new batch instance.
Step 3 Register the AddDeviceExample
() call with the batch.
Step 4 Post a batch to the RDU.
Step 5 Verify the result of the connection.
Step 6 Release the connection to the RDU.