Fortinet white logo
Fortinet white logo

Online Help

Get Resource Map

Get Resource Map

Description

Get the user and account basic information from 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 Headers

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 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.forticwp.com",

"roleId": 1,

"username": "casb qacasb1",

"companyMapSet": [

{

"companyName": "casb qacasb1",

"companyId": 2

}

]

}

]

Get Resource Map

Get Resource Map

Description

Get the user and account basic information from 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 Headers

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 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.forticwp.com",

"roleId": 1,

"username": "casb qacasb1",

"companyMapSet": [

{

"companyName": "casb qacasb1",

"companyId": 2

}

]

}

]