Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-IntersightTechsupportmanagementDownload doesn't download tech supports #176

Open
dsoper2 opened this issue Nov 21, 2024 · 0 comments
Open

Comments

@dsoper2
Copy link
Contributor

dsoper2 commented Nov 21, 2024

Describe the bug
Get-IntersightTechsupportmanagementDownload appears to use the regular API URLs when attempting a download, but tech support downloads use download.intersight.com (from the UI):
Request URL: https://download.intersight.com/api/v1/techsupportmanagement/Downloads/673f95f2616c643101bc0c2b
Request Method: GET

I'm also not sure that the cmdlet would download a large file even if the URI is corrected.

To Reproduce
Something like the following can be used to generate a tech support, check for status completed, but the actual download doesn't look possible with the module:
$NewTechSupport = New-IntersightTechsupportmanagementTechSupportBundle -Pid "UCSB-B200-M5" -PlatformType "UCSFIISM" -Serial "FLM2342066T"

$Status = Get-IntersightTechsupportmanagementTechSupportStatus -Moid $NewTechSupport.TechSupportStatus.ActualInstance.Moid
While ($Status.Status -ne 'Completed')
{
Start-Sleep -Seconds 10
$Status = Get-IntersightTechsupportmanagementTechSupportStatus -Moid $NewTechSupport.TechSupportStatus.ActualInstance.Moid
}

$BundleMoid = $Status.TechsupportDownloadUrl
$BundleMoid = $BundleMoid.Split("/")[-1]
$TechSupportBundle = Get-IntersightTechsupportmanagementDownload -Moid $BundleMoid
Set-Content -Path "tech_support.tar.gz" -Value $TechSupportBundle -AsByteStream

Version used
1.0.11.2024101709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant