NSX-T Data Center REST API

Create or update a Share

If a Share with the given ID already exists, and the revision is 0, throw error
This API is only available when using VMware NSX.

Request:

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

Example Request:

{ "resource_type":"Share", "display_name":"My Share", "sharedWith":[ "/orgs/default/projects/project1" ], "_revision":0 }

Successful Response:

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

Example Response:

{ "resource_objects":[ { "resource_path": "/infra/domains/domain1/groups/group1", "include_children": false } ], "resource_type":"Share", "id":"backup", "display_name":"backup", "path":"/infra/shares/share1", "relative_path":"share1", "parent_path":"/infra", "unique_id":null, "marked_for_delete":false, "overridden":false, "_create_user":"admin", "_system_owned":false, "_last_modified_user":"admin", "_create_time":1613559460360, "_last_modified_time":1613559460360, "_protection":"NOT_PROTECTED", "_revision":0 }

Required Permissions:

crud

Feature:

policy_share

Additional Errors: