Get Country List
Description
Get the list of countries
URL
/api/v1/country/list
Method: GET
Request Headers
|
Key |
Value |
Type |
Description |
|---|---|---|---|
| Authorization | Bearer <Authorization Token> | String | Authorization credential generated by FortiCNP |
| Content-Type | application/json | String | |
|
companyId |
<12345> |
Integer |
Company ID in FortiCNP, can be obtained through Get Resource Map |
|
roleId |
<12345> |
Long |
Login user identity, can be obtained through Get Resource Map |
Sample Request
|
Request URL |
GET https://www.forticnp.com/api/v1/country/list |
| Request Header |
Authorization: Bearer <Authorization_Token> Content-Type: application/json roleId: 36241 companyId: 8059334 |
Response Variables
|
Name |
Type |
Description |
|---|---|---|
| id | String | country code |
| country | String | country name |
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"
},
]