i've got a Data Center object names group999
{
"objects" : [ {
"uid" : "64e16ac4-84c3-46b7-bd00-8d453b983c0b",
"name" : "group999",
"type" : "data-center-server",
"domain" : {
"uid" : "d0f9678c-e3dc-498e-be00-2238123af99d",
"name" : "IPv6-TestLab",
"domain-type" : "domain"
},
"icon" : "NetworkObjects/ExternalDataSource",
"color" : "black"
} ],
"from" : 1,
"to" : 1,
"total" : 1
}
in it i've got several groups present. my test case is to import group test_1
inside the json file on my web server the the test_1 group has uid
a98f8356-64b7-4a36-b65c-f1bbc068a9fe
i tried to run
import_data_center_json = {
"data-center-uid" : "64e16ac4-84c3-46b7-bd00-8d453b983c0b",
"uid-in-data-center" : "a98f8356-64b7-4a36-b65c-f1bbc068a9fe"
}
when i send this via web api call to the add-data-center-object
get as a result
{"code": "generic_error", "message": "Parameter [uid-in-data-center] with value [a98f8356-64b7-4a36-b65c-f1bbc068a9fe] not found."}