I want to get some delete server list like openstack server list --delete
through the API operation, how can I achieve that, THX.
You were on the right track but apparently didn't follow through. If you check out https://docs.openstack.org/api-ref/compute/?expanded=list-servers-detailed-detail#list-servers you'll find the servers/detail
section where you'll find more details about the options:
deleted (Optional)
Show deleted items only. In some circumstances deleted items will still be accessible via the backend database, however there is no contract on how long, so this parameter should be used with caution. 1, t, true, on, y and yes are treated as True (case-insensitive). Other than them are treated as False.
This parameter is only valid when specified by administrators. If non-admin users specify this parameter, it is ignored.