oci.Opsi.getOpsiConfigurationConfigurationItem
Explore with Pulumi AI
This data source provides details about a specific Opsi Configuration Configuration Item resource in Oracle Cloud Infrastructure Opsi service.
Gets the applicable configuration items based on the query parameters specified. Configuration items for an opsiConfigType with respect to a compartmentId can be fetched. Values specified in configItemField param will determine what fields for each configuration items have to be returned.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOpsiConfigurationConfigurationItem = oci.Opsi.getOpsiConfigurationConfigurationItem({
compartmentId: compartmentId,
configItemFields: opsiConfigurationConfigurationItemConfigItemField,
configItemsApplicableContexts: opsiConfigurationConfigurationItemConfigItemsApplicableContext,
name: opsiConfigurationConfigurationItemName,
opsiConfigType: opsiConfigurationConfigurationItemOpsiConfigType,
});
import pulumi
import pulumi_oci as oci
test_opsi_configuration_configuration_item = oci.Opsi.get_opsi_configuration_configuration_item(compartment_id=compartment_id,
config_item_fields=opsi_configuration_configuration_item_config_item_field,
config_items_applicable_contexts=opsi_configuration_configuration_item_config_items_applicable_context,
name=opsi_configuration_configuration_item_name,
opsi_config_type=opsi_configuration_configuration_item_opsi_config_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Opsi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Opsi.GetOpsiConfigurationConfigurationItem(ctx, &opsi.GetOpsiConfigurationConfigurationItemArgs{
CompartmentId: pulumi.StringRef(compartmentId),
ConfigItemFields: opsiConfigurationConfigurationItemConfigItemField,
ConfigItemsApplicableContexts: opsiConfigurationConfigurationItemConfigItemsApplicableContext,
Name: pulumi.StringRef(opsiConfigurationConfigurationItemName),
OpsiConfigType: opsiConfigurationConfigurationItemOpsiConfigType,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testOpsiConfigurationConfigurationItem = Oci.Opsi.GetOpsiConfigurationConfigurationItem.Invoke(new()
{
CompartmentId = compartmentId,
ConfigItemFields = opsiConfigurationConfigurationItemConfigItemField,
ConfigItemsApplicableContexts = opsiConfigurationConfigurationItemConfigItemsApplicableContext,
Name = opsiConfigurationConfigurationItemName,
OpsiConfigType = opsiConfigurationConfigurationItemOpsiConfigType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opsi.OpsiFunctions;
import com.pulumi.oci.Opsi.inputs.GetOpsiConfigurationConfigurationItemArgs;
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 testOpsiConfigurationConfigurationItem = OpsiFunctions.getOpsiConfigurationConfigurationItem(GetOpsiConfigurationConfigurationItemArgs.builder()
.compartmentId(compartmentId)
.configItemFields(opsiConfigurationConfigurationItemConfigItemField)
.configItemsApplicableContexts(opsiConfigurationConfigurationItemConfigItemsApplicableContext)
.name(opsiConfigurationConfigurationItemName)
.opsiConfigType(opsiConfigurationConfigurationItemOpsiConfigType)
.build());
}
}
variables:
testOpsiConfigurationConfigurationItem:
fn::invoke:
Function: oci:Opsi:getOpsiConfigurationConfigurationItem
Arguments:
compartmentId: ${compartmentId}
configItemFields: ${opsiConfigurationConfigurationItemConfigItemField}
configItemsApplicableContexts: ${opsiConfigurationConfigurationItemConfigItemsApplicableContext}
name: ${opsiConfigurationConfigurationItemName}
opsiConfigType: ${opsiConfigurationConfigurationItemOpsiConfigType}
Using getOpsiConfigurationConfigurationItem
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 getOpsiConfigurationConfigurationItem(args: GetOpsiConfigurationConfigurationItemArgs, opts?: InvokeOptions): Promise<GetOpsiConfigurationConfigurationItemResult>
function getOpsiConfigurationConfigurationItemOutput(args: GetOpsiConfigurationConfigurationItemOutputArgs, opts?: InvokeOptions): Output<GetOpsiConfigurationConfigurationItemResult>
def get_opsi_configuration_configuration_item(compartment_id: Optional[str] = None,
config_item_fields: Optional[Sequence[str]] = None,
config_items_applicable_contexts: Optional[Sequence[str]] = None,
name: Optional[str] = None,
opsi_config_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOpsiConfigurationConfigurationItemResult
def get_opsi_configuration_configuration_item_output(compartment_id: Optional[pulumi.Input[str]] = None,
config_item_fields: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
config_items_applicable_contexts: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opsi_config_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOpsiConfigurationConfigurationItemResult]
func GetOpsiConfigurationConfigurationItem(ctx *Context, args *GetOpsiConfigurationConfigurationItemArgs, opts ...InvokeOption) (*GetOpsiConfigurationConfigurationItemResult, error)
func GetOpsiConfigurationConfigurationItemOutput(ctx *Context, args *GetOpsiConfigurationConfigurationItemOutputArgs, opts ...InvokeOption) GetOpsiConfigurationConfigurationItemResultOutput
> Note: This function is named GetOpsiConfigurationConfigurationItem
in the Go SDK.
public static class GetOpsiConfigurationConfigurationItem
{
public static Task<GetOpsiConfigurationConfigurationItemResult> InvokeAsync(GetOpsiConfigurationConfigurationItemArgs args, InvokeOptions? opts = null)
public static Output<GetOpsiConfigurationConfigurationItemResult> Invoke(GetOpsiConfigurationConfigurationItemInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOpsiConfigurationConfigurationItemResult> getOpsiConfigurationConfigurationItem(GetOpsiConfigurationConfigurationItemArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Opsi/getOpsiConfigurationConfigurationItem:getOpsiConfigurationConfigurationItem
arguments:
# arguments dictionary
The following arguments are supported:
- Opsi
Config stringType - Filter to return configuration items based on configuration type of OPSI configuration.
- Compartment
Id string - The OCID of the compartment.
- Config
Item List<string>Fields - Specifies the fields to return in a config item summary.
- Config
Items List<string>Applicable Contexts - Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned.
- Name string
- A filter to return only configuration items that match the entire name.
- Opsi
Config stringType - Filter to return configuration items based on configuration type of OPSI configuration.
- Compartment
Id string - The OCID of the compartment.
- Config
Item []stringFields - Specifies the fields to return in a config item summary.
- Config
Items []stringApplicable Contexts - Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned.
- Name string
- A filter to return only configuration items that match the entire name.
- opsi
Config StringType - Filter to return configuration items based on configuration type of OPSI configuration.
- compartment
Id String - The OCID of the compartment.
- config
Item List<String>Fields - Specifies the fields to return in a config item summary.
- config
Items List<String>Applicable Contexts - Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned.
- name String
- A filter to return only configuration items that match the entire name.
- opsi
Config stringType - Filter to return configuration items based on configuration type of OPSI configuration.
- compartment
Id string - The OCID of the compartment.
- config
Item string[]Fields - Specifies the fields to return in a config item summary.
- config
Items string[]Applicable Contexts - Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned.
- name string
- A filter to return only configuration items that match the entire name.
- opsi_
config_ strtype - Filter to return configuration items based on configuration type of OPSI configuration.
- compartment_
id str - The OCID of the compartment.
- config_
item_ Sequence[str]fields - Specifies the fields to return in a config item summary.
- config_
items_ Sequence[str]applicable_ contexts - Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned.
- name str
- A filter to return only configuration items that match the entire name.
- opsi
Config StringType - Filter to return configuration items based on configuration type of OPSI configuration.
- compartment
Id String - The OCID of the compartment.
- config
Item List<String>Fields - Specifies the fields to return in a config item summary.
- config
Items List<String>Applicable Contexts - Returns the configuration items filtered by applicable contexts sent in this param. By default configuration items of all applicable contexts are returned.
- name String
- A filter to return only configuration items that match the entire name.
getOpsiConfigurationConfigurationItem Result
The following output properties are available:
- Config
Items List<GetOpsi Configuration Configuration Item Config Item> - Array of configuration item summary objects.
- Id string
- The provider-assigned unique ID for this managed resource.
- Opsi
Config stringType - OPSI configuration type.
- Compartment
Id string - Config
Item List<string>Fields - Config
Items List<string>Applicable Contexts - Name string
- Name of configuration item.
- Config
Items []GetOpsi Configuration Configuration Item Config Item - Array of configuration item summary objects.
- Id string
- The provider-assigned unique ID for this managed resource.
- Opsi
Config stringType - OPSI configuration type.
- Compartment
Id string - Config
Item []stringFields - Config
Items []stringApplicable Contexts - Name string
- Name of configuration item.
- config
Items List<GetConfiguration Configuration Item Config Item> - Array of configuration item summary objects.
- id String
- The provider-assigned unique ID for this managed resource.
- opsi
Config StringType - OPSI configuration type.
- compartment
Id String - config
Item List<String>Fields - config
Items List<String>Applicable Contexts - name String
- Name of configuration item.
- config
Items GetOpsi Configuration Configuration Item Config Item[] - Array of configuration item summary objects.
- id string
- The provider-assigned unique ID for this managed resource.
- opsi
Config stringType - OPSI configuration type.
- compartment
Id string - config
Item string[]Fields - config
Items string[]Applicable Contexts - name string
- Name of configuration item.
- config_
items Sequence[opsi.Get Opsi Configuration Configuration Item Config Item] - Array of configuration item summary objects.
- id str
- The provider-assigned unique ID for this managed resource.
- opsi_
config_ strtype - OPSI configuration type.
- compartment_
id str - config_
item_ Sequence[str]fields - config_
items_ Sequence[str]applicable_ contexts - name str
- Name of configuration item.
- config
Items List<Property Map> - Array of configuration item summary objects.
- id String
- The provider-assigned unique ID for this managed resource.
- opsi
Config StringType - OPSI configuration type.
- compartment
Id String - config
Item List<String>Fields - config
Items List<String>Applicable Contexts - name String
- Name of configuration item.
Supporting Types
GetOpsiConfigurationConfigurationItemConfigItem
- Applicable
Contexts List<string> - List of contexts in Operations Insights where this configuration item is applicable.
- Config
Item stringType - Type of configuration item.
- Default
Value string - Value of configuration item.
- Metadatas
List<Get
Opsi Configuration Configuration Item Config Item Metadata> - Configuration item metadata.
- Name string
- A filter to return only configuration items that match the entire name.
- Value string
- Value of configuration item.
- Value
Source stringConfig - Source configuration from where the value is taken for a configuration item.
- Applicable
Contexts []string - List of contexts in Operations Insights where this configuration item is applicable.
- Config
Item stringType - Type of configuration item.
- Default
Value string - Value of configuration item.
- Metadatas
[]Get
Opsi Configuration Configuration Item Config Item Metadata - Configuration item metadata.
- Name string
- A filter to return only configuration items that match the entire name.
- Value string
- Value of configuration item.
- Value
Source stringConfig - Source configuration from where the value is taken for a configuration item.
- applicable
Contexts List<String> - List of contexts in Operations Insights where this configuration item is applicable.
- config
Item StringType - Type of configuration item.
- default
Value String - Value of configuration item.
- metadatas
List<Get
Configuration Configuration Item Config Item Metadata> - Configuration item metadata.
- name String
- A filter to return only configuration items that match the entire name.
- value String
- Value of configuration item.
- value
Source StringConfig - Source configuration from where the value is taken for a configuration item.
- applicable
Contexts string[] - List of contexts in Operations Insights where this configuration item is applicable.
- config
Item stringType - Type of configuration item.
- default
Value string - Value of configuration item.
- metadatas
Get
Opsi Configuration Configuration Item Config Item Metadata[] - Configuration item metadata.
- name string
- A filter to return only configuration items that match the entire name.
- value string
- Value of configuration item.
- value
Source stringConfig - Source configuration from where the value is taken for a configuration item.
- applicable_
contexts Sequence[str] - List of contexts in Operations Insights where this configuration item is applicable.
- config_
item_ strtype - Type of configuration item.
- default_
value str - Value of configuration item.
- metadatas
Sequence[opsi.
Get Opsi Configuration Configuration Item Config Item Metadata] - Configuration item metadata.
- name str
- A filter to return only configuration items that match the entire name.
- value str
- Value of configuration item.
- value_
source_ strconfig - Source configuration from where the value is taken for a configuration item.
- applicable
Contexts List<String> - List of contexts in Operations Insights where this configuration item is applicable.
- config
Item StringType - Type of configuration item.
- default
Value String - Value of configuration item.
- metadatas List<Property Map>
- Configuration item metadata.
- name String
- A filter to return only configuration items that match the entire name.
- value String
- Value of configuration item.
- value
Source StringConfig - Source configuration from where the value is taken for a configuration item.
GetOpsiConfigurationConfigurationItemConfigItemMetadata
- Config
Item stringType - Type of configuration item.
- Data
Type string - Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
- Description string
- Description of configuration item .
- Display
Name string - User-friendly display name for the configuration item unit.
- Unit
Details List<GetOpsi Configuration Configuration Item Config Item Metadata Unit Detail> - Unit details of configuration item.
- Value
Input List<GetDetails Opsi Configuration Configuration Item Config Item Metadata Value Input Detail> - Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
- Config
Item stringType - Type of configuration item.
- Data
Type string - Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
- Description string
- Description of configuration item .
- Display
Name string - User-friendly display name for the configuration item unit.
- Unit
Details []GetOpsi Configuration Configuration Item Config Item Metadata Unit Detail - Unit details of configuration item.
- Value
Input []GetDetails Opsi Configuration Configuration Item Config Item Metadata Value Input Detail - Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
- config
Item StringType - Type of configuration item.
- data
Type String - Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
- description String
- Description of configuration item .
- display
Name String - User-friendly display name for the configuration item unit.
- unit
Details List<GetConfiguration Configuration Item Config Item Metadata Unit Detail> - Unit details of configuration item.
- value
Input List<GetDetails Configuration Configuration Item Config Item Metadata Value Input Detail> - Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
- config
Item stringType - Type of configuration item.
- data
Type string - Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
- description string
- Description of configuration item .
- display
Name string - User-friendly display name for the configuration item unit.
- unit
Details GetOpsi Configuration Configuration Item Config Item Metadata Unit Detail[] - Unit details of configuration item.
- value
Input GetDetails Opsi Configuration Configuration Item Config Item Metadata Value Input Detail[] - Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
- config_
item_ strtype - Type of configuration item.
- data_
type str - Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
- description str
- Description of configuration item .
- display_
name str - User-friendly display name for the configuration item unit.
- unit_
details Sequence[opsi.Get Opsi Configuration Configuration Item Config Item Metadata Unit Detail] - Unit details of configuration item.
- value_
input_ Sequence[opsi.details Get Opsi Configuration Configuration Item Config Item Metadata Value Input Detail] - Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
- config
Item StringType - Type of configuration item.
- data
Type String - Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
- description String
- Description of configuration item .
- display
Name String - User-friendly display name for the configuration item unit.
- unit
Details List<Property Map> - Unit details of configuration item.
- value
Input List<Property Map>Details - Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
GetOpsiConfigurationConfigurationItemConfigItemMetadataUnitDetail
- Display
Name string - User-friendly display name for the configuration item unit.
- Unit string
- Unit of configuration item.
- Display
Name string - User-friendly display name for the configuration item unit.
- Unit string
- Unit of configuration item.
- display
Name String - User-friendly display name for the configuration item unit.
- unit String
- Unit of configuration item.
- display
Name string - User-friendly display name for the configuration item unit.
- unit string
- Unit of configuration item.
- display_
name str - User-friendly display name for the configuration item unit.
- unit str
- Unit of configuration item.
- display
Name String - User-friendly display name for the configuration item unit.
- unit String
- Unit of configuration item.
GetOpsiConfigurationConfigurationItemConfigItemMetadataValueInputDetail
- Allowed
Value stringType - Allowed value type of configuration item.
- Max
Value string - Maximum value limit for the configuration item.
- Min
Value string - Minimum value limit for the configuration item.
- Possible
Values List<string> - Allowed values to pick for the configuration item.
- Allowed
Value stringType - Allowed value type of configuration item.
- Max
Value string - Maximum value limit for the configuration item.
- Min
Value string - Minimum value limit for the configuration item.
- Possible
Values []string - Allowed values to pick for the configuration item.
- allowed
Value StringType - Allowed value type of configuration item.
- max
Value String - Maximum value limit for the configuration item.
- min
Value String - Minimum value limit for the configuration item.
- possible
Values List<String> - Allowed values to pick for the configuration item.
- allowed
Value stringType - Allowed value type of configuration item.
- max
Value string - Maximum value limit for the configuration item.
- min
Value string - Minimum value limit for the configuration item.
- possible
Values string[] - Allowed values to pick for the configuration item.
- allowed_
value_ strtype - Allowed value type of configuration item.
- max_
value str - Maximum value limit for the configuration item.
- min_
value str - Minimum value limit for the configuration item.
- possible_
values Sequence[str] - Allowed values to pick for the configuration item.
- allowed
Value StringType - Allowed value type of configuration item.
- max
Value String - Maximum value limit for the configuration item.
- min
Value String - Minimum value limit for the configuration item.
- possible
Values List<String> - Allowed values to pick for the configuration item.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.