On This Page
Mutations
GraphQL mutations allow you to update TOS data. For example you could modify zone mapping or add a security zone to a USP.
The following types of mutations are available:
-
RiskAnalysisMutation: Create a USP risk analysis task.
-
RuleOperationsMutation: Creates a ticket draft in SecureChange
-
RuleUserDataMutation: Update the description, technical owner, or automation attributes, or to create, delete, or update tickets associated with a single or multiple rule
-
SystemMutation: Creates, deletes, or modifies a system, or root device. For example, you could add a device to an existing system.
-
UserTQLSearchMutation: Create, update, or delete TQL queries.
-
UspMutation: Creates, deletes, or modifies USPs. For example, you could add a zone to a USP
-
AlertConfigMutation: Creates, modifies, or deletes USP alerts.
-
Modifying USP Exceptions: Creates, modifies, or deletes USP Exceptions.
-
ZoneMappingMutation: Adds, modifies, or deletes the mapping of SecureTrack network zones to a device.
Mutation Examples
Modifying USP Exceptions
The following mutation creates a USP exception that applies to all domains and includes IPs, zones, and entities for the source and destination.
mutation{
uspException{
createUspTrafficException(input:{
appliedToAnyDomain:true
approver:"Approver Name"
description:"Description text"
disabled:false
name:"Usp traffic exception name"
sources:["1.1.1.1","2.2.2.2"]
sourceZoneIds:["zone1 id", "zone2 id"]
sourceEntityIds:["entity id"]
destinations:["1.2.3.4"]
destinationZoneIds:["zone3 id", "zone4 id"]
destinationEntityIds:["entity id"]
servicesAndApplications:{
services:["TCP","UDP","SSH"],
applications:["Youtube","Facebook","DNS Protocol"]
}
})
{
id
resultStatus{
errors{
errorCode
}
successful
}
}
}
}
Modifying Zone Mapping
The following mutation adds the security zone zone-1 to the device device-1.
mutation {
zoneMapping {
updateMappings(input: {
deviceId: "device-1",
interfaceId: "interface-1"
mappingType: ROUTE
zonesIds: {action: ADD, securityZoneId: "zone-1"}
}
)
}
}
Modifying USP
The following mutation adds the Zone zone-1 to the USP myUSP.
Was this helpful?
Thank you!
We’d love your feedback
We really appreciate your feedback
Send this page to a colleague