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

Invoke-IntersightPatchDocument fails when attempting to tag a Chassis #172

Open
zj-92 opened this issue Nov 7, 2024 · 1 comment
Open

Comments

@zj-92
Copy link

zj-92 commented Nov 7, 2024

In attempting to write a simple function to Tag objects in Intersight via PowerShell, I've encountered an issue with Chassis.

Using the example provided here, I've created the following JSON string for use in Invoke-IntersightPatchDocument:
$tagsToAdd = '[
{ "op": "add", "path": "/Tags/-", "value": {"Key": "' + $TagKey + '", "Value": "' + $Value + '"} }
]'

I then use $TargetDevice | Invoke-IntersightPatchDocument -JsonPatchDocument $tagsToAdd - this works as expected for Fabric Interconnects, Server Profiles, and Blade/Rack Servers. However, attempting to use this same method to tag a Chassis object I am met with an error:

image

Is tagging a Chassis via API unsupported, or is my Patch Document malformed for the Chassis specifically?
For reference, when attempting to tag the Chassis objects I'm using
$TargetDevice = (Get-IntersightEquipmentChassis -Filter "Moid eq '$DeviceMoid'").Results

@dsoper2
Copy link
Contributor

dsoper2 commented Nov 22, 2024

@Ghufz Can you check if this is a back-end issue? I'm seeing the same thing so looks like something that needs back-end support.

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