Fortinet white logo
Fortinet white logo

Get profiles

Get profiles

Method

URL

Description

Arguments

Outputs

GET

account/roles/

Get profiles

None

JSON array

Arguments

None

Outputs

Parameter

Type

Description

results

JSON array

An array of all profiles

Example request

curl -k -X GET -H "Authorization: Token 9fb3fa217a23edbf50c8c358dab61beb07f6e8a191ecc597568f45e9455846e6" https://<ip_address>/fpc/v1/api/account/roles/

Example response

{

"results" : [

{

"create_type" : "Default",

"id" : 1,

"name" : "Admin",

"permissions" : [

2,

4,

7,

...

],

"service_provider" : 1,

"service_type" : "Provider"

},

...

}

],

"size" : 10,

"start" : 0,

"totalResultsCount" : 3

}

Get profiles

Get profiles

Method

URL

Description

Arguments

Outputs

GET

account/roles/

Get profiles

None

JSON array

Arguments

None

Outputs

Parameter

Type

Description

results

JSON array

An array of all profiles

Example request

curl -k -X GET -H "Authorization: Token 9fb3fa217a23edbf50c8c358dab61beb07f6e8a191ecc597568f45e9455846e6" https://<ip_address>/fpc/v1/api/account/roles/

Example response

{

"results" : [

{

"create_type" : "Default",

"id" : 1,

"name" : "Admin",

"permissions" : [

2,

4,

7,

...

],

"service_provider" : 1,

"service_type" : "Provider"

},

...

}

],

"size" : 10,

"start" : 0,

"totalResultsCount" : 3

}