Get Resource Map
Description
Get all users' account basic information in FortiCWP, including company name, user name and company ID. Company ID (companyID) is the response variable that you will need to call many other FortiCWP REST APIs.
URL
/api/v1/resourceURLMap
Method: Get
Request Header
Key |
Value |
Type |
Description |
---|---|---|---|
Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiCWP |
Content-Type | application/json | String |
Sample Request
Request URL |
GET https://www.forticwp.com/api/v1/resourceURLMap |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json |
Response Variable
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.forticwp.com",
"roleId": 1,
"username": "casb qacasb1",
"companyMapSet": [
{
"companyName": "casb qacasb1",
"companyId": 2
}
]
}
]