Unpublish from API-Portal Policy
The Unpublish from API-Portal policy removes the metadata for an existing API metadata from the API-Portal repository.
The Unpublish from API-Portal policy has a built-in action - Unpublish from API-Portal.
Object Scope
The UnPublish from API-Portal policy operates on the following objects:
![*](bullet.gif)
Service
![*](bullet.gif)
Virtual Service
![*](bullet.gif)
REST Service
![*](bullet.gif)
Virtual REST Service
![*](bullet.gif)
OData Service
![*](bullet.gif)
Virtual OData Service
![*](bullet.gif)
XML Service
![*](bullet.gif)
Virtual XML Service
Event Scope
By default, the UnPublish from API-Portal policy executes on OnTrigger event. However, to have this policy execute on a different event, for example, Pre-State Change or Post-State Change, that is not provided by default, you can create a custom policy and configure the UnPublish from API-Portal action to execute on the following events, as needed:
![*](bullet.gif)
Pre-Delete
![*](bullet.gif)
Post-Delete
![*](bullet.gif)
Pre-State Change
![*](bullet.gif)
Post-State Change
To integrate CentraSite and API-Portal for publishing processes, you must configure the policy's action parameters and activate the policy.
For information on the configuration parameters for UnPublish from API-Portal action, see the CentraSite Developer’s Guide.