Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.StackMonitoring.getConfig
Explore with Pulumi AI
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,
});
import pulumi
import pulumi_oci as oci
test_config = oci.StackMonitoring.get_config(config_id=test_config_oci_stack_monitoring_config["id"])
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
})
}
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,
});
});
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());
}
}
variables:
testConfig:
fn::invoke:
Function: oci:StackMonitoring:getConfig
Arguments:
configId: ${testConfigOciStackMonitoringConfig.id}
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>
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]
func GetConfig(ctx *Context, args *GetConfigArgs, opts ...InvokeOption) (*GetConfigResult, error)
func GetConfigOutput(ctx *Context, args *GetConfigOutputArgs, opts ...InvokeOption) GetConfigResultOutput
> 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)
}
public static CompletableFuture<GetConfigResult> getConfig(GetConfigArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:StackMonitoring/getConfig:getConfig
arguments:
# arguments dictionary
The following arguments are supported:
- Config
Id string - Unique Config identifier.
- Config
Id string - Unique Config identifier.
- config
Id String - Unique Config identifier.
- config
Id string - Unique Config identifier.
- config_
id str - Unique Config identifier.
- config
Id String - Unique Config identifier.
getConfig Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the configuration.
- Config
Id string - Config
Type string - The type of configuration.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- Is
Enabled bool - True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
- License string
- License edition.
- Resource
Type string - The type of resource to configure for automatic promotion.
- State string
- The current state of the configuration.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the configuration was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the Config was updated.
- Compartment
Id string - The OCID of the compartment containing the configuration.
- Config
Id string - Config
Type string - The type of configuration.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- Is
Enabled bool - True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
- License string
- License edition.
- Resource
Type string - The type of resource to configure for automatic promotion.
- State string
- The current state of the configuration.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the configuration was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time the Config was updated.
- compartment
Id String - The OCID of the compartment containing the configuration.
- config
Id String - config
Type String - The type of configuration.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- is
Enabled Boolean - True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
- license String
- License edition.
- resource
Type String - The type of resource to configure for automatic promotion.
- state String
- The current state of the configuration.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the configuration was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the Config was updated.
- compartment
Id string - The OCID of the compartment containing the configuration.
- config
Id string - config
Type string - The type of configuration.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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.
- is
Enabled boolean - True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
- license string
- License edition.
- resource
Type string - The type of resource to configure for automatic promotion.
- state string
- The current state of the configuration.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the configuration was created. An RFC3339 formatted datetime string.
- time
Updated string - The time the Config was updated.
- compartment_
id str - The OCID of the compartment containing the configuration.
- config_
id str - config_
type str - The type of configuration.
- 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.
- 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 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 configuration.
- 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.
- compartment
Id String - The OCID of the compartment containing the configuration.
- config
Id String - config
Type String - The type of configuration.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- is
Enabled Boolean - True if automatic promotion or enterprise extensibility is enabled, false if it is not enabled.
- license String
- License edition.
- resource
Type String - The type of resource to configure for automatic promotion.
- state String
- The current state of the configuration.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the configuration was created. An RFC3339 formatted datetime string.
- time
Updated String - The time the Config was updated.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.