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

Add Relationship

Description

  • If at least a few of the Resource that are part of relatedIds list are valid resources then the operation is performed.
  • If there are few Resource that are part of relatedIds list that will result in a cyclical relationship, then those resources will be skipped.

NOTE: Adding relationship is not synchronous. As a result, the add operation may not happen immediately. It is recommended to query the relationships of the specific Resource back to ensure that the operation was indeed successful.

Request

Request

URL

URL


post
https://localhost/suite-api/api/resources/{id}/relationships/{relationshipType}
Copy

Path Parameters

Path Parameters

string
id Required

The UUID of the source resource


string
relationshipType Required

The type of relationship of the objects; Uses the RelationshipType.representation value


Request Body

Request Body

uuid-values of type(s) application/json, application/xml Required

UUID of resources to add as related to this resource

Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

204 No Content

The relationship is added successfully

Errors

Errors

404

All of the Resource that are part of the relatedIds list are invalid/non-existent

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"uuids":["string"]}' https://localhost/suite-api/api/resources/{id}/relationships/{relationshipType}


Feedback

Was this page helpful?