Setting the end of support date for software components
Available from 9.2.11. You use the POST
operation on the sam/component_lifecycles
element to set the end of support date
for software components. The end of support date is added on the Products &Metrics report. If
you want to change the end of support date, you must first delete the current date and then set a
new one by using this API.
Permissions
You must have the Manage Catalogs permission to use this API.
Resource URL
https://hostname:port/sam/component_lifecycles?token=token
Resource information
Operation details | Description |
---|---|
HTTP method | POST |
Request headers |
Negotiates the language of the response. If the header is not specified, the content is returned in the server language. |
Request format | application/json |
Request payload | { "component_lifecycle": { "eos_date":
"YYYY-MM-DD", "software_component_id":
"software_component_id"} } |
Response headers |
Specifies the content type of the response. |
Specifies the language of the response content. If the header is not specified, the content is returned in the server language. |
|
Response format | application/json |
Response codes |
|
Example conversation - setting end of support date for a software component
- To retrieve information about the software component ID for which you want to set the end of
support date, perform the following steps:
- Log in to BigFix Inventory.
- Go to .
- Hover over the component name and check the URL address at the bottom of the page. The software
component ID is a number at the end of the URL. For example:
sam/catalog/software_components/10379
- To set the end of support date, use the following
POST
request.- Request header
-
POST sam/component_lifecycles?token=7adc3efb175e2bc0f4484bdd2efca54a8fa04623 Host: localhost:9081 Accept: application/json Accept-Language: en-US
- Request Body
-
{ "component_lifecycle": { "eos_date": "2020-12-22", "software_component_id": "10379"} }
- Response Header
-
200 - OK
- Response Body
-
{ "created_at": "2018-01-26T10:30:06Z", "detailed_version": null, "eos_date": "2020-12-23", "id": 2, "is_release": true, "software_component_id": 10379, "source_id": 1, "source_type": 0, "updated_at": "2018-01-26T10:30:06Z" }