Skip to content

Commit d59dabe

Browse files
adding comments
1 parent 6ca9288 commit d59dabe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

examples/server_profiles.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ func main() {
6363
fmt.Println("#----------------Server Profile Created---------------#")
6464
}
6565

66+
// Example: Submit a new Server Profile asynchronously
67+
//
68+
// This example demonstrates how to use the `SubmitNewProfileAsync` function to create
69+
// a new server profile in OneView. The call is asynchronous, meaning it immediately
70+
// returns a Task object instead of waiting for the operation to finish.
71+
//
72+
// The returned Task contains the URI that can be polled or monitored until the
73+
// profile creation completes. If the server hardware already has a profile assigned
74+
// or if the hardware is powered on, an error will be returned.
6675
task, err := ovc.SubmitNewProfileAsync(server_profile_create_map, ignoreFlags...)
6776
if err != nil {
6877
fmt.Println("Server Profile Create Failed: ", err)

0 commit comments

Comments
 (0)