From 3334b71773b13e5ddaf43fd76b1a4ac4209f6d03 Mon Sep 17 00:00:00 2001 From: Ruby Loo Date: Thu, 10 Sep 2020 14:19:21 +0000 Subject: [PATCH] Add 'agent_token' to heartbeat request Updates the API ref to include the 'agent_token' value in a heartbeat request (from IPA). New since v1.62 (https://opendev.org/openstack/ironic/src/commit/9341ca4ef726826f4845635e6567a919f2ddc48c/ironic/api/controllers/v1/versions.py#L102). Change-Id: I5eea9704c1bf62561a5505227735159dad7a8e49 --- api-ref/source/baremetal-api-v1-misc.inc | 4 ++++ api-ref/source/parameters.yaml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/api-ref/source/baremetal-api-v1-misc.inc b/api-ref/source/baremetal-api-v1-misc.inc index 1e9d0c5e87..e5623ff5be 100644 --- a/api-ref/source/baremetal-api-v1-misc.inc +++ b/api-ref/source/baremetal-api-v1-misc.inc @@ -97,6 +97,9 @@ Error response codes: 400 404 .. versionadded:: 1.36 ``agent_version`` parameter for passing the version of the Ironic Python Agent to Ironic during heartbeat +.. versionadded:: 1.62 ``agent_token`` parameter for passing the token of + the Ironic Python Agent to Ironic during heartbeat + Request ------- @@ -105,3 +108,4 @@ Request - node_ident: node_ident - callback_url: callback_url - agent_version: agent_version + - agent_token: agent_token diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index 86a380ff04..0d3c8b3887 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -129,6 +129,13 @@ volume_target_id: required: true type: string +agent_token: + description: | + The token of the ironic-python-agent ramdisk, sent to the Bare Metal + service for authentication purposes. + in: query + required: true + type: string agent_version: description: | The version of the ironic-python-agent ramdisk, sent back to the Bare Metal