Fortinet white logo
Fortinet white logo

List all ADOMs

List all ADOMs

Method

URL

Description

Arguments

Outputs

GET

device/adom/

List all ADOMs

none

JSON array

Arguments

None

Outputs

Parameter

Type

Description

results

JSON array

Array of ADOMs. One entry per ADOM, each record contains a unique ID.

Example request

curl -k -X GET -H "Authorization: Token 7f89ef48dc5bca218a8ac0268653ffafa74ce6a6ed7a8a703e113b13219b18a6" https://<ip_address>/fpc/v1/api/device/adom/

Example response

{

"data" : {

"results" : [

{

"customer" : [],

"flags" : "no_vpn_console",

"fortimanager" : {

"ha" : false,

"host" : "XXX.XXX.XXX.XXX",

"id" : 1,

"last_poll_time" : "2022-09-12T17:34:44.133713Z",

"name" : "FMG1",

"numericVersion" : "7.0.4",

"polling" : 50,

"port" : 443,

"sn" : "FMG-VMTMXXXXXXX",

"status" : true,

"username" : "fortiportal",

"version" : "v7.0.4-build0306 220608 (GA)",

"xmlPort" : 8080

},

"id" : 2,

"name" : "root",

"oid" : 3,

"version" : "7.0"

},

...

],

"totalResultsCount" : 2

},

"status" : {

"code" : 0,

"message" : "success"

}

}

List all ADOMs

List all ADOMs

Method

URL

Description

Arguments

Outputs

GET

device/adom/

List all ADOMs

none

JSON array

Arguments

None

Outputs

Parameter

Type

Description

results

JSON array

Array of ADOMs. One entry per ADOM, each record contains a unique ID.

Example request

curl -k -X GET -H "Authorization: Token 7f89ef48dc5bca218a8ac0268653ffafa74ce6a6ed7a8a703e113b13219b18a6" https://<ip_address>/fpc/v1/api/device/adom/

Example response

{

"data" : {

"results" : [

{

"customer" : [],

"flags" : "no_vpn_console",

"fortimanager" : {

"ha" : false,

"host" : "XXX.XXX.XXX.XXX",

"id" : 1,

"last_poll_time" : "2022-09-12T17:34:44.133713Z",

"name" : "FMG1",

"numericVersion" : "7.0.4",

"polling" : 50,

"port" : 443,

"sn" : "FMG-VMTMXXXXXXX",

"status" : true,

"username" : "fortiportal",

"version" : "v7.0.4-build0306 220608 (GA)",

"xmlPort" : 8080

},

"id" : 2,

"name" : "root",

"oid" : 3,

"version" : "7.0"

},

...

],

"totalResultsCount" : 2

},

"status" : {

"code" : 0,

"message" : "success"

}

}