oci.Identity.getAllowedDomainLicenseTypes
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAllowedDomainLicenseTypes = oci.Identity.getAllowedDomainLicenseTypes({
currentLicenseTypeName: allowedDomainLicenseTypeCurrentLicenseTypeName,
});
import pulumi
import pulumi_oci as oci
test_allowed_domain_license_types = oci.Identity.get_allowed_domain_license_types(current_license_type_name=allowed_domain_license_type_current_license_type_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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(allowedDomainLicenseTypeCurrentLicenseTypeName),
}, 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 testAllowedDomainLicenseTypes = Oci.Identity.GetAllowedDomainLicenseTypes.Invoke(new()
{
CurrentLicenseTypeName = allowedDomainLicenseTypeCurrentLicenseTypeName,
});
});
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(allowedDomainLicenseTypeCurrentLicenseTypeName)
.build());
}
}
variables:
testAllowedDomainLicenseTypes:
fn::invoke:
Function: oci:Identity:getAllowedDomainLicenseTypes
Arguments:
currentLicenseTypeName: ${allowedDomainLicenseTypeCurrentLicenseTypeName}
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:
- Current
License stringType Name - The domain license type
- Filters
List<Get
Allowed Domain License Types Filter>
- Current
License stringType Name - The domain license type
- Filters
[]Get
Allowed Domain License Types Filter
- current
License StringType Name - The domain license type
- filters
List<Get
Allowed Domain License Types Filter>
- current
License stringType Name - The domain license type
- filters
Get
Allowed Domain License Types Filter[]
- current_
license_ strtype_ name - The domain license type
- filters
Sequence[identity.
Get Allowed Domain License Types Filter]
- current
License StringType Name - The domain license type
- filters List<Property Map>
getAllowedDomainLicenseTypes Result
The following output properties are available:
- Allowed
Domain List<GetLicense Types Allowed Domain License Types Allowed Domain License Type> - The list of allowed_domain_license_types.
- Id string
- The provider-assigned unique ID for this managed resource.
- Current
License stringType Name - Filters
List<Get
Allowed Domain License Types Filter>
- Allowed
Domain []GetLicense Types Allowed Domain License Types Allowed Domain License Type - The list of allowed_domain_license_types.
- Id string
- The provider-assigned unique ID for this managed resource.
- Current
License stringType Name - Filters
[]Get
Allowed Domain License Types Filter
- allowed
Domain List<GetLicense Types Allowed Domain License Types Allowed Domain License Type> - The list of allowed_domain_license_types.
- id String
- The provider-assigned unique ID for this managed resource.
- current
License StringType Name - filters
List<Get
Allowed Domain License Types Filter>
- allowed
Domain GetLicense Types Allowed Domain License Types Allowed Domain License Type[] - The list of allowed_domain_license_types.
- id string
- The provider-assigned unique ID for this managed resource.
- current
License stringType Name - filters
Get
Allowed Domain License Types Filter[]
- allowed_
domain_ Sequence[identity.license_ types Get Allowed Domain License Types Allowed Domain License Type] - The list of allowed_domain_license_types.
- id str
- The provider-assigned unique ID for this managed resource.
- current_
license_ strtype_ name - filters
Sequence[identity.
Get Allowed Domain License Types Filter]
- allowed
Domain List<Property Map>License Types - The list of allowed_domain_license_types.
- id String
- The provider-assigned unique ID for this managed resource.
- current
License StringType Name - filters List<Property Map>
Supporting Types
GetAllowedDomainLicenseTypesAllowedDomainLicenseType
- Description string
- The license type description.
- License
Type 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.
- License
Type 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.
- license
Type 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.
- license
Type 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.
- license
Type String - The license type identifier. Example: "oracle-apps-premium"
- name String
- The license type name. Example: "Oracle Apps Premium"
GetAllowedDomainLicenseTypesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.