Fortinet black logo

List all sites for an organization in simple format

List all sites for an organization in simple format

Method

URL

Description

Arguments

Outputs

GET

device/site/customer/{Organization ID}/

List all sites for this organization in simple format

Organization ID

JSON array

Arguments (URL)

Parameter

Type

Description

Organization ID

int

The organization ID.

Arguments (JSON payload)

None

Outputs

Parameter

Type

Description

results

JSON array

Array of site records. One entry per site, each record contains a unique ID.

Example request

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

Example response

{
  "data": {
    "totalResultsCount": 2,
    "results": [
      {
        "id": 6,
        "name": "test-site-7.2",
        "contactName": "",
        "email": "",
        "phone": "",
        "sandbox": false,
        "customer": 10,
        "user": [
          12
        ]
      },
      {
        "id": 8,
        "name": "test-site-7.4",
        "contactName": "",
        "email": "",
        "phone": "",
        "sandbox": false,
        "customer": 10,
        "user": [
          12
        ]
      }
    ]
  },
  "status": {
    "code": 0,
    "message": "success"
  }
}

List all sites for an organization in simple format

Method

URL

Description

Arguments

Outputs

GET

device/site/customer/{Organization ID}/

List all sites for this organization in simple format

Organization ID

JSON array

Arguments (URL)

Parameter

Type

Description

Organization ID

int

The organization ID.

Arguments (JSON payload)

None

Outputs

Parameter

Type

Description

results

JSON array

Array of site records. One entry per site, each record contains a unique ID.

Example request

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

Example response

{
  "data": {
    "totalResultsCount": 2,
    "results": [
      {
        "id": 6,
        "name": "test-site-7.2",
        "contactName": "",
        "email": "",
        "phone": "",
        "sandbox": false,
        "customer": 10,
        "user": [
          12
        ]
      },
      {
        "id": 8,
        "name": "test-site-7.4",
        "contactName": "",
        "email": "",
        "phone": "",
        "sandbox": false,
        "customer": 10,
        "user": [
          12
        ]
      }
    ]
  },
  "status": {
    "code": 0,
    "message": "success"
  }
}