The following code is an example of the JSON code to send with the request.
{
"executionPlanId" : 102,
"blackOuts" : [{
"startAtTimeOffset" : "UTC",
"terminateAt": "2030-01-05T12:00:00",
"daysOfRunTillHour" : "17:00",
"daysOfRunFromHour" : "08:00",
"daysOfMonth" : null,
"triggerType" : "DAYS_OF_WEEK_BLACKOUT",
"daysOfWeek" : "1,2",
"blackoutName" : null,
"startAt" : "0"
}, {
"startAtTimeOffset" : "UTC",
"terminateAt" : "2030-02-25T08:10:00",
"daysOfRunTillHour" : "17:00",
"daysOfRunFromHour" : "08:00",
"daysOfMonth" : null,
"triggerType" : "DAYS_OF_WEEK_BLACKOUT",
"daysOfWeek" : "1,2",
"blackoutName" : null,
"startAt" : "2018-02-23T08:10:00"
}
],
"projectType" : 0,
"scriptFileName" : "Pinger.ltz",
"description" : "",
"executionPlanName" : "ep_dot_auto",
"version" : 4,
"scriptFileCRC" : 1112554905,
"scheduler" : {
"startAtTimeOffset" : "UTC",
"terminateAt" : "0",
"daysOfRunTillHour" : "0:00",
"daysOfRunFromHour" : "0:00",
"daysOfMonth" : null,
"transactionTimeout" : 15,
"startAtWithRandomDelay" : 5,
"triggerType" : "CONTINUOUS",
"daysOfWeek" : null,
"startAt" : "0",
"intervalInMinutes" : 5
},
"scriptId" : 3,
"agentGroups" : [],
"scriptFileSize" : 67346,
"activeStatus" : 1,
"useGlobalScheduler" : false,
"attributeChangedEnvelopVersion" : 4,
"activeBy" : [true, true],
"attributes" : [{
"encrypted" : 0,
"defaultValue" : "1",
"name" : "Number of Pings",
"encryptionType" : 0,
"description" : "Number of pings to be sent",
"type" : "number",
"value" : "1",
"order" : 2
}, {
"encrypted" : 0,
"defaultValue" : "Sv_ICMP Ping",
"name" : "Timer Name",
"encryptionType" : 0,
"description" : "Name of the ICMP Ping Timer",
"type" : "string",
"value" : "Sv_ICMP Ping",
"order" : 4
}, {
"encrypted" : 0,
"defaultValue" : "",
"name" : "Host",
"encryptionType" : 0,
"description" : "The host being monitored",
"type" : "string",
"value" : "1.1.1.1",
"order" : 0
}, {
"encrypted" : 0,
"defaultValue" : "1.000000000",
"name" : "Ping Timeout",
"encryptionType" : 0,
"description" : "Timeout value for the ping in seconds",
"type" : "float",
"value" : "1.000000000",
"order" : 1
}, {
"encrypted" : 0,
"defaultValue" : "32",
"name" : "Data Size",
"encryptionType" : 0,
"description" : "\n Size of the data package to be sent in bytes\n ",
"type" : "number",
"value" : "32",
"order" : 3
}
],
"useGlobalBlackout" : false,
"applicationId" : 5,
"syntheticApplicationId" : 3,
"syntheticApplicationName" : null,
"attributeChangedScriptVersion" : 1,
"executionLogSetting": "ON_ERROR"
}
| | |
---|
| ID of the Execution Plan - To create a new Execution Plan use 0.
- To update a specific Execution Plan use the execution plan ID.
| String representing a numeric value |
| Blackout periods defined for the Execution Plan (can be multiple) | |
| Clock used for calculating the blackout period | - UTC—Universal Coordinated Time
- LOCAL—Local time on the computer where the TEA Agent is installed
|
| Date from when the blackout period is no longer used | One of the following: - Date in format: YYYY-MM-DDThh:mm:ss
Example: 2017-12-31T12:00:00 - 0—Indicates that the blackout period never expires
|
| End time for the blackout period | Format: hh:mm Example: 21:00 |
| Start time for the blackout period | Format: hh:mm Example: 17:00 |
| | |
| Trigger for the blackout period | |
| Days of the week when the blackout period is in effect | Comma-separated numeric values (0-6). Example: 0,2,5 indicates that the blackout is in effect on Sunday, Tuesday, and Friday. |
| Name of the blackout period | String Name given to the blackout period |
| Date from when the blackout period is in use | One of the following: - Date in format: YYYY-MM-DDThh:mm:ss
Example: 2016-01-05T12:00:00 - 0—Indicates that the blackout period is effective immediately
|
| Type of Silk Performer project | String representing a numeric value |
| Name of the script run by the Execution Plan Content of this parameter is ignored. | |
| Description of the Execution Plan | |
| Name of the Execution Plan | |
| Execution Plan version This number is updated every time the Execution Plan is updated. | |
| Cyclic Redundancy Check of the script file Content of this parameter is ignored. | String representing a numeric value |
| Schedule defined for the Execution Plan | |
| Clock used for calculating the schedule | - UTC—Universal Coordinated Time
- LOCAL—Local time on the computer where the TEA Agent is installed
|
| Date from when the schedule is no longer used | One of the following: - Date in format: YYYY-MM-DDThh:mm:ss
Example: 2017-12-31T12:00:00 - 0—Indicates that the schedule never expires
|
| | |
| | |
| | |
| Number of minutes a transaction is allowed to run before it is automatically timed out | String representing a numeric value |
| Range, in minutes, within which the Execution Plan starts | String representing a numeric value |
| | |
| | |
| Date from when the schedule is in use | One of the following: - Date in format: YYYY-MM-DDThh:mm:ss
Example: 2016-01-05T12:00:00 - 0—Indicates that the schedule period is effective immediately
|
| Number of minutes between runs of the Execution Plan | String representing a numeric value |
| ID of the script used by the Execution Plan - When creating a new Execution Plan, you must enter a scriptId.
- When updating an existing Execution Plan, this cannot be modified.
| String representing a numeric value |
| Locations defined for the Execution Plan | |
| | |
| | |
| Size of the script file used by the Execution Plan in bytes Content of this parameter is ignored. | String representing a numeric value |
| Indication if the Execution Plan is active or not | String representing a numeric value Valid values: 0—False 1—True |
| | |
attributeChangedEnvelopVersion | Version number that is incremented each time there is a change in blackouts, schedule, or Execution Plan name | String representing a numeric value |
| Array of two Boolean values indicating if the Execution Plan is active at the Execution Plan level, and at the Application level | |
| Name of the Execution Plan | |
| Attributes of the script run by the Execution Plan (can be multiple) You can obtain a list of attributes in a script from the Retrieving-script-details-API. | |
| Indicates whether or not the attribute is encrypted | 0—False 1—True; used for a password attribute |
| Default value of the attribute | Varies, depending on the attribute |
| | |
| Indicates whether the value parameter for the attribute is encoded | 0—value is not encoded 1—value is encoded; used when you are setting a password attribute |
| Description of the attribute | |
| Data type of the attribute | |
| | Varies, depending on the attribute For a password enter the Base64 encoded value, and set encryptionType to 1. |
| Serial number of the appearance of the attribute in the user interface | |
| | |
| (Mandatory) ID of the application on the Presentation Server | String representing a numeric value |
| Synthetic application ID This parameter is not updated by this API request. | String representing a numeric value |
| | |
attributeChangedScriptVersion | Version number that is incremented each time there is a change in script attributes | String representing a numeric value |
| Whether the Execution Log is saved. | |