fortios.firewall.ObjectAddressgroup
Explore with Pulumi AI
Provides a resource to configure firewall address group used in firewall policies of FortiOS.
!> Warning: The resource will be deprecated and replaced by new resource fortios.firewall.Addrgrp
, we recommend that you use the new resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const s1 = new fortios.firewall.ObjectAddressgroup("s1", {
comment: "dfdsad",
members: [
"google-play",
"swscan.apple.com",
],
});
import pulumi
import pulumiverse_fortios as fortios
s1 = fortios.firewall.ObjectAddressgroup("s1",
comment="dfdsad",
members=[
"google-play",
"swscan.apple.com",
])
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.NewObjectAddressgroup(ctx, "s1", &firewall.ObjectAddressgroupArgs{
Comment: pulumi.String("dfdsad"),
Members: pulumi.StringArray{
pulumi.String("google-play"),
pulumi.String("swscan.apple.com"),
},
})
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 s1 = new Fortios.Firewall.ObjectAddressgroup("s1", new()
{
Comment = "dfdsad",
Members = new[]
{
"google-play",
"swscan.apple.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.ObjectAddressgroup;
import com.pulumi.fortios.firewall.ObjectAddressgroupArgs;
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 s1 = new ObjectAddressgroup("s1", ObjectAddressgroupArgs.builder()
.comment("dfdsad")
.members(
"google-play",
"swscan.apple.com")
.build());
}
}
resources:
s1:
type: fortios:firewall:ObjectAddressgroup
properties:
comment: dfdsad
members:
- google-play
- swscan.apple.com
Create ObjectAddressgroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectAddressgroup(name: string, args: ObjectAddressgroupArgs, opts?: CustomResourceOptions);
@overload
def ObjectAddressgroup(resource_name: str,
args: ObjectAddressgroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectAddressgroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
members: Optional[Sequence[str]] = None,
comment: Optional[str] = None,
name: Optional[str] = None)
func NewObjectAddressgroup(ctx *Context, name string, args ObjectAddressgroupArgs, opts ...ResourceOption) (*ObjectAddressgroup, error)
public ObjectAddressgroup(string name, ObjectAddressgroupArgs args, CustomResourceOptions? opts = null)
public ObjectAddressgroup(String name, ObjectAddressgroupArgs args)
public ObjectAddressgroup(String name, ObjectAddressgroupArgs args, CustomResourceOptions options)
type: fortios:firewall:ObjectAddressgroup
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 ObjectAddressgroupArgs
- 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 ObjectAddressgroupArgs
- 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 ObjectAddressgroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectAddressgroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectAddressgroupArgs
- 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 objectAddressgroupResource = new Fortios.Firewall.ObjectAddressgroup("objectAddressgroupResource", new()
{
Members = new[]
{
"string",
},
Comment = "string",
Name = "string",
});
example, err := firewall.NewObjectAddressgroup(ctx, "objectAddressgroupResource", &firewall.ObjectAddressgroupArgs{
Members: pulumi.StringArray{
pulumi.String("string"),
},
Comment: pulumi.String("string"),
Name: pulumi.String("string"),
})
var objectAddressgroupResource = new ObjectAddressgroup("objectAddressgroupResource", ObjectAddressgroupArgs.builder()
.members("string")
.comment("string")
.name("string")
.build());
object_addressgroup_resource = fortios.firewall.ObjectAddressgroup("objectAddressgroupResource",
members=["string"],
comment="string",
name="string")
const objectAddressgroupResource = new fortios.firewall.ObjectAddressgroup("objectAddressgroupResource", {
members: ["string"],
comment: "string",
name: "string",
});
type: fortios:firewall:ObjectAddressgroup
properties:
comment: string
members:
- string
name: string
ObjectAddressgroup 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 ObjectAddressgroup resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectAddressgroup 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 ObjectAddressgroup Resource
Get an existing ObjectAddressgroup 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?: ObjectAddressgroupState, opts?: CustomResourceOptions): ObjectAddressgroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
members: Optional[Sequence[str]] = None,
name: Optional[str] = None) -> ObjectAddressgroup
func GetObjectAddressgroup(ctx *Context, name string, id IDInput, state *ObjectAddressgroupState, opts ...ResourceOption) (*ObjectAddressgroup, error)
public static ObjectAddressgroup Get(string name, Input<string> id, ObjectAddressgroupState? state, CustomResourceOptions? opts = null)
public static ObjectAddressgroup get(String name, Output<String> id, ObjectAddressgroupState 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.
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.