Create a host

POST {{baseUrl}}/api/v1/host-initiators

Create a host

Request Body

{"name"=>"host1", "operatingSystem"=>"Windows Server", "userCreated"=>true, "comment"=>"comment1", "contact"=>"sanjay@hpe.com", "fqdn"=>"host1.hpe.com", "hostGroupIds"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "initiatorIds"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "initiatorsToCreate"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "ipAddress"=>"15.212.100.100", "location"=>"India", "model"=>"model1", "persona"=>"AIX-Legacy", "protocol"=>"protocol1", "subnet"=>"255.255.255.0"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;associatedLinks&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;associatedSystems&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;comment&quot;:&quot;a sample host comment&quot;,&quot;consoleUri&quot;:&quot;/data-ops-manager/host-initiators/0951b6508ec9f8747f08daf68925d81d&quot;,&quot;contact&quot;:&quot;sanjay@hpe.com&quot;,&quot;customerId&quot;:&quot;fc5f41652a53497e88cdcebc715cc1cf&quot;,&quot;editStatus&quot;:&quot;Delete_Failed&quot;,&quot;fqdn&quot;:&quot;host1.hpe.com&quot;,&quot;generation&quot;:1627534116,&quot;hostGroups&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;id&quot;:&quot;6848ef683c27403e96caa51816ddc72c&quot;,&quot;initiators&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;ipAddress&quot;:&quot;15.212.100.100&quot;,&quot;location&quot;:&quot;India&quot;,&quot;markedForDelete&quot;:true,&quot;model&quot;:&quot;model1&quot;,&quot;name&quot;:&quot;host1&quot;,&quot;operatingSystem&quot;:&quot;Windows&quot;,&quot;persona&quot;:&quot;AIX-Legacy&quot;,&quot;protocol&quot;:&quot;FC&quot;,&quot;subnet&quot;:&quot;255.255.255.0&quot;,&quot;systems&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}],&quot;type&quot;:&quot;host-initiator&quot;,&quot;userCreated&quot;:true}