Cisco Cisco Prime Central 1.2 Developer's Guide
OperationResult
createGroup.json
Operation:
jsonResponse
Input:
{"parentId":64,"instanceName":"Test Group",
"description":"Test Group","dynamic":true,
"membershipRules":[
{"entityName":
"com.cisco.prime.common.inventory.model.ComputeDataCenter",
"aliasName":"ComputeDataCenter",
"whereClause":
"where ComputeDataCenter.administrativestate like '%Test%' "}
]}
Output: jsonResponse
{"modelClass":
"com.cisco.prime.portal.grouping
.PrimeGroupingService$OperationResult",
"success":true,"message":"66098"}
Creates a group.
CAS SSO Client API
PrimeCasClient
com.cisco.prime.sso.client.PrimeCasClient
----public classPrimeCasClientextends java.lang.Object
The Prime CAS client allows a client (such as a thick client) to use login credentials to obtain a CASTGC session (Ticket Granting Ticket
resource), and then obtain a service ticket (CAS RESTful API). The Prime CAS client behaves like a browser client in terms of cookie
handling. The required setCasBaseUrl() method must be called once to set the correct HTTPS CAS URL (for all CAS operations).
resource), and then obtain a service ticket (CAS RESTful API). The Prime CAS client behaves like a browser client in terms of cookie
handling. The required setCasBaseUrl() method must be called once to set the correct HTTPS CAS URL (for all CAS operations).
Constructor Summary
PrimeCasClient()
Constructs a new Prime CAS client.
Constructs a new Prime CAS client.
Method Summary
static PrimeCasClient
getInstance()
Makes this class a singleton.
Makes this class a singleton.
java.lang.String
getTicket(java.lang.String session, java.lang.String serviceURL)
Allows a client to obtain a fresh service ticket.
Allows a client to obtain a fresh service ticket.
java.lang.String
login(java.lang.String username, java.lang.String password)
Allows a client to log into a CASTGC session.
Allows a client to log into a CASTGC session.
void
logout(java.lang.String session)
Allows a client to log out of a CASTGC session.
Allows a client to log out of a CASTGC session.
void
setCasBaseUrl(java.lang.String casBaseUrl)
Sets a CAS base URL (https) for the Prime CAS client.
Sets a CAS base URL (https) for the Prime CAS client.
void
setHostnameVerifier(javax.net.ssl.HostnameVerifier userDefinedHostnameVerifier)
Sets a custom HTTP hostname verifier for the Prime CAS client.
Sets a custom HTTP hostname verifier for the Prime CAS client.
void
setIgnoreCertificates()
Ignores SSL certificates for the Prime CAS client.
Ignores SSL certificates for the Prime CAS client.