I am currently trying to query confluence with graphql to get data on all of the confluence pages. However when I try to use the search feature:
query jira {
search {
search(
filters: {locations: ["ari:cloud:confluence:<cloudid>"],entities:["fds"]}
experience: "confluence.advanced_search"
) {
totalCount
}
}
}
I get the below error:
"errors": [
{
"message": "Exception while fetching data (/search/search) : The passed string "ari:cloud:confluence:<cloudid>" doesn't comply with ARI syntax",
"locations": [
{
"line": 1,
"column": 55
}
],
"path": [
"search",
"search"
],
"extensions": {
"errorSource": "UNDERLYING_SERVICE",
"classification": "DataFetchingException"
}
}
]
I have also attempted using the below values for locations:
"<cloudid>"
"<hostname>"
"ari:cloud:confluence:<cloudid>:space/<space id>" #This was retrieved from the graphql findSpaces command
"cloud:confluence:<cloudid>"
As well as all of the above in brackets since the type is [String!]!.
I’m unsure if this is a problem with the ARI of location or a false report for that field. I’m also not sure about the allowed values for entities if that is the issue.