File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,15 @@ func main() {
63
63
fmt .Println ("#----------------Server Profile Created---------------#" )
64
64
}
65
65
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.
66
75
task , err := ovc .SubmitNewProfileAsync (server_profile_create_map , ignoreFlags ... )
67
76
if err != nil {
68
77
fmt .Println ("Server Profile Create Failed: " , err )
You can’t perform that action at this time.
0 commit comments