dynamic_tasks

Configuration for Dynamic Tasks resource.

Read/write properties

task_name<String>

The name of the task.

content<property_map[]>

List of content in prop_key/prop_value pairs.

weightage<Integer>

Weight of the task.
Maximum value =

last_modified_time<Double>

Last modified time (epoch time).

categories<String>

Task Category.

entities_hash<String>

The string obtained by hashing the entities of the task. Used for managing notification.

categories_array<String[]>

Task Category in array format.

poll_now<Boolean>

Option to trigger poll now.

activity_id<String>

Activity ID is used to infrom about the status of polling.
Maximum length = 128

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

get (all)

get (all)

URL:https://<MGMT-IP>/nitro/v2/config/dynamic_tasks

Query-parameters:

filter

https://<MGMT-IP>/nitro/v2/config/dynamic_tasks?filter=property-name1:property-value1,property-name2:property-value2

Use this query-parameter to get the filtered set of dynamic_tasks resources configured on the system. You can set a filter on any property of the resource.

pagesize=#no&pageno=#no

https://<MGMT-IP>/nitro/v2/config/dynamic_tasks?pagesize=#no&pageno=#no

Use this query-parameter to get the dynamic_tasks resources in chunks.

count

https://<MGMT-IP>/nitro/v2/config/dynamic_tasks?count=yes

Use this query-parameter to get the count of dynamic_tasks resources.

HTTPS Method:GET

Request Headers:

Accept:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Headers:

Content-Type:application/json

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "dynamic_tasks":[{
      "task_name":<String_value>,
      "content":[{
      "prop_value":<String_value>,
      "prop_key":<String_value>}],
      "weightage":<Integer_value>,
      "last_modified_time":<Double_value>,
      "categories":<String_value>,
      "entities_hash":<String_value>,
      "categories_array":<String_value>,
      "poll_now":<Boolean_value>,
      "activity_id":<String_value>}]}