From 202fe179404d58c477c2612b1f3ce082314b04cf Mon Sep 17 00:00:00 2001 From: Claire Gaestel <213631+nyobe@users.noreply.github.com> Date: Thu, 12 Dec 2024 16:44:29 -0800 Subject: [PATCH 1/2] Deployment logs endpoint uses a continuationToken query param instead of nextToken --- content/docs/pulumi-cloud/deployments/api.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/pulumi-cloud/deployments/api.md b/content/docs/pulumi-cloud/deployments/api.md index bc8cea775b12..1fcf4e7a8d8e 100644 --- a/content/docs/pulumi-cloud/deployments/api.md +++ b/content/docs/pulumi-cloud/deployments/api.md @@ -1180,7 +1180,7 @@ The `token` is a string that contains the `job`, `offset` and `step` of the next The following query parameters are available: -* **nextToken**: A string returned by the previous response, that can be used to get the next set of logs. +* **continuationToken**: A string returned by the previous response, that can be used to get the next set of logs. ##### Example @@ -1230,12 +1230,12 @@ Response } ``` -Following request (using `nextToken`) +Following request (using the returned `nextToken`) ```shell curl -XGET -H "Content-Type: application/json" \ -H "Authorization: token $PULUMI_ACCESS_TOKEN" \ ---location "https://api.pulumi.com/api/stacks/my-org/aws-ts-s3-folder/dev/deployments/6b1ec06b-4f41-4cce-a7c9-13ceded14db2/logs?nextToken=0.2.1" +--location "https://api.pulumi.com/api/stacks/my-org/aws-ts-s3-folder/dev/deployments/6b1ec06b-4f41-4cce-a7c9-13ceded14db2/logs?continuationToken=0.2.1" ``` Response From 705bb741ab24c5b34d538fea0862e8c30fb0c7c3 Mon Sep 17 00:00:00 2001 From: Claire Gaestel <213631+nyobe@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:43:18 -0800 Subject: [PATCH 2/2] words --- content/docs/pulumi-cloud/deployments/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/pulumi-cloud/deployments/api.md b/content/docs/pulumi-cloud/deployments/api.md index 1fcf4e7a8d8e..85707c51e8a1 100644 --- a/content/docs/pulumi-cloud/deployments/api.md +++ b/content/docs/pulumi-cloud/deployments/api.md @@ -1180,7 +1180,7 @@ The `token` is a string that contains the `job`, `offset` and `step` of the next The following query parameters are available: -* **continuationToken**: A string returned by the previous response, that can be used to get the next set of logs. +* **continuationToken**: The `nextToken` value from the previous response, that can be used to get the next set of logs. ##### Example