[{"label":"Latest (8.6.3)","version":"latest"}]
vrealize-operations

Get Resources Relationships

Description

Get resources that satisfy filtering criteria and are related to specified listof resources with the given relationship type

Request

Request

URL

URL


post
https://localhost/suite-api/api/resources/bulk/relationships
Copy

Query Parameters

Query Parameters

integer
page Optional

Page number from which data needs to be displayed (0-based)


integer
pageSize Optional

Expected number of entries per page


Request Body

Request Body

resource-relationships-query of type(s) application/json, application/xml Required

Query spec that encapsulates various filtering criteria for related resources look up

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns ResourcesRelation of type(s) application/json, application/xml

The Collection of Resources related to given set of resources and matching the query Spec

Errors

Errors

404

If could find none of the resources from ResourceRelationshipsQuery.resourceIds


500

If there is an error during the query

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"hierarchyDepth":0,"relationshipType":"PARENT","resourceIds":["string"],"resourceQuery":{"adapterInstanceId":["string"],"adapterKind":["string"],"collectorId":[0],"collectorName":["string"],"credentialId":["string"],"includeRelated":"PARENT","maintenanceScheduleId":["string"],"name":["string"],"parentId":["string"],"propertyConditions":{"conditions":[{"doubleValue":0,"key":"string","operator":"EQ","stringValue":"string"}],"conjunctionOperator":"AND"},"propertyName":"string","propertyValue":"string","recentlyAdded":0,"regex":["string"],"resourceHealth":["GREEN"],"resourceId":["string"],"resourceKind":["string"],"resourceState":["STOPPED"],"resourceStatus":["NONE"],"resourceTag":[{"category":"string","name":"string"}],"statConditions":{"conditions":[{"doubleValue":0,"key":"string","operator":"EQ","stringValue":"string"}],"conjunctionOperator":"AND"},"statKey":"string","statKeyInclusive":false,"statKeyLowerBound":0,"statKeyUpperBound":0}}' https://localhost/suite-api/api/resources/bulk/relationships


Feedback

Was this page helpful?