Get Country List
Description
Get a list of all countries.
URL
/api/v1/country/list
Method: GET
Request Headers
Key |
Value |
Type |
Description |
---|---|---|---|
Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiCASB |
Content-Type | application/json | String | |
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/country/list |
Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json roleId: 36241 companyId: 62598 |
Response Variables
Name |
Type |
Description |
---|---|---|
id | String | The country code, represents "Country" for filtering alerts |
country | String | The country name, represent "Country Name" for filtering alerts |
Sample Response
[
{
"id":"AU",
"country":"Australia"
},
{
"id":"CN",
"country":"China"
},
{
"id":"DE",
"country":"Germany"
},
{
"id":"ES",
"country":"Spain"
},
{
"id":"JP",
"country":"Japan"
},
{
"id":"US",
"country":"United States of America"
},
]