on 2023 Sep 04 10:31 AM
Hi!
I'm trying to do some simple tests for retrieving some data from our FSM cloud testing account using Postman.
I do get a valid access token back prior initiating the GET request below. The appropriate JSON body shows the possible companies I've access to as well as the permissingGroupIds.
However, I wonder why this body shows "cluster_url": "https://de.coresuite.com" as cluster as the cluster URL while all examples on SAP help mention to use http://[cluster].coresystems.net?
However, when trying to retrieve e.g. Regions using a GET request, this results in being redirected without getting any JSON data in body. Instead, I see some CSS coding but no valid JSON data.
I've followed all found resources in internet that show some example requests for FSM, but none of them worked on my side so far.
The request from Postman console looks like this. I removed some of those header fields or inserted fancy values instead. Quotes have been removed by copy&paste, FWIW.
GET https://de.coresystems.net/api/data/v4/Region?dtos=Region.9
Accept: application/scim+json
X-Client-ID: 00017723-postman
X-Client-Version: 1.0
X-Account-ID: 99999
X-Company-ID: 100001
Authorization: Bearer eyJasdasdjKAD91293asdasdasd
User-Agent: PostmanRuntime/7.32.3
Postman-Token: 53f1f758-4254-4f1e-9a2c-c8a5debd12a1
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Referer: https://de.coresystems.net/api/data/v4/Region?dtos=Region.9
Host: de.coresystems.net
This is immediately followed by response:
Date: Mon, 04 Sep 2023 09:09:17 GMT
Content-Type: text/html
Content-Length: 138
Connection: keep-alive
Location: https://de.coresystems.net/shell/
Strict-Transport-Security: max-age=15724800; includeSubDomains
Again followed by a new GET request, initiated by Postman, that looks like a redirect to the login page of the cloud account.
GET https://de.coresystems.net/shell/
[same response header as above]
OTH, if I configure Postman not to follow redirection answers, I get back as response:
<html>
<head>
<title>302 Found</title>
</head>
<body>
<center>
<h1>302 Found</h1>
</center>
<hr>
<center>nginx</center>
</body>
</html><br>
So where is the problem?
Request clarification before answering.
Thanks Yogesh for your reply!
After a long trial-and-error period, I finally managed this task some weeks ago.
Solution: There are some errors in SAP documentation. Some if not all online pages state to use the URL https://de.coresystems.net to access FSM.
However the only valid URL is https://de.coresuite.com. After changing this URL in Postman, all runs well!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
4 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.