Viewing docs for Fortios v0.0.6
published on Tuesday, Jul 9, 2024 by pulumiverse
published on Tuesday, Jul 9, 2024 by pulumiverse
Fortios
I want to use the Pulumi Fortios package (fortios) in my project.
## Provider details
- Package: fortios
- Version: v0.0.6
- Publisher: pulumiverse
- Source: pulumi
- Repository: https://github.com/pulumiverse/pulumi-fortios
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/fortios/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/fortios/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/fortios/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/fortios/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for Fortios v0.0.6
published on Tuesday, Jul 9, 2024 by pulumiverse
published on Tuesday, Jul 9, 2024 by pulumiverse
The FortiOS provider is used to interact with the resources supported by FortiOS and FortiManager. We need to configure the provider with the proper credentials before it can be used.
Two products are supported now: FortiGate and FortiManager, please use the navigation on the left to read more details about the available resources.
Detailed instructions how to configure the provider is available in the Fortios Installation & Configuration.
Issues
This is a community maintained provider. Please file issues and feature requests here:
Example
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const config = new pulumi.Config();
const fortiosCabundlefile = config.require("fortios:cabundlefile");
const fortiosHostname = config.require("fortios:hostname");
const fortiosInsecure = config.require("fortios:insecure");
const fortiosToken = config.require("fortios:token");
const fortiosProvider = new fortios.Provider("fortios-provider", {
cabundlefile: fortiosCabundlefile,
hostname: fortiosHostname,
insecure: fortiosInsecure,
token: fortiosToken,
});
const test1 = new fortios.networking.RouteStatic("test1", {
dst: "110.2.2.122/32",
gateway: "2.2.2.2",
device: "device",
}, {
provider: fortiosProvider,
});
import pulumi
import pulumiverse_fortios as fortios
config = pulumi.Config()
fortios_cabundlefile = config.require("fortios:cabundlefile")
fortios_hostname = config.require("fortios:hostname")
fortios_insecure = config.require("fortios:insecure")
fortios_token = config.require("fortios:token")
fortios_provider = fortios.Provider("fortios-provider",
cabundlefile=fortios_cabundlefile,
hostname=fortios_hostname,
insecure=fortios_insecure,
token=fortios_token)
test1 = fortios.networking.RouteStatic("test1",
dst="110.2.2.122/32",
gateway="2.2.2.2",
device="device",
opts=pulumi.ResourceOptions(provider=fortios_provider))
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/networking"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
fortiosCabundlefile := cfg.Require("fortios:cabundlefile")
fortiosHostname := cfg.Require("fortios:hostname")
fortiosInsecure := cfg.Require("fortios:insecure")
fortiosToken := cfg.Require("fortios:token")
fortiosProvider, err := fortios.NewProvider(ctx, "fortios-provider", &fortios.ProviderArgs{
Cabundlefile: pulumi.String(fortiosCabundlefile),
Hostname: pulumi.String(fortiosHostname),
Insecure: pulumi.String(fortiosInsecure),
Token: pulumi.String(fortiosToken),
})
if err != nil {
return err
}
_, err = networking.NewRouteStatic(ctx, "test1", &networking.RouteStaticArgs{
Dst: pulumi.String("110.2.2.122/32"),
Gateway: pulumi.String("2.2.2.2"),
Device: pulumi.String("device"),
}, pulumi.Provider(fortiosProvider))
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var fortiosCabundlefile = config.Require("fortios:cabundlefile");
var fortiosHostname = config.Require("fortios:hostname");
var fortiosInsecure = config.Require("fortios:insecure");
var fortiosToken = config.Require("fortios:token");
var fortiosProvider = new Fortios.Provider("fortios-provider", new()
{
Cabundlefile = fortiosCabundlefile,
Hostname = fortiosHostname,
Insecure = fortiosInsecure,
Token = fortiosToken,
});
var test1 = new Fortios.Networking.RouteStatic("test1", new()
{
Dst = "110.2.2.122/32",
Gateway = "2.2.2.2",
Device = "device",
}, new CustomResourceOptions
{
Provider = fortiosProvider,
});
});
name: basic
runtime: yaml
config:
fortios:cabundlefile:
value: /path/yourCA.crt
fortios:hostname:
value: 192.168.52.177
fortios:insecure:
value: false
fortios:token:
value: jn3t3Nw7qckQzt955Htkfj5hwQ6jdb
resources:
# Create provider instance
fortios-provider:
type: pulumi:providers:fortios
properties:
cabundlefile: ${fortios:cabundlefile}
hostname: ${fortios:hostname}
insecure: ${fortios:insecure}
token: ${fortios:token}
# Create a Static Route Item
test1:
type: fortios:networking:RouteStatic
properties:
dst: 110.2.2.122/32
gateway: 2.2.2.2
device: device
options:
provider: ${fortios-provider}
Viewing docs for Fortios v0.0.6
published on Tuesday, Jul 9, 2024 by pulumiverse
published on Tuesday, Jul 9, 2024 by pulumiverse