Resource sharing avoids the need for recreating the resources (objects) in projects or NSX VPCs that require them, and thereby saves effort.

In NSX 4.1, you can share resources only from the default space to projects within the organization.

Starting with NSX 4.1.1, you can:
  • Share resources from the default space to projects or NSX VPCs.
  • Share resources from a project to NSX VPCs within the same project.

Shared resources are available in a read-only mode in the projects or NSX VPCs with which they are shared.

Prerequisites

  • Ensure that you have understood the concept of sharing resources. See Sharing NSX Resources.
  • At least one project is added in your organization. See Add an NSX Project.
  • You must be assigned any one of these system-wide user roles to share resources from the default space to projects or NSX VPCs:
    • Enterprise Admin
    • Network Admin
    • Security Admin
  • You must be assigned any one of these user roles in a project to share resources from the project to NSX VPCs within the same project:
    • Project Admin
    • Network Admin
    • Security Admin

Procedure

  1. From your browser, log in to an NSX Manager at https://nsx-manager-ip-address.
  2. To share resources from the default space to projects within the organization, do these steps:
    1. Ensure that you are in the Default view.
    2. Navigate to Inventory > Resource Sharing.
    3. To create a resource share, click Add Resource Share.
    4. Enter a name for the resource share.
    5. Click Set.
    6. In the Set Members window, select the objects you want to add in the resource share.
      Note: Before adding segments in your resource share, make sure that you understand the typical use cases for sharing segments with a project. For more information, see Sharing NSX Resources.
    7. Click Apply.
    8. In the Shared With column, click Set, and then choose any one of these options:
      Option Description
      Share with all Projects Select this option to share resources with all the projects in your organization.
      Share with selected Projects Select this option to share resources with specific projects in your organization.
    9. (Optional) (Starting with NSX 4.1.1): Click Next and turn on/off the toogle to share resources with all the NSX VPCs or none of the NSX VPCs in the selected projects.

      The toggle is editable only when you select the Share with selected Projects option in the previous step. If you select the Share with all Projects option, the system will share resources with all the NSX VPCs in all the projects, by default. This default setting is currently not editable.

      When you are sharing resources from the default space, the system does not allow you to choose specific NSX VPCs in the selected projects. If you want to share resources with specific NSX VPCs, you can switch to each project view and create the resource share in that view. To learn more, see the instructions in step 3.

    10. Click Apply, and then click Save.
  3. (Starting with NSX 4.1.1): To share resources from a project to specific NSX VPCs within the same project, do these steps:
    1. Select a project from the Project drop-down menu.
    2. Navigate to Inventory > Resource Sharing.
    3. To create a resource share, click Add Resource Share.
    4. Enter a name for the resource share.
    5. Click Set.
    6. In the Shared With column, click Set, and then choose any one of these options:
      Option Description
      Share with all VPCs Select this option to share resources with all the NSX VPCs in the project.
      Share with selected VPCs Select this option to share resources with specific NSX VPCs in the project.
    7. Click Apply, and then click Save.

Example: Resource Share

Let us assume that an Enterprise Admin has shared a group from the default space with project-1 in your organization.

To check whether this group is available for consumption in project-1, do these steps:
  1. Log in to NSX Manager with the credentials of any user that has access to project-1.
  2. Ensure that project-1 is selected from the Project drop-down menu.
  3. Navigate to Inventory > Groups.
  4. Click the Shared objects check box at the bottom of the Groups page.

    By default, this check box is not selected.

    For example:


    Shared objects check box is highlighted on the Groups page.
  5. Observe that the shared group is listed on the Groups page.

    The following pill-shaped icon is displayed next to the group name to indicate that the group is owned by the default space and shared with the project.


    Object is shared from the default space.