Get Resource Map
Description
Get the user and account basic information from FortiCNP, including company name, user name and company ID. Company ID (companyID) is the response variable that you will need to call many other FortiCNP REST APIs.
URL
/api/v1/resourceURLMap
Method: Get
Request Headers
Key |
Value |
Type |
Description |
---|---|---|---|
Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiCNP |
Content-Type | application/json | String |
Sample Request
Request URL |
(For EU users, please use |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json |
Response Variables
Name |
Type |
Description |
---|---|---|
resourceURL | String | API request endpoint |
roleId | Long | Login user identity |
username | String | Login user name |
companyMapSet.companyName | String | Company name |
companyMapSet.companyId (Company ID) | Long | Company ID |
Sample Response
[
{
"resourceURL": "https://qa1.staging.forticnp.com",
"roleId": 1,
"username": "casb qacasb1",
"companyMapSet": [
{
"companyName": "casb qacasb1",
"companyId": 2
}
]
}
]