Fortinet black logo

Administration Guide

Program data sources

Program data sources

Use the fortiflexvm_programs_list data source to get the list of FortiFlex programs for the account.

Example usage

The following is an example usage of the fortiflexvm_programs_list:

data "fortiflexvm_programs_list" "example" {}

output "my_programs_list"{
    value = data.fortiflexvm_programs_list.example
}

Argument reference

There is no argument required.

Attribute reference

The following attributes are exported:

Attribute

Type

Description

id

String

An ID for the resource. Its value is the string "ProgramsList".

programs

List of objects

A list of FortiFlex programs for the account.

The programs block contains:

Attribute

Type

Description

account_id

Number

Your account ID.

end_date

String

The FortiFlex program end date.

has_support_coverage

Boolean

serial_number

String

The unique serial number of this FortiFlex program.

start date

String

The FortiFlex program creation date.

Program data sources

Use the fortiflexvm_programs_list data source to get the list of FortiFlex programs for the account.

Example usage

The following is an example usage of the fortiflexvm_programs_list:

data "fortiflexvm_programs_list" "example" {}

output "my_programs_list"{
    value = data.fortiflexvm_programs_list.example
}

Argument reference

There is no argument required.

Attribute reference

The following attributes are exported:

Attribute

Type

Description

id

String

An ID for the resource. Its value is the string "ProgramsList".

programs

List of objects

A list of FortiFlex programs for the account.

The programs block contains:

Attribute

Type

Description

account_id

Number

Your account ID.

end_date

String

The FortiFlex program end date.

has_support_coverage

Boolean

serial_number

String

The unique serial number of this FortiFlex program.

start date

String

The FortiFlex program creation date.