Get the Dapr sidecar information

GET http://localhost:{{daprPort}}/v1.0/metadata

Gets the Dapr sidecar information provided by the Metadata Endpoint.

Usecase:

The Get Metadata API can be used for discovering different capabilities supported by loaded components. It can help operators in determining which components to provision, for required capabilities.

HTTP Response Body

Metadata API Response Object

NameTypeDescription
idstringApplication ID
actorsMetadata API Response Registered Actor[]A json encoded array of registered actors metadata.
extended.attributeNamestringList of custom attributes as key-value pairs, where key is the attribute name.
componentsMetadata API Response Component[]A json encoded array of loaded components metadata.

Metadata API Response Registered Actor

NameTypeDescription
typestringThe registered actor type.
countintegerNumber of actors running.

Metadata API Response Component

NameTypeDescription
namestringName of the component.
typestringComponent type.
versionstringComponent version.
capabilitiesarraySupported capabilities for this component type and version.

RESPONSES

status: OK

{"id":"demo-actor","actors":[{"type":"DemoActor","count":1}],"extended":{"cliPID":"1031040","appCommand":"uvicorn --port 3000 demo_actor_service:app","daprRuntimeVersion":"1.10.0"},"components":[{"name":"pubsub","type":"pubsub.redis","version":"v1","capabilities":[""]},{"name":"statestore","type":"state.redis","version":"v1","capabilities":["ETAG","TRANSACTION","ACTOR","QUERY_API"]}]}