1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LicenseManager
  5. getConfiguration
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.LicenseManager.getConfiguration

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

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

Retrieves configuration for a compartment.

Example Usage

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

const testConfiguration = oci.LicenseManager.getConfiguration({
    compartmentId: compartmentId,
});
Copy
import pulumi
import pulumi_oci as oci

test_configuration = oci.LicenseManager.get_configuration(compartment_id=compartment_id)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := licensemanager.GetConfiguration(ctx, &licensemanager.GetConfigurationArgs{
			CompartmentId: compartmentId,
		}, 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 testConfiguration = Oci.LicenseManager.GetConfiguration.Invoke(new()
    {
        CompartmentId = compartmentId,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LicenseManager.LicenseManagerFunctions;
import com.pulumi.oci.LicenseManager.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 = LicenseManagerFunctions.getConfiguration(GetConfigurationArgs.builder()
            .compartmentId(compartmentId)
            .build());

    }
}
Copy
variables:
  testConfiguration:
    fn::invoke:
      function: oci:LicenseManager:getConfiguration
      arguments:
        compartmentId: ${compartmentId}
Copy

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

> 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)
}
Copy
public static CompletableFuture<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
public static Output<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:LicenseManager/getConfiguration:getConfiguration
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The compartment OCID used for the license record, product license, and configuration.
CompartmentId This property is required. string
The compartment OCID used for the license record, product license, and configuration.
compartmentId This property is required. String
The compartment OCID used for the license record, product license, and configuration.
compartmentId This property is required. string
The compartment OCID used for the license record, product license, and configuration.
compartment_id This property is required. str
The compartment OCID used for the license record, product license, and configuration.
compartmentId This property is required. String
The compartment OCID used for the license record, product license, and configuration.

getConfiguration Result

The following output properties are available:

CompartmentId string
The compartment OCID to which the configuration is specified.
EmailIds List<string>
The list of associated configuration email IDs.
Id string
TimeCreated string
The time the configuration was created. An RFC 3339-formatted datetime string.
TimeUpdated string
The time the configuration was updated. An RFC 3339-formatted datetime string.
CompartmentId string
The compartment OCID to which the configuration is specified.
EmailIds []string
The list of associated configuration email IDs.
Id string
TimeCreated string
The time the configuration was created. An RFC 3339-formatted datetime string.
TimeUpdated string
The time the configuration was updated. An RFC 3339-formatted datetime string.
compartmentId String
The compartment OCID to which the configuration is specified.
emailIds List<String>
The list of associated configuration email IDs.
id String
timeCreated String
The time the configuration was created. An RFC 3339-formatted datetime string.
timeUpdated String
The time the configuration was updated. An RFC 3339-formatted datetime string.
compartmentId string
The compartment OCID to which the configuration is specified.
emailIds string[]
The list of associated configuration email IDs.
id string
timeCreated string
The time the configuration was created. An RFC 3339-formatted datetime string.
timeUpdated string
The time the configuration was updated. An RFC 3339-formatted datetime string.
compartment_id str
The compartment OCID to which the configuration is specified.
email_ids Sequence[str]
The list of associated configuration email IDs.
id str
time_created str
The time the configuration was created. An RFC 3339-formatted datetime string.
time_updated str
The time the configuration was updated. An RFC 3339-formatted datetime string.
compartmentId String
The compartment OCID to which the configuration is specified.
emailIds List<String>
The list of associated configuration email IDs.
id String
timeCreated String
The time the configuration was created. An RFC 3339-formatted datetime string.
timeUpdated String
The time the configuration was updated. An RFC 3339-formatted datetime string.

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.30.0 published on Monday, Apr 14, 2025 by Pulumi