Establishing Session-Based Authentication; Cisco Imc Rest Api Examples - Cisco UCS C Series Programmer's Manual

Rest api
Hide thumbs Also See for UCS C Series:
Table of Contents

Advertisement

Cisco IMC REST API Examples

Logservices, on page 40
Thermal, on page 41
Adding User, on page 50
Deleting User, on page 50
Modifying User, on page 50

Establishing Session-based Authentication

curl -XPOST https://10.10.10.10/redfish/v1/SessionService/
Sessions --header "Content-Type: application/json;
charset=utf-8" -d'{"UserName": "admin", "Password": "admin123456"}'
--insecure -v
* About to connect() to 10.10.10.10 port 222 (#0)
*
Trying 10.10.10.10... connected
* Connected to 10.10.10.10 (10.10.10.10) port 222 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* warning: ignoring value of ssl.verifyhost
* skipping SSL peer certificate verification
* SSL connection using TLS_RSA_WITH_AES_256_CBC_SHA256
* Server certificate:
* subject: E=null@null,CN=VASU-SL2,OU=PID,O=Cisco
Self Signed,L=San Jose,ST=California,C=US
* start date: Dec 08 05:21:25 2016 GMT
* expire date: Dec 07 05:21:25 2021 GMT
* common name: VASU-SL2
* issuer: E=null@null,CN=VASU-SL2,OU=PID,
O=Cisco Self Signed,L=San Jose,ST=California,C=US
> POST /redfish/v1/SessionService/Sessions HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu)
libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 10.10.10.10
> Accept: */*
> Content-Type: application/json; charset=utf-8
> Content-Length: 47
>
< HTTP/1.1 200 OK
< Server: Monkey
< Date: Fri, 09 Dec 2016 06:01:12 GMT
Cisco UCS C-Series Servers REST API Programmer's Guide
Examples of Server Tasks
7

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UCS C Series and is the answer not in the manual?

Questions and answers

Table of Contents