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

fortios.fmg.DevicemanagerInstallPolicypackage

Explore with Pulumi AI

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

    This resource supports installing devicemanager policy package from FortiManager to the related FortiGate

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const test1 = new fortios.fmg.DevicemanagerInstallPolicypackage("test1", {
        packageName: "test-pkg1",
        timeout: 5,
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    test1 = fortios.fmg.DevicemanagerInstallPolicypackage("test1",
        package_name="test-pkg1",
        timeout=5)
    
    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.NewDevicemanagerInstallPolicypackage(ctx, "test1", &fmg.DevicemanagerInstallPolicypackageArgs{
    			PackageName: pulumi.String("test-pkg1"),
    			Timeout:     pulumi.Int(5),
    		})
    		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.DevicemanagerInstallPolicypackage("test1", new()
        {
            PackageName = "test-pkg1",
            Timeout = 5,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.fmg.DevicemanagerInstallPolicypackage;
    import com.pulumi.fortios.fmg.DevicemanagerInstallPolicypackageArgs;
    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 DevicemanagerInstallPolicypackage("test1", DevicemanagerInstallPolicypackageArgs.builder()
                .packageName("test-pkg1")
                .timeout(5)
                .build());
    
        }
    }
    
    resources:
      test1:
        type: fortios:fmg:DevicemanagerInstallPolicypackage
        properties:
          packageName: test-pkg1
          timeout: 5
    

    Create DevicemanagerInstallPolicypackage Resource

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

    Constructor syntax

    new DevicemanagerInstallPolicypackage(name: string, args: DevicemanagerInstallPolicypackageArgs, opts?: CustomResourceOptions);
    @overload
    def DevicemanagerInstallPolicypackage(resource_name: str,
                                          args: DevicemanagerInstallPolicypackageArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def DevicemanagerInstallPolicypackage(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          package_name: Optional[str] = None,
                                          adom: Optional[str] = None,
                                          timeout: Optional[int] = None)
    func NewDevicemanagerInstallPolicypackage(ctx *Context, name string, args DevicemanagerInstallPolicypackageArgs, opts ...ResourceOption) (*DevicemanagerInstallPolicypackage, error)
    public DevicemanagerInstallPolicypackage(string name, DevicemanagerInstallPolicypackageArgs args, CustomResourceOptions? opts = null)
    public DevicemanagerInstallPolicypackage(String name, DevicemanagerInstallPolicypackageArgs args)
    public DevicemanagerInstallPolicypackage(String name, DevicemanagerInstallPolicypackageArgs args, CustomResourceOptions options)
    
    type: fortios:fmg:DevicemanagerInstallPolicypackage
    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 DevicemanagerInstallPolicypackageArgs
    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 DevicemanagerInstallPolicypackageArgs
    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 DevicemanagerInstallPolicypackageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DevicemanagerInstallPolicypackageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DevicemanagerInstallPolicypackageArgs
    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 devicemanagerInstallPolicypackageResource = new Fortios.Fmg.DevicemanagerInstallPolicypackage("devicemanagerInstallPolicypackageResource", new()
    {
        PackageName = "string",
        Adom = "string",
        Timeout = 0,
    });
    
    example, err := fmg.NewDevicemanagerInstallPolicypackage(ctx, "devicemanagerInstallPolicypackageResource", &fmg.DevicemanagerInstallPolicypackageArgs{
    	PackageName: pulumi.String("string"),
    	Adom:        pulumi.String("string"),
    	Timeout:     pulumi.Int(0),
    })
    
    var devicemanagerInstallPolicypackageResource = new DevicemanagerInstallPolicypackage("devicemanagerInstallPolicypackageResource", DevicemanagerInstallPolicypackageArgs.builder()
        .packageName("string")
        .adom("string")
        .timeout(0)
        .build());
    
    devicemanager_install_policypackage_resource = fortios.fmg.DevicemanagerInstallPolicypackage("devicemanagerInstallPolicypackageResource",
        package_name="string",
        adom="string",
        timeout=0)
    
    const devicemanagerInstallPolicypackageResource = new fortios.fmg.DevicemanagerInstallPolicypackage("devicemanagerInstallPolicypackageResource", {
        packageName: "string",
        adom: "string",
        timeout: 0,
    });
    
    type: fortios:fmg:DevicemanagerInstallPolicypackage
    properties:
        adom: string
        packageName: string
        timeout: 0
    

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

    PackageName string
    The installation package name.
    Adom string
    Source ADOM name. default is 'root'
    Timeout int
    Timeout for installing the package to the target, default: 3 minutes.
    PackageName string
    The installation package name.
    Adom string
    Source ADOM name. default is 'root'
    Timeout int
    Timeout for installing the package to the target, default: 3 minutes.
    packageName String
    The installation package name.
    adom String
    Source ADOM name. default is 'root'
    timeout Integer
    Timeout for installing the package to the target, default: 3 minutes.
    packageName string
    The installation package name.
    adom string
    Source ADOM name. default is 'root'
    timeout number
    Timeout for installing the package to the target, default: 3 minutes.
    package_name str
    The installation package name.
    adom str
    Source ADOM name. default is 'root'
    timeout int
    Timeout for installing the package to the target, default: 3 minutes.
    packageName String
    The installation package name.
    adom String
    Source ADOM name. default is 'root'
    timeout Number
    Timeout for installing the package to the target, default: 3 minutes.

    Outputs

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

    Get an existing DevicemanagerInstallPolicypackage 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?: DevicemanagerInstallPolicypackageState, opts?: CustomResourceOptions): DevicemanagerInstallPolicypackage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adom: Optional[str] = None,
            package_name: Optional[str] = None,
            timeout: Optional[int] = None) -> DevicemanagerInstallPolicypackage
    func GetDevicemanagerInstallPolicypackage(ctx *Context, name string, id IDInput, state *DevicemanagerInstallPolicypackageState, opts ...ResourceOption) (*DevicemanagerInstallPolicypackage, error)
    public static DevicemanagerInstallPolicypackage Get(string name, Input<string> id, DevicemanagerInstallPolicypackageState? state, CustomResourceOptions? opts = null)
    public static DevicemanagerInstallPolicypackage get(String name, Output<String> id, DevicemanagerInstallPolicypackageState 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
    Source ADOM name. default is 'root'
    PackageName string
    The installation package name.
    Timeout int
    Timeout for installing the package to the target, default: 3 minutes.
    Adom string
    Source ADOM name. default is 'root'
    PackageName string
    The installation package name.
    Timeout int
    Timeout for installing the package to the target, default: 3 minutes.
    adom String
    Source ADOM name. default is 'root'
    packageName String
    The installation package name.
    timeout Integer
    Timeout for installing the package to the target, default: 3 minutes.
    adom string
    Source ADOM name. default is 'root'
    packageName string
    The installation package name.
    timeout number
    Timeout for installing the package to the target, default: 3 minutes.
    adom str
    Source ADOM name. default is 'root'
    package_name str
    The installation package name.
    timeout int
    Timeout for installing the package to the target, default: 3 minutes.
    adom String
    Source ADOM name. default is 'root'
    packageName String
    The installation package name.
    timeout Number
    Timeout for installing the package to the target, default: 3 minutes.

    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