Trying to call the CICD API, but no resource available
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
I want to call the CICD spoke APIs to run an ATF test suite. I've checked that the CICD spoke and CICD REST API plugins are installed (they are). The user I'm specifying in the request has admin privilege.
Why is the REST API resource not available?
curl -k -s -u "xxxx:xxxx" "https://localhost:16000/api/sn_cicd" | jq
{
"error": {
"message": "Requested URI does not represent any resource",
"detail": null
},
"status": "failure"
}
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Also tried this. The ServiceNow docs don't have any details of how to call the endpoint
Continuous Integration and Continuous Delivery (CICD) Spoke
curl -k -s -u "xx:xx" -X POST "https://localhost:16000/api/sn_cicd/testsuite/run" -H "Content-Type: application/json" -d "{\"test_suite_sys_id\": \"6973b14624ddb61020d2247fd14f2b43\"}"
{"result":{"status":"3","status_label":"Failed","status_message":"Missing parameter: test suite sys_id or name required","status_detail":"","error":""}}.
