Update an Element Vertex
put
/api/gateway/Elements/{id}
Updates an existing element vertex identified by element object ID.
This method allows you to make changes to the properties of an element vertex.
Request
Path Parameters
-
id(required): integer(int32)
The element Object ID.Example:
1
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
Commands: array
Commands
Poll Commands to run on network element. The order listed is the order commands will be run.
-
CTAG: string
Element CTAGExample:
ctag -
Description: string
Description of the Element.Example:
-
ElementName: string
The gateway element 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:Element1 -
GatewayID: string
Parent GatewayExample:
18b88a04-5b5d-455c-bc9e-0ad28cf7aee0 -
LoginCommand: string
Command to login to the element.Example:
act -
LogoutCommand: string
Command to logout of the element.Example:
canc -
PollTimer: integer
Seconds to wait after running each poll command.Example:
30 -
TID: string
Element TIDExample:
tid
Nested Schema : Commands
Type:
arrayPoll Commands to run on network element. The order listed is the order commands will be run.
Show Source
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Match All
Show Source
-
object
SuccessfulUpdateOperation
The response body for a successful update operation.
-
object
type
Nested Schema : SuccessfulUpdateOperation
Type:
objectThe response body for a successful update operation.
Show Source
-
message: string
The response message.Example:
Updated record -
success: boolean
Whether the operation was a success (true) or a failure (false).Example:
true
Nested Schema : gatewayElementsRead
Type:
Show Source
object-
Commands: array
Commands
Poll Commands to run on network element. The order listed is the order commands will be run.
-
CTAG: string
Element CTAGExample:
ctag -
Description: string
Description of the Element.Example:
-
ElementID: string
Unique identifier for the element.Example:
825f3a56-2697-49e1-a3e6-375dd6fe61eb -
ElementName: string
The name of the element, which must be unique within the database.Example:
Element1 -
GatewayID: string
Parent GatewayExample:
18b88a04-5b5d-455c-bc9e-0ad28cf7aee0 -
GatewayName: string
The parent gateway for the element.Example:
Gateway1 -
LoginCommand: string
Command to login to the element.Example:
act -
LogoutCommand: string
Command to logout of the element.Example:
canc -
PollTimer: integer
Seconds to wait after running each poll command.Example:
30 -
TID: string
Element TIDExample:
tid
Nested Schema : Commands
Type:
arrayPoll Commands to run on network element. The order listed is the order commands will be run.
Show Source
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.