Get Resources Relationships
Get resources that satisfy filtering criteria and are related to specified listof resources with the given relationship type
Page number from which data needs to be displayed (0-based)
Expected number of entries per page
Query spec that encapsulates various filtering criteria for related resources look up
Show optional properties
{
"relationshipType": "string",
"resourceIds": [
{}
]
}
"{\n \"relationshipType\" : \"DESCENDANT\",\n \"resourceIds\" : [ \"51d18139-1392-48f3-b8f4-2aba18449192\", \"8b95242e-b662-4bbe-9475-cfbc86296245\" ],\n \"resourceQuery\" : {\n \"name\" : [ \"VMware Cloud Foundation Operations Node-VMware Cloud Foundation Cluster Node\" ],\n \"adapterKind\" : [ \"VMWARE\" ],\n \"resourceKind\" : [ \"ResourcePool\" ],\n \"collectorName\" : [ \"local_collector\" ],\n \"collectorId\" : [ 1 ],\n \"maintenanceScheduleId\" : [ \"b12b4d87-17cb-45d0-9762-925844020132\" ],\n \"adapterInstanceId\" : [ \"b99fa172-236c-4403-ac0a-44dde9421828\" ],\n \"resourceState\" : [ \"STARTED\" ],\n \"resourceStatus\" : [ \"DATA_RECEIVING\" ],\n \"credentialId\" : [ \"0dbf1899-c17e-4231-8ae8-695ed983fd42\" ],\n \"resourceId\" : [ \"1c5cbc77-4ad1-4a46-a142-3d5043ba7e10\" ],\n \"statKeyInclusive\" : true,\n \"propertyConditions\" : {\n \"conjunctionOperator\" : \"OR\",\n \"conditions\" : [ {\n \"key\" : \"property_name\",\n \"operator\" : \"EQ\",\n \"stringValue\" : \"property_value\"\n } ]\n },\n \"statConditions\" : {\n \"conjunctionOperator\" : \"OR\",\n \"conditions\" : [ {\n \"key\" : \"stat|key1\",\n \"operator\" : \"LT_EQ\",\n \"doubleValue\" : 1.0\n } ]\n },\n \"resourceTag\" : [ {\n \"category\" : \"category_name\",\n \"name\" : \"tag_name\"\n } ]\n },\n \"hierarchyDepth\" : 5\n}"
Relationship Types between resources. All relationships are many-to-many.
Representation names are plural.
Resource uuids to get the related resources for
Object used to lookup resources with various filtering criteria
Relation hierarchy depth. Used with relationship types DESCENDANT, ANCESTOR and ALL. Defaults to 10.
The Collection of Resources related to given set of resources and matching the query Spec
"{\n \"relationshipType\" : \"DESCENDANT\",\n \"resourcesRelations\" : [ {\n \"resource\" : {\n \"creationTime\" : 1744473855297,\n \"resourceKey\" : {\n \"name\" : \"VM1\",\n \"adapterKindKey\" : \"VMWARE\",\n \"resourceKindKey\" : \"VirtualMachine\",\n \"resourceIdentifiers\" : [ {\n \"identifierType\" : {\n \"name\" : \"VMEntityObjectID\",\n \"dataType\" : \"STRING\",\n \"isPartOfUniqueness\" : true\n },\n \"value\" : \"vm-123\"\n }, {\n \"identifierType\" : {\n \"name\" : \"VMEntityVCID\",\n \"dataType\" : \"STRING\",\n \"isPartOfUniqueness\" : true\n },\n \"value\" : \"CBAD174A-622E-4650-805A-064F824FFA76\"\n }, {\n \"identifierType\" : {\n \"name\" : \"VMEntityName\",\n \"dataType\" : \"STRING\",\n \"isPartOfUniqueness\" : true\n },\n \"value\" : \"VM1\"\n } ]\n },\n \"credentialInstanceId\" : \"51f8f60d-4a39-4839-9924-698d022e2e10\",\n \"resourceStatusStates\" : [ ],\n \"dtEnabled\" : true,\n \"badges\" : [ ],\n \"relatedResources\" : [ ],\n \"identifier\" : \"2b6c345c-cf77-45c9-b5f3-e37c578b1f29\"\n },\n \"relatedResources\" : [ \"083efb86-c82f-4f48-8f01-ba3ce0d345f4\", \"4d7babc5-f263-4072-a158-bc40af3e3502\" ]\n } ]\n}"
Represents page information for a paged result
Relationship Types between resources. All relationships are many-to-many.
Representation names are plural.
Resources info combined with lists of query resource identifiers to which they are related
Collection of links
If could find none of the resources from ResourceRelationshipsQuery.resourceIds
If there is an error during the query
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"relationshipType:"string","resourceIds":["string"]}' https://{api_host}/suite-api/api/resources/bulk/relationships