From d2a912a384991a9d22be7725e5a8e2bdc1d65537 Mon Sep 17 00:00:00 2001 From: Hannah Hunter Date: Fri, 22 Sep 2023 14:44:53 -0400 Subject: [PATCH] update example Signed-off-by: Hannah Hunter --- .../content/en/reference/api/placement_api.md | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/daprdocs/content/en/reference/api/placement_api.md b/daprdocs/content/en/reference/api/placement_api.md index 9cb86a3dd..5a76dd948 100644 --- a/daprdocs/content/en/reference/api/placement_api.md +++ b/daprdocs/content/en/reference/api/placement_api.md @@ -45,7 +45,7 @@ appId | string | app id. actorTypes | json string array | List of actor types it hosts. updatedAt | timestamp | Timestamp of the actor registered/updated. -## Examples +### Examples ```shell curl localhost:8080/placement/state @@ -54,11 +54,24 @@ updatedAt | timestamp | Timestamp of the actor registered/updated. ```json { "hostList": [{ - "name": "198.18.0.1:49347", - "appId": "actor", - "actorTypes": ["testActorType"], - "updatedAt": 1690274322325260000 - }], + "name": "198.18.0.1:49347", + "appId": "actor1", + "actorTypes": ["testActorType1", "testActorType3"], + "updatedAt": 1690274322325260000 + }, + { + "name": "198.18.0.2:49347", + "appId": "actor2", + "actorTypes": ["testActorType2"], + "updatedAt": 1690274322325260000 + }, + { + "name": "198.18.0.3:49347", + "appId": "actor2", + "actorTypes": ["testActorType2"], + "updatedAt": 1690274322325260000 + } + ], "tableVersion": 1 } ``` \ No newline at end of file