Thanks @Kurt Googler Kanaskie, I am able to retrieve the values from environment level property set.
But we wanted to use proxy level property set as we have a limitation that only 10 environment scoped property sets can created. And if we start creating Property Set at the environment level based on the name of the proxy then soon we will reach this limit.
How can we fix this Proxy level property set issue?
In Apigee X, If you use a proxy-scoped propertyset, there is a bug that you will not be able to retrieve the values if the propertyset resource has a .properties suffix.
If you add the propertyset resource without the suffix, then at runtime you will be able to retrieve the properties.
Then, at runtime, your proxy WILL be able to retrieve properties from set2, and will not be able to retrieve properties from set1.
This is a bug, ref: b/179371811
We expect to fix this soon. In that case you will be able to retrieve from either set1 or set2.
There is a second factor: if you use the UI to create your proxy and add the propertyset, it always adds the .properties suffix. This means, for now, you need to use the API to import your API proxy, or to add the propertyset to the API proxy, in order to be able to retrieve them at runtime.
This thread helped me to get started on property sets. However, I discovered & was wondering that this capability is not extended at a shared-flow level (though addition of properties is possible it doesn’t work).
Scenarios like say for example I want to create a shared-flow that builds target.url taking configurations from .properties file at runtime across APIs proxies, then having properties within that shared-flow and the file contains target endpoint config details for all API proxies in the environment.
Properties are available only to the revision of the API proxy that contains the property set resource. No other API proxy or revision of the same proxy can access that particular property set.
Administrators can use the /resourcefiles Apigee API or the UI to create and edit property sets. Saving the API proxy in the UI will create a new revision, and the modified property set will be associated with that revision only.
Environment
Properties are available to all revisions of all API proxies within that environment. API proxies within other environments cannot access that property set.
Administrators must use the /resourcefiles Apigee API to create, view, update or delete environment-scoped property sets. These property sets are not displayed and cannot be edited in the Apigee UI.