This topic describes how to add a vSwitch to a resource share. After the vSwitch is added to the resource share, resource users can create cloud resources in the shared vSwitch.

Add a shared vSwitch

VPC sharing is enabled for the resource share. For more information, see Enable VPC sharing.

  1. Log on to the Resource Management console.
  2. In the left-side navigation pane, choose Resource Sharing > Resources I Share.
  3. In the top navigation bar, select the region where you want to add a shared vSwitch.
    For more information about the regions that support shared vSwitches, seeFeature and supported regions.
  4. On the Resource Shares tab, find the resource share that you want to manage and click the ID of the resource share.
  5. In the Shared Resources section, click Edit.
  6. In the vSwitch list, find the vSwitch that you want to add and click Add.
  7. Click OK.
    After you add the vSwitch, verify the status of the vSwitch.
    • If the status of the vSwitch is Associated, the vSwitch is shared. Resource users can create cloud resources in the shared vSwitch after they are invited to the resource directory. For more information, see Create a cloud resource in a shared vSwitch.
    • If the status of the vSwitch is Failed, the system failed to share the vSwitch. Reasons that may cause sharing failures are as listed. You can troubleshoot the errors and try again.
      • The Alibaba Cloud account of the resource user is the same as that of the resource owner. Resource owners are not allowed to share vSwitches with themselves.
      • The number of resource users that share a single VPC has reached 20.
      • The number of resource users that share a single vSwitch in a VPC has reached 20.
      • The number of vSwitches that are shared with a single resource user has reached 10.

View shared vSwitches in the VPC console

  1. Log on to the VPC console.
  2. In the left-side navigation pane, click VSwitches.
  3. In the top navigation bar, select the region where the shared vSwitch is deployed.
  4. On the VSwitches page, view the shared vSwitches.
    The shared vSwitches are marked as Shared.

View shared vSwitches in the Resource Management console

  1. Log on to the Resource Management console.
  2. In the left-side navigation pane, choose Resource Sharing > Resources I Share.
  3. In the top navigation bar, select the region where the shared vSwitch that you want to view is deployed.
  4. Click the Shared Resources tab to view all the shared vSwitches that belong to the current account.
  5. Optional:Find the shared vSwitch that you want to view, and click View in the Resource Share column to view the resource share to which the shared vSwitch belongs.
  6. Optional:Find the shared vSwitch that you want to view, click View in the Shared Target column to view the resource users with which the vSwitch is shared.

Remove a shared vSwitch

You can remove shared vSwitches. After you remove a shared vSwitch, the resource users of the vSwitch cannot create cloud resources in the vSwitch.

  1. Log on to the Resource Management console.
  2. In the left-side navigation pane, choose Resource Sharing > Resources I Share.
  3. In the top navigation bar, select the region where the shared vSwitch that you want to remove is deployed.
  4. On the Resource Shares tab, find the resource share that you want to manage, and click the ID of the resource share.
  5. In the Shared Resources section, click Edit.
  6. In the Selected Resources section, find the vSwitch that you want to remove, and click Remove.
  7. Click OK.

Add resource users to shared vSwitches

You can add new resource users to a resource share. After you add the resource users, they can create cloud resources in the shared vSwitch.

  1. Log on to the Resource Management console.
  2. In the left-side navigation pane, choose Resource Sharing > Resources I Share.
  3. In the top navigation bar, select the region to which the resource users that you want to add belong.
  4. On the Resource Shares tab, find the resource share that you want to manage, and click the ID of the resource share.
  5. In the Shared Target section, click Edit.
  6. Enter an Alibaba Cloud account ID, and click Add.
  7. Click OK.

View resource users of a shared vSwitch

After the vSwitch is shared, you can view the resource users of the vSwitch, including the resource user ID, resource user type, number of the resource shares, and number of available vSwitches.

  1. Log on to the Resource Management console.
  2. In the left-side navigation pane, choose Resource Sharing > Resources I Share.
  3. In the top navigation bar, select the region to which the resource user that you want to view belongs.
  4. Click the Shared Targets tab, and view all the resource users that belong to the current account.
  5. Optional:Find the resource user that you want to view, and click View in the Resource Share column to view the resource share to which the resource user belongs.
  6. Optional:Find the resource user that you want to view, and click View in the Shared Resource column to view the vSwitches that are shared with the resource user.

Remove a resource user from a shared vSwitch

You can remove resource users. After you remove a resource user, the resource user cannot create cloud resources in the shared vSwitch.

  1. Log on to the Resource Management console.
  2. In the left-side navigation pane, choose Resource Sharing > Resources I Share.
  3. In the top navigation bar, select the region where the resource user that you want to remove belongs.
  4. On the Resource Shares tab, find the resource share that you want to manage, and click the ID of the resource share.
  5. In the Shared Target section, click Edit.
  6. In the Selected Targets section, find the resource user that you want to remove, and click Remove.
  7. Click OK.