Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.MeteringComputation.getConfiguration
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testConfiguration = oci.MeteringComputation.getConfiguration({
tenantId: testTenant.id,
});
import pulumi
import pulumi_oci as oci
test_configuration = oci.MeteringComputation.get_configuration(tenant_id=test_tenant["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testTenant.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 testConfiguration = Oci.MeteringComputation.GetConfiguration.Invoke(new()
{
TenantId = testTenant.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.MeteringComputation.MeteringComputationFunctions;
import com.pulumi.oci.MeteringComputation.inputs.GetConfigurationArgs;
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 testConfiguration = MeteringComputationFunctions.getConfiguration(GetConfigurationArgs.builder()
.tenantId(testTenant.id())
.build());
}
}
variables:
testConfiguration:
fn::invoke:
Function: oci:MeteringComputation:getConfiguration
Arguments:
tenantId: ${testTenant.id}
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:
- Tenant
Id string - tenant id
- Tenant
Id string - tenant id
- tenant
Id String - tenant id
- tenant
Id string - tenant id
- tenant_
id str - tenant id
- tenant
Id String - tenant id
getConfiguration Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<Get
Configuration Item> - The list of available configurations.
- Tenant
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Configuration Item - The list of available configurations.
- Tenant
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Configuration Item> - The list of available configurations.
- tenant
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Configuration Item[] - The list of available configurations.
- tenant
Id string
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[meteringcomputation.
Get Configuration Item] - 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.
- tenant
Id String
Supporting Types
GetConfigurationItem
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.