ServerGroupController.CreateServerGroup Method |
Creates a server group with the specified name.
Namespace:
Dundas.BI.WebApi.Controllers
Assembly:
Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax[HttpPostAttribute]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(440)]
public ActionResult<long> CreateServerGroup(
[FromBodyAttribute] string name,
Guid? sessionId = null
)
<HttpPostAttribute>
<ProducesResponseTypeAttribute(403)>
<ProducesResponseTypeAttribute(440)>
Public Function CreateServerGroup (
<FromBodyAttribute> name As String,
Optional sessionId As Guid? = Nothing
) As ActionResult(Of Long)
public:
[HttpPostAttribute]
[ProducesResponseTypeAttribute(403)]
[ProducesResponseTypeAttribute(440)]
ActionResult<long long>^ CreateServerGroup(
[FromBodyAttribute] String^ name,
Nullable<Guid> sessionId = nullptr
)
[<HttpPostAttribute>]
[<ProducesResponseTypeAttribute(403)>]
[<ProducesResponseTypeAttribute(440)>]
member CreateServerGroup :
[<FromBodyAttribute>] name : string *
?sessionId : Nullable<Guid>
(* Defaults:
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<int64>
Parameters
- name
- Type: System.String
The name of the server group. - sessionId (Optional)
- Type: System.Nullable<Guid>
ID of the current session.
Return Value
Type:
ActionResult<Int64>The operation completed successfully. The payload contains a
Int64 representing the ID of the newly-created group, or
-1 if a group with the specified name already exists.
See Also