1. Packages
  2. Fortios
  3. API Docs
  4. firewall
  5. ObjectServicecategory
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.firewall.ObjectServicecategory

Explore with Pulumi AI

Provides a resource to configure firewall service category of FortiOS.

!> Warning: The resource will be deprecated and replaced by new resource fortios.firewall/service.Category, we recommend that you use the new resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";

const testCategoryName = new fortios.firewall.ObjectServicecategory("testCategoryName", {comment: "comment"});
Copy
import pulumi
import pulumiverse_fortios as fortios

test_category_name = fortios.firewall.ObjectServicecategory("testCategoryName", comment="comment")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := firewall.NewObjectServicecategory(ctx, "testCategoryName", &firewall.ObjectServicecategoryArgs{
			Comment: pulumi.String("comment"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;

return await Deployment.RunAsync(() => 
{
    var testCategoryName = new Fortios.Firewall.ObjectServicecategory("testCategoryName", new()
    {
        Comment = "comment",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.ObjectServicecategory;
import com.pulumi.fortios.firewall.ObjectServicecategoryArgs;
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 testCategoryName = new ObjectServicecategory("testCategoryName", ObjectServicecategoryArgs.builder()
            .comment("comment")
            .build());

    }
}
Copy
resources:
  testCategoryName:
    type: fortios:firewall:ObjectServicecategory
    properties:
      comment: comment
Copy

Create ObjectServicecategory Resource

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

Constructor syntax

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

@overload
def ObjectServicecategory(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          comment: Optional[str] = None,
                          name: Optional[str] = None)
func NewObjectServicecategory(ctx *Context, name string, args *ObjectServicecategoryArgs, opts ...ResourceOption) (*ObjectServicecategory, error)
public ObjectServicecategory(string name, ObjectServicecategoryArgs? args = null, CustomResourceOptions? opts = null)
public ObjectServicecategory(String name, ObjectServicecategoryArgs args)
public ObjectServicecategory(String name, ObjectServicecategoryArgs args, CustomResourceOptions options)
type: fortios:firewall:ObjectServicecategory
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 ObjectServicecategoryArgs
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 ObjectServicecategoryArgs
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 ObjectServicecategoryArgs
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 ObjectServicecategoryArgs
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. ObjectServicecategoryArgs
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 objectServicecategoryResource = new Fortios.Firewall.ObjectServicecategory("objectServicecategoryResource", new()
{
    Comment = "string",
    Name = "string",
});
Copy
example, err := firewall.NewObjectServicecategory(ctx, "objectServicecategoryResource", &firewall.ObjectServicecategoryArgs{
	Comment: pulumi.String("string"),
	Name:    pulumi.String("string"),
})
Copy
var objectServicecategoryResource = new ObjectServicecategory("objectServicecategoryResource", ObjectServicecategoryArgs.builder()
    .comment("string")
    .name("string")
    .build());
Copy
object_servicecategory_resource = fortios.firewall.ObjectServicecategory("objectServicecategoryResource",
    comment="string",
    name="string")
Copy
const objectServicecategoryResource = new fortios.firewall.ObjectServicecategory("objectServicecategoryResource", {
    comment: "string",
    name: "string",
});
Copy
type: fortios:firewall:ObjectServicecategory
properties:
    comment: string
    name: string
Copy

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

Comment string
Comment.
Name string
Category name.
Comment string
Comment.
Name string
Category name.
comment String
Comment.
name String
Category name.
comment string
Comment.
name string
Category name.
comment str
Comment.
name str
Category name.
comment String
Comment.
name String
Category name.

Outputs

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

Get an existing ObjectServicecategory 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?: ObjectServicecategoryState, opts?: CustomResourceOptions): ObjectServicecategory
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        comment: Optional[str] = None,
        name: Optional[str] = None) -> ObjectServicecategory
func GetObjectServicecategory(ctx *Context, name string, id IDInput, state *ObjectServicecategoryState, opts ...ResourceOption) (*ObjectServicecategory, error)
public static ObjectServicecategory Get(string name, Input<string> id, ObjectServicecategoryState? state, CustomResourceOptions? opts = null)
public static ObjectServicecategory get(String name, Output<String> id, ObjectServicecategoryState state, CustomResourceOptions options)
resources:  _:    type: fortios:firewall:ObjectServicecategory    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:
Comment string
Comment.
Name string
Category name.
Comment string
Comment.
Name string
Category name.
comment String
Comment.
name String
Category name.
comment string
Comment.
name string
Category name.
comment str
Comment.
name str
Category name.
comment String
Comment.
name String
Category name.

Package Details

Repository
fortios pulumiverse/pulumi-fortios
License
Apache-2.0
Notes
This Pulumi package is based on the fortios Terraform Provider.