fortios.fmg.SystemAdmin
Explore with Pulumi AI
This resource supports modifying system admin setting for FortiManager.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const test1 = new fortios.fmg.SystemAdmin("test1", {
httpPort: 80,
httpsPort: 443,
idleTimeout: 20,
});
import pulumi
import pulumiverse_fortios as fortios
test1 = fortios.fmg.SystemAdmin("test1",
http_port=80,
https_port=443,
idle_timeout=20)
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/fmg"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fmg.NewSystemAdmin(ctx, "test1", &fmg.SystemAdminArgs{
HttpPort: pulumi.Int(80),
HttpsPort: pulumi.Int(443),
IdleTimeout: pulumi.Int(20),
})
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 test1 = new Fortios.Fmg.SystemAdmin("test1", new()
{
HttpPort = 80,
HttpsPort = 443,
IdleTimeout = 20,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.fmg.SystemAdmin;
import com.pulumi.fortios.fmg.SystemAdminArgs;
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 test1 = new SystemAdmin("test1", SystemAdminArgs.builder()
.httpPort(80)
.httpsPort(443)
.idleTimeout(20)
.build());
}
}
resources:
test1:
type: fortios:fmg:SystemAdmin
properties:
httpPort: 80
httpsPort: 443
idleTimeout: 20
Create SystemAdmin Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SystemAdmin(name: string, args?: SystemAdminArgs, opts?: CustomResourceOptions);
@overload
def SystemAdmin(resource_name: str,
args: Optional[SystemAdminArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SystemAdmin(resource_name: str,
opts: Optional[ResourceOptions] = None,
http_port: Optional[int] = None,
https_port: Optional[int] = None,
idle_timeout: Optional[int] = None)
func NewSystemAdmin(ctx *Context, name string, args *SystemAdminArgs, opts ...ResourceOption) (*SystemAdmin, error)
public SystemAdmin(string name, SystemAdminArgs? args = null, CustomResourceOptions? opts = null)
public SystemAdmin(String name, SystemAdminArgs args)
public SystemAdmin(String name, SystemAdminArgs args, CustomResourceOptions options)
type: fortios:fmg:SystemAdmin
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SystemAdminArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SystemAdminArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SystemAdminArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SystemAdminArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SystemAdminArgs
- 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 systemAdminResource = new Fortios.Fmg.SystemAdmin("systemAdminResource", new()
{
HttpPort = 0,
HttpsPort = 0,
IdleTimeout = 0,
});
example, err := fmg.NewSystemAdmin(ctx, "systemAdminResource", &fmg.SystemAdminArgs{
HttpPort: pulumi.Int(0),
HttpsPort: pulumi.Int(0),
IdleTimeout: pulumi.Int(0),
})
var systemAdminResource = new SystemAdmin("systemAdminResource", SystemAdminArgs.builder()
.httpPort(0)
.httpsPort(0)
.idleTimeout(0)
.build());
system_admin_resource = fortios.fmg.SystemAdmin("systemAdminResource",
http_port=0,
https_port=0,
idle_timeout=0)
const systemAdminResource = new fortios.fmg.SystemAdmin("systemAdminResource", {
httpPort: 0,
httpsPort: 0,
idleTimeout: 0,
});
type: fortios:fmg:SystemAdmin
properties:
httpPort: 0
httpsPort: 0
idleTimeout: 0
SystemAdmin Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SystemAdmin resource accepts the following input properties:
- Http
Port int - Http port.
- Https
Port int - Https port.
- Idle
Timeout int - Idle Timeout(1-480 minute).
- Http
Port int - Http port.
- Https
Port int - Https port.
- Idle
Timeout int - Idle Timeout(1-480 minute).
- http
Port Integer - Http port.
- https
Port Integer - Https port.
- idle
Timeout Integer - Idle Timeout(1-480 minute).
- http
Port number - Http port.
- https
Port number - Https port.
- idle
Timeout number - Idle Timeout(1-480 minute).
- http_
port int - Http port.
- https_
port int - Https port.
- idle_
timeout int - Idle Timeout(1-480 minute).
- http
Port Number - Http port.
- https
Port Number - Https port.
- idle
Timeout Number - Idle Timeout(1-480 minute).
Outputs
All input properties are implicitly available as output properties. Additionally, the SystemAdmin 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 SystemAdmin Resource
Get an existing SystemAdmin 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?: SystemAdminState, opts?: CustomResourceOptions): SystemAdmin
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
http_port: Optional[int] = None,
https_port: Optional[int] = None,
idle_timeout: Optional[int] = None) -> SystemAdmin
func GetSystemAdmin(ctx *Context, name string, id IDInput, state *SystemAdminState, opts ...ResourceOption) (*SystemAdmin, error)
public static SystemAdmin Get(string name, Input<string> id, SystemAdminState? state, CustomResourceOptions? opts = null)
public static SystemAdmin get(String name, Output<String> id, SystemAdminState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Http
Port int - Http port.
- Https
Port int - Https port.
- Idle
Timeout int - Idle Timeout(1-480 minute).
- Http
Port int - Http port.
- Https
Port int - Https port.
- Idle
Timeout int - Idle Timeout(1-480 minute).
- http
Port Integer - Http port.
- https
Port Integer - Https port.
- idle
Timeout Integer - Idle Timeout(1-480 minute).
- http
Port number - Http port.
- https
Port number - Https port.
- idle
Timeout number - Idle Timeout(1-480 minute).
- http_
port int - Http port.
- https_
port int - Https port.
- idle_
timeout int - Idle Timeout(1-480 minute).
- http
Port Number - Http port.
- https
Port Number - Https port.
- idle
Timeout Number - Idle Timeout(1-480 minute).
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.