/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:
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
- JSON
Examples
- The following example shows how to disable auto scheduling for a particular summary table that
is available in the system.
- 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"
- The following response is returned.
{"status": "success"}
- Submit the
request:
- The following example shows how to enable auto scheduling for a particular summary table that is
available in the system.
- 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"
- The following response is returned.
{"status": "success"}
- Submit the
request:
- The following example shows how to change the configuration schedule for a particular summary
table that is available in the system.
- 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"
- The following response is returned.
{"status": "success"}
- Submit the
request: