DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1
curl -k -X POST https://10.10.20.110/nuova \
-H 'Content-Type: application/xml' \
-d '<aaaLogin inName="ucspe" inPassword="ucspe">
</aaaLogin>'

The IP address of the Cisco UCS Manager is
10.10.20.110, the XML API resource is /nuova, and
the authentication method used is aaaLogin. The
username and password are passed in an XML document
within the inName and inPassword variables. In this
case, both the username and password are ucspe. The
Content-Type header specifies the type of data that the
POST call will send to the XML API (which is, of course,
XML in this case).


The response should be similar to the following one:


Click here to view code image


<aaaLogin cookie="" response="yes"
outCookie="1573019916/7c901636-
c461-487e-bbd0-c74cd68c27be"
outRefreshPeriod="600"
outPriv="aaa,admin,ext-lan-config,ext-lan-
policy,ext-lan-
qos,ext-lan-security,ext-san-config,ext-san-
policy,ext-san-
security,fault,operations,pod-config,pod-
policy,pod-qos,pod-
security,read-only" outDomains="org-root"
outChannel="noencssl"
outEvtChannel="noencssl" outSessionId=""
outVersion="3.2(2.5)"
outName="" />

aaaLogin specifies the method used to log in, the "yes"
value confirms that this is a response, outCookie
provides the session cookie, outRefreshPeriod
specifies the recommended cookie refresh period (where
the default is 600 seconds), and the outPriv value
specifies the privilege level associated with the account.


Next, let’s get a list of all the objects that are part of the
compute class and are being managed by this instance of
Cisco UCS Manager. In order to accomplish this, we can

Free download pdf