NSX-T Data Center REST API

Create or update Shared Resource

If Shared resource already exists, update the shared resource entity.
User Presence of the shared resource denotes sharing of the parent object.
This API is only available when using VMware NSX.

Request:

Method:
PUT
URI Path(s):
/policy/api/v1/infra/shares/{share-id}/resources/{shared-resource-id}
/policy/api/v1/orgs/{org-id}/projects/{project-id}/infra/shares/{share-id}/resources/{shared-resource-id}
Request Headers:
n/a
Query Parameters:
n/a
Request Body:
SharedResource+

Example Request:

{ "display_name": "Resource group 1", "description": "This is set of shared groups that represent external AWS services", "resource_objects": [{ "resource_path": "/infra/domains/default/groups/group1", "include_children": false }], "_revision": 0 }

Successful Response:

Response Code:
200 OK
Response Headers:
Content-type: application/json
Response Body:
SharedResource+

Example Response:

200 OK

Required Permissions:

crud

Feature:

policy_share

Additional Errors: