Setting Ipv4; Setting Vlan; Setting Ldap Attributes - Cisco UCS C Series Programmer's Manual

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

Advertisement

Examples of Server Tasks for 4.0(4)
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{"StaticNameServers": [
]}

Setting IPv4

Note
This is not applicable for S3260 M5 servers.
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{"IPv4Addresses": [
]}

Setting VLAN

Note
This is not applicable for S3260 M5 servers.
Request:
curl -XPATCH -k -u admin https://10.10.10.10/redfish/v1/Managers/CIMC/EthernetInterfaces/NICs
-d'
{"VLAN": {"VLANId": 2,"VLANEnable": true}}

Setting LDAP Attributes

Request:
curl -XPATCH -k -u admin:Password https://10.10.10.10/redfish/v1/AccountService -d '
{
"LDAP":{
"ServiceAddresses":["ldap://WIN-AD.automation.com:389","ldaps://10.10.10.1:6000","ldaps://[2001:420:5446:2014::330:11]:389",
"" ],
Cisco UCS C-Series Servers REST API Programmer's Guide
130
"171.70.168.182",
"171.70.168.184"
{
"Gateway": "10.104.255.2",
"Address": "10.104.255.39",
"SubnetMask": "255.255.255.0"
}
"ServiceEnabled":true,
"LDAPService":{
"SearchSettings" : {
"GroupsAttribute":"test",
"UsernameAttribute":"test",
Cisco IMC REST API Examples

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents