From c6144a215659a5248f6b168cc4f8653e1b577a91 Mon Sep 17 00:00:00 2001 From: Wesley Hershberger Date: Mon, 21 Oct 2024 09:44:06 -0500 Subject: [PATCH] api: Add `state_logical_cpus` extension Covers changes introduced with #14294 Signed-off-by: Wesley Hershberger --- doc/api-extensions.md | 5 +++++ shared/version/api.go | 1 + 2 files changed, 6 insertions(+) diff --git a/doc/api-extensions.md b/doc/api-extensions.md index aa37e001218e..7692d284bf1f 100644 --- a/doc/api-extensions.md +++ b/doc/api-extensions.md @@ -2511,3 +2511,8 @@ And lastly, adds a `project` field on leases, leases can be retrieved via `/1.0/ ## `network_ovn_uplink_vlan` Adds support for using a bridge network with a specified VLAN ID as an OVN uplink. + +## `state_logical_cpus` + +Adds `logical_cpus` field to `GET /1.0/cluster/members/{name}/state` which +contains the total available logical CPUs available when LXD started. diff --git a/shared/version/api.go b/shared/version/api.go index 564330a302db..9bc460e5bbca 100644 --- a/shared/version/api.go +++ b/shared/version/api.go @@ -421,6 +421,7 @@ var APIExtensions = []string{ "access_management_tls", "network_allocations_ovn_uplink", "network_ovn_uplink_vlan", + "state_logical_cpus", } // APIExtensionsCount returns the number of available API extensions.