Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
To add an annotation on internal volume through REST API in OCI
2018-10-17
08:24 AM
2,475 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am looking to add the annotation on internal volumes in OCI through REST API.
I was looking the documentation and saw that POST method of API "rest/v1/assets/internalVolumes/22008/annotations" is missing, even giving me 404 error.
Need help to add the annotations on Volumes through REST API. please let me know, if any good documentation available on it.
Solved! See The Solution
1 ACCEPTED SOLUTION
ManasShukla has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PUT
PUT /rest/v1/assets/internalVolumes/{id}/annotations
Implementation Notes
Request body should be like JSON below:
[ { "rawValue": "Bronze", "definition": { "id": "4992", } } ]
Response Class
Model properties:
{
rawValue: string
displayValue: string
label: string
annotationAssignment: 'MANUAL' or 'RULE' or 'SYSTEM_ASSIGNED' or 'INHERITED'
}
Expand properties:
{
_expands: Map[string, ModelExpand]
definition: AnnotationDefinition
}
ManasShukla has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many Thanks Lie,
We applied the PUT method and it works.
