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
| Modifier and Type | Field and Description |
|---|---|
protected static String |
METADATA_SERVICE_BASE_URL
Default base url of metadata service.
|
| Constructor and Description |
|---|
ImdsRptPathProvider(String pathTemplate)
Constructor of ImdsRptPathProvider.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getInstanceIdFromIMDS(String metadataServiceBaseUrl) |
protected Map<String,String> |
getReplacements() |
getPathprotected static final String METADATA_SERVICE_BASE_URL
Default base url of metadata service.
public ImdsRptPathProvider(String pathTemplate)
Constructor of ImdsRptPathProvider.
pathTemplate - string template with placeholders like “{id}”protected Map<String,String> getReplacements()
getReplacements in class AbstractTemplateRptPathProviderCopyright © 2016–2024. All rights reserved.