Get Relationships
If the optional query parameter 'relationshipType' is specified, relations of that particular Relationship Type are returned.
Few sample URLs are shown below./api/resources/{resourceId}/relationships?relationshipType=CHILD
/api/resources/{resourceId}/relationships?relationshipType=PARENT
The UUID of the resource to set the relationships for
The type of relationship of the objects; Uses the RelationshipType.representation value
Page number from which data needs to be displayed (0-based)
Expected number of entries per page
All the related resources
"{\n \"relationshipType\" : \"ALL\",\n \"resourceList\" : [ {\n \"description\" : \"Some Virtual Machine\",\n \"creationTime\" : 10202319,\n \"resourceKey\" : {\n \"name\" : \"Cloud-VM\",\n \"resourceIdentifiers\" : [ ]\n },\n \"resourceStatusStates\" : [ ],\n \"dtEnabled\" : true,\n \"badges\" : [ ],\n \"relatedResources\" : [ ],\n \"identifier\" : \"bc557345-7efe-496b-bfaa-91b81cc3cad5\"\n }, {\n \"description\" : \"Some NFS\",\n \"creationTime\" : 10202330,\n \"resourceKey\" : {\n \"name\" : \"NFS-Datastore\",\n \"resourceIdentifiers\" : [ ]\n },\n \"resourceStatusStates\" : [ ],\n \"dtEnabled\" : true,\n \"badges\" : [ ],\n \"relatedResources\" : [ ],\n \"identifier\" : \"58856893-fcff-4e5d-8916-9b8d09ad1640\"\n } ]\n}"
Represents page information for a paged result
Collection of links
Relationship Types between resources. All relationships are many-to-many.
Representation names are plural.
The list of resources having relation
curl -H 'Authorization: <value>' https://{api_host}/suite-api/api/resources/{id}/relationships?relationshipType=v