1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. SystemWebproxy
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.SystemWebproxy

Explore with Pulumi AI

Configure system web proxy.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.SystemWebproxy("trname", {
    passwords: ["psw"],
    status: "enable",
    username: "admin",
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.SystemWebproxy("trname",
    passwords=["psw"],
    status="enable",
    username="admin")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewSystemWebproxy(ctx, "trname", &fortimanager.SystemWebproxyArgs{
			Passwords: pulumi.StringArray{
				pulumi.String("psw"),
			},
			Status:   pulumi.String("enable"),
			Username: pulumi.String("admin"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.SystemWebproxy("trname", new()
    {
        Passwords = new[]
        {
            "psw",
        },
        Status = "enable",
        Username = "admin",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.SystemWebproxy;
import com.pulumi.fortimanager.SystemWebproxyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var trname = new SystemWebproxy("trname", SystemWebproxyArgs.builder()
            .passwords("psw")
            .status("enable")
            .username("admin")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:SystemWebproxy
    properties:
      passwords:
        - psw
      status: enable
      username: admin
Copy

Create SystemWebproxy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SystemWebproxy(name: string, args?: SystemWebproxyArgs, opts?: CustomResourceOptions);
@overload
def SystemWebproxy(resource_name: str,
                   args: Optional[SystemWebproxyArgs] = None,
                   opts: Optional[ResourceOptions] = None)

@overload
def SystemWebproxy(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   address: Optional[str] = None,
                   mode: Optional[str] = None,
                   passwords: Optional[Sequence[str]] = None,
                   port: Optional[float] = None,
                   status: Optional[str] = None,
                   system_webproxy_id: Optional[str] = None,
                   username: Optional[str] = None)
func NewSystemWebproxy(ctx *Context, name string, args *SystemWebproxyArgs, opts ...ResourceOption) (*SystemWebproxy, error)
public SystemWebproxy(string name, SystemWebproxyArgs? args = null, CustomResourceOptions? opts = null)
public SystemWebproxy(String name, SystemWebproxyArgs args)
public SystemWebproxy(String name, SystemWebproxyArgs args, CustomResourceOptions options)
type: fortimanager:SystemWebproxy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SystemWebproxyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SystemWebproxyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SystemWebproxyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SystemWebproxyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SystemWebproxyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var systemWebproxyResource = new Fortimanager.SystemWebproxy("systemWebproxyResource", new()
{
    Address = "string",
    Mode = "string",
    Passwords = new[]
    {
        "string",
    },
    Port = 0,
    Status = "string",
    SystemWebproxyId = "string",
    Username = "string",
});
Copy
example, err := fortimanager.NewSystemWebproxy(ctx, "systemWebproxyResource", &fortimanager.SystemWebproxyArgs{
	Address: pulumi.String("string"),
	Mode:    pulumi.String("string"),
	Passwords: pulumi.StringArray{
		pulumi.String("string"),
	},
	Port:             pulumi.Float64(0),
	Status:           pulumi.String("string"),
	SystemWebproxyId: pulumi.String("string"),
	Username:         pulumi.String("string"),
})
Copy
var systemWebproxyResource = new SystemWebproxy("systemWebproxyResource", SystemWebproxyArgs.builder()
    .address("string")
    .mode("string")
    .passwords("string")
    .port(0)
    .status("string")
    .systemWebproxyId("string")
    .username("string")
    .build());
Copy
system_webproxy_resource = fortimanager.SystemWebproxy("systemWebproxyResource",
    address="string",
    mode="string",
    passwords=["string"],
    port=0,
    status="string",
    system_webproxy_id="string",
    username="string")
Copy
const systemWebproxyResource = new fortimanager.SystemWebproxy("systemWebproxyResource", {
    address: "string",
    mode: "string",
    passwords: ["string"],
    port: 0,
    status: "string",
    systemWebproxyId: "string",
    username: "string",
});
Copy
type: fortimanager:SystemWebproxy
properties:
    address: string
    mode: string
    passwords:
        - string
    port: 0
    status: string
    systemWebproxyId: string
    username: string
Copy

SystemWebproxy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SystemWebproxy resource accepts the following input properties:

Address string
web proxy address.
Mode string
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
Passwords List<string>
The password for the user name used for authentication.
Port double
The port number of the web proxy (1 - 65535, default = 1080).
Status string
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
SystemWebproxyId string
an identifier for the resource.
Username string
The user name used for authentication.
Address string
web proxy address.
Mode string
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
Passwords []string
The password for the user name used for authentication.
Port float64
The port number of the web proxy (1 - 65535, default = 1080).
Status string
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
SystemWebproxyId string
an identifier for the resource.
Username string
The user name used for authentication.
address String
web proxy address.
mode String
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
passwords List<String>
The password for the user name used for authentication.
port Double
The port number of the web proxy (1 - 65535, default = 1080).
status String
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
systemWebproxyId String
an identifier for the resource.
username String
The user name used for authentication.
address string
web proxy address.
mode string
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
passwords string[]
The password for the user name used for authentication.
port number
The port number of the web proxy (1 - 65535, default = 1080).
status string
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
systemWebproxyId string
an identifier for the resource.
username string
The user name used for authentication.
address str
web proxy address.
mode str
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
passwords Sequence[str]
The password for the user name used for authentication.
port float
The port number of the web proxy (1 - 65535, default = 1080).
status str
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
system_webproxy_id str
an identifier for the resource.
username str
The user name used for authentication.
address String
web proxy address.
mode String
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
passwords List<String>
The password for the user name used for authentication.
port Number
The port number of the web proxy (1 - 65535, default = 1080).
status String
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
systemWebproxyId String
an identifier for the resource.
username String
The user name used for authentication.

Outputs

All input properties are implicitly available as output properties. Additionally, the SystemWebproxy resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SystemWebproxy Resource

Get an existing SystemWebproxy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SystemWebproxyState, opts?: CustomResourceOptions): SystemWebproxy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        mode: Optional[str] = None,
        passwords: Optional[Sequence[str]] = None,
        port: Optional[float] = None,
        status: Optional[str] = None,
        system_webproxy_id: Optional[str] = None,
        username: Optional[str] = None) -> SystemWebproxy
func GetSystemWebproxy(ctx *Context, name string, id IDInput, state *SystemWebproxyState, opts ...ResourceOption) (*SystemWebproxy, error)
public static SystemWebproxy Get(string name, Input<string> id, SystemWebproxyState? state, CustomResourceOptions? opts = null)
public static SystemWebproxy get(String name, Output<String> id, SystemWebproxyState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemWebproxy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Address string
web proxy address.
Mode string
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
Passwords List<string>
The password for the user name used for authentication.
Port double
The port number of the web proxy (1 - 65535, default = 1080).
Status string
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
SystemWebproxyId string
an identifier for the resource.
Username string
The user name used for authentication.
Address string
web proxy address.
Mode string
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
Passwords []string
The password for the user name used for authentication.
Port float64
The port number of the web proxy (1 - 65535, default = 1080).
Status string
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
SystemWebproxyId string
an identifier for the resource.
Username string
The user name used for authentication.
address String
web proxy address.
mode String
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
passwords List<String>
The password for the user name used for authentication.
port Double
The port number of the web proxy (1 - 65535, default = 1080).
status String
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
systemWebproxyId String
an identifier for the resource.
username String
The user name used for authentication.
address string
web proxy address.
mode string
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
passwords string[]
The password for the user name used for authentication.
port number
The port number of the web proxy (1 - 65535, default = 1080).
status string
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
systemWebproxyId string
an identifier for the resource.
username string
The user name used for authentication.
address str
web proxy address.
mode str
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
passwords Sequence[str]
The password for the user name used for authentication.
port float
The port number of the web proxy (1 - 65535, default = 1080).
status str
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
system_webproxy_id str
an identifier for the resource.
username str
The user name used for authentication.
address String
web proxy address.
mode String
Web proxy mode (default = tunnel) proxy - proxy mode tunnel - tunnel mode (default) Valid values: proxy, tunnel.
passwords List<String>
The password for the user name used for authentication.
port Number
The port number of the web proxy (1 - 65535, default = 1080).
status String
Enable/disable system web proxy (default = disable). disable - Disable setting. enable - Enable setting. Valid values: disable, enable.
systemWebproxyId String
an identifier for the resource.
username String
The user name used for authentication.

Import

System WebProxy can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemWebproxy:SystemWebproxy labelname SystemWebProxy
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.