Fryguy on morphy-1
chessbyte on master
Remove Hakiri Merge pull request #105 from Fr… (compare)
whitesource-bolt-for-github[bot] on configure
Fryguy on master
Add .whitesource configuration … Merge pull request #104 from Ma… (compare)
whitesource-bolt-for-github[bot] on configure
Add .whitesource configuration … (compare)
whitesource-bolt-for-github[bot] on configure
Hey guys, I am trying to set a retirement date for a VM through the ManageIQ API and was wondering if anyone is aware of a viable method to do this.
I see that the ManageIQ docs mention that a retirement date can be set in the future via the API for services (using request_retire
action and date
in the resource
), but this option doesn’t seem to work for VMs (the VM is just retired immediately when attempting this). I have also tried using the edit
action on the VM but retires_on
is not an editable value for VMs.
Is anyone familiar with a solution for setting a VM retirement date through the API? I am running CloudForms 5.11.9.0 for reference.
@jbarson47 Looks like queuing a retirement using request_retire
was not added until jansa
, which was after the last release of CloudForms (if I remember correctly):
so that is why that functionality doesn't exist in your version
/metrics
realtimes, should be able to be added relatively easily though if that is what you're looking form
this api already not exists in cloudforms APIs
This API has been there for a number of years: ManageIQ/manageiq-api#4
GET /api/metric_rollups
{
"error": {
"kind": "bad_request",
"message": "Must specify resource_type, capture_interval, start_date",
"klass": "Api::BadRequestError"
}
}
i don't understand this point , i think the metric_rollups should already exists with exists VM
well if you don't have c&u enabled then you won't have any metrics or metric_rollups records
GET /api/metric_rollups?resource_type=VmOrTemplate&capture_interval=hourly&start_date=2021-11-11
{
"count": 226,
"subcount": 1,
"subquery_count": 1,
"pages": 1,
"resources": [
{
"href": "https://manageiq.rb.nj.grare.com/api/metric_rollups/226"
}
],
"links": {
"self": "https://manageiq.rb.nj.grare.com/api/metric_rollups?resource_type=VmOrTemplate&capture_interval=hourly&start_date=2021-11-11&offset=0",
"first": "https://manageiq.rb.nj.grare.com/api/metric_rollups?resource_type=VmOrTemplate&capture_interval=hourly&start_date=2021-11-11&offset=0",
"last": "https://manageiq.rb.nj.grare.com/api/metric_rollups?resource_type=VmOrTemplate&capture_interval=hourly&start_date=2021-11-11&offset=0"
}
}
GET /api/metric_rollups?resource_type=Vm&capture_interval=hourly&start_date='2021-10-22 08:57:52 -0400'
<!DOCTYPE html>
<html>
<head>
<title>The page you were looking for doesn't exist (404)</title>
<style type="text/css">
body {
background-color: #fff;
color: #666;
text-align: center;
font-family: arial, sans-serif;
}
div.dialog {
width: 25em;
padding: 0 4em;
margin: 4em auto 0 auto;
border: 1px solid #ccc;
border-right-color: #999;
border-bottom-color: #999;
}
h1 {
font-size: 100%;
color: #f00;
line-height: 1.5em;
}
</style>
</head>
<body>
<!-- This file lives in public/404.html -->
<div class="dialog">
<h1>The page you were looking for doesn't exist.</h1>
<p>You may have mistyped the address or the page may have moved.</p>
</div>
</body>
</html>
GET /api/providers