1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. StackMonitoring
  5. getConfig
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.StackMonitoring.getConfig

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

This data source provides details about a specific Config resource in Oracle Cloud Infrastructure Stack Monitoring service.

Gets the details of a configuration.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testConfig = oci.StackMonitoring.getConfig({
    configId: testConfigOciStackMonitoringConfig.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_config = oci.StackMonitoring.get_config(config_id=test_config_oci_stack_monitoring_config["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/stackmonitoring"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := stackmonitoring.GetConfig(ctx, &stackmonitoring.GetConfigArgs{
			ConfigId: testConfigOciStackMonitoringConfig.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testConfig = Oci.StackMonitoring.GetConfig.Invoke(new()
    {
        ConfigId = testConfigOciStackMonitoringConfig.Id,
    });

});
Copy
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.GetConfigArgs;
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 testConfig = StackMonitoringFunctions.getConfig(GetConfigArgs.builder()
            .configId(testConfigOciStackMonitoringConfig.id())
            .build());

    }
}
Copy
variables:
  testConfig:
    fn::invoke:
      function: oci:StackMonitoring:getConfig
      arguments:
        configId: ${testConfigOciStackMonitoringConfig.id}
Copy

Using getConfig

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 getConfig(args: GetConfigArgs, opts?: InvokeOptions): Promise<GetConfigResult>
function getConfigOutput(args: GetConfigOutputArgs, opts?: InvokeOptions): Output<GetConfigResult>
Copy
def get_config(config_id: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetConfigResult
def get_config_output(config_id: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetConfigResult]
Copy
func GetConfig(ctx *Context, args *GetConfigArgs, opts ...InvokeOption) (*GetConfigResult, error)
func GetConfigOutput(ctx *Context, args *GetConfigOutputArgs, opts ...InvokeOption) GetConfigResultOutput
Copy

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

public static class GetConfig 
{
    public static Task<GetConfigResult> InvokeAsync(GetConfigArgs args, InvokeOptions? opts = null)
    public static Output<GetConfigResult> Invoke(GetConfigInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetConfigResult> getConfig(GetConfigArgs args, InvokeOptions options)
public static Output<GetConfigResult> getConfig(GetConfigArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:StackMonitoring/getConfig:getConfig
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ConfigId This property is required. string
Unique Config identifier.
ConfigId This property is required. string
Unique Config identifier.
configId This property is required. String
Unique Config identifier.
configId This property is required. string
Unique Config identifier.
config_id This property is required. str
Unique Config identifier.
configId This property is required. String
Unique Config identifier.

getConfig Result

The following output properties are available:

AdditionalConfigurations List<GetConfigAdditionalConfiguration>
Property Details
CompartmentId string
The OCID of the compartment containing the configuration.
ConfigId string
ConfigType string
The type of configuration.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DynamicGroups List<GetConfigDynamicGroup>
List of dynamic groups dedicated for Stack Monitoring.
FreeformTags Dictionary<string, string>
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 activation of the Management Agent plugin, automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
IsManuallyOnboarded bool
True if customer decides marks configuration as manually configured.
License string
License edition.
PolicyNames List<string>
List of policy names assigned for onboarding
ResourceType string
The type of resource to configure for automatic promotion.
State string
The current state of the configuration.
SystemTags Dictionary<string, string>
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.
UserGroups List<GetConfigUserGroup>
List of user groups dedicated for Stack Monitoring.
Version string
Assigned version to given onboard configuration.
AdditionalConfigurations []GetConfigAdditionalConfiguration
Property Details
CompartmentId string
The OCID of the compartment containing the configuration.
ConfigId string
ConfigType string
The type of configuration.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
DynamicGroups []GetConfigDynamicGroup
List of dynamic groups dedicated for Stack Monitoring.
FreeformTags map[string]string
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 activation of the Management Agent plugin, automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
IsManuallyOnboarded bool
True if customer decides marks configuration as manually configured.
License string
License edition.
PolicyNames []string
List of policy names assigned for onboarding
ResourceType string
The type of resource to configure for automatic promotion.
State string
The current state of the configuration.
SystemTags map[string]string
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.
UserGroups []GetConfigUserGroup
List of user groups dedicated for Stack Monitoring.
Version string
Assigned version to given onboard configuration.
additionalConfigurations List<GetConfigAdditionalConfiguration>
Property Details
compartmentId String
The OCID of the compartment containing the configuration.
configId String
configType String
The type of configuration.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
dynamicGroups List<GetConfigDynamicGroup>
List of dynamic groups dedicated for Stack Monitoring.
freeformTags Map<String,String>
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 activation of the Management Agent plugin, automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
isManuallyOnboarded Boolean
True if customer decides marks configuration as manually configured.
license String
License edition.
policyNames List<String>
List of policy names assigned for onboarding
resourceType String
The type of resource to configure for automatic promotion.
state String
The current state of the configuration.
systemTags Map<String,String>
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.
userGroups List<GetConfigUserGroup>
List of user groups dedicated for Stack Monitoring.
version String
Assigned version to given onboard configuration.
additionalConfigurations GetConfigAdditionalConfiguration[]
Property Details
compartmentId string
The OCID of the compartment containing the configuration.
configId string
configType string
The type of configuration.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
dynamicGroups GetConfigDynamicGroup[]
List of dynamic groups dedicated for Stack Monitoring.
freeformTags {[key: string]: string}
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 activation of the Management Agent plugin, automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
isManuallyOnboarded boolean
True if customer decides marks configuration as manually configured.
license string
License edition.
policyNames string[]
List of policy names assigned for onboarding
resourceType string
The type of resource to configure for automatic promotion.
state string
The current state of the configuration.
systemTags {[key: string]: string}
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.
userGroups GetConfigUserGroup[]
List of user groups dedicated for Stack Monitoring.
version string
Assigned version to given onboard configuration.
additional_configurations Sequence[stackmonitoring.GetConfigAdditionalConfiguration]
Property Details
compartment_id str
The OCID of the compartment containing the configuration.
config_id str
config_type str
The type of configuration.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
display_name str
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
dynamic_groups Sequence[stackmonitoring.GetConfigDynamicGroup]
List of dynamic groups dedicated for Stack Monitoring.
freeform_tags Mapping[str, str]
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 activation of the Management Agent plugin, automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
is_manually_onboarded bool
True if customer decides marks configuration as manually configured.
license str
License edition.
policy_names Sequence[str]
List of policy names assigned for onboarding
resource_type str
The type of resource to configure for automatic promotion.
state str
The current state of the configuration.
system_tags Mapping[str, str]
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.
user_groups Sequence[stackmonitoring.GetConfigUserGroup]
List of user groups dedicated for Stack Monitoring.
version str
Assigned version to given onboard configuration.
additionalConfigurations List<Property Map>
Property Details
compartmentId String
The OCID of the compartment containing the configuration.
configId String
configType String
The type of configuration.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
dynamicGroups List<Property Map>
List of dynamic groups dedicated for Stack Monitoring.
freeformTags Map<String>
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 activation of the Management Agent plugin, automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
isManuallyOnboarded Boolean
True if customer decides marks configuration as manually configured.
license String
License edition.
policyNames List<String>
List of policy names assigned for onboarding
resourceType String
The type of resource to configure for automatic promotion.
state String
The current state of the configuration.
systemTags Map<String>
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.
userGroups List<Property Map>
List of user groups dedicated for Stack Monitoring.
version String
Assigned version to given onboard configuration.

Supporting Types

GetConfigAdditionalConfiguration

PropertiesMap This property is required. Dictionary<string, string>
Key/Value pair of Property
PropertiesMap This property is required. map[string]string
Key/Value pair of Property
propertiesMap This property is required. Map<String,String>
Key/Value pair of Property
propertiesMap This property is required. {[key: string]: string}
Key/Value pair of Property
properties_map This property is required. Mapping[str, str]
Key/Value pair of Property
propertiesMap This property is required. Map<String>
Key/Value pair of Property

GetConfigDynamicGroup

Domain This property is required. string
Identity domain name
Name This property is required. string
Name of user Group
StackMonitoringAssignment This property is required. string
Assignment of dynamic group in context of Stack Monitoring service. It describes the purpose of dynamic groups in Stack Monitoring.
Domain This property is required. string
Identity domain name
Name This property is required. string
Name of user Group
StackMonitoringAssignment This property is required. string
Assignment of dynamic group in context of Stack Monitoring service. It describes the purpose of dynamic groups in Stack Monitoring.
domain This property is required. String
Identity domain name
name This property is required. String
Name of user Group
stackMonitoringAssignment This property is required. String
Assignment of dynamic group in context of Stack Monitoring service. It describes the purpose of dynamic groups in Stack Monitoring.
domain This property is required. string
Identity domain name
name This property is required. string
Name of user Group
stackMonitoringAssignment This property is required. string
Assignment of dynamic group in context of Stack Monitoring service. It describes the purpose of dynamic groups in Stack Monitoring.
domain This property is required. str
Identity domain name
name This property is required. str
Name of user Group
stack_monitoring_assignment This property is required. str
Assignment of dynamic group in context of Stack Monitoring service. It describes the purpose of dynamic groups in Stack Monitoring.
domain This property is required. String
Identity domain name
name This property is required. String
Name of user Group
stackMonitoringAssignment This property is required. String
Assignment of dynamic group in context of Stack Monitoring service. It describes the purpose of dynamic groups in Stack Monitoring.

GetConfigUserGroup

Domain This property is required. string
Identity domain name
Name This property is required. string
Name of user Group
StackMonitoringRole This property is required. string
Role assigned to user group in context of Stack Monitoring service. Access role can be for example: ADMINISTRATOR, OPERATOR, VIEWER, any other access role
Domain This property is required. string
Identity domain name
Name This property is required. string
Name of user Group
StackMonitoringRole This property is required. string
Role assigned to user group in context of Stack Monitoring service. Access role can be for example: ADMINISTRATOR, OPERATOR, VIEWER, any other access role
domain This property is required. String
Identity domain name
name This property is required. String
Name of user Group
stackMonitoringRole This property is required. String
Role assigned to user group in context of Stack Monitoring service. Access role can be for example: ADMINISTRATOR, OPERATOR, VIEWER, any other access role
domain This property is required. string
Identity domain name
name This property is required. string
Name of user Group
stackMonitoringRole This property is required. string
Role assigned to user group in context of Stack Monitoring service. Access role can be for example: ADMINISTRATOR, OPERATOR, VIEWER, any other access role
domain This property is required. str
Identity domain name
name This property is required. str
Name of user Group
stack_monitoring_role This property is required. str
Role assigned to user group in context of Stack Monitoring service. Access role can be for example: ADMINISTRATOR, OPERATOR, VIEWER, any other access role
domain This property is required. String
Identity domain name
name This property is required. String
Name of user Group
stackMonitoringRole This property is required. String
Role assigned to user group in context of Stack Monitoring service. Access role can be for example: ADMINISTRATOR, OPERATOR, VIEWER, any other access role

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi