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

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,
});
Copy
import pulumi
import pulumiverse_fortios as fortios

test1 = fortios.fmg.DevicemanagerInstallPolicypackage("test1",
    package_name="test-pkg1",
    timeout=5)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
resources:
  test1:
    type: fortios:fmg:DevicemanagerInstallPolicypackage
    properties:
      packageName: test-pkg1
      timeout: 5
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. DevicemanagerInstallPolicypackageArgs
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. 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 This property is required. string
The unique name of the resource.
args This property is required. DevicemanagerInstallPolicypackageArgs
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. DevicemanagerInstallPolicypackageArgs
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. 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,
});
Copy
example, err := fmg.NewDevicemanagerInstallPolicypackage(ctx, "devicemanagerInstallPolicypackageResource", &fmg.DevicemanagerInstallPolicypackageArgs{
	PackageName: pulumi.String("string"),
	Adom:        pulumi.String("string"),
	Timeout:     pulumi.Int(0),
})
Copy
var devicemanagerInstallPolicypackageResource = new DevicemanagerInstallPolicypackage("devicemanagerInstallPolicypackageResource", DevicemanagerInstallPolicypackageArgs.builder()
    .packageName("string")
    .adom("string")
    .timeout(0)
    .build());
Copy
devicemanager_install_policypackage_resource = fortios.fmg.DevicemanagerInstallPolicypackage("devicemanagerInstallPolicypackageResource",
    package_name="string",
    adom="string",
    timeout=0)
Copy
const devicemanagerInstallPolicypackageResource = new fortios.fmg.DevicemanagerInstallPolicypackage("devicemanagerInstallPolicypackageResource", {
    packageName: "string",
    adom: "string",
    timeout: 0,
});
Copy
type: fortios:fmg:DevicemanagerInstallPolicypackage
properties:
    adom: string
    packageName: string
    timeout: 0
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DevicemanagerInstallPolicypackage resource accepts the following input properties:

PackageName This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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)
resources:  _:    type: fortios:fmg:DevicemanagerInstallPolicypackage    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:
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.