Skip to content

Status Code -9: The command is invalid for selected url #23

@og9gjz567

Description

@og9gjz567

Hi,

thanks for the great work and the documentation of this module!
I just fail at the point that I want to create my first address, here is the code:

$newFMAddresses = New-FMObjAddress -Name “Test-Host” -Type ipmask -Subnet “192.168.1.9/32” -Comment “PS-API: Test” -
$newFMAddresses | add-fmaddress -connection $Connection -RevisionNote “Revision Note Powershell”
Publish-FMAdomChange -Connection $Connection -Verbose -EnableException $true -Debug
Disconnect-FM -connection $Connection

The message the first time the error is sent is "WARNUNG: [14:11:57][Invoke-FMAPI] Failed to: | API-Error, statusCode: -9, Message The command is invalid for selected url"

The second time you send the command "WARNUNG: [14:31:13][Invoke-FMAPI] Failed to: | API-Error, statusCode: -2, Message Object already exists".

The object is created correctly, but is displayed with an error due to the code -9. Unfortunately, I can't find any API documentation or can't explain this to myself.

Thank you in advance for your support!

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions