/db2whrest/v1/summary_tables/<table> -X PUT

Change the summary table configuration for a particular summary table available in the system.

The following table shows which roles can access this REST API endpoint:
Table 1. Access by role
Data admin CollectionAdmin Data user Admin Service user
X X Χ Χ

Synopsis of the request URL

curl -u <user>:<pass> https://<master_node>/db2whrest/v1/summary_tables/<table> -X PUT -d@data.json -H "Content-Type: application/json"

Supported request types and response formats

Supported request types:
  • PUT
Supported response formats:
  • JSON

Examples

  1. The following example shows how to disable auto scheduling for a particular summary table that is available in the system.
    1. Submit the request:
      curl -u <user>:<pass> https://<master_node>/db2whrest/v1/summary_tables/mrcapacity -X PUT -d'{"enabled": false}' -H "Content-Type: application/json"
    2. The following response is returned.
      
        {"status": "success"}
  2. The following example shows how to enable auto scheduling for a particular summary table that is available in the system.
    1. Submit the request:
      curl -u <user>:<pass> https://<master_node>/db2whrest/v1/summary_tables/mrcapacity -X PUT -d'{"enabled": true, "schedule": {"minute": "*/5"}}' -H "Content-Type: application/json"
    2. The following response is returned.
      
        {"status": "success"}
  3. The following example shows how to change the configuration schedule for a particular summary table that is available in the system.
    1. Submit the request:
      curl -u <user>:<pass> https://<master_node>/db2whrest/v1/summary_tables/mrcapacity -X PUT -d'{"enabled": true, "schedule": {"minute": "*/5"}}' -H "Content-Type: application/json"
    2. The following response is returned.
      
        {"status": "success"}