1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectSshfilterProfileShellcommands
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectSshfilterProfileShellcommands

Explore with Pulumi AI

SSH command filter.

This resource is a sub resource for variable shell_commands of resource fortimanager.ObjectSshfilterProfile. Conflict and overwrite may occur if use both of them.

Example Usage

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

const trnameObjectSshfilterProfile = new fortimanager.ObjectSshfilterProfile("trnameObjectSshfilterProfile", {});
const trnameObjectSshfilterProfileShellcommands = new fortimanager.ObjectSshfilterProfileShellcommands("trnameObjectSshfilterProfileShellcommands", {
    profile: trnameObjectSshfilterProfile.name,
    fosid: 1,
    log: "enable",
    alert: "enable",
}, {
    dependsOn: [trnameObjectSshfilterProfile],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_sshfilter_profile = fortimanager.ObjectSshfilterProfile("trnameObjectSshfilterProfile")
trname_object_sshfilter_profile_shellcommands = fortimanager.ObjectSshfilterProfileShellcommands("trnameObjectSshfilterProfileShellcommands",
    profile=trname_object_sshfilter_profile.name,
    fosid=1,
    log="enable",
    alert="enable",
    opts = pulumi.ResourceOptions(depends_on=[trname_object_sshfilter_profile]))
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 {
		trnameObjectSshfilterProfile, err := fortimanager.NewObjectSshfilterProfile(ctx, "trnameObjectSshfilterProfile", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectSshfilterProfileShellcommands(ctx, "trnameObjectSshfilterProfileShellcommands", &fortimanager.ObjectSshfilterProfileShellcommandsArgs{
			Profile: trnameObjectSshfilterProfile.Name,
			Fosid:   pulumi.Float64(1),
			Log:     pulumi.String("enable"),
			Alert:   pulumi.String("enable"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectSshfilterProfile,
		}))
		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 trnameObjectSshfilterProfile = new Fortimanager.ObjectSshfilterProfile("trnameObjectSshfilterProfile");

    var trnameObjectSshfilterProfileShellcommands = new Fortimanager.ObjectSshfilterProfileShellcommands("trnameObjectSshfilterProfileShellcommands", new()
    {
        Profile = trnameObjectSshfilterProfile.Name,
        Fosid = 1,
        Log = "enable",
        Alert = "enable",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectSshfilterProfile,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectSshfilterProfile;
import com.pulumi.fortimanager.ObjectSshfilterProfileShellcommands;
import com.pulumi.fortimanager.ObjectSshfilterProfileShellcommandsArgs;
import com.pulumi.resources.CustomResourceOptions;
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 trnameObjectSshfilterProfile = new ObjectSshfilterProfile("trnameObjectSshfilterProfile");

        var trnameObjectSshfilterProfileShellcommands = new ObjectSshfilterProfileShellcommands("trnameObjectSshfilterProfileShellcommands", ObjectSshfilterProfileShellcommandsArgs.builder()
            .profile(trnameObjectSshfilterProfile.name())
            .fosid(1)
            .log("enable")
            .alert("enable")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectSshfilterProfile)
                .build());

    }
}
Copy
resources:
  trnameObjectSshfilterProfileShellcommands:
    type: fortimanager:ObjectSshfilterProfileShellcommands
    properties:
      profile: ${trnameObjectSshfilterProfile.name}
      fosid: 1
      log: enable
      alert: enable
    options:
      dependsOn:
        - ${trnameObjectSshfilterProfile}
  trnameObjectSshfilterProfile:
    type: fortimanager:ObjectSshfilterProfile
Copy

Create ObjectSshfilterProfileShellcommands Resource

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

Constructor syntax

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

@overload
def ObjectSshfilterProfileShellcommands(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        profile: Optional[str] = None,
                                        action: Optional[str] = None,
                                        adom: Optional[str] = None,
                                        alert: Optional[str] = None,
                                        fosid: Optional[float] = None,
                                        log: Optional[str] = None,
                                        object_sshfilter_profile_shellcommands_id: Optional[str] = None,
                                        pattern: Optional[str] = None,
                                        scopetype: Optional[str] = None,
                                        severity: Optional[str] = None,
                                        type: Optional[str] = None)
func NewObjectSshfilterProfileShellcommands(ctx *Context, name string, args ObjectSshfilterProfileShellcommandsArgs, opts ...ResourceOption) (*ObjectSshfilterProfileShellcommands, error)
public ObjectSshfilterProfileShellcommands(string name, ObjectSshfilterProfileShellcommandsArgs args, CustomResourceOptions? opts = null)
public ObjectSshfilterProfileShellcommands(String name, ObjectSshfilterProfileShellcommandsArgs args)
public ObjectSshfilterProfileShellcommands(String name, ObjectSshfilterProfileShellcommandsArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSshfilterProfileShellcommands
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 This property is required. ObjectSshfilterProfileShellcommandsArgs
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 This property is required. ObjectSshfilterProfileShellcommandsArgs
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 This property is required. ObjectSshfilterProfileShellcommandsArgs
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 This property is required. ObjectSshfilterProfileShellcommandsArgs
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. ObjectSshfilterProfileShellcommandsArgs
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 objectSshfilterProfileShellcommandsResource = new Fortimanager.ObjectSshfilterProfileShellcommands("objectSshfilterProfileShellcommandsResource", new()
{
    Profile = "string",
    Action = "string",
    Adom = "string",
    Alert = "string",
    Fosid = 0,
    Log = "string",
    ObjectSshfilterProfileShellcommandsId = "string",
    Pattern = "string",
    Scopetype = "string",
    Severity = "string",
    Type = "string",
});
Copy
example, err := fortimanager.NewObjectSshfilterProfileShellcommands(ctx, "objectSshfilterProfileShellcommandsResource", &fortimanager.ObjectSshfilterProfileShellcommandsArgs{
Profile: pulumi.String("string"),
Action: pulumi.String("string"),
Adom: pulumi.String("string"),
Alert: pulumi.String("string"),
Fosid: pulumi.Float64(0),
Log: pulumi.String("string"),
ObjectSshfilterProfileShellcommandsId: pulumi.String("string"),
Pattern: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Severity: pulumi.String("string"),
Type: pulumi.String("string"),
})
Copy
var objectSshfilterProfileShellcommandsResource = new ObjectSshfilterProfileShellcommands("objectSshfilterProfileShellcommandsResource", ObjectSshfilterProfileShellcommandsArgs.builder()
    .profile("string")
    .action("string")
    .adom("string")
    .alert("string")
    .fosid(0)
    .log("string")
    .objectSshfilterProfileShellcommandsId("string")
    .pattern("string")
    .scopetype("string")
    .severity("string")
    .type("string")
    .build());
Copy
object_sshfilter_profile_shellcommands_resource = fortimanager.ObjectSshfilterProfileShellcommands("objectSshfilterProfileShellcommandsResource",
    profile="string",
    action="string",
    adom="string",
    alert="string",
    fosid=0,
    log="string",
    object_sshfilter_profile_shellcommands_id="string",
    pattern="string",
    scopetype="string",
    severity="string",
    type="string")
Copy
const objectSshfilterProfileShellcommandsResource = new fortimanager.ObjectSshfilterProfileShellcommands("objectSshfilterProfileShellcommandsResource", {
    profile: "string",
    action: "string",
    adom: "string",
    alert: "string",
    fosid: 0,
    log: "string",
    objectSshfilterProfileShellcommandsId: "string",
    pattern: "string",
    scopetype: "string",
    severity: "string",
    type: "string",
});
Copy
type: fortimanager:ObjectSshfilterProfileShellcommands
properties:
    action: string
    adom: string
    alert: string
    fosid: 0
    log: string
    objectSshfilterProfileShellcommandsId: string
    pattern: string
    profile: string
    scopetype: string
    severity: string
    type: string
Copy

ObjectSshfilterProfileShellcommands 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 ObjectSshfilterProfileShellcommands resource accepts the following input properties:

Profile This property is required. string
Profile.
Action string
Action to take for URL filter matches. Valid values: block, allow.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Alert string
Enable/disable alert. Valid values: disable, enable.
Fosid double
Id.
Log string
Enable/disable logging. Valid values: disable, enable.
ObjectSshfilterProfileShellcommandsId string
an identifier for the resource with format {{fosid}}.
Pattern string
SSH shell command pattern.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Severity string
Log severity. Valid values: low, medium, high, critical.
Type string
Matching type. Valid values: regex, simple.
Profile This property is required. string
Profile.
Action string
Action to take for URL filter matches. Valid values: block, allow.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Alert string
Enable/disable alert. Valid values: disable, enable.
Fosid float64
Id.
Log string
Enable/disable logging. Valid values: disable, enable.
ObjectSshfilterProfileShellcommandsId string
an identifier for the resource with format {{fosid}}.
Pattern string
SSH shell command pattern.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Severity string
Log severity. Valid values: low, medium, high, critical.
Type string
Matching type. Valid values: regex, simple.
profile This property is required. String
Profile.
action String
Action to take for URL filter matches. Valid values: block, allow.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
alert String
Enable/disable alert. Valid values: disable, enable.
fosid Double
Id.
log String
Enable/disable logging. Valid values: disable, enable.
objectSshfilterProfileShellcommandsId String
an identifier for the resource with format {{fosid}}.
pattern String
SSH shell command pattern.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity String
Log severity. Valid values: low, medium, high, critical.
type String
Matching type. Valid values: regex, simple.
profile This property is required. string
Profile.
action string
Action to take for URL filter matches. Valid values: block, allow.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
alert string
Enable/disable alert. Valid values: disable, enable.
fosid number
Id.
log string
Enable/disable logging. Valid values: disable, enable.
objectSshfilterProfileShellcommandsId string
an identifier for the resource with format {{fosid}}.
pattern string
SSH shell command pattern.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity string
Log severity. Valid values: low, medium, high, critical.
type string
Matching type. Valid values: regex, simple.
profile This property is required. str
Profile.
action str
Action to take for URL filter matches. Valid values: block, allow.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
alert str
Enable/disable alert. Valid values: disable, enable.
fosid float
Id.
log str
Enable/disable logging. Valid values: disable, enable.
object_sshfilter_profile_shellcommands_id str
an identifier for the resource with format {{fosid}}.
pattern str
SSH shell command pattern.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity str
Log severity. Valid values: low, medium, high, critical.
type str
Matching type. Valid values: regex, simple.
profile This property is required. String
Profile.
action String
Action to take for URL filter matches. Valid values: block, allow.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
alert String
Enable/disable alert. Valid values: disable, enable.
fosid Number
Id.
log String
Enable/disable logging. Valid values: disable, enable.
objectSshfilterProfileShellcommandsId String
an identifier for the resource with format {{fosid}}.
pattern String
SSH shell command pattern.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity String
Log severity. Valid values: low, medium, high, critical.
type String
Matching type. Valid values: regex, simple.

Outputs

All input properties are implicitly available as output properties. Additionally, the ObjectSshfilterProfileShellcommands 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 ObjectSshfilterProfileShellcommands Resource

Get an existing ObjectSshfilterProfileShellcommands 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?: ObjectSshfilterProfileShellcommandsState, opts?: CustomResourceOptions): ObjectSshfilterProfileShellcommands
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        action: Optional[str] = None,
        adom: Optional[str] = None,
        alert: Optional[str] = None,
        fosid: Optional[float] = None,
        log: Optional[str] = None,
        object_sshfilter_profile_shellcommands_id: Optional[str] = None,
        pattern: Optional[str] = None,
        profile: Optional[str] = None,
        scopetype: Optional[str] = None,
        severity: Optional[str] = None,
        type: Optional[str] = None) -> ObjectSshfilterProfileShellcommands
func GetObjectSshfilterProfileShellcommands(ctx *Context, name string, id IDInput, state *ObjectSshfilterProfileShellcommandsState, opts ...ResourceOption) (*ObjectSshfilterProfileShellcommands, error)
public static ObjectSshfilterProfileShellcommands Get(string name, Input<string> id, ObjectSshfilterProfileShellcommandsState? state, CustomResourceOptions? opts = null)
public static ObjectSshfilterProfileShellcommands get(String name, Output<String> id, ObjectSshfilterProfileShellcommandsState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSshfilterProfileShellcommands    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:
Action string
Action to take for URL filter matches. Valid values: block, allow.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Alert string
Enable/disable alert. Valid values: disable, enable.
Fosid double
Id.
Log string
Enable/disable logging. Valid values: disable, enable.
ObjectSshfilterProfileShellcommandsId string
an identifier for the resource with format {{fosid}}.
Pattern string
SSH shell command pattern.
Profile string
Profile.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Severity string
Log severity. Valid values: low, medium, high, critical.
Type string
Matching type. Valid values: regex, simple.
Action string
Action to take for URL filter matches. Valid values: block, allow.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Alert string
Enable/disable alert. Valid values: disable, enable.
Fosid float64
Id.
Log string
Enable/disable logging. Valid values: disable, enable.
ObjectSshfilterProfileShellcommandsId string
an identifier for the resource with format {{fosid}}.
Pattern string
SSH shell command pattern.
Profile string
Profile.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Severity string
Log severity. Valid values: low, medium, high, critical.
Type string
Matching type. Valid values: regex, simple.
action String
Action to take for URL filter matches. Valid values: block, allow.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
alert String
Enable/disable alert. Valid values: disable, enable.
fosid Double
Id.
log String
Enable/disable logging. Valid values: disable, enable.
objectSshfilterProfileShellcommandsId String
an identifier for the resource with format {{fosid}}.
pattern String
SSH shell command pattern.
profile String
Profile.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity String
Log severity. Valid values: low, medium, high, critical.
type String
Matching type. Valid values: regex, simple.
action string
Action to take for URL filter matches. Valid values: block, allow.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
alert string
Enable/disable alert. Valid values: disable, enable.
fosid number
Id.
log string
Enable/disable logging. Valid values: disable, enable.
objectSshfilterProfileShellcommandsId string
an identifier for the resource with format {{fosid}}.
pattern string
SSH shell command pattern.
profile string
Profile.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity string
Log severity. Valid values: low, medium, high, critical.
type string
Matching type. Valid values: regex, simple.
action str
Action to take for URL filter matches. Valid values: block, allow.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
alert str
Enable/disable alert. Valid values: disable, enable.
fosid float
Id.
log str
Enable/disable logging. Valid values: disable, enable.
object_sshfilter_profile_shellcommands_id str
an identifier for the resource with format {{fosid}}.
pattern str
SSH shell command pattern.
profile str
Profile.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity str
Log severity. Valid values: low, medium, high, critical.
type str
Matching type. Valid values: regex, simple.
action String
Action to take for URL filter matches. Valid values: block, allow.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
alert String
Enable/disable alert. Valid values: disable, enable.
fosid Number
Id.
log String
Enable/disable logging. Valid values: disable, enable.
objectSshfilterProfileShellcommandsId String
an identifier for the resource with format {{fosid}}.
pattern String
SSH shell command pattern.
profile String
Profile.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
severity String
Log severity. Valid values: low, medium, high, critical.
type String
Matching type. Valid values: regex, simple.

Import

ObjectSshFilter ProfileShellCommands can be imported using any of these accepted formats:

Set import_options = [“profile=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectSshfilterProfileShellcommands:ObjectSshfilterProfileShellcommands labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

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.