1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectUserNsxService
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectUserNsxService

Explore with Pulumi AI

ObjectUser NsxService

This resource is a sub resource for variable service of resource fortimanager.ObjectUserNsx. Conflict and overwrite may occur if use both of them.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trnameObjectUserNsx = new fortimanager.ObjectUserNsx("trnameObjectUserNsx", {
    user: "admin",
    server: "3.3.3.3",
    fmgip: "1.1.1.1",
    fmgpasswds: ["psw"],
    fmguser: "admin",
});
const trnameObjectUserNsxService = new fortimanager.ObjectUserNsxService("trnameObjectUserNsxService", {
    nsx: trnameObjectUserNsx.name,
    fosid: "1",
    integration: "east-west",
}, {
    dependsOn: [trnameObjectUserNsx],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_user_nsx = fortimanager.ObjectUserNsx("trnameObjectUserNsx",
    user="admin",
    server="3.3.3.3",
    fmgip="1.1.1.1",
    fmgpasswds=["psw"],
    fmguser="admin")
trname_object_user_nsx_service = fortimanager.ObjectUserNsxService("trnameObjectUserNsxService",
    nsx=trname_object_user_nsx.name,
    fosid="1",
    integration="east-west",
    opts = pulumi.ResourceOptions(depends_on=[trname_object_user_nsx]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		trnameObjectUserNsx, err := fortimanager.NewObjectUserNsx(ctx, "trnameObjectUserNsx", &fortimanager.ObjectUserNsxArgs{
			User:   pulumi.String("admin"),
			Server: pulumi.String("3.3.3.3"),
			Fmgip:  pulumi.String("1.1.1.1"),
			Fmgpasswds: pulumi.StringArray{
				pulumi.String("psw"),
			},
			Fmguser: pulumi.String("admin"),
		})
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectUserNsxService(ctx, "trnameObjectUserNsxService", &fortimanager.ObjectUserNsxServiceArgs{
			Nsx:         trnameObjectUserNsx.Name,
			Fosid:       pulumi.String("1"),
			Integration: pulumi.String("east-west"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectUserNsx,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trnameObjectUserNsx = new Fortimanager.ObjectUserNsx("trnameObjectUserNsx", new()
    {
        User = "admin",
        Server = "3.3.3.3",
        Fmgip = "1.1.1.1",
        Fmgpasswds = new[]
        {
            "psw",
        },
        Fmguser = "admin",
    });

    var trnameObjectUserNsxService = new Fortimanager.ObjectUserNsxService("trnameObjectUserNsxService", new()
    {
        Nsx = trnameObjectUserNsx.Name,
        Fosid = "1",
        Integration = "east-west",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectUserNsx,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectUserNsx;
import com.pulumi.fortimanager.ObjectUserNsxArgs;
import com.pulumi.fortimanager.ObjectUserNsxService;
import com.pulumi.fortimanager.ObjectUserNsxServiceArgs;
import com.pulumi.resources.CustomResourceOptions;
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 trnameObjectUserNsx = new ObjectUserNsx("trnameObjectUserNsx", ObjectUserNsxArgs.builder()
            .user("admin")
            .server("3.3.3.3")
            .fmgip("1.1.1.1")
            .fmgpasswds("psw")
            .fmguser("admin")
            .build());

        var trnameObjectUserNsxService = new ObjectUserNsxService("trnameObjectUserNsxService", ObjectUserNsxServiceArgs.builder()
            .nsx(trnameObjectUserNsx.name())
            .fosid(1)
            .integration("east-west")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectUserNsx)
                .build());

    }
}
Copy
resources:
  trnameObjectUserNsxService:
    type: fortimanager:ObjectUserNsxService
    properties:
      nsx: ${trnameObjectUserNsx.name}
      fosid: 1
      integration: east-west
    options:
      dependsOn:
        - ${trnameObjectUserNsx}
  trnameObjectUserNsx:
    type: fortimanager:ObjectUserNsx
    properties:
      user: admin
      server: 3.3.3.3
      fmgip: 1.1.1.1
      fmgpasswds:
        - psw
      fmguser: admin
Copy

Create ObjectUserNsxService Resource

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

Constructor syntax

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

@overload
def ObjectUserNsxService(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         nsx: Optional[str] = None,
                         adom: Optional[str] = None,
                         fosid: Optional[str] = None,
                         integration: Optional[str] = None,
                         name: Optional[str] = None,
                         object_user_nsx_service_id: Optional[str] = None,
                         ref_id: Optional[str] = None,
                         scopetype: Optional[str] = None)
func NewObjectUserNsxService(ctx *Context, name string, args ObjectUserNsxServiceArgs, opts ...ResourceOption) (*ObjectUserNsxService, error)
public ObjectUserNsxService(string name, ObjectUserNsxServiceArgs args, CustomResourceOptions? opts = null)
public ObjectUserNsxService(String name, ObjectUserNsxServiceArgs args)
public ObjectUserNsxService(String name, ObjectUserNsxServiceArgs args, CustomResourceOptions options)
type: fortimanager:ObjectUserNsxService
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. ObjectUserNsxServiceArgs
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. ObjectUserNsxServiceInitArgs
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. ObjectUserNsxServiceArgs
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. ObjectUserNsxServiceArgs
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. ObjectUserNsxServiceArgs
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 objectUserNsxServiceResource = new Fortimanager.ObjectUserNsxService("objectUserNsxServiceResource", new()
{
    Nsx = "string",
    Adom = "string",
    Fosid = "string",
    Integration = "string",
    Name = "string",
    ObjectUserNsxServiceId = "string",
    RefId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectUserNsxService(ctx, "objectUserNsxServiceResource", &fortimanager.ObjectUserNsxServiceArgs{
	Nsx:                    pulumi.String("string"),
	Adom:                   pulumi.String("string"),
	Fosid:                  pulumi.String("string"),
	Integration:            pulumi.String("string"),
	Name:                   pulumi.String("string"),
	ObjectUserNsxServiceId: pulumi.String("string"),
	RefId:                  pulumi.String("string"),
	Scopetype:              pulumi.String("string"),
})
Copy
var objectUserNsxServiceResource = new ObjectUserNsxService("objectUserNsxServiceResource", ObjectUserNsxServiceArgs.builder()
    .nsx("string")
    .adom("string")
    .fosid("string")
    .integration("string")
    .name("string")
    .objectUserNsxServiceId("string")
    .refId("string")
    .scopetype("string")
    .build());
Copy
object_user_nsx_service_resource = fortimanager.ObjectUserNsxService("objectUserNsxServiceResource",
    nsx="string",
    adom="string",
    fosid="string",
    integration="string",
    name="string",
    object_user_nsx_service_id="string",
    ref_id="string",
    scopetype="string")
Copy
const objectUserNsxServiceResource = new fortimanager.ObjectUserNsxService("objectUserNsxServiceResource", {
    nsx: "string",
    adom: "string",
    fosid: "string",
    integration: "string",
    name: "string",
    objectUserNsxServiceId: "string",
    refId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectUserNsxService
properties:
    adom: string
    fosid: string
    integration: string
    name: string
    nsx: string
    objectUserNsxServiceId: string
    refId: string
    scopetype: string
Copy

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

Nsx This property is required. string
Nsx.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid string
Id.
Integration string
Integration. Valid values: east-west, north-south.
Name string
Name.
ObjectUserNsxServiceId string
an identifier for the resource with format {{fosid}}.
RefId string
Ref-Id.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Nsx This property is required. string
Nsx.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid string
Id.
Integration string
Integration. Valid values: east-west, north-south.
Name string
Name.
ObjectUserNsxServiceId string
an identifier for the resource with format {{fosid}}.
RefId string
Ref-Id.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
nsx This property is required. String
Nsx.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid String
Id.
integration String
Integration. Valid values: east-west, north-south.
name String
Name.
objectUserNsxServiceId String
an identifier for the resource with format {{fosid}}.
refId String
Ref-Id.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
nsx This property is required. string
Nsx.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid string
Id.
integration string
Integration. Valid values: east-west, north-south.
name string
Name.
objectUserNsxServiceId string
an identifier for the resource with format {{fosid}}.
refId string
Ref-Id.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
nsx This property is required. str
Nsx.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid str
Id.
integration str
Integration. Valid values: east-west, north-south.
name str
Name.
object_user_nsx_service_id str
an identifier for the resource with format {{fosid}}.
ref_id str
Ref-Id.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
nsx This property is required. String
Nsx.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid String
Id.
integration String
Integration. Valid values: east-west, north-south.
name String
Name.
objectUserNsxServiceId String
an identifier for the resource with format {{fosid}}.
refId String
Ref-Id.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Outputs

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

Get an existing ObjectUserNsxService 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?: ObjectUserNsxServiceState, opts?: CustomResourceOptions): ObjectUserNsxService
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        fosid: Optional[str] = None,
        integration: Optional[str] = None,
        name: Optional[str] = None,
        nsx: Optional[str] = None,
        object_user_nsx_service_id: Optional[str] = None,
        ref_id: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectUserNsxService
func GetObjectUserNsxService(ctx *Context, name string, id IDInput, state *ObjectUserNsxServiceState, opts ...ResourceOption) (*ObjectUserNsxService, error)
public static ObjectUserNsxService Get(string name, Input<string> id, ObjectUserNsxServiceState? state, CustomResourceOptions? opts = null)
public static ObjectUserNsxService get(String name, Output<String> id, ObjectUserNsxServiceState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectUserNsxService    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
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid string
Id.
Integration string
Integration. Valid values: east-west, north-south.
Name string
Name.
Nsx string
Nsx.
ObjectUserNsxServiceId string
an identifier for the resource with format {{fosid}}.
RefId string
Ref-Id.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid string
Id.
Integration string
Integration. Valid values: east-west, north-south.
Name string
Name.
Nsx string
Nsx.
ObjectUserNsxServiceId string
an identifier for the resource with format {{fosid}}.
RefId string
Ref-Id.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid String
Id.
integration String
Integration. Valid values: east-west, north-south.
name String
Name.
nsx String
Nsx.
objectUserNsxServiceId String
an identifier for the resource with format {{fosid}}.
refId String
Ref-Id.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid string
Id.
integration string
Integration. Valid values: east-west, north-south.
name string
Name.
nsx string
Nsx.
objectUserNsxServiceId string
an identifier for the resource with format {{fosid}}.
refId string
Ref-Id.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid str
Id.
integration str
Integration. Valid values: east-west, north-south.
name str
Name.
nsx str
Nsx.
object_user_nsx_service_id str
an identifier for the resource with format {{fosid}}.
ref_id str
Ref-Id.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid String
Id.
integration String
Integration. Valid values: east-west, north-south.
name String
Name.
nsx String
Nsx.
objectUserNsxServiceId String
an identifier for the resource with format {{fosid}}.
refId String
Ref-Id.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.

Import

ObjectUser NsxService can be imported using any of these accepted formats:

Set import_options = [“nsx=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectUserNsxService:ObjectUserNsxService labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.