Closed cherrycl closed 1 month ago
@cherrycl to use RESTAction for EdgeX internal API, you have to set injectEdgeXAuth = true
Please see the RESTAction schema in the API docs
https://docs.edgexfoundry.org/3.2/api/support/Ch-APISupportCronScheduler/
Close with invalid issue.
π Bug Report
Affected Services [REQUIRED]
The issue is located in: support-cron-scheduler ### Is this a regression? No ### Description and Minimal Reproduction [**REQUIRED**] 1. Run command `make run keeper mqtt-bus postgres arm64` under [compose-build](https://github.com/edgexfoundry/edgex-compose/tree/main/compose-builder) to deploy service 2. Generate JWT token by command `make get-token` 3. Create job with REST action ``` [ { "scheduleJob":{ "name":"job_1", "definition":{ "type":"INTERVAL", "interval":"5s", "startTimestamp":{{startTime}}, "endTimestamp":{{endTime}} }, "actions":[ { "type":"REST", "address": "http://edgex-core-data:59880/api/v3/event/age/0", "method": "DELETE" } ], "adminState":"UNLOCKED" }, "apiVersion":"v3" } ] ``` 4. Wait until the job was triggered. ## π₯ Exception or Error ## π Your Environment **Deployment Environment:** Ubuntu2204/arm64 **EdgeX Version [**REQUIRED**]:**Main **Anything else relevant?**