Unable to Delete Network Host Config from UI
PreviousPCD UI Port List Page Doesn’t Show Assigned Security GroupsNextHow to Delete Cluster BluePrint and HostConfig Using Resmgr API
Last updated
curl -s -X GET -H "X-Auth-Token: $token" https://<PCD_FQDN>/resmgr/v2/hostconfigs | jq '.[] | {id, name}'
# Sample Output:
{
"id": "[HOSTCONFIG_ID_1]",
"name": "[HOSTCONFIG_NAME_1]"
}
{
"id": "[HOSTCONFIG_ID_2]",
"name": "[HOSTCONFIG_NAME_2]"
}
{
"id": "[HOSTCONFIG_ID_3]",
"name": "[HOSTCONFIG_NAME_3]"
}curl -s -X GET -H "X-Auth-Token: $token" https://<PCD_FQDN>/resmgr/v2/hosts | jq -c '.[] | select(.hostconfig_id == "<HOSTCONFIG_ID>") | {id, hostname: .info.hostname, hostconfig_id}'
# Sample Output:
{
"id": "[HOST_ID_1]",
"hostname": "[HOSTNAME_1]",
"hostconfig_id": "[HOSTCONFIG_ID]"
}
{
"id": "[HOST_ID_2]",
"hostname": "[HOSTNAME_2]",
"hostconfig_id": "[HOSTCONFIG_ID]"
}curl -s -X DELETE -H "X-Auth-Token: $token" "https://<PCD_FQDN>/resmgr/v2/hosts/<HOST_ID>/hostconfig/<HOSTCONFIG_ID>"curl -s -X DELETE -H "X-Auth-Token: $token" "https://<PCD_FQDN>/resmgr/v2/hostconfigs/<HOSTCONFIG_ID>"