1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. getOpsiConfigurationConfigurationItem
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Opsi.getOpsiConfigurationConfigurationItem

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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:

    OpsiConfigType string
    Filter to return configuration items based on configuration type of OPSI configuration.
    CompartmentId string
    The OCID of the compartment.
    ConfigItemFields List<string>
    Specifies the fields to return in a config item summary.
    ConfigItemsApplicableContexts List<string>
    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.
    OpsiConfigType string
    Filter to return configuration items based on configuration type of OPSI configuration.
    CompartmentId string
    The OCID of the compartment.
    ConfigItemFields []string
    Specifies the fields to return in a config item summary.
    ConfigItemsApplicableContexts []string
    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.
    opsiConfigType String
    Filter to return configuration items based on configuration type of OPSI configuration.
    compartmentId String
    The OCID of the compartment.
    configItemFields List<String>
    Specifies the fields to return in a config item summary.
    configItemsApplicableContexts List<String>
    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.
    opsiConfigType string
    Filter to return configuration items based on configuration type of OPSI configuration.
    compartmentId string
    The OCID of the compartment.
    configItemFields string[]
    Specifies the fields to return in a config item summary.
    configItemsApplicableContexts string[]
    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_type str
    Filter to return configuration items based on configuration type of OPSI configuration.
    compartment_id str
    The OCID of the compartment.
    config_item_fields Sequence[str]
    Specifies the fields to return in a config item summary.
    config_items_applicable_contexts Sequence[str]
    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.
    opsiConfigType String
    Filter to return configuration items based on configuration type of OPSI configuration.
    compartmentId String
    The OCID of the compartment.
    configItemFields List<String>
    Specifies the fields to return in a config item summary.
    configItemsApplicableContexts List<String>
    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:

    ConfigItems List<GetOpsiConfigurationConfigurationItemConfigItem>
    Array of configuration item summary objects.
    Id string
    The provider-assigned unique ID for this managed resource.
    OpsiConfigType string
    OPSI configuration type.
    CompartmentId string
    ConfigItemFields List<string>
    ConfigItemsApplicableContexts List<string>
    Name string
    Name of configuration item.
    ConfigItems []GetOpsiConfigurationConfigurationItemConfigItem
    Array of configuration item summary objects.
    Id string
    The provider-assigned unique ID for this managed resource.
    OpsiConfigType string
    OPSI configuration type.
    CompartmentId string
    ConfigItemFields []string
    ConfigItemsApplicableContexts []string
    Name string
    Name of configuration item.
    configItems List<GetConfigurationConfigurationItemConfigItem>
    Array of configuration item summary objects.
    id String
    The provider-assigned unique ID for this managed resource.
    opsiConfigType String
    OPSI configuration type.
    compartmentId String
    configItemFields List<String>
    configItemsApplicableContexts List<String>
    name String
    Name of configuration item.
    configItems GetOpsiConfigurationConfigurationItemConfigItem[]
    Array of configuration item summary objects.
    id string
    The provider-assigned unique ID for this managed resource.
    opsiConfigType string
    OPSI configuration type.
    compartmentId string
    configItemFields string[]
    configItemsApplicableContexts string[]
    name string
    Name of configuration item.
    config_items Sequence[opsi.GetOpsiConfigurationConfigurationItemConfigItem]
    Array of configuration item summary objects.
    id str
    The provider-assigned unique ID for this managed resource.
    opsi_config_type str
    OPSI configuration type.
    compartment_id str
    config_item_fields Sequence[str]
    config_items_applicable_contexts Sequence[str]
    name str
    Name of configuration item.
    configItems List<Property Map>
    Array of configuration item summary objects.
    id String
    The provider-assigned unique ID for this managed resource.
    opsiConfigType String
    OPSI configuration type.
    compartmentId String
    configItemFields List<String>
    configItemsApplicableContexts List<String>
    name String
    Name of configuration item.

    Supporting Types

    GetOpsiConfigurationConfigurationItemConfigItem

    ApplicableContexts List<string>
    List of contexts in Operations Insights where this configuration item is applicable.
    ConfigItemType string
    Type of configuration item.
    DefaultValue string
    Value of configuration item.
    Metadatas List<GetOpsiConfigurationConfigurationItemConfigItemMetadata>
    Configuration item metadata.
    Name string
    A filter to return only configuration items that match the entire name.
    Value string
    Value of configuration item.
    ValueSourceConfig string
    Source configuration from where the value is taken for a configuration item.
    ApplicableContexts []string
    List of contexts in Operations Insights where this configuration item is applicable.
    ConfigItemType string
    Type of configuration item.
    DefaultValue string
    Value of configuration item.
    Metadatas []GetOpsiConfigurationConfigurationItemConfigItemMetadata
    Configuration item metadata.
    Name string
    A filter to return only configuration items that match the entire name.
    Value string
    Value of configuration item.
    ValueSourceConfig string
    Source configuration from where the value is taken for a configuration item.
    applicableContexts List<String>
    List of contexts in Operations Insights where this configuration item is applicable.
    configItemType String
    Type of configuration item.
    defaultValue String
    Value of configuration item.
    metadatas List<GetConfigurationConfigurationItemConfigItemMetadata>
    Configuration item metadata.
    name String
    A filter to return only configuration items that match the entire name.
    value String
    Value of configuration item.
    valueSourceConfig String
    Source configuration from where the value is taken for a configuration item.
    applicableContexts string[]
    List of contexts in Operations Insights where this configuration item is applicable.
    configItemType string
    Type of configuration item.
    defaultValue string
    Value of configuration item.
    metadatas GetOpsiConfigurationConfigurationItemConfigItemMetadata[]
    Configuration item metadata.
    name string
    A filter to return only configuration items that match the entire name.
    value string
    Value of configuration item.
    valueSourceConfig string
    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_type str
    Type of configuration item.
    default_value str
    Value of configuration item.
    metadatas Sequence[opsi.GetOpsiConfigurationConfigurationItemConfigItemMetadata]
    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_config str
    Source configuration from where the value is taken for a configuration item.
    applicableContexts List<String>
    List of contexts in Operations Insights where this configuration item is applicable.
    configItemType String
    Type of configuration item.
    defaultValue 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.
    valueSourceConfig String
    Source configuration from where the value is taken for a configuration item.

    GetOpsiConfigurationConfigurationItemConfigItemMetadata

    ConfigItemType string
    Type of configuration item.
    DataType string
    Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
    Description string
    Description of configuration item .
    DisplayName string
    User-friendly display name for the configuration item unit.
    UnitDetails List<GetOpsiConfigurationConfigurationItemConfigItemMetadataUnitDetail>
    Unit details of configuration item.
    ValueInputDetails List<GetOpsiConfigurationConfigurationItemConfigItemMetadataValueInputDetail>
    Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
    ConfigItemType string
    Type of configuration item.
    DataType string
    Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
    Description string
    Description of configuration item .
    DisplayName string
    User-friendly display name for the configuration item unit.
    UnitDetails []GetOpsiConfigurationConfigurationItemConfigItemMetadataUnitDetail
    Unit details of configuration item.
    ValueInputDetails []GetOpsiConfigurationConfigurationItemConfigItemMetadataValueInputDetail
    Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
    configItemType String
    Type of configuration item.
    dataType String
    Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
    description String
    Description of configuration item .
    displayName String
    User-friendly display name for the configuration item unit.
    unitDetails List<GetConfigurationConfigurationItemConfigItemMetadataUnitDetail>
    Unit details of configuration item.
    valueInputDetails List<GetConfigurationConfigurationItemConfigItemMetadataValueInputDetail>
    Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
    configItemType string
    Type of configuration item.
    dataType string
    Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
    description string
    Description of configuration item .
    displayName string
    User-friendly display name for the configuration item unit.
    unitDetails GetOpsiConfigurationConfigurationItemConfigItemMetadataUnitDetail[]
    Unit details of configuration item.
    valueInputDetails GetOpsiConfigurationConfigurationItemConfigItemMetadataValueInputDetail[]
    Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
    config_item_type str
    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.GetOpsiConfigurationConfigurationItemConfigItemMetadataUnitDetail]
    Unit details of configuration item.
    value_input_details Sequence[opsi.GetOpsiConfigurationConfigurationItemConfigItemMetadataValueInputDetail]
    Allowed value details of configuration item, to validate what value can be assigned to a configuration item.
    configItemType String
    Type of configuration item.
    dataType String
    Data type of configuration item. Examples: STRING, BOOLEAN, NUMBER
    description String
    Description of configuration item .
    displayName String
    User-friendly display name for the configuration item unit.
    unitDetails List<Property Map>
    Unit details of configuration item.
    valueInputDetails List<Property Map>
    Allowed value details of configuration item, to validate what value can be assigned to a configuration item.

    GetOpsiConfigurationConfigurationItemConfigItemMetadataUnitDetail

    DisplayName string
    User-friendly display name for the configuration item unit.
    Unit string
    Unit of configuration item.
    DisplayName string
    User-friendly display name for the configuration item unit.
    Unit string
    Unit of configuration item.
    displayName String
    User-friendly display name for the configuration item unit.
    unit String
    Unit of configuration item.
    displayName 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.
    displayName String
    User-friendly display name for the configuration item unit.
    unit String
    Unit of configuration item.

    GetOpsiConfigurationConfigurationItemConfigItemMetadataValueInputDetail

    AllowedValueType string
    Allowed value type of configuration item.
    MaxValue string
    Maximum value limit for the configuration item.
    MinValue string
    Minimum value limit for the configuration item.
    PossibleValues List<string>
    Allowed values to pick for the configuration item.
    AllowedValueType string
    Allowed value type of configuration item.
    MaxValue string
    Maximum value limit for the configuration item.
    MinValue string
    Minimum value limit for the configuration item.
    PossibleValues []string
    Allowed values to pick for the configuration item.
    allowedValueType String
    Allowed value type of configuration item.
    maxValue String
    Maximum value limit for the configuration item.
    minValue String
    Minimum value limit for the configuration item.
    possibleValues List<String>
    Allowed values to pick for the configuration item.
    allowedValueType string
    Allowed value type of configuration item.
    maxValue string
    Maximum value limit for the configuration item.
    minValue string
    Minimum value limit for the configuration item.
    possibleValues string[]
    Allowed values to pick for the configuration item.
    allowed_value_type str
    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.
    allowedValueType String
    Allowed value type of configuration item.
    maxValue String
    Maximum value limit for the configuration item.
    minValue String
    Minimum value limit for the configuration item.
    possibleValues 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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi