Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getAutonomousCharacterSets

This data source provides the list of Autonomous Database Character Sets in Oracle Cloud Infrastructure Database service.

Gets a list of supported character sets.

Example Usage

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

return await Deployment.RunAsync(() => 
{
    var testAutonomousDatabaseCharacterSets = Oci.Database.GetAutonomousCharacterSets.Invoke(new()
    {
        CharacterSetType = @var.Autonomous_database_character_set_character_set_type,
        IsShared = @var.Autonomous_database_character_set_is_shared,
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Database.GetAutonomousCharacterSets(ctx, &database.GetAutonomousCharacterSetsArgs{
			CharacterSetType: pulumi.StringRef(_var.Autonomous_database_character_set_character_set_type),
			IsShared:         pulumi.BoolRef(_var.Autonomous_database_character_set_is_shared),
		}, 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.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetAutonomousCharacterSetsArgs;
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 testAutonomousDatabaseCharacterSets = DatabaseFunctions.getAutonomousCharacterSets(GetAutonomousCharacterSetsArgs.builder()
            .characterSetType(var_.autonomous_database_character_set_character_set_type())
            .isShared(var_.autonomous_database_character_set_is_shared())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_autonomous_database_character_sets = oci.Database.get_autonomous_character_sets(character_set_type=var["autonomous_database_character_set_character_set_type"],
    is_shared=var["autonomous_database_character_set_is_shared"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testAutonomousDatabaseCharacterSets = oci.Database.getAutonomousCharacterSets({
    characterSetType: _var.autonomous_database_character_set_character_set_type,
    isShared: _var.autonomous_database_character_set_is_shared,
});
variables:
  testAutonomousDatabaseCharacterSets:
    Fn::Invoke:
      Function: oci:Database:getAutonomousCharacterSets
      Arguments:
        characterSetType: ${var.autonomous_database_character_set_character_set_type}
        isShared: ${var.autonomous_database_character_set_is_shared}

Using getAutonomousCharacterSets

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 getAutonomousCharacterSets(args: GetAutonomousCharacterSetsArgs, opts?: InvokeOptions): Promise<GetAutonomousCharacterSetsResult>
function getAutonomousCharacterSetsOutput(args: GetAutonomousCharacterSetsOutputArgs, opts?: InvokeOptions): Output<GetAutonomousCharacterSetsResult>
def get_autonomous_character_sets(character_set_type: Optional[str] = None,
                                  filters: Optional[Sequence[_database.GetAutonomousCharacterSetsFilter]] = None,
                                  is_shared: Optional[bool] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetAutonomousCharacterSetsResult
def get_autonomous_character_sets_output(character_set_type: Optional[pulumi.Input[str]] = None,
                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetAutonomousCharacterSetsFilterArgs]]]] = None,
                                  is_shared: Optional[pulumi.Input[bool]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousCharacterSetsResult]
func GetAutonomousCharacterSets(ctx *Context, args *GetAutonomousCharacterSetsArgs, opts ...InvokeOption) (*GetAutonomousCharacterSetsResult, error)
func GetAutonomousCharacterSetsOutput(ctx *Context, args *GetAutonomousCharacterSetsOutputArgs, opts ...InvokeOption) GetAutonomousCharacterSetsResultOutput

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

public static class GetAutonomousCharacterSets 
{
    public static Task<GetAutonomousCharacterSetsResult> InvokeAsync(GetAutonomousCharacterSetsArgs args, InvokeOptions? opts = null)
    public static Output<GetAutonomousCharacterSetsResult> Invoke(GetAutonomousCharacterSetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAutonomousCharacterSetsResult> getAutonomousCharacterSets(GetAutonomousCharacterSetsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Database/getAutonomousCharacterSets:getAutonomousCharacterSets
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CharacterSetType string

Specifies whether this request pertains to database character sets or national character sets.

Filters List<GetAutonomousCharacterSetsFilter>
IsShared bool

Specifies whether this request is for Autonomous Database on Shared infrastructure. By default, this request will be for Autonomous Database on Dedicated Exadata Infrastructure.

CharacterSetType string

Specifies whether this request pertains to database character sets or national character sets.

Filters []GetAutonomousCharacterSetsFilter
IsShared bool

Specifies whether this request is for Autonomous Database on Shared infrastructure. By default, this request will be for Autonomous Database on Dedicated Exadata Infrastructure.

characterSetType String

Specifies whether this request pertains to database character sets or national character sets.

filters List<GetAutonomousCharacterSetsFilter>
isShared Boolean

Specifies whether this request is for Autonomous Database on Shared infrastructure. By default, this request will be for Autonomous Database on Dedicated Exadata Infrastructure.

characterSetType string

Specifies whether this request pertains to database character sets or national character sets.

filters GetAutonomousCharacterSetsFilter[]
isShared boolean

Specifies whether this request is for Autonomous Database on Shared infrastructure. By default, this request will be for Autonomous Database on Dedicated Exadata Infrastructure.

character_set_type str

Specifies whether this request pertains to database character sets or national character sets.

filters GetAutonomousCharacterSetsFilter]
is_shared bool

Specifies whether this request is for Autonomous Database on Shared infrastructure. By default, this request will be for Autonomous Database on Dedicated Exadata Infrastructure.

characterSetType String

Specifies whether this request pertains to database character sets or national character sets.

filters List<Property Map>
isShared Boolean

Specifies whether this request is for Autonomous Database on Shared infrastructure. By default, this request will be for Autonomous Database on Dedicated Exadata Infrastructure.

getAutonomousCharacterSets Result

The following output properties are available:

AutonomousDatabaseCharacterSets List<GetAutonomousCharacterSetsAutonomousDatabaseCharacterSet>

The list of autonomous_database_character_sets.

Id string

The provider-assigned unique ID for this managed resource.

CharacterSetType string
Filters List<GetAutonomousCharacterSetsFilter>
IsShared bool
AutonomousDatabaseCharacterSets []GetAutonomousCharacterSetsAutonomousDatabaseCharacterSet

The list of autonomous_database_character_sets.

Id string

The provider-assigned unique ID for this managed resource.

CharacterSetType string
Filters []GetAutonomousCharacterSetsFilter
IsShared bool
autonomousDatabaseCharacterSets List<GetAutonomousCharacterSetsAutonomousCharacterSet>

The list of autonomous_database_character_sets.

id String

The provider-assigned unique ID for this managed resource.

characterSetType String
filters List<GetAutonomousCharacterSetsFilter>
isShared Boolean
autonomousDatabaseCharacterSets GetAutonomousCharacterSetsAutonomousDatabaseCharacterSet[]

The list of autonomous_database_character_sets.

id string

The provider-assigned unique ID for this managed resource.

characterSetType string
filters GetAutonomousCharacterSetsFilter[]
isShared boolean
autonomous_database_character_sets GetAutonomousCharacterSetsAutonomousDatabaseCharacterSet]

The list of autonomous_database_character_sets.

id str

The provider-assigned unique ID for this managed resource.

character_set_type str
filters GetAutonomousCharacterSetsFilter]
is_shared bool
autonomousDatabaseCharacterSets List<Property Map>

The list of autonomous_database_character_sets.

id String

The provider-assigned unique ID for this managed resource.

characterSetType String
filters List<Property Map>
isShared Boolean

Supporting Types

GetAutonomousCharacterSetsAutonomousDatabaseCharacterSet

Name string

A valid Oracle character set.

Name string

A valid Oracle character set.

name String

A valid Oracle character set.

name string

A valid Oracle character set.

name str

A valid Oracle character set.

name String

A valid Oracle character set.

GetAutonomousCharacterSetsFilter

Name string

A valid Oracle character set.

Values List<string>
Regex bool
Name string

A valid Oracle character set.

Values []string
Regex bool
name String

A valid Oracle character set.

values List<String>
regex Boolean
name string

A valid Oracle character set.

values string[]
regex boolean
name str

A valid Oracle character set.

values Sequence[str]
regex bool
name String

A valid Oracle character set.

values List<String>
regex Boolean

Package Details

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

This Pulumi package is based on the oci Terraform Provider.