We've recently added a Global Policy in our code repository and I cannot "migrateIn" the policies and services using the GMU utility, if a Global Policy exists in the services/policies definition when API Gateway is "enrolled" with the API developer portal.
There is a note in your documentation regarding to the global policies and API developer portal:
- Ensure that no global policies, including message-received, are configured on the API Proxy. No global policies can exist while the Gateway is integrated with API Portal.
Here is the error log that's being reported when I try to "migrateIn" the policies and services in the Gateway using GMU:
<l7:Mapping action="NewOrUpdate" errorType="UniqueKeyConflict" srcId="e47c4cdc7c7c83e900c9516d0d3d9fbd" srcUri="https://10.0.2.15:9443/restman/1.0/policies/e47c4cdc7c7c83e900c9516d0d3d9fbd" type="POLICY">
<l7:StringValue>(name) (internalTag, type) must be unique</l7:StringValue>
I was able to "migrateIn" my policies and service in the Gateway, but I had to remove the global policy before trying to "migrateIn".
Is this error expected when you try to "migrateIn" a Global policy when the API developer portal and API Gateway are "enrolled"?
API Gateway: 9.X