Class ImdsRptPathProvider

  • All Implemented Interfaces:
    RptPathProvider

    public class ImdsRptPathProvider
    extends AbstractTemplateRptPathProvider
    This path provider is used as a fallback when environment variables are not set.

    For the path, use the current path: "/20180711/resourcePrincipalToken/{id}" For the resource id, use IMDS to get the instance id

    • Field Detail

      • METADATA_SERVICE_BASE_URL

        protected static final String METADATA_SERVICE_BASE_URL
        Default base url of metadata service.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ImdsRptPathProvider

        public ImdsRptPathProvider​(String pathTemplate)
        Constructor of ImdsRptPathProvider.
        Parameters:
        pathTemplate - string template with placeholders like “{id}”