Enabling the use of VPS Private Listings by using SQL¶
This topic explains how to enable using VPS Private Listings with the use of security tokens.
SQL Reference: Functions¶
Programmatically enabling sharing between one or more VPS environments requires the use of system functions to generate or accept a security token. The token contains information about the provider and is valid for one week after it is created.
Enable the provisioning of VPS Private Listings by using SQL¶
When you want to enable sharing with a consumer, use the following system function to generate a token to give to the new consumer.
For information about this function, see SYSTEM$GENERATE_CROSS_REGION_GROUP_SHARING_TOKEN.
-
Call the SYSTEM$GENERATE_CROSS_REGION_GROUP_SHARING_TOKEN function to generate a secure token with information about your organization. The token is valid for valid for one week.
-
Create a private listing for the consumer. See About providing VPS Private Listings. Save the listing as a draft.
-
After the VPS consumer contacts you to let you know that you have permission to share listings with them, share the private listing into the accounts requested by the VPS consumer. The consumer is automatically notified.
Enable the consumption of VPS Private Listings by using SQL¶
Before you begin, you must collect a security token which contains information about the provider. The token is valid for one week after the provider creates it. The provider should contact you to give you the token.
After you enable collaboration with a specific provider, allow the provider to share listings with your VPS.
Switch to the ORGADMIN role to perform these steps. If you don’t have access to the ORGADMIN role, contact your organization administrator.
For information about this function, see SYSTEM$ALLOW_PROVIDER_TO_SHARE_INTO_VPS.
-
Call the SYSTEM$ALLOW_PROVIDER_ORG_SHARING_INTO_VPS function, passing in the security token and the string DRY_RUN to confirm that the function adds the provider you intend:
-
If the provider name that you expect to see is listed in the output, call the system function without using DRY_RUN to allow the provider to share listings with your VPS account:
-
After you call the SYSTEM$ALLOW_PROVIDER_ORG_SHARING_INTO_VPS function, any account with a provider profile in the provider’s organization can share a private listing into your VPS. This change should propagate through the system in less than 12 hours. Contact the provider to update them on your progress. The provider needs to know that they will be able to start sharing private listings into accounts in your organization.
Repeat these steps for any other provider that you want to allow to share listings with your VPS.