Fortinet white logo
Fortinet white logo

Get a site

Get a site

Method

URL

Description

Arguments

Outputs

Get

device/site/{SIte ID}

Get a site

SIte ID

JSON array

Arguments (URL)

Parameter

Type

Description

Site ID

int

Site ID

Arguments (JSON payload)

None.

Outputs (site)

Parameter

Type

Description

site

JSON array

The site record

Example request

curl -k -X GET -H "Authorization: Token f477c30a5810acc3583bad3f9517743830bae29a9ec06bb9309becdd5af3f503" https://<ip_address>/fpc/v1/api/device/site/3/

Example response

{

"data" : {

"aps" : [],

"contactName" : "aaa",

"customer" : 1,

"email" : "aaa@test.com",

"id" : 3,

"name" : "site3",

"phone" : "",

"sandbox" : false,

"switches" : [],

"user" : [],

"vdoms" : []

},

"status" : {

"code" : 0,

"message" : "success"

}

}

Get a site

Get a site

Method

URL

Description

Arguments

Outputs

Get

device/site/{SIte ID}

Get a site

SIte ID

JSON array

Arguments (URL)

Parameter

Type

Description

Site ID

int

Site ID

Arguments (JSON payload)

None.

Outputs (site)

Parameter

Type

Description

site

JSON array

The site record

Example request

curl -k -X GET -H "Authorization: Token f477c30a5810acc3583bad3f9517743830bae29a9ec06bb9309becdd5af3f503" https://<ip_address>/fpc/v1/api/device/site/3/

Example response

{

"data" : {

"aps" : [],

"contactName" : "aaa",

"customer" : 1,

"email" : "aaa@test.com",

"id" : 3,

"name" : "site3",

"phone" : "",

"sandbox" : false,

"switches" : [],

"user" : [],

"vdoms" : []

},

"status" : {

"code" : 0,

"message" : "success"

}

}