Giter VIP home page Giter VIP logo

Comments (8)

alagoutte avatar alagoutte commented on July 19, 2024 1

Hi Jim,

you can use

(Invoke-FGTRestMethod -uri api/v2/monitor/system/firmware).results

There is 2 fields current and available

(Invoke-FGTRestMethod -uri api/v2/monitor/system/firmware).results.current

name         : FortiOS
id           : current
version      : v6.4.1
major        : 6
minor        : 4
patch        : 1
build        : 1637
branch-point : 1637
release-type : GA
notes        : http://docs.fortinet.com/d/fortios-6.4.1-release-notes/download
source       : current
platform-id  : FGT2KE
(Invoke-FGTRestMethod -uri api/v2/monitor/system/firmware).results.available

name         : FortiOS
id           : 06004000FIMG0018304002
version      : v6.4.2
major        : 6
minor        : 4
patch        : 2
build        : 1723
branch-point : 1723
release-type : GA
notes        : http://docs.fortinet.com/d/fortios-6.4.2-release-notes/download
source       : fortiguard

name         : FortiOS
id           : 06004000FIMG0018304000
version      : v6.4.0
major        : 6
minor        : 4
patch        : 0
build        : 1579
branch-point : 1579
release-type : GA
notes        : http://docs.fortinet.com/d/fortios-6.4.0-release-notes/download
source       : fortiguard

name         : FortiOS
id           : 06002000FIMG0018302005
version      : v6.2.5
major        : 6
minor        : 2
patch        : 5
build        : 1142
branch-point : 1142
release-type : GA
notes        : http://docs.fortinet.com/d/fortios-6.2.5-release-notes/download
source       : fortiguard

name         : FortiOS
id           : 06002000FIMG0018302004
version      : v6.2.4
major        : 6
minor        : 2
patch        : 4
build        : 1112
branch-point : 1112
release-type : GA
notes        : http://docs.fortinet.com/d/fortios-6.2.4-release-notes/download
source       : fortiguard

name         : FortiOS
id           : 06002000FIMG0018302003
version      : v6.2.3
major        : 6
minor        : 2
patch        : 3
build        : 1066
branch-point : 1066
release-type : GA
notes        : http://docs.fortinet.com/d/fortios-6.2.3-release-notes/download
source       : fortiguard

from powerfgt.

poundy avatar poundy commented on July 19, 2024 1

I've tested this (on 6.2.x) and works fine, thanks @alagoutte !

from powerfgt.

alagoutte avatar alagoutte commented on July 19, 2024

Hi @JimBobUKII

You want known if there is new firmware for the firewall ?
i need to check if there is a API available on monitoring URI...

from powerfgt.

JimBobUKII avatar JimBobUKII commented on July 19, 2024

Hi @alagoutte

Yes, want known if there is new firmware for the firewall ?

I cannot seem to find one on the rest api but could be wrong!

TIA

from powerfgt.

alagoutte avatar alagoutte commented on July 19, 2024

it is good ?

from powerfgt.

JimBobUKII avatar JimBobUKII commented on July 19, 2024

@alagoutte where in your script is this?
I would like to use similar in mine

TIA

from powerfgt.

alagoutte avatar alagoutte commented on July 19, 2024

@alagoutte where in your script is this?
I would like to use similar in mine

TIA

You need to use the Invoke-FGTRestMethod....

from powerfgt.

alagoutte avatar alagoutte commented on July 19, 2024

hi @JimBobUKII it is good ? i can close the issue ?

from powerfgt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.