Cisco Cisco Prime Central 1.3 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 service ticket. The required setCasBaseUrl()
method must be called once to set the correct HTTPS CAS URL (for all CAS operations).
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.
void
setSSLSocketFactory(javax.net.ssl.SSLSocketFactory userDefinedSocketFactory)
Sets a custom SSL socket factory (https) for the Prime CAS client.
Sets a custom SSL socket factory (https) for the Prime CAS client.