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

fortios.fmg.ObjectAdomRevision

Explore with Pulumi AI

fortios logo
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

    This resource supports Create/Read/Update/Delete object adom revision for FortiManager.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.ObjectAdomRevision("test1", {
        createdBy: "fortinet",
        description: "adom revision",
        locked: 0,
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.ObjectAdomRevision("test1",
        created_by="fortinet",
        description="adom revision",
        locked=0)
    
    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.NewObjectAdomRevision(ctx, "test1", &fmg.ObjectAdomRevisionArgs{
    			CreatedBy:   pulumi.String("fortinet"),
    			Description: pulumi.String("adom revision"),
    			Locked:      pulumi.Int(0),
    		})
    		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.ObjectAdomRevision("test1", new()
        {
            CreatedBy = "fortinet",
            Description = "adom revision",
            Locked = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.ObjectAdomRevision;
    import com.pulumi.fortios.fmg.ObjectAdomRevisionArgs;
    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 ObjectAdomRevision("test1", ObjectAdomRevisionArgs.builder()
                .createdBy("fortinet")
                .description("adom revision")
                .locked(0)
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:ObjectAdomRevision
        properties:
          createdBy: fortinet
          description: adom revision
          locked: 0
    

    Create ObjectAdomRevision Resource

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

    Constructor syntax

    new ObjectAdomRevision(name: string, args?: ObjectAdomRevisionArgs, opts?: CustomResourceOptions);
    @overload
    def ObjectAdomRevision(resource_name: str,
                           args: Optional[ObjectAdomRevisionArgs] = None,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObjectAdomRevision(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           adom: Optional[str] = None,
                           created_by: Optional[str] = None,
                           description: Optional[str] = None,
                           locked: Optional[int] = None,
                           name: Optional[str] = None)
    func NewObjectAdomRevision(ctx *Context, name string, args *ObjectAdomRevisionArgs, opts ...ResourceOption) (*ObjectAdomRevision, error)
    public ObjectAdomRevision(string name, ObjectAdomRevisionArgs? args = null, CustomResourceOptions? opts = null)
    public ObjectAdomRevision(String name, ObjectAdomRevisionArgs args)
    public ObjectAdomRevision(String name, ObjectAdomRevisionArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:ObjectAdomRevision
    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 ObjectAdomRevisionArgs
    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 ObjectAdomRevisionArgs
    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 ObjectAdomRevisionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObjectAdomRevisionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObjectAdomRevisionArgs
    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 objectAdomRevisionResource = new Fortios.Fmg.ObjectAdomRevision("objectAdomRevisionResource", new()
    {
        Adom = "string",
        CreatedBy = "string",
        Description = "string",
        Locked = 0,
        Name = "string",
    });
    
    example, err := fmg.NewObjectAdomRevision(ctx, "objectAdomRevisionResource", &fmg.ObjectAdomRevisionArgs{
    	Adom:        pulumi.String("string"),
    	CreatedBy:   pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Locked:      pulumi.Int(0),
    	Name:        pulumi.String("string"),
    })
    
    var objectAdomRevisionResource = new ObjectAdomRevision("objectAdomRevisionResource", ObjectAdomRevisionArgs.builder()
        .adom("string")
        .createdBy("string")
        .description("string")
        .locked(0)
        .name("string")
        .build());
    
    object_adom_revision_resource = fortios.fmg.ObjectAdomRevision("objectAdomRevisionResource",
        adom="string",
        created_by="string",
        description="string",
        locked=0,
        name="string")
    
    const objectAdomRevisionResource = new fortios.fmg.ObjectAdomRevision("objectAdomRevisionResource", {
        adom: "string",
        createdBy: "string",
        description: "string",
        locked: 0,
        name: "string",
    });
    
    type: fortios:fmg:ObjectAdomRevision
    properties:
        adom: string
        createdBy: string
        description: string
        locked: 0
        name: string
    

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

    Adom string
    ADOM name. default is 'root'.
    CreatedBy string
    Who created this adom revision.
    Description string
    Description.
    Locked int
    lock. 0 means unlock and 1 means locked.
    Name string
    Adom revision name.
    Adom string
    ADOM name. default is 'root'.
    CreatedBy string
    Who created this adom revision.
    Description string
    Description.
    Locked int
    lock. 0 means unlock and 1 means locked.
    Name string
    Adom revision name.
    adom String
    ADOM name. default is 'root'.
    createdBy String
    Who created this adom revision.
    description String
    Description.
    locked Integer
    lock. 0 means unlock and 1 means locked.
    name String
    Adom revision name.
    adom string
    ADOM name. default is 'root'.
    createdBy string
    Who created this adom revision.
    description string
    Description.
    locked number
    lock. 0 means unlock and 1 means locked.
    name string
    Adom revision name.
    adom str
    ADOM name. default is 'root'.
    created_by str
    Who created this adom revision.
    description str
    Description.
    locked int
    lock. 0 means unlock and 1 means locked.
    name str
    Adom revision name.
    adom String
    ADOM name. default is 'root'.
    createdBy String
    Who created this adom revision.
    description String
    Description.
    locked Number
    lock. 0 means unlock and 1 means locked.
    name String
    Adom revision name.

    Outputs

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

    Get an existing ObjectAdomRevision 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?: ObjectAdomRevisionState, opts?: CustomResourceOptions): ObjectAdomRevision
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            locked: Optional[int] = None,
            name: Optional[str] = None) -> ObjectAdomRevision
    func GetObjectAdomRevision(ctx *Context, name string, id IDInput, state *ObjectAdomRevisionState, opts ...ResourceOption) (*ObjectAdomRevision, error)
    public static ObjectAdomRevision Get(string name, Input<string> id, ObjectAdomRevisionState? state, CustomResourceOptions? opts = null)
    public static ObjectAdomRevision get(String name, Output<String> id, ObjectAdomRevisionState 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.
    The following state arguments are supported:
    Adom string
    ADOM name. default is 'root'.
    CreatedBy string
    Who created this adom revision.
    Description string
    Description.
    Locked int
    lock. 0 means unlock and 1 means locked.
    Name string
    Adom revision name.
    Adom string
    ADOM name. default is 'root'.
    CreatedBy string
    Who created this adom revision.
    Description string
    Description.
    Locked int
    lock. 0 means unlock and 1 means locked.
    Name string
    Adom revision name.
    adom String
    ADOM name. default is 'root'.
    createdBy String
    Who created this adom revision.
    description String
    Description.
    locked Integer
    lock. 0 means unlock and 1 means locked.
    name String
    Adom revision name.
    adom string
    ADOM name. default is 'root'.
    createdBy string
    Who created this adom revision.
    description string
    Description.
    locked number
    lock. 0 means unlock and 1 means locked.
    name string
    Adom revision name.
    adom str
    ADOM name. default is 'root'.
    created_by str
    Who created this adom revision.
    description str
    Description.
    locked int
    lock. 0 means unlock and 1 means locked.
    name str
    Adom revision name.
    adom String
    ADOM name. default is 'root'.
    createdBy String
    Who created this adom revision.
    description String
    Description.
    locked Number
    lock. 0 means unlock and 1 means locked.
    name String
    Adom revision name.

    Package Details

    Repository
    fortios pulumiverse/pulumi-fortios
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fortios Terraform Provider.
    fortios logo
    Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse