- Community Home
- >
- Software
- >
- HPE OneView
- >
- How can I get a filename/uri for an LE-Dump I crea...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-28-2024 03:29 AM - last edited on тАО04-10-2024 10:10 PM by support_s
тАО03-28-2024 03:29 AM - last edited on тАО04-10-2024 10:10 PM by support_s
How can I get a filename/uri for an LE-Dump I created with the OneView REST API 5800?
Hi
How can I get a filename/uri for an LE-Dump I created with the REST API?
xapi version: 5800
my func on pwsh works fine and creates the LE-Dump in OVA:
function create_le_dump{
param($x_api_version, $session_key, $le_uri)
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("X-Api-Version", $x_api_version)
$headers.Add("Content-Type", "application/json")
$headers.Add("Auth", "$session_key")
$body = @"
{
`"errorCode`": `"LE`",
`"excludeApplianceDump`": true
}
"@
$URI='https://192.168.60.10'+$le_uri+'/support-dumps'
$response = Invoke-RestMethod $URI -Method 'POST' -Headers $headers -Body $body
return $response
}
But the task uri Iam getting back sends me no file name....
It only gives me back the uri of the Logical Enclosure Group.....
So a GET on that task uri gives me not the file, it gives me back the le data
/rest/logical-enclosures/df5c349c-ce48-4cf6-8d6a-d36282f5e0cd
If I create a LE-Dump in the OVA manually and check the task uri, then I get a filename and the .sdmp file back. (associatedResource, resourceUri)
resourceUri : /rest/appliance/support-dumps/oneview-lab.de-LE-LELAB12-2024_03_28-08_55_40.085928.sdmp
So how can I get a filename/uri for an LE-Dump I created with the REST API?
And after the GET, how should I convert the response into an file?
Thanks for your support
- Tags:
- enclosure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2024 02:50 AM
тАО04-01-2024 02:50 AM
Re: How can I get a filename/uri for an LE-Dump I created with the OneView REST API 5800?
Hello,
You may refer to "HPE OneView 8.6 API Reference for HPE Synergy" and see if it helps.
Regards,
Views expressed herein are my personal opinion and are not the views of HPE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2024 10:09 PM
тАО04-10-2024 10:09 PM
Re: How can I get a filename/uri for an LE-Dump I created with the OneView REST API 5800?
Please find the below link to get the info
https://techlibrary.hpe.com/docs/enterprise/servers/oneview5.0/cicf-api/en/index.html#rest/logical-enclosures
The response to the POST request includes a Task URI (returned via the Location
header) that can be used to track the progress of the support dump and download the file when complete.
If the logical enclosure support dump was generated successfully, the taskState
will change to "Completed" and the resourceUri
attribute under the associatedResource
object will change to the download link for the support dump. To download the support dump, perform a GET request on the provided URI.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]