oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.Identity.getAllowedDomainLicenseTypes

This data source provides the list of Allowed Domain License Types in Oracle Cloud Infrastructure Identity service.

List the allowed domain license types supported by Oracle Cloud Infrastructure If {@code currentLicenseTypeName} provided, returns allowed license types a domain with the specified license type name can migrate to. If {@code name} is provided, it filters and returns resources that match the given license type name. Otherwise, returns all valid license types that are currently supported.

  • If license type details are retrieved sucessfully, return 202 ACCEPTED.
  • If any internal error occurs, return 500 INTERNAL SERVER ERROR.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testAllowedDomainLicenseTypes = Oci.Identity.GetAllowedDomainLicenseTypes.Invoke(new()
    {
        CurrentLicenseTypeName = @var.Allowed_domain_license_type_current_license_type_name,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Identity.GetAllowedDomainLicenseTypes(ctx, &identity.GetAllowedDomainLicenseTypesArgs{
			CurrentLicenseTypeName: pulumi.StringRef(_var.Allowed_domain_license_type_current_license_type_name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.IdentityFunctions;
import com.pulumi.oci.Identity.inputs.GetAllowedDomainLicenseTypesArgs;
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 testAllowedDomainLicenseTypes = IdentityFunctions.getAllowedDomainLicenseTypes(GetAllowedDomainLicenseTypesArgs.builder()
            .currentLicenseTypeName(var_.allowed_domain_license_type_current_license_type_name())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_allowed_domain_license_types = oci.Identity.get_allowed_domain_license_types(current_license_type_name=var["allowed_domain_license_type_current_license_type_name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAllowedDomainLicenseTypes = oci.Identity.getAllowedDomainLicenseTypes({
    currentLicenseTypeName: _var.allowed_domain_license_type_current_license_type_name,
});
variables:
  testAllowedDomainLicenseTypes:
    fn::invoke:
      Function: oci:Identity:getAllowedDomainLicenseTypes
      Arguments:
        currentLicenseTypeName: ${var.allowed_domain_license_type_current_license_type_name}

Using getAllowedDomainLicenseTypes

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 getAllowedDomainLicenseTypes(args: GetAllowedDomainLicenseTypesArgs, opts?: InvokeOptions): Promise<GetAllowedDomainLicenseTypesResult>
function getAllowedDomainLicenseTypesOutput(args: GetAllowedDomainLicenseTypesOutputArgs, opts?: InvokeOptions): Output<GetAllowedDomainLicenseTypesResult>
def get_allowed_domain_license_types(current_license_type_name: Optional[str] = None,
                                     filters: Optional[Sequence[_identity.GetAllowedDomainLicenseTypesFilter]] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetAllowedDomainLicenseTypesResult
def get_allowed_domain_license_types_output(current_license_type_name: Optional[pulumi.Input[str]] = None,
                                     filters: Optional[pulumi.Input[Sequence[pulumi.Input[_identity.GetAllowedDomainLicenseTypesFilterArgs]]]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetAllowedDomainLicenseTypesResult]
func GetAllowedDomainLicenseTypes(ctx *Context, args *GetAllowedDomainLicenseTypesArgs, opts ...InvokeOption) (*GetAllowedDomainLicenseTypesResult, error)
func GetAllowedDomainLicenseTypesOutput(ctx *Context, args *GetAllowedDomainLicenseTypesOutputArgs, opts ...InvokeOption) GetAllowedDomainLicenseTypesResultOutput

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

public static class GetAllowedDomainLicenseTypes 
{
    public static Task<GetAllowedDomainLicenseTypesResult> InvokeAsync(GetAllowedDomainLicenseTypesArgs args, InvokeOptions? opts = null)
    public static Output<GetAllowedDomainLicenseTypesResult> Invoke(GetAllowedDomainLicenseTypesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAllowedDomainLicenseTypesResult> getAllowedDomainLicenseTypes(GetAllowedDomainLicenseTypesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:Identity/getAllowedDomainLicenseTypes:getAllowedDomainLicenseTypes
  arguments:
    # arguments dictionary

The following arguments are supported:

getAllowedDomainLicenseTypes Result

The following output properties are available:

AllowedDomainLicenseTypes List<GetAllowedDomainLicenseTypesAllowedDomainLicenseType>

The list of allowed_domain_license_types.

Id string

The provider-assigned unique ID for this managed resource.

CurrentLicenseTypeName string
Filters List<GetAllowedDomainLicenseTypesFilter>
AllowedDomainLicenseTypes []GetAllowedDomainLicenseTypesAllowedDomainLicenseType

The list of allowed_domain_license_types.

Id string

The provider-assigned unique ID for this managed resource.

CurrentLicenseTypeName string
Filters []GetAllowedDomainLicenseTypesFilter
allowedDomainLicenseTypes List<GetAllowedDomainLicenseTypesAllowedDomainLicenseType>

The list of allowed_domain_license_types.

id String

The provider-assigned unique ID for this managed resource.

currentLicenseTypeName String
filters List<GetAllowedDomainLicenseTypesFilter>
allowedDomainLicenseTypes GetAllowedDomainLicenseTypesAllowedDomainLicenseType[]

The list of allowed_domain_license_types.

id string

The provider-assigned unique ID for this managed resource.

currentLicenseTypeName string
filters GetAllowedDomainLicenseTypesFilter[]
allowed_domain_license_types GetAllowedDomainLicenseTypesAllowedDomainLicenseType]

The list of allowed_domain_license_types.

id str

The provider-assigned unique ID for this managed resource.

current_license_type_name str
filters GetAllowedDomainLicenseTypesFilter]
allowedDomainLicenseTypes List<Property Map>

The list of allowed_domain_license_types.

id String

The provider-assigned unique ID for this managed resource.

currentLicenseTypeName String
filters List<Property Map>

Supporting Types

GetAllowedDomainLicenseTypesAllowedDomainLicenseType

Description string

The license type description.

LicenseType string

The license type identifier. Example: "oracle-apps-premium"

Name string

The license type name. Example: "Oracle Apps Premium"

Description string

The license type description.

LicenseType string

The license type identifier. Example: "oracle-apps-premium"

Name string

The license type name. Example: "Oracle Apps Premium"

description String

The license type description.

licenseType String

The license type identifier. Example: "oracle-apps-premium"

name String

The license type name. Example: "Oracle Apps Premium"

description string

The license type description.

licenseType string

The license type identifier. Example: "oracle-apps-premium"

name string

The license type name. Example: "Oracle Apps Premium"

description str

The license type description.

license_type str

The license type identifier. Example: "oracle-apps-premium"

name str

The license type name. Example: "Oracle Apps Premium"

description String

The license type description.

licenseType String

The license type identifier. Example: "oracle-apps-premium"

name String

The license type name. Example: "Oracle Apps Premium"

GetAllowedDomainLicenseTypesFilter

Name string

The license type name. Example: "Oracle Apps Premium"

Values List<string>
Regex bool
Name string

The license type name. Example: "Oracle Apps Premium"

Values []string
Regex bool
name String

The license type name. Example: "Oracle Apps Premium"

values List<String>
regex Boolean
name string

The license type name. Example: "Oracle Apps Premium"

values string[]
regex boolean
name str

The license type name. Example: "Oracle Apps Premium"

values Sequence[str]
regex bool
name String

The license type name. Example: "Oracle Apps Premium"

values List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.