Get Business Unit Info
Description
Get details of the business unit.
URL
/api/v1/businessUnit/info
Method: Get
Request Headers
Key |
Value |
Type |
Description |
---|---|---|---|
Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiCASB |
Content-Type | application/json | String | |
buId |
<Business Unit ID> |
Long |
The targeted business unit ID on FortiCASB. Business unit ID can be obtained through . Alternatively, it can also be obtained from the REST API Get Resource Map |
companyId | <Company ID> | Integer | Company ID of which the business unit is under, can be obtained through Get Resource Map. |
roleId |
<User ID> |
Integer |
Login user ID, can be obtained through Get Resource Map. |
Sample Request
Request URL |
GET https://www.forticasb.com/api/v1/businessUnit/info |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json buid: 6384 companyId: 62598 roleId: 36241 |
Response Variables
Name |
Required |
Type |
Description |
---|---|---|---|
companyId | Required | Long | Company ID |
companyName | Required | String | The registered parent company name in FortiCASB |
buId | Required | Long | Business unit ID |
displayName | Required | String | Business unit display name |
region | Required | String | Registered region |
companyEmail | Optional | String | Registered email |
primary | Optional | Boolean | Is primary or not |
users | Optional | long | Number of users |
Sample Response
{
"companyId":6,
"companyName":"qa",
"buId":6384,
"displayName":"aaa",
"region":"global",
"companyEmail":"",
"primary":false,
"users":0
}