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

PS 7.4.2, restmethod.ps1 ContentType application/json #251

Closed
jdesl opened this issue May 22, 2024 · 2 comments
Closed

PS 7.4.2, restmethod.ps1 ContentType application/json #251

jdesl opened this issue May 22, 2024 · 2 comments

Comments

@jdesl
Copy link

jdesl commented May 22, 2024

Hello,

I had to add -ContentType application/json for a quick fix when calling:

get-FGTFirewallAddressGroup -name 'group' -vdom 'master' | Add-FGTFirewallAddressG-memberroupMember 'member' -vdom 'master'

restmethod.ps1
-ContentType application/json

line 199:
$response = Invoke-RestMethod $fullurl -Method $method -body (ConvertTo-Json $body -Depth 10 -Compress) -Headers $headers -WebSession $sessionvariable @invokeParams -ContentType application/json

PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Microsoft Windows 10.0.22631
Platform Win32NT

@alagoutte
Copy link
Contributor

Duplicate with #246 and #247

I need to publish a new (minor) release...

@alagoutte
Copy link
Contributor

Fixed with release 0.8.1

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

2 participants