Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getConfiguration

This data source provides details about a specific Configuration resource in Oracle Cloud Infrastructure Metering Computation service.

Returns the configurations list for the UI drop-down list.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testConfiguration = Output.Create(Oci.MeteringComputation.GetConfiguration.InvokeAsync(new Oci.MeteringComputation.GetConfigurationArgs
        {
            TenantId = oci_metering_computation_tenant.Test_tenant.Id,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := MeteringComputation.GetConfiguration(ctx, &meteringcomputation.GetConfigurationArgs{
			TenantId: oci_metering_computation_tenant.Test_tenant.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_configuration = oci.MeteringComputation.get_configuration(tenant_id=oci_metering_computation_tenant["test_tenant"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testConfiguration = oci.MeteringComputation.getConfiguration({
    tenantId: oci_metering_computation_tenant.test_tenant.id,
});

Coming soon!

Using getConfiguration

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 getConfiguration(args: GetConfigurationArgs, opts?: InvokeOptions): Promise<GetConfigurationResult>
function getConfigurationOutput(args: GetConfigurationOutputArgs, opts?: InvokeOptions): Output<GetConfigurationResult>
def get_configuration(tenant_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetConfigurationResult
def get_configuration_output(tenant_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationResult]
func GetConfiguration(ctx *Context, args *GetConfigurationArgs, opts ...InvokeOption) (*GetConfigurationResult, error)
func GetConfigurationOutput(ctx *Context, args *GetConfigurationOutputArgs, opts ...InvokeOption) GetConfigurationResultOutput

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

public static class GetConfiguration 
{
    public static Task<GetConfigurationResult> InvokeAsync(GetConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetConfigurationResult> Invoke(GetConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:MeteringComputation/getConfiguration:getConfiguration
  Arguments:
    # Arguments dictionary

The following arguments are supported:

TenantId string

tenant id

TenantId string

tenant id

tenantId String

tenant id

tenantId string

tenant id

tenant_id str

tenant id

tenantId String

tenant id

getConfiguration Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Items List<GetConfigurationItem>

The list of available configurations.

TenantId string
Id string

The provider-assigned unique ID for this managed resource.

Items []GetConfigurationItem

The list of available configurations.

TenantId string
id String

The provider-assigned unique ID for this managed resource.

items List<GetConfigurationItem>

The list of available configurations.

tenantId String
id string

The provider-assigned unique ID for this managed resource.

items GetConfigurationItem[]

The list of available configurations.

tenantId string
id str

The provider-assigned unique ID for this managed resource.

items GetConfigurationItem]

The list of available configurations.

tenant_id str
id String

The provider-assigned unique ID for this managed resource.

items List<Property Map>

The list of available configurations.

tenantId String

Supporting Types

GetConfigurationItem

Key string

The configuration key.

Values List<string>

The configuration value.

Key string

The configuration key.

Values []string

The configuration value.

key String

The configuration key.

values List<String>

The configuration value.

key string

The configuration key.

values string[]

The configuration value.

key str

The configuration key.

values Sequence[str]

The configuration value.

key String

The configuration key.

values List<String>

The configuration value.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.