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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"associatedLinks":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"associatedSystems":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"comment":"a sample host comment","consoleUri":"/data-ops-manager/host-initiators/0951b6508ec9f8747f08daf68925d81d","contact":"sanjay@hpe.com","customerId":"fc5f41652a53497e88cdcebc715cc1cf","editStatus":"Delete_Failed","fqdn":"host1.hpe.com","generation":1627534116,"hostGroups":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"id":"6848ef683c27403e96caa51816ddc72c","initiators":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"ipAddress":"15.212.100.100","location":"India","markedForDelete":true,"model":"model1","name":"host1","operatingSystem":"Windows","persona":"AIX-Legacy","protocol":"FC","subnet":"255.255.255.0","systems":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"type":"host-initiator","userCreated":true}