Create a Device Configuration Profile
post
/api/config/Profiles
Creates a new device configuration profile.
The minimum required properties in the request body are:
The minimum required properties in the request body are:
- ProfileName
- ProfileStatus
- ProfileDescription
- ProfileUser
- ProfilePassword
- NotificationProfile
- NotificationTemplate
- Message
- EmailAddresses
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
ConfigAgentProfileTypeID: integer
The configuration agent profile type ID. The possible values are 1 for SSH and 2 for Telnet.Example:
1 -
ConfigAgentProfileTypeName: string
The configuration agent profile type name.Example:
SSH -
EmailAddresses: string
The email address.Example:
abc@email.com -
LoginPrompt: string
Only used when profile type is Telnet. This is an optional field.Example:
-
Message: string
MessageExample:
Example Message -
NotificationProfile: integer
The notification profile ID.Example:
51 -
NotificationTemplate: integer
The notification template ID.Example:
50 -
ProfileDescription: string
The profile description.Example:
Example Description -
ProfileName: string
The profile name.
To avoid confusion with numeric IDs, the name value cannot be integers only or integers prefixed with the + or - symbols only. It must contain letters or other characters. For example, 1234, +1234, and -1234 are not valid, but US1234, US+1234 and US_1234 are.Example:SSH Profile -
ProfilePassword: string
The profile password.Example:
myFakePassword -
ProfileStatus: integer
Whether the profile is enabled (1 or disabled 0).Example:
1 -
ProfileUser: string
The profile user.Example:
Default -
TelnetPort: integer
Only used when profile type is Telnet. The value can be anything between 1 to 65535.Example:
80
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 profile.
-
total: integer
The total number of results regardless of paging.Example:
1
Nested Schema : data
Type:
arrayThe properties of the new device configuration profile.
Show Source
Nested Schema : configProfilesRead
Type:
Show Source
object-
ConfigAgentProfileTypeID: integer
The configuration agent profile type ID. The possible values are 1 (SSH) and 2 (Telnet).Example:
1 -
ConfigAgentProfileTypeName: string
The configuration agent profile type name.Example:
SSH -
EmailAddresses: string
The email address.Example:
abc@email.com -
LoginPrompt: string
The login prompt.Example:
Customized -
Message: string
MessageExample:
Example Message -
NotificationProfile: integer
The notification profile ID.Example:
51 -
NotificationTemplate: integer
The notification template ID.Example:
50 -
ProfileDescription: string
The profile description.Example:
Example Description -
ProfileName: string
The profile name.Example:
SSH Profile -
ProfileStatus: integer
Whether the profile is enabled (1) or disabled (0).Example:
1 -
ProfileUser: string
The profile user.Example:
Default -
TelnetPort: integer
The telnet port.Example:
23
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.