1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getConfigs
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.StackMonitoring.getConfigs

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source provides the list of Configs in Oracle Cloud Infrastructure Stack Monitoring service.

    Get a list of configurations in a compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testConfigs = oci.StackMonitoring.getConfigs({
        compartmentId: compartmentId,
        displayName: configDisplayName,
        state: configState,
        type: configType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_configs = oci.StackMonitoring.get_configs(compartment_id=compartment_id,
        display_name=config_display_name,
        state=config_state,
        type=config_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/StackMonitoring"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := StackMonitoring.GetConfigs(ctx, &stackmonitoring.GetConfigsArgs{
    			CompartmentId: compartmentId,
    			DisplayName:   pulumi.StringRef(configDisplayName),
    			State:         pulumi.StringRef(configState),
    			Type:          pulumi.StringRef(configType),
    		}, 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 testConfigs = Oci.StackMonitoring.GetConfigs.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = configDisplayName,
            State = configState,
            Type = configType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.StackMonitoring.StackMonitoringFunctions;
    import com.pulumi.oci.StackMonitoring.inputs.GetConfigsArgs;
    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 testConfigs = StackMonitoringFunctions.getConfigs(GetConfigsArgs.builder()
                .compartmentId(compartmentId)
                .displayName(configDisplayName)
                .state(configState)
                .type(configType)
                .build());
    
        }
    }
    
    variables:
      testConfigs:
        fn::invoke:
          Function: oci:StackMonitoring:getConfigs
          Arguments:
            compartmentId: ${compartmentId}
            displayName: ${configDisplayName}
            state: ${configState}
            type: ${configType}
    

    Using getConfigs

    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 getConfigs(args: GetConfigsArgs, opts?: InvokeOptions): Promise<GetConfigsResult>
    function getConfigsOutput(args: GetConfigsOutputArgs, opts?: InvokeOptions): Output<GetConfigsResult>
    def get_configs(compartment_id: Optional[str] = None,
                    display_name: Optional[str] = None,
                    filters: Optional[Sequence[_stackmonitoring.GetConfigsFilter]] = None,
                    state: Optional[str] = None,
                    type: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetConfigsResult
    def get_configs_output(compartment_id: Optional[pulumi.Input[str]] = None,
                    display_name: Optional[pulumi.Input[str]] = None,
                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[_stackmonitoring.GetConfigsFilterArgs]]]] = None,
                    state: Optional[pulumi.Input[str]] = None,
                    type: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetConfigsResult]
    func GetConfigs(ctx *Context, args *GetConfigsArgs, opts ...InvokeOption) (*GetConfigsResult, error)
    func GetConfigsOutput(ctx *Context, args *GetConfigsOutputArgs, opts ...InvokeOption) GetConfigsResultOutput

    > Note: This function is named GetConfigs in the Go SDK.

    public static class GetConfigs 
    {
        public static Task<GetConfigsResult> InvokeAsync(GetConfigsArgs args, InvokeOptions? opts = null)
        public static Output<GetConfigsResult> Invoke(GetConfigsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConfigsResult> getConfigs(GetConfigsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:StackMonitoring/getConfigs:getConfigs
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which data is listed.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetConfigsFilter>
    State string
    The current state of the Config.
    Type string
    A filter to return only configuration items for a given config type. The only valid config type is "AUTO_PROMOTE"
    CompartmentId string
    The ID of the compartment in which data is listed.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetConfigsFilter
    State string
    The current state of the Config.
    Type string
    A filter to return only configuration items for a given config type. The only valid config type is "AUTO_PROMOTE"
    compartmentId String
    The ID of the compartment in which data is listed.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetConfigsFilter>
    state String
    The current state of the Config.
    type String
    A filter to return only configuration items for a given config type. The only valid config type is "AUTO_PROMOTE"
    compartmentId string
    The ID of the compartment in which data is listed.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetConfigsFilter[]
    state string
    The current state of the Config.
    type string
    A filter to return only configuration items for a given config type. The only valid config type is "AUTO_PROMOTE"
    compartment_id str
    The ID of the compartment in which data is listed.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[stackmonitoring.GetConfigsFilter]
    state str
    The current state of the Config.
    type str
    A filter to return only configuration items for a given config type. The only valid config type is "AUTO_PROMOTE"
    compartmentId String
    The ID of the compartment in which data is listed.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    state String
    The current state of the Config.
    type String
    A filter to return only configuration items for a given config type. The only valid config type is "AUTO_PROMOTE"

    getConfigs Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment containing the configuration.
    ConfigCollections List<GetConfigsConfigCollection>
    The list of config_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    Filters List<GetConfigsFilter>
    State string
    The current state of the configuration.
    Type string
    CompartmentId string
    The OCID of the compartment containing the configuration.
    ConfigCollections []GetConfigsConfigCollection
    The list of config_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    Filters []GetConfigsFilter
    State string
    The current state of the configuration.
    Type string
    compartmentId String
    The OCID of the compartment containing the configuration.
    configCollections List<GetConfigsConfigCollection>
    The list of config_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filters List<GetConfigsFilter>
    state String
    The current state of the configuration.
    type String
    compartmentId string
    The OCID of the compartment containing the configuration.
    configCollections GetConfigsConfigCollection[]
    The list of config_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filters GetConfigsFilter[]
    state string
    The current state of the configuration.
    type string
    compartment_id str
    The OCID of the compartment containing the configuration.
    config_collections Sequence[stackmonitoring.GetConfigsConfigCollection]
    The list of config_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filters Sequence[stackmonitoring.GetConfigsFilter]
    state str
    The current state of the configuration.
    type str
    compartmentId String
    The OCID of the compartment containing the configuration.
    configCollections List<Property Map>
    The list of config_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    filters List<Property Map>
    state String
    The current state of the configuration.
    type String

    Supporting Types

    GetConfigsConfigCollection

    GetConfigsConfigCollectionItem

    CompartmentId string
    The ID of the compartment in which data is listed.
    ConfigType string
    The type of configuration.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The Unique Oracle ID (OCID) that is immutable on creation.
    IsEnabled bool
    True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
    License string
    License edition.
    ResourceType string
    The type of resource to configure for automatic promotion.
    State string
    The current state of the Config.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the configuration was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the Config was updated.
    CompartmentId string
    The ID of the compartment in which data is listed.
    ConfigType string
    The type of configuration.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    The Unique Oracle ID (OCID) that is immutable on creation.
    IsEnabled bool
    True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
    License string
    License edition.
    ResourceType string
    The type of resource to configure for automatic promotion.
    State string
    The current state of the Config.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the configuration was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time the Config was updated.
    compartmentId String
    The ID of the compartment in which data is listed.
    configType String
    The type of configuration.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The Unique Oracle ID (OCID) that is immutable on creation.
    isEnabled Boolean
    True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
    license String
    License edition.
    resourceType String
    The type of resource to configure for automatic promotion.
    state String
    The current state of the Config.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the configuration was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the Config was updated.
    compartmentId string
    The ID of the compartment in which data is listed.
    configType string
    The type of configuration.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    A filter to return only resources that match the entire display name given.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    The Unique Oracle ID (OCID) that is immutable on creation.
    isEnabled boolean
    True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
    license string
    License edition.
    resourceType string
    The type of resource to configure for automatic promotion.
    state string
    The current state of the Config.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the configuration was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time the Config was updated.
    compartment_id str
    The ID of the compartment in which data is listed.
    config_type str
    The type of configuration.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    A filter to return only resources that match the entire display name given.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    The Unique Oracle ID (OCID) that is immutable on creation.
    is_enabled bool
    True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
    license str
    License edition.
    resource_type str
    The type of resource to configure for automatic promotion.
    state str
    The current state of the Config.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the configuration was created. An RFC3339 formatted datetime string.
    time_updated str
    The time the Config was updated.
    compartmentId String
    The ID of the compartment in which data is listed.
    configType String
    The type of configuration.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire display name given.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    The Unique Oracle ID (OCID) that is immutable on creation.
    isEnabled Boolean
    True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
    license String
    License edition.
    resourceType String
    The type of resource to configure for automatic promotion.
    state String
    The current state of the Config.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the configuration was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time the Config was updated.

    GetConfigsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi