ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getSchematicsInventory
Explore with Pulumi AI
Retrieve information about the Schematics inventory. For more information, about Schematics action inventories, see Creating resource inventories for Schematics actions.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const schematicsInventory = ibm.getSchematicsInventory({
inventoryId: "inventory_id",
});
import pulumi
import pulumi_ibm as ibm
schematics_inventory = ibm.get_schematics_inventory(inventory_id="inventory_id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.LookupSchematicsInventory(ctx, &ibm.LookupSchematicsInventoryArgs{
InventoryId: "inventory_id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var schematicsInventory = Ibm.GetSchematicsInventory.Invoke(new()
{
InventoryId = "inventory_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetSchematicsInventoryArgs;
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) {
final var schematicsInventory = IbmFunctions.getSchematicsInventory(GetSchematicsInventoryArgs.builder()
.inventoryId("inventory_id")
.build());
}
}
variables:
schematicsInventory:
fn::invoke:
function: ibm:getSchematicsInventory
arguments:
inventoryId: inventory_id
Using getSchematicsInventory
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSchematicsInventory(args: GetSchematicsInventoryArgs, opts?: InvokeOptions): Promise<GetSchematicsInventoryResult>
function getSchematicsInventoryOutput(args: GetSchematicsInventoryOutputArgs, opts?: InvokeOptions): Output<GetSchematicsInventoryResult>
def get_schematics_inventory(inventory_id: Optional[str] = None,
location: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchematicsInventoryResult
def get_schematics_inventory_output(inventory_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchematicsInventoryResult]
func LookupSchematicsInventory(ctx *Context, args *LookupSchematicsInventoryArgs, opts ...InvokeOption) (*LookupSchematicsInventoryResult, error)
func LookupSchematicsInventoryOutput(ctx *Context, args *LookupSchematicsInventoryOutputArgs, opts ...InvokeOption) LookupSchematicsInventoryResultOutput
> Note: This function is named LookupSchematicsInventory
in the Go SDK.
public static class GetSchematicsInventory
{
public static Task<GetSchematicsInventoryResult> InvokeAsync(GetSchematicsInventoryArgs args, InvokeOptions? opts = null)
public static Output<GetSchematicsInventoryResult> Invoke(GetSchematicsInventoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchematicsInventoryResult> getSchematicsInventory(GetSchematicsInventoryArgs args, InvokeOptions options)
public static Output<GetSchematicsInventoryResult> getSchematicsInventory(GetSchematicsInventoryArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getSchematicsInventory:getSchematicsInventory
arguments:
# arguments dictionary
The following arguments are supported:
- Inventory
Id string - Resource Inventory Id. Use
GET /v2/inventories
API to look up the Resource Inventory definition Ids in your IBM Cloud account. - Location string
- Location supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de
- Inventory
Id string - Resource Inventory Id. Use
GET /v2/inventories
API to look up the Resource Inventory definition Ids in your IBM Cloud account. - Location string
- Location supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de
- inventory
Id String - Resource Inventory Id. Use
GET /v2/inventories
API to look up the Resource Inventory definition Ids in your IBM Cloud account. - location String
- Location supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de
- inventory
Id string - Resource Inventory Id. Use
GET /v2/inventories
API to look up the Resource Inventory definition Ids in your IBM Cloud account. - location string
- Location supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de
- inventory_
id str - Resource Inventory Id. Use
GET /v2/inventories
API to look up the Resource Inventory definition Ids in your IBM Cloud account. - location str
- Location supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de
- inventory
Id String - Resource Inventory Id. Use
GET /v2/inventories
API to look up the Resource Inventory definition Ids in your IBM Cloud account. - location String
- Location supported by IBM Cloud Schematics service. While creating your workspace or action, choose the right region, since it cannot be changed. Note, this does not limit the location of the IBM Cloud resources, provisioned using Schematics.
- Constraints: Allowable values are: us-south, us-east, eu-gb, eu-de
getSchematicsInventory Result
The following output properties are available:
- Created
At string - (String) The inventory creation time.
- Created
By string - (String) The Email address of user who created the Inventory.
- Description string
- (String) The description of your inventory. The description can be up to
2048
characters long in size. - Id string
- (String) The inventory ID.
- Inventories
Ini string - (String) Input inventory of host and host group for the playbook, in the .ini file format.
- Inventory
Id string - Location string
- Name string
- (String) The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.
- Resource
Group string - (String) The resource group name for the inventory definition. By default, inventory will be created in Default Resource Group.
- Resource
Queries List<string> - (List) Input resource queries that is used to dynamically generate the inventory of host and host group for the playbook.
- Updated
At string - (String) The inventory updation time.
- Updated
By string - (String) The Email address of user who updated the inventory.
- Created
At string - (String) The inventory creation time.
- Created
By string - (String) The Email address of user who created the Inventory.
- Description string
- (String) The description of your inventory. The description can be up to
2048
characters long in size. - Id string
- (String) The inventory ID.
- Inventories
Ini string - (String) Input inventory of host and host group for the playbook, in the .ini file format.
- Inventory
Id string - Location string
- Name string
- (String) The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.
- Resource
Group string - (String) The resource group name for the inventory definition. By default, inventory will be created in Default Resource Group.
- Resource
Queries []string - (List) Input resource queries that is used to dynamically generate the inventory of host and host group for the playbook.
- Updated
At string - (String) The inventory updation time.
- Updated
By string - (String) The Email address of user who updated the inventory.
- created
At String - (String) The inventory creation time.
- created
By String - (String) The Email address of user who created the Inventory.
- description String
- (String) The description of your inventory. The description can be up to
2048
characters long in size. - id String
- (String) The inventory ID.
- inventories
Ini String - (String) Input inventory of host and host group for the playbook, in the .ini file format.
- inventory
Id String - location String
- name String
- (String) The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.
- resource
Group String - (String) The resource group name for the inventory definition. By default, inventory will be created in Default Resource Group.
- resource
Queries List<String> - (List) Input resource queries that is used to dynamically generate the inventory of host and host group for the playbook.
- updated
At String - (String) The inventory updation time.
- updated
By String - (String) The Email address of user who updated the inventory.
- created
At string - (String) The inventory creation time.
- created
By string - (String) The Email address of user who created the Inventory.
- description string
- (String) The description of your inventory. The description can be up to
2048
characters long in size. - id string
- (String) The inventory ID.
- inventories
Ini string - (String) Input inventory of host and host group for the playbook, in the .ini file format.
- inventory
Id string - location string
- name string
- (String) The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.
- resource
Group string - (String) The resource group name for the inventory definition. By default, inventory will be created in Default Resource Group.
- resource
Queries string[] - (List) Input resource queries that is used to dynamically generate the inventory of host and host group for the playbook.
- updated
At string - (String) The inventory updation time.
- updated
By string - (String) The Email address of user who updated the inventory.
- created_
at str - (String) The inventory creation time.
- created_
by str - (String) The Email address of user who created the Inventory.
- description str
- (String) The description of your inventory. The description can be up to
2048
characters long in size. - id str
- (String) The inventory ID.
- inventories_
ini str - (String) Input inventory of host and host group for the playbook, in the .ini file format.
- inventory_
id str - location str
- name str
- (String) The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.
- resource_
group str - (String) The resource group name for the inventory definition. By default, inventory will be created in Default Resource Group.
- resource_
queries Sequence[str] - (List) Input resource queries that is used to dynamically generate the inventory of host and host group for the playbook.
- updated_
at str - (String) The inventory updation time.
- updated_
by str - (String) The Email address of user who updated the inventory.
- created
At String - (String) The inventory creation time.
- created
By String - (String) The Email address of user who created the Inventory.
- description String
- (String) The description of your inventory. The description can be up to
2048
characters long in size. - id String
- (String) The inventory ID.
- inventories
Ini String - (String) Input inventory of host and host group for the playbook, in the .ini file format.
- inventory
Id String - location String
- name String
- (String) The unique name of your Inventory. The name can be up to 128 characters long and can include alphanumeric characters, spaces, dashes, and underscores.
- resource
Group String - (String) The resource group name for the inventory definition. By default, inventory will be created in Default Resource Group.
- resource
Queries List<String> - (List) Input resource queries that is used to dynamically generate the inventory of host and host group for the playbook.
- updated
At String - (String) The inventory updation time.
- updated
By String - (String) The Email address of user who updated the inventory.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.