You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered:
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: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
The text was updated successfully, but these errors were encountered: