Create a Device Configuration Collection
post
/api/config/Collections
Creates a new device configuration collection.
The minimum required properties in the request body are:
The minimum required properties in the request body are:
- ConfigAgentProfileID
- ConfigActionProfileID
- Devices
- DeviceName
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
ConfigActionProfileID: integer
The configuration action profile ID.Example:
1002 -
ConfigAgentProfileID: integer
The configuration agent profile ID.Example:
1001 -
DeviceName: string
The device the collection pertains to.Example:
Some Device -
Devices: array
Devices
The device ID array. Each collection must contain a unique combination of ConfigAgentProfileID, ConfigActionProfileID, and Devices. Specify only devices that are not already in a collection that has the same ConfigAgentProfileID and ConfigActionProfileID.
-
DeviceZoneName: string
The name of the zone the device is in.Example:
Default First Zone -
StatusID: integer
The configuration collection status ID. Either 0 (disabled) or 1 (enabled).Example:
0
Nested Schema : Devices
Type:
arrayThe device ID array. Each collection must contain a unique combination of ConfigAgentProfileID, ConfigActionProfileID, and Devices. Specify only devices that are not already in a collection that has the same ConfigAgentProfileID and ConfigActionProfileID.
Example:
[50,19]Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Match All
Show Source
-
object
SuccessfulAddOperation
The response body for a successful add operation.
-
object
type
Nested Schema : SuccessfulAddOperation
Type:
objectThe response body for a successful add operation.
Show Source
-
message: string
The response message.Example:
Added record -
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
Nested Schema : type
Type:
Show Source
object-
data: array
data
The properties of the new device configuration collection.
-
total: integer
The total number of results regardless of paging.Example:
1
Nested Schema : data
Type:
arrayThe properties of the new device configuration collection.
Show Source
Nested Schema : configCollectionsRead
Type:
Show Source
object-
ActionName: string
The action name.Example:
Example Action Name -
ConfigActionProfileID: integer
The configuration action profile ID.Example:
1002 -
ConfigAgentProfileID: integer
The configuration agent profile ID.Example:
1001 -
ConfigCollectionID: integer
The configuration collection ID.Example:
1003 -
DeviceID: integer
The device ID.Example:
303 -
DeviceName: string
The device name. Most commonly, this is the host FQDN.Example:
server.domain.com -
DeviceZoneName: string
The device zone name.Example:
Default First Zone -
ProfileName: string
The profile name.Example:
SSH Profile -
Status: string
The status, based on the value of the StatusID property. When StatusID is 0, Status is Disabled. When StatusID is 1, Status is Enabled.Example:
Disabled -
StatusIcon: string
The status image name based on the the statusID. If the statusID is 0, then the StatusIcon is OrbRed.png. If the statusID is 1, then the StatusIcon is OrbGreen.png.Example:
OrbRed.png -
StatusID: integer
The configuration collection status ID. Either 0 (disabled) or 1 (enabled).Example:
0
Default Response
Failed operation
Root Schema : schema
Type:
Show Source
object-
errors: array
errors
The list of errors reported. Validation errors will be keyed by record field.
-
message: string
The response message.Example:
Exception thrown -
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
false
Nested Schema : errors
Type:
arrayThe list of errors reported. Validation errors will be keyed by record field.
Show Source
-
Array of:
object items
An error.
Nested Schema : items
Type:
objectAn error.