published on Friday, May 22, 2026 by Pulumi
published on Friday, May 22, 2026 by Pulumi
Resource for managing Harness IaCM Ansible Inventories.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const manual = new harness.platform.IacmAnsibleInventory("manual", {
identifier: "my_inventory",
name: "my-inventory",
orgId: example.id,
projectId: exampleHarnessPlatformProject.id,
type: "manual",
tags: ["env:prod"],
groups: [{
identifier: "web",
name: "web",
hosts: [
"web-1.example.com",
"web-2.example.com",
],
vars: [{
key: "ansible_user",
value: "ubuntu",
valueType: "string",
}],
}],
vars: [{
key: "ansible_port",
value: "22",
valueType: "string",
}],
});
import pulumi
import pulumi_harness as harness
manual = harness.platform.IacmAnsibleInventory("manual",
identifier="my_inventory",
name="my-inventory",
org_id=example["id"],
project_id=example_harness_platform_project["id"],
type="manual",
tags=["env:prod"],
groups=[{
"identifier": "web",
"name": "web",
"hosts": [
"web-1.example.com",
"web-2.example.com",
],
"vars": [{
"key": "ansible_user",
"value": "ubuntu",
"value_type": "string",
}],
}],
vars=[{
"key": "ansible_port",
"value": "22",
"value_type": "string",
}])
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewIacmAnsibleInventory(ctx, "manual", &platform.IacmAnsibleInventoryArgs{
Identifier: pulumi.String("my_inventory"),
Name: pulumi.String("my-inventory"),
OrgId: pulumi.Any(example.Id),
ProjectId: pulumi.Any(exampleHarnessPlatformProject.Id),
Type: pulumi.String("manual"),
Tags: pulumi.StringArray{
pulumi.String("env:prod"),
},
Groups: platform.IacmAnsibleInventoryGroupArray{
&platform.IacmAnsibleInventoryGroupArgs{
Identifier: pulumi.String("web"),
Name: pulumi.String("web"),
Hosts: pulumi.StringArray{
pulumi.String("web-1.example.com"),
pulumi.String("web-2.example.com"),
},
Vars: platform.IacmAnsibleInventoryGroupVarArray{
&platform.IacmAnsibleInventoryGroupVarArgs{
Key: pulumi.String("ansible_user"),
Value: pulumi.String("ubuntu"),
ValueType: pulumi.String("string"),
},
},
},
},
Vars: platform.IacmAnsibleInventoryVarArray{
&platform.IacmAnsibleInventoryVarArgs{
Key: pulumi.String("ansible_port"),
Value: pulumi.String("22"),
ValueType: pulumi.String("string"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var manual = new Harness.Platform.IacmAnsibleInventory("manual", new()
{
Identifier = "my_inventory",
Name = "my-inventory",
OrgId = example.Id,
ProjectId = exampleHarnessPlatformProject.Id,
Type = "manual",
Tags = new[]
{
"env:prod",
},
Groups = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryGroupArgs
{
Identifier = "web",
Name = "web",
Hosts = new[]
{
"web-1.example.com",
"web-2.example.com",
},
Vars = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryGroupVarArgs
{
Key = "ansible_user",
Value = "ubuntu",
ValueType = "string",
},
},
},
},
Vars = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryVarArgs
{
Key = "ansible_port",
Value = "22",
ValueType = "string",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.IacmAnsibleInventory;
import com.pulumi.harness.platform.IacmAnsibleInventoryArgs;
import com.pulumi.harness.platform.inputs.IacmAnsibleInventoryGroupArgs;
import com.pulumi.harness.platform.inputs.IacmAnsibleInventoryVarArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 manual = new IacmAnsibleInventory("manual", IacmAnsibleInventoryArgs.builder()
.identifier("my_inventory")
.name("my-inventory")
.orgId(example.id())
.projectId(exampleHarnessPlatformProject.id())
.type("manual")
.tags("env:prod")
.groups(IacmAnsibleInventoryGroupArgs.builder()
.identifier("web")
.name("web")
.hosts(
"web-1.example.com",
"web-2.example.com")
.vars(IacmAnsibleInventoryGroupVarArgs.builder()
.key("ansible_user")
.value("ubuntu")
.valueType("string")
.build())
.build())
.vars(IacmAnsibleInventoryVarArgs.builder()
.key("ansible_port")
.value("22")
.valueType("string")
.build())
.build());
}
}
resources:
manual:
type: harness:platform:IacmAnsibleInventory
properties:
identifier: my_inventory
name: my-inventory
orgId: ${example.id}
projectId: ${exampleHarnessPlatformProject.id}
type: manual
tags:
- env:prod
groups:
- identifier: web
name: web
hosts:
- web-1.example.com
- web-2.example.com
vars:
- key: ansible_user
value: ubuntu
valueType: string
vars:
- key: ansible_port
value: '22'
valueType: string
pulumi {
required_providers {
harness = {
source = "pulumi/harness"
}
}
}
resource "harness_platform_iacmansibleinventory" "manual" {
identifier = "my_inventory"
name = "my-inventory"
org_id = example.id
project_id = exampleHarnessPlatformProject.id
type = "manual"
tags = ["env:prod"]
groups {
identifier = "web"
name = "web"
hosts = ["web-1.example.com", "web-2.example.com"]
vars {
key = "ansible_user"
value = "ubuntu"
value_type = "string"
}
}
vars {
key = "ansible_port"
value = "22"
value_type = "string"
}
}
Create IacmAnsibleInventory Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IacmAnsibleInventory(name: string, args: IacmAnsibleInventoryArgs, opts?: CustomResourceOptions);@overload
def IacmAnsibleInventory(resource_name: str,
args: IacmAnsibleInventoryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IacmAnsibleInventory(resource_name: str,
opts: Optional[ResourceOptions] = None,
identifier: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
type: Optional[str] = None,
description: Optional[str] = None,
dynamic_groups: Optional[Sequence[IacmAnsibleInventoryDynamicGroupArgs]] = None,
groups: Optional[Sequence[IacmAnsibleInventoryGroupArgs]] = None,
name: Optional[str] = None,
plugin_options: Optional[IacmAnsibleInventoryPluginOptionsArgs] = None,
tags: Optional[Sequence[str]] = None,
vars: Optional[Sequence[IacmAnsibleInventoryVarArgs]] = None)func NewIacmAnsibleInventory(ctx *Context, name string, args IacmAnsibleInventoryArgs, opts ...ResourceOption) (*IacmAnsibleInventory, error)public IacmAnsibleInventory(string name, IacmAnsibleInventoryArgs args, CustomResourceOptions? opts = null)
public IacmAnsibleInventory(String name, IacmAnsibleInventoryArgs args)
public IacmAnsibleInventory(String name, IacmAnsibleInventoryArgs args, CustomResourceOptions options)
type: harness:platform:IacmAnsibleInventory
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "harness_platform_iacmansibleinventory" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args IacmAnsibleInventoryArgs
- 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 IacmAnsibleInventoryArgs
- 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 IacmAnsibleInventoryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IacmAnsibleInventoryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IacmAnsibleInventoryArgs
- 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 iacmAnsibleInventoryResource = new Harness.Platform.IacmAnsibleInventory("iacmAnsibleInventoryResource", new()
{
Identifier = "string",
OrgId = "string",
ProjectId = "string",
Type = "string",
Description = "string",
DynamicGroups = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryDynamicGroupArgs
{
ConnectorIdentifier = "string",
ConnectorType = "string",
Identifier = "string",
Name = "string",
Configuration = new Harness.Platform.Inputs.IacmAnsibleInventoryDynamicGroupConfigurationArgs
{
HostAddressAttribute = "string",
ResourceType = "string",
Selectors = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryDynamicGroupConfigurationSelectorArgs
{
Attribute = "string",
Operator = "string",
Value = "string",
},
},
},
DynamicVars = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryDynamicGroupDynamicVarArgs
{
Key = "string",
Value = "string",
ValueType = "string",
FileName = "string",
},
},
Vars = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryDynamicGroupVarArgs
{
Key = "string",
Value = "string",
ValueType = "string",
FileName = "string",
},
},
},
},
Groups = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryGroupArgs
{
Identifier = "string",
Name = "string",
Hosts = new[]
{
"string",
},
Vars = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryGroupVarArgs
{
Key = "string",
Value = "string",
ValueType = "string",
FileName = "string",
},
},
},
},
Name = "string",
PluginOptions = new Harness.Platform.Inputs.IacmAnsibleInventoryPluginOptionsArgs
{
InlineYaml = "string",
ProviderConnectorIdentifier = "string",
ProviderConnectorType = "string",
Repository = "string",
RepositoryBranch = "string",
RepositoryCommit = "string",
RepositoryConnector = "string",
RepositoryPath = "string",
SourceType = "string",
},
Tags = new[]
{
"string",
},
Vars = new[]
{
new Harness.Platform.Inputs.IacmAnsibleInventoryVarArgs
{
Key = "string",
Value = "string",
ValueType = "string",
FileName = "string",
},
},
});
example, err := platform.NewIacmAnsibleInventory(ctx, "iacmAnsibleInventoryResource", &platform.IacmAnsibleInventoryArgs{
Identifier: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Type: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicGroups: platform.IacmAnsibleInventoryDynamicGroupArray{
&platform.IacmAnsibleInventoryDynamicGroupArgs{
ConnectorIdentifier: pulumi.String("string"),
ConnectorType: pulumi.String("string"),
Identifier: pulumi.String("string"),
Name: pulumi.String("string"),
Configuration: &platform.IacmAnsibleInventoryDynamicGroupConfigurationArgs{
HostAddressAttribute: pulumi.String("string"),
ResourceType: pulumi.String("string"),
Selectors: platform.IacmAnsibleInventoryDynamicGroupConfigurationSelectorArray{
&platform.IacmAnsibleInventoryDynamicGroupConfigurationSelectorArgs{
Attribute: pulumi.String("string"),
Operator: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
DynamicVars: platform.IacmAnsibleInventoryDynamicGroupDynamicVarArray{
&platform.IacmAnsibleInventoryDynamicGroupDynamicVarArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
ValueType: pulumi.String("string"),
FileName: pulumi.String("string"),
},
},
Vars: platform.IacmAnsibleInventoryDynamicGroupVarArray{
&platform.IacmAnsibleInventoryDynamicGroupVarArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
ValueType: pulumi.String("string"),
FileName: pulumi.String("string"),
},
},
},
},
Groups: platform.IacmAnsibleInventoryGroupArray{
&platform.IacmAnsibleInventoryGroupArgs{
Identifier: pulumi.String("string"),
Name: pulumi.String("string"),
Hosts: pulumi.StringArray{
pulumi.String("string"),
},
Vars: platform.IacmAnsibleInventoryGroupVarArray{
&platform.IacmAnsibleInventoryGroupVarArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
ValueType: pulumi.String("string"),
FileName: pulumi.String("string"),
},
},
},
},
Name: pulumi.String("string"),
PluginOptions: &platform.IacmAnsibleInventoryPluginOptionsArgs{
InlineYaml: pulumi.String("string"),
ProviderConnectorIdentifier: pulumi.String("string"),
ProviderConnectorType: pulumi.String("string"),
Repository: pulumi.String("string"),
RepositoryBranch: pulumi.String("string"),
RepositoryCommit: pulumi.String("string"),
RepositoryConnector: pulumi.String("string"),
RepositoryPath: pulumi.String("string"),
SourceType: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Vars: platform.IacmAnsibleInventoryVarArray{
&platform.IacmAnsibleInventoryVarArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
ValueType: pulumi.String("string"),
FileName: pulumi.String("string"),
},
},
})
resource "harness_platform_iacmansibleinventory" "iacmAnsibleInventoryResource" {
identifier = "string"
org_id = "string"
project_id = "string"
type = "string"
description = "string"
dynamic_groups {
connector_identifier = "string"
connector_type = "string"
identifier = "string"
name = "string"
configuration = {
host_address_attribute = "string"
resource_type = "string"
selectors = [{
"attribute" = "string"
"operator" = "string"
"value" = "string"
}]
}
dynamic_vars {
key = "string"
value = "string"
value_type = "string"
file_name = "string"
}
vars {
key = "string"
value = "string"
value_type = "string"
file_name = "string"
}
}
groups {
identifier = "string"
name = "string"
hosts = ["string"]
vars {
key = "string"
value = "string"
value_type = "string"
file_name = "string"
}
}
name = "string"
plugin_options = {
inline_yaml = "string"
provider_connector_identifier = "string"
provider_connector_type = "string"
repository = "string"
repository_branch = "string"
repository_commit = "string"
repository_connector = "string"
repository_path = "string"
source_type = "string"
}
tags = ["string"]
vars {
key = "string"
value = "string"
value_type = "string"
file_name = "string"
}
}
var iacmAnsibleInventoryResource = new IacmAnsibleInventory("iacmAnsibleInventoryResource", IacmAnsibleInventoryArgs.builder()
.identifier("string")
.orgId("string")
.projectId("string")
.type("string")
.description("string")
.dynamicGroups(IacmAnsibleInventoryDynamicGroupArgs.builder()
.connectorIdentifier("string")
.connectorType("string")
.identifier("string")
.name("string")
.configuration(IacmAnsibleInventoryDynamicGroupConfigurationArgs.builder()
.hostAddressAttribute("string")
.resourceType("string")
.selectors(IacmAnsibleInventoryDynamicGroupConfigurationSelectorArgs.builder()
.attribute("string")
.operator("string")
.value("string")
.build())
.build())
.dynamicVars(IacmAnsibleInventoryDynamicGroupDynamicVarArgs.builder()
.key("string")
.value("string")
.valueType("string")
.fileName("string")
.build())
.vars(IacmAnsibleInventoryDynamicGroupVarArgs.builder()
.key("string")
.value("string")
.valueType("string")
.fileName("string")
.build())
.build())
.groups(IacmAnsibleInventoryGroupArgs.builder()
.identifier("string")
.name("string")
.hosts("string")
.vars(IacmAnsibleInventoryGroupVarArgs.builder()
.key("string")
.value("string")
.valueType("string")
.fileName("string")
.build())
.build())
.name("string")
.pluginOptions(IacmAnsibleInventoryPluginOptionsArgs.builder()
.inlineYaml("string")
.providerConnectorIdentifier("string")
.providerConnectorType("string")
.repository("string")
.repositoryBranch("string")
.repositoryCommit("string")
.repositoryConnector("string")
.repositoryPath("string")
.sourceType("string")
.build())
.tags("string")
.vars(IacmAnsibleInventoryVarArgs.builder()
.key("string")
.value("string")
.valueType("string")
.fileName("string")
.build())
.build());
iacm_ansible_inventory_resource = harness.platform.IacmAnsibleInventory("iacmAnsibleInventoryResource",
identifier="string",
org_id="string",
project_id="string",
type="string",
description="string",
dynamic_groups=[{
"connector_identifier": "string",
"connector_type": "string",
"identifier": "string",
"name": "string",
"configuration": {
"host_address_attribute": "string",
"resource_type": "string",
"selectors": [{
"attribute": "string",
"operator": "string",
"value": "string",
}],
},
"dynamic_vars": [{
"key": "string",
"value": "string",
"value_type": "string",
"file_name": "string",
}],
"vars": [{
"key": "string",
"value": "string",
"value_type": "string",
"file_name": "string",
}],
}],
groups=[{
"identifier": "string",
"name": "string",
"hosts": ["string"],
"vars": [{
"key": "string",
"value": "string",
"value_type": "string",
"file_name": "string",
}],
}],
name="string",
plugin_options={
"inline_yaml": "string",
"provider_connector_identifier": "string",
"provider_connector_type": "string",
"repository": "string",
"repository_branch": "string",
"repository_commit": "string",
"repository_connector": "string",
"repository_path": "string",
"source_type": "string",
},
tags=["string"],
vars=[{
"key": "string",
"value": "string",
"value_type": "string",
"file_name": "string",
}])
const iacmAnsibleInventoryResource = new harness.platform.IacmAnsibleInventory("iacmAnsibleInventoryResource", {
identifier: "string",
orgId: "string",
projectId: "string",
type: "string",
description: "string",
dynamicGroups: [{
connectorIdentifier: "string",
connectorType: "string",
identifier: "string",
name: "string",
configuration: {
hostAddressAttribute: "string",
resourceType: "string",
selectors: [{
attribute: "string",
operator: "string",
value: "string",
}],
},
dynamicVars: [{
key: "string",
value: "string",
valueType: "string",
fileName: "string",
}],
vars: [{
key: "string",
value: "string",
valueType: "string",
fileName: "string",
}],
}],
groups: [{
identifier: "string",
name: "string",
hosts: ["string"],
vars: [{
key: "string",
value: "string",
valueType: "string",
fileName: "string",
}],
}],
name: "string",
pluginOptions: {
inlineYaml: "string",
providerConnectorIdentifier: "string",
providerConnectorType: "string",
repository: "string",
repositoryBranch: "string",
repositoryCommit: "string",
repositoryConnector: "string",
repositoryPath: "string",
sourceType: "string",
},
tags: ["string"],
vars: [{
key: "string",
value: "string",
valueType: "string",
fileName: "string",
}],
});
type: harness:platform:IacmAnsibleInventory
properties:
description: string
dynamicGroups:
- configuration:
hostAddressAttribute: string
resourceType: string
selectors:
- attribute: string
operator: string
value: string
connectorIdentifier: string
connectorType: string
dynamicVars:
- fileName: string
key: string
value: string
valueType: string
identifier: string
name: string
vars:
- fileName: string
key: string
value: string
valueType: string
groups:
- hosts:
- string
identifier: string
name: string
vars:
- fileName: string
key: string
value: string
valueType: string
identifier: string
name: string
orgId: string
pluginOptions:
inlineYaml: string
providerConnectorIdentifier: string
providerConnectorType: string
repository: string
repositoryBranch: string
repositoryCommit: string
repositoryConnector: string
repositoryPath: string
sourceType: string
projectId: string
tags:
- string
type: string
vars:
- fileName: string
key: string
value: string
valueType: string
IacmAnsibleInventory 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 IacmAnsibleInventory resource accepts the following input properties:
- Identifier string
- Unique identifier of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Type string
- Type of inventory. One of: manual, dynamic, plugin.
- Description string
- Description of the resource.
- Dynamic
Groups List<IacmAnsible Inventory Dynamic Group> - Dynamic groups used when type is dynamic.
- Groups
List<Iacm
Ansible Inventory Group> - Manual groups used when type is manual.
- Name string
- Name of the resource.
- Plugin
Options IacmAnsible Inventory Plugin Options - Plugin options used when type is plugin.
- List<string>
- Tags to associate with the resource.
- Vars
List<Iacm
Ansible Inventory Var> - Variables configured on the inventory.
- Identifier string
- Unique identifier of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Type string
- Type of inventory. One of: manual, dynamic, plugin.
- Description string
- Description of the resource.
- Dynamic
Groups []IacmAnsible Inventory Dynamic Group Args - Dynamic groups used when type is dynamic.
- Groups
[]Iacm
Ansible Inventory Group Args - Manual groups used when type is manual.
- Name string
- Name of the resource.
- Plugin
Options IacmAnsible Inventory Plugin Options Args - Plugin options used when type is plugin.
- []string
- Tags to associate with the resource.
- Vars
[]Iacm
Ansible Inventory Var Args - Variables configured on the inventory.
- identifier string
- Unique identifier of the resource.
- org_
id string - Unique identifier of the organization.
- project_
id string - Unique identifier of the project.
- type string
- Type of inventory. One of: manual, dynamic, plugin.
- description string
- Description of the resource.
- dynamic_
groups list(object) - Dynamic groups used when type is dynamic.
- groups list(object)
- Manual groups used when type is manual.
- name string
- Name of the resource.
- plugin_
options object - Plugin options used when type is plugin.
- list(string)
- Tags to associate with the resource.
- vars list(object)
- Variables configured on the inventory.
- identifier String
- Unique identifier of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- type String
- Type of inventory. One of: manual, dynamic, plugin.
- description String
- Description of the resource.
- dynamic
Groups List<IacmAnsible Inventory Dynamic Group> - Dynamic groups used when type is dynamic.
- groups
List<Iacm
Ansible Inventory Group> - Manual groups used when type is manual.
- name String
- Name of the resource.
- plugin
Options IacmAnsible Inventory Plugin Options - Plugin options used when type is plugin.
- List<String>
- Tags to associate with the resource.
- vars
List<Iacm
Ansible Inventory Var> - Variables configured on the inventory.
- identifier string
- Unique identifier of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- type string
- Type of inventory. One of: manual, dynamic, plugin.
- description string
- Description of the resource.
- dynamic
Groups IacmAnsible Inventory Dynamic Group[] - Dynamic groups used when type is dynamic.
- groups
Iacm
Ansible Inventory Group[] - Manual groups used when type is manual.
- name string
- Name of the resource.
- plugin
Options IacmAnsible Inventory Plugin Options - Plugin options used when type is plugin.
- string[]
- Tags to associate with the resource.
- vars
Iacm
Ansible Inventory Var[] - Variables configured on the inventory.
- identifier str
- Unique identifier of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- type str
- Type of inventory. One of: manual, dynamic, plugin.
- description str
- Description of the resource.
- dynamic_
groups Sequence[IacmAnsible Inventory Dynamic Group Args] - Dynamic groups used when type is dynamic.
- groups
Sequence[Iacm
Ansible Inventory Group Args] - Manual groups used when type is manual.
- name str
- Name of the resource.
- plugin_
options IacmAnsible Inventory Plugin Options Args - Plugin options used when type is plugin.
- Sequence[str]
- Tags to associate with the resource.
- vars
Sequence[Iacm
Ansible Inventory Var Args] - Variables configured on the inventory.
- identifier String
- Unique identifier of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- type String
- Type of inventory. One of: manual, dynamic, plugin.
- description String
- Description of the resource.
- dynamic
Groups List<Property Map> - Dynamic groups used when type is dynamic.
- groups List<Property Map>
- Manual groups used when type is manual.
- name String
- Name of the resource.
- plugin
Options Property Map - Plugin options used when type is plugin.
- List<String>
- Tags to associate with the resource.
- vars List<Property Map>
- Variables configured on the inventory.
Outputs
All input properties are implicitly available as output properties. Additionally, the IacmAnsibleInventory 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 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 IacmAnsibleInventory Resource
Get an existing IacmAnsibleInventory 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?: IacmAnsibleInventoryState, opts?: CustomResourceOptions): IacmAnsibleInventory@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dynamic_groups: Optional[Sequence[IacmAnsibleInventoryDynamicGroupArgs]] = None,
groups: Optional[Sequence[IacmAnsibleInventoryGroupArgs]] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
plugin_options: Optional[IacmAnsibleInventoryPluginOptionsArgs] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
vars: Optional[Sequence[IacmAnsibleInventoryVarArgs]] = None) -> IacmAnsibleInventoryfunc GetIacmAnsibleInventory(ctx *Context, name string, id IDInput, state *IacmAnsibleInventoryState, opts ...ResourceOption) (*IacmAnsibleInventory, error)public static IacmAnsibleInventory Get(string name, Input<string> id, IacmAnsibleInventoryState? state, CustomResourceOptions? opts = null)public static IacmAnsibleInventory get(String name, Output<String> id, IacmAnsibleInventoryState state, CustomResourceOptions options)resources: _: type: harness:platform:IacmAnsibleInventory get: id: ${id}import {
to = harness_platform_iacmansibleinventory.example
id = "${id}"
}
- 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.
- Description string
- Description of the resource.
- Dynamic
Groups List<IacmAnsible Inventory Dynamic Group> - Dynamic groups used when type is dynamic.
- Groups
List<Iacm
Ansible Inventory Group> - Manual groups used when type is manual.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Plugin
Options IacmAnsible Inventory Plugin Options - Plugin options used when type is plugin.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- Type string
- Type of inventory. One of: manual, dynamic, plugin.
- Vars
List<Iacm
Ansible Inventory Var> - Variables configured on the inventory.
- Description string
- Description of the resource.
- Dynamic
Groups []IacmAnsible Inventory Dynamic Group Args - Dynamic groups used when type is dynamic.
- Groups
[]Iacm
Ansible Inventory Group Args - Manual groups used when type is manual.
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Plugin
Options IacmAnsible Inventory Plugin Options Args - Plugin options used when type is plugin.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- Type string
- Type of inventory. One of: manual, dynamic, plugin.
- Vars
[]Iacm
Ansible Inventory Var Args - Variables configured on the inventory.
- description string
- Description of the resource.
- dynamic_
groups list(object) - Dynamic groups used when type is dynamic.
- groups list(object)
- Manual groups used when type is manual.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- org_
id string - Unique identifier of the organization.
- plugin_
options object - Plugin options used when type is plugin.
- project_
id string - Unique identifier of the project.
- list(string)
- Tags to associate with the resource.
- type string
- Type of inventory. One of: manual, dynamic, plugin.
- vars list(object)
- Variables configured on the inventory.
- description String
- Description of the resource.
- dynamic
Groups List<IacmAnsible Inventory Dynamic Group> - Dynamic groups used when type is dynamic.
- groups
List<Iacm
Ansible Inventory Group> - Manual groups used when type is manual.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- plugin
Options IacmAnsible Inventory Plugin Options - Plugin options used when type is plugin.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- type String
- Type of inventory. One of: manual, dynamic, plugin.
- vars
List<Iacm
Ansible Inventory Var> - Variables configured on the inventory.
- description string
- Description of the resource.
- dynamic
Groups IacmAnsible Inventory Dynamic Group[] - Dynamic groups used when type is dynamic.
- groups
Iacm
Ansible Inventory Group[] - Manual groups used when type is manual.
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- plugin
Options IacmAnsible Inventory Plugin Options - Plugin options used when type is plugin.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- type string
- Type of inventory. One of: manual, dynamic, plugin.
- vars
Iacm
Ansible Inventory Var[] - Variables configured on the inventory.
- description str
- Description of the resource.
- dynamic_
groups Sequence[IacmAnsible Inventory Dynamic Group Args] - Dynamic groups used when type is dynamic.
- groups
Sequence[Iacm
Ansible Inventory Group Args] - Manual groups used when type is manual.
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- plugin_
options IacmAnsible Inventory Plugin Options Args - Plugin options used when type is plugin.
- project_
id str - Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- type str
- Type of inventory. One of: manual, dynamic, plugin.
- vars
Sequence[Iacm
Ansible Inventory Var Args] - Variables configured on the inventory.
- description String
- Description of the resource.
- dynamic
Groups List<Property Map> - Dynamic groups used when type is dynamic.
- groups List<Property Map>
- Manual groups used when type is manual.
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- plugin
Options Property Map - Plugin options used when type is plugin.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- type String
- Type of inventory. One of: manual, dynamic, plugin.
- vars List<Property Map>
- Variables configured on the inventory.
Supporting Types
IacmAnsibleInventoryDynamicGroup, IacmAnsibleInventoryDynamicGroupArgs
- Connector
Identifier string - Connector identifier used by the dynamic group.
- Connector
Type string - Connector type (e.g. workspace, aws, gcp, azure, vault).
- Identifier string
- Identifier of the dynamic group.
- Name string
- Name of the dynamic group.
- Configuration
Iacm
Ansible Inventory Dynamic Group Configuration - Configuration for the dynamic group.
- Dynamic
Vars List<IacmAnsible Inventory Dynamic Group Dynamic Var> - Dynamic variables for the dynamic group.
- Vars
List<Iacm
Ansible Inventory Dynamic Group Var> - Variables for the dynamic group.
- Connector
Identifier string - Connector identifier used by the dynamic group.
- Connector
Type string - Connector type (e.g. workspace, aws, gcp, azure, vault).
- Identifier string
- Identifier of the dynamic group.
- Name string
- Name of the dynamic group.
- Configuration
Iacm
Ansible Inventory Dynamic Group Configuration - Configuration for the dynamic group.
- Dynamic
Vars []IacmAnsible Inventory Dynamic Group Dynamic Var - Dynamic variables for the dynamic group.
- Vars
[]Iacm
Ansible Inventory Dynamic Group Var - Variables for the dynamic group.
- connector_
identifier string - Connector identifier used by the dynamic group.
- connector_
type string - Connector type (e.g. workspace, aws, gcp, azure, vault).
- identifier string
- Identifier of the dynamic group.
- name string
- Name of the dynamic group.
- configuration object
- Configuration for the dynamic group.
- dynamic_
vars list(object) - Dynamic variables for the dynamic group.
- vars list(object)
- Variables for the dynamic group.
- connector
Identifier String - Connector identifier used by the dynamic group.
- connector
Type String - Connector type (e.g. workspace, aws, gcp, azure, vault).
- identifier String
- Identifier of the dynamic group.
- name String
- Name of the dynamic group.
- configuration
Iacm
Ansible Inventory Dynamic Group Configuration - Configuration for the dynamic group.
- dynamic
Vars List<IacmAnsible Inventory Dynamic Group Dynamic Var> - Dynamic variables for the dynamic group.
- vars
List<Iacm
Ansible Inventory Dynamic Group Var> - Variables for the dynamic group.
- connector
Identifier string - Connector identifier used by the dynamic group.
- connector
Type string - Connector type (e.g. workspace, aws, gcp, azure, vault).
- identifier string
- Identifier of the dynamic group.
- name string
- Name of the dynamic group.
- configuration
Iacm
Ansible Inventory Dynamic Group Configuration - Configuration for the dynamic group.
- dynamic
Vars IacmAnsible Inventory Dynamic Group Dynamic Var[] - Dynamic variables for the dynamic group.
- vars
Iacm
Ansible Inventory Dynamic Group Var[] - Variables for the dynamic group.
- connector_
identifier str - Connector identifier used by the dynamic group.
- connector_
type str - Connector type (e.g. workspace, aws, gcp, azure, vault).
- identifier str
- Identifier of the dynamic group.
- name str
- Name of the dynamic group.
- configuration
Iacm
Ansible Inventory Dynamic Group Configuration - Configuration for the dynamic group.
- dynamic_
vars Sequence[IacmAnsible Inventory Dynamic Group Dynamic Var] - Dynamic variables for the dynamic group.
- vars
Sequence[Iacm
Ansible Inventory Dynamic Group Var] - Variables for the dynamic group.
- connector
Identifier String - Connector identifier used by the dynamic group.
- connector
Type String - Connector type (e.g. workspace, aws, gcp, azure, vault).
- identifier String
- Identifier of the dynamic group.
- name String
- Name of the dynamic group.
- configuration Property Map
- Configuration for the dynamic group.
- dynamic
Vars List<Property Map> - Dynamic variables for the dynamic group.
- vars List<Property Map>
- Variables for the dynamic group.
IacmAnsibleInventoryDynamicGroupConfiguration, IacmAnsibleInventoryDynamicGroupConfigurationArgs
- Host
Address stringAttribute - Host address attribute.
- Resource
Type string - Resource type to select.
- Selectors
List<Iacm
Ansible Inventory Dynamic Group Configuration Selector> - Resource selectors.
- Host
Address stringAttribute - Host address attribute.
- Resource
Type string - Resource type to select.
- Selectors
[]Iacm
Ansible Inventory Dynamic Group Configuration Selector - Resource selectors.
- host_
address_ stringattribute - Host address attribute.
- resource_
type string - Resource type to select.
- selectors list(object)
- Resource selectors.
- host
Address StringAttribute - Host address attribute.
- resource
Type String - Resource type to select.
- selectors
List<Iacm
Ansible Inventory Dynamic Group Configuration Selector> - Resource selectors.
- host
Address stringAttribute - Host address attribute.
- resource
Type string - Resource type to select.
- selectors
Iacm
Ansible Inventory Dynamic Group Configuration Selector[] - Resource selectors.
- host_
address_ strattribute - Host address attribute.
- resource_
type str - Resource type to select.
- selectors
Sequence[Iacm
Ansible Inventory Dynamic Group Configuration Selector] - Resource selectors.
- host
Address StringAttribute - Host address attribute.
- resource
Type String - Resource type to select.
- selectors List<Property Map>
- Resource selectors.
IacmAnsibleInventoryDynamicGroupConfigurationSelector, IacmAnsibleInventoryDynamicGroupConfigurationSelectorArgs
IacmAnsibleInventoryDynamicGroupDynamicVar, IacmAnsibleInventoryDynamicGroupDynamicVarArgs
- key string
- Key is the identifier for the variable.
- value string
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type string - Value type. One of: string, secret.
- file_
name string - Filename to store the value in (used for file-backed variables).
- key str
- Key is the identifier for the variable.
- value str
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type str - Value type. One of: string, secret.
- file_
name str - Filename to store the value in (used for file-backed variables).
IacmAnsibleInventoryDynamicGroupVar, IacmAnsibleInventoryDynamicGroupVarArgs
- key string
- Key is the identifier for the variable.
- value string
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type string - Value type. One of: string, secret.
- file_
name string - Filename to store the value in (used for file-backed variables).
- key str
- Key is the identifier for the variable.
- value str
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type str - Value type. One of: string, secret.
- file_
name str - Filename to store the value in (used for file-backed variables).
IacmAnsibleInventoryGroup, IacmAnsibleInventoryGroupArgs
- Identifier string
- Identifier of the group.
- Name string
- Name of the group.
- Hosts List<string>
- List of hosts in the group.
- Vars
List<Iacm
Ansible Inventory Group Var> - Variables for the group.
- Identifier string
- Identifier of the group.
- Name string
- Name of the group.
- Hosts []string
- List of hosts in the group.
- Vars
[]Iacm
Ansible Inventory Group Var - Variables for the group.
- identifier string
- Identifier of the group.
- name string
- Name of the group.
- hosts list(string)
- List of hosts in the group.
- vars list(object)
- Variables for the group.
- identifier String
- Identifier of the group.
- name String
- Name of the group.
- hosts List<String>
- List of hosts in the group.
- vars
List<Iacm
Ansible Inventory Group Var> - Variables for the group.
- identifier string
- Identifier of the group.
- name string
- Name of the group.
- hosts string[]
- List of hosts in the group.
- vars
Iacm
Ansible Inventory Group Var[] - Variables for the group.
- identifier str
- Identifier of the group.
- name str
- Name of the group.
- hosts Sequence[str]
- List of hosts in the group.
- vars
Sequence[Iacm
Ansible Inventory Group Var] - Variables for the group.
- identifier String
- Identifier of the group.
- name String
- Name of the group.
- hosts List<String>
- List of hosts in the group.
- vars List<Property Map>
- Variables for the group.
IacmAnsibleInventoryGroupVar, IacmAnsibleInventoryGroupVarArgs
- key string
- Key is the identifier for the variable.
- value string
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type string - Value type. One of: string, secret.
- file_
name string - Filename to store the value in (used for file-backed variables).
- key str
- Key is the identifier for the variable.
- value str
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type str - Value type. One of: string, secret.
- file_
name str - Filename to store the value in (used for file-backed variables).
IacmAnsibleInventoryPluginOptions, IacmAnsibleInventoryPluginOptionsArgs
- Inline
Yaml string - Inline plugin inventory YAML content (when sourceType is inline).
- Provider
Connector stringIdentifier - Provider connector identifier for plugin inventory execution.
- Provider
Connector stringType - Provider connector type.
- Repository string
- Git repository name (when sourceType is git).
- Repository
Branch string - Git branch.
- Repository
Commit string - Git commit or tag.
- Repository
Connector string - Repository connector reference (when sourceType is git).
- Repository
Path string - Path within the repository to the plugin inventory YAML.
- Source
Type string - Source type for plugin inventory. One of: git, inline.
- Inline
Yaml string - Inline plugin inventory YAML content (when sourceType is inline).
- Provider
Connector stringIdentifier - Provider connector identifier for plugin inventory execution.
- Provider
Connector stringType - Provider connector type.
- Repository string
- Git repository name (when sourceType is git).
- Repository
Branch string - Git branch.
- Repository
Commit string - Git commit or tag.
- Repository
Connector string - Repository connector reference (when sourceType is git).
- Repository
Path string - Path within the repository to the plugin inventory YAML.
- Source
Type string - Source type for plugin inventory. One of: git, inline.
- inline_
yaml string - Inline plugin inventory YAML content (when sourceType is inline).
- provider_
connector_ stringidentifier - Provider connector identifier for plugin inventory execution.
- provider_
connector_ stringtype - Provider connector type.
- repository string
- Git repository name (when sourceType is git).
- repository_
branch string - Git branch.
- repository_
commit string - Git commit or tag.
- repository_
connector string - Repository connector reference (when sourceType is git).
- repository_
path string - Path within the repository to the plugin inventory YAML.
- source_
type string - Source type for plugin inventory. One of: git, inline.
- inline
Yaml String - Inline plugin inventory YAML content (when sourceType is inline).
- provider
Connector StringIdentifier - Provider connector identifier for plugin inventory execution.
- provider
Connector StringType - Provider connector type.
- repository String
- Git repository name (when sourceType is git).
- repository
Branch String - Git branch.
- repository
Commit String - Git commit or tag.
- repository
Connector String - Repository connector reference (when sourceType is git).
- repository
Path String - Path within the repository to the plugin inventory YAML.
- source
Type String - Source type for plugin inventory. One of: git, inline.
- inline
Yaml string - Inline plugin inventory YAML content (when sourceType is inline).
- provider
Connector stringIdentifier - Provider connector identifier for plugin inventory execution.
- provider
Connector stringType - Provider connector type.
- repository string
- Git repository name (when sourceType is git).
- repository
Branch string - Git branch.
- repository
Commit string - Git commit or tag.
- repository
Connector string - Repository connector reference (when sourceType is git).
- repository
Path string - Path within the repository to the plugin inventory YAML.
- source
Type string - Source type for plugin inventory. One of: git, inline.
- inline_
yaml str - Inline plugin inventory YAML content (when sourceType is inline).
- provider_
connector_ stridentifier - Provider connector identifier for plugin inventory execution.
- provider_
connector_ strtype - Provider connector type.
- repository str
- Git repository name (when sourceType is git).
- repository_
branch str - Git branch.
- repository_
commit str - Git commit or tag.
- repository_
connector str - Repository connector reference (when sourceType is git).
- repository_
path str - Path within the repository to the plugin inventory YAML.
- source_
type str - Source type for plugin inventory. One of: git, inline.
- inline
Yaml String - Inline plugin inventory YAML content (when sourceType is inline).
- provider
Connector StringIdentifier - Provider connector identifier for plugin inventory execution.
- provider
Connector StringType - Provider connector type.
- repository String
- Git repository name (when sourceType is git).
- repository
Branch String - Git branch.
- repository
Commit String - Git commit or tag.
- repository
Connector String - Repository connector reference (when sourceType is git).
- repository
Path String - Path within the repository to the plugin inventory YAML.
- source
Type String - Source type for plugin inventory. One of: git, inline.
IacmAnsibleInventoryVar, IacmAnsibleInventoryVarArgs
- key string
- Key is the identifier for the variable.
- value string
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type string - Value type. One of: string, secret.
- file_
name string - Filename to store the value in (used for file-backed variables).
- key str
- Key is the identifier for the variable.
- value str
- Value of the variable. For secret value types this must be a Harness secret reference.
- value_
type str - Value type. One of: string, secret.
- file_
name str - Filename to store the value in (used for file-backed variables).
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
published on Friday, May 22, 2026 by Pulumi