"locked" field is available for server retrieval for Microversion >= 2.9 See [API documentation](https://docs.openstack.org/api-ref/compute/?expanded=show-server-details-detail#:~:text=security%20group%20name.-,locked,-body)