EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 03:01 PM . Last Modified: 2024-04-08 01:07 AM
Hi,
I'm trying to create a new asset inside an asset with an id specified.
I'm using this api: "/assets/{asset-id}/children
In example I want to create an asset similar to this, in the same parent asset:
[ { "id": "c2e5b43a-d826-4346-8c5c-ee793df3cfe3", "type": "storage", "location": "Global/Magazzino ED.9", "parentId": "9a334b63-fe6e-41af-b4a4-bf25e624f324", "parentName": "Global", "parentType": "location", "roomId": null, "roomName": "", "roomType": "", "cageName": "", "rackName": "", "barcode": "", "description": "", "name": "Magazzino ED.9", "manufacturer": "", "modelName": "", "partNumber": "", "serialNumber": "", "customPropertyKeys": "", "customPropertyValues": "", "luceneSearchScore": 0.028692061 }, { "id": "ddd4bbc6-97fb-43bc-aa50-aac2dd05486a", "type": "server", "location": "Global/Magazzino ED.9/PowerEdge R730", "parentId": "c2e5b43a-d826-4346-8c5c-ee793df3cfe3", "parentName": "Magazzino ED.9", "parentType": "storage", "roomId": "c2e5b43a-d826-4346-8c5c-ee793df3cfe3", "roomName": "Magazzino ED.9", "roomType": "storage", "cageName": "", "rackName": "", "barcode": "", "description": "Dell PowerEdge R730", "name": "PowerEdge R730", "manufacturer": "Dell", "modelName": "PowerEdge R730", "partNumber": "", "serialNumber": "123456789", "customPropertyKeys": "Aquired Admin", "customPropertyValues": "06/03/17 Server", "luceneSearchScore": 0.011737661 } ]
So, in /assets/{asset-id}/children I've as a parameter assetCreationVO and I can specify these paramenters:
yCoordinate , bayPositionNumber,rackMountPosition , genomeId,uPosition,bayPosition.
How can I specify custom properties as "name", manufacturer during asset creation?
thanks in advance
luca
(CID:116918715)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 03:01 PM . Last Modified: 2024-04-08 01:07 AM
I've tried with this AssetVo request:
{
"yCoordinate": 0,
"bayPositionNumber": 0,
"rackMountPosition": "TOP_MOUNTED",
"genomeId": "030050000010",
"uPosition": 0,
"bayPosition": "UPPER_SLOT",
"xCoordinate": 0
}
but I receive:
400
Can not construct instance of java.util.UUID from String value '030050000010': not a valid textual representation, problem: UUID has to be represented by the standard 36-char representation at [Source: io.undertow.servlet.spec.ServletInputStreamImpl@6a54a205; line: 4, column: 37] (through reference chain: com.apc.webservice.api.assets.model.AssetCreationVO["genomeId"])
Whare can I find a valid genomeId valid textual representation?
thanks
(CID:116919610)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 03:01 PM . Last Modified: 2024-04-08 01:07 AM
I've also tried with a valid genomeID (36 char), but also in this case I've a failure response:
{ "code": 100108, "message": "Adding assets to this asset is not supported", "details": "c2e5b43a-d826-4346-8c5c-ee793df3cfe3" }
It seems that I can't add an asset to this parent.
could you give me any hints?
thanks
luca
(CID:116923282)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 03:01 PM . Last Modified: 2024-04-08 01:07 AM
I've tried again with same result.
genomeID is a valid genome.
I'm trying to create an asset into an asset that is a location:
"type": "location",
"parentId": null,
"children": null,
"navigationPath": null,
"customProperties": null,
"accessType": "EDIT",
"name": "Global",
"id": "9a334b63-fe6e-41af-b4a4-bf25e624f324"
thanks
(CID:118003996)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 03:01 PM . Last Modified: 2024-04-08 01:07 AM
Hi lucama,
thanks for posting. Lets see who can be of assistance here. @community any ideas?
Kind regards Ditte
(CID:116923284)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 03:01 PM . Last Modified: 2024-04-08 01:06 AM
some one could give me any hint?
thanks
(CID:119637966)
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2020-07-03 03:01 PM . Last Modified: 2023-10-22 04:30 AM
This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.