1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getAutonomousCharacterSets
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Database.getAutonomousCharacterSets

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousDatabaseCharacterSets = oci.Database.getAutonomousCharacterSets({
        characterSetType: autonomousDatabaseCharacterSetCharacterSetType,
        isDedicated: autonomousDatabaseCharacterSetIsDedicated,
        isShared: autonomousDatabaseCharacterSetIsShared,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_database_character_sets = oci.Database.get_autonomous_character_sets(character_set_type=autonomous_database_character_set_character_set_type,
        is_dedicated=autonomous_database_character_set_is_dedicated,
        is_shared=autonomous_database_character_set_is_shared)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/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(autonomousDatabaseCharacterSetCharacterSetType),
    			IsDedicated:      pulumi.BoolRef(autonomousDatabaseCharacterSetIsDedicated),
    			IsShared:         pulumi.BoolRef(autonomousDatabaseCharacterSetIsShared),
    		}, 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 testAutonomousDatabaseCharacterSets = Oci.Database.GetAutonomousCharacterSets.Invoke(new()
        {
            CharacterSetType = autonomousDatabaseCharacterSetCharacterSetType,
            IsDedicated = autonomousDatabaseCharacterSetIsDedicated,
            IsShared = autonomousDatabaseCharacterSetIsShared,
        });
    
    });
    
    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(autonomousDatabaseCharacterSetCharacterSetType)
                .isDedicated(autonomousDatabaseCharacterSetIsDedicated)
                .isShared(autonomousDatabaseCharacterSetIsShared)
                .build());
    
        }
    }
    
    variables:
      testAutonomousDatabaseCharacterSets:
        fn::invoke:
          Function: oci:Database:getAutonomousCharacterSets
          Arguments:
            characterSetType: ${autonomousDatabaseCharacterSetCharacterSetType}
            isDedicated: ${autonomousDatabaseCharacterSetIsDedicated}
            isShared: ${autonomousDatabaseCharacterSetIsShared}
    

    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_dedicated: Optional[bool] = 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_dedicated: Optional[pulumi.Input[bool]] = 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>
    IsDedicated bool
    Specifies if the request is for an Autonomous Database Dedicated instance. The default request is for an Autonomous Database Dedicated instance.
    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
    IsDedicated bool
    Specifies if the request is for an Autonomous Database Dedicated instance. The default request is for an Autonomous Database Dedicated instance.
    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>
    isDedicated Boolean
    Specifies if the request is for an Autonomous Database Dedicated instance. The default request is for an Autonomous Database Dedicated instance.
    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[]
    isDedicated boolean
    Specifies if the request is for an Autonomous Database Dedicated instance. The default request is for an Autonomous Database Dedicated instance.
    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 Sequence[database.GetAutonomousCharacterSetsFilter]
    is_dedicated bool
    Specifies if the request is for an Autonomous Database Dedicated instance. The default request is for an Autonomous Database Dedicated instance.
    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>
    isDedicated Boolean
    Specifies if the request is for an Autonomous Database Dedicated instance. The default request is for an Autonomous Database Dedicated instance.
    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>
    IsDedicated bool
    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
    IsDedicated bool
    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>
    isDedicated Boolean
    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[]
    isDedicated boolean
    isShared boolean
    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>
    isDedicated Boolean
    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi