Skip to content

Commit

Permalink
add example to add / update annotations in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ffeldhaus committed Oct 27, 2015
1 parent fae612e commit 1844997
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions OnCommand-Insight-Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,19 @@ Get-OciDatasources | % { Get-OciDatasourceDevices $_.id | Add-Member -MemberType

Get-OciStorages | Get-OciVolumesByStorage | Get-OciVolume -Performance | % { New-Object -TypeName PSObject -Property @{Name=$_.Name;"Min total IOPS"=$_.performance.iops.total.min;"Max total IOPS"=$_.performance.iops.total.max; "Avg total IOPS"=$_.performance.iops.total.avg} } | ft -Wrap

### Update annotation

Retrieve a volume
```powershell
$Volume = Get-OciStorages | Get-OciVolumesByStorage | select -first 1
```

Show all annotations of the volume
```powershell
$Volume | Get-OciAnnotationsByVolume
```

Get the _note_ annotation and update the annotation value associated with the volume
```powershell
Get-OciAnnotations | ? { $_.name -eq "note" } | Update-OciAnnotationValues -objectType "Volume" -rawValue "Test" -targets $Volume.id
```

0 comments on commit 1844997

Please sign in to comment.