1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getAutonomousDatabaseSoftwareImages
Oracle Cloud Infrastructure v1.37.0 published on Friday, May 24, 2024 by Pulumi

oci.Database.getAutonomousDatabaseSoftwareImages

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.37.0 published on Friday, May 24, 2024 by Pulumi

    This data source provides the list of Autonomous Database Software Images in Oracle Cloud Infrastructure Database service.

    Gets a list of the Autonomous Database Software Images in the specified compartment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAutonomousDatabaseSoftwareImages = oci.Database.getAutonomousDatabaseSoftwareImages({
        compartmentId: compartmentId,
        imageShapeFamily: autonomousDatabaseSoftwareImageImageShapeFamily,
        displayName: autonomousDatabaseSoftwareImageDisplayName,
        state: autonomousDatabaseSoftwareImageState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_autonomous_database_software_images = oci.Database.get_autonomous_database_software_images(compartment_id=compartment_id,
        image_shape_family=autonomous_database_software_image_image_shape_family,
        display_name=autonomous_database_software_image_display_name,
        state=autonomous_database_software_image_state)
    
    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.GetAutonomousDatabaseSoftwareImages(ctx, &database.GetAutonomousDatabaseSoftwareImagesArgs{
    			CompartmentId:    compartmentId,
    			ImageShapeFamily: autonomousDatabaseSoftwareImageImageShapeFamily,
    			DisplayName:      pulumi.StringRef(autonomousDatabaseSoftwareImageDisplayName),
    			State:            pulumi.StringRef(autonomousDatabaseSoftwareImageState),
    		}, 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 testAutonomousDatabaseSoftwareImages = Oci.Database.GetAutonomousDatabaseSoftwareImages.Invoke(new()
        {
            CompartmentId = compartmentId,
            ImageShapeFamily = autonomousDatabaseSoftwareImageImageShapeFamily,
            DisplayName = autonomousDatabaseSoftwareImageDisplayName,
            State = autonomousDatabaseSoftwareImageState,
        });
    
    });
    
    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.GetAutonomousDatabaseSoftwareImagesArgs;
    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 testAutonomousDatabaseSoftwareImages = DatabaseFunctions.getAutonomousDatabaseSoftwareImages(GetAutonomousDatabaseSoftwareImagesArgs.builder()
                .compartmentId(compartmentId)
                .imageShapeFamily(autonomousDatabaseSoftwareImageImageShapeFamily)
                .displayName(autonomousDatabaseSoftwareImageDisplayName)
                .state(autonomousDatabaseSoftwareImageState)
                .build());
    
        }
    }
    
    variables:
      testAutonomousDatabaseSoftwareImages:
        fn::invoke:
          Function: oci:Database:getAutonomousDatabaseSoftwareImages
          Arguments:
            compartmentId: ${compartmentId}
            imageShapeFamily: ${autonomousDatabaseSoftwareImageImageShapeFamily}
            displayName: ${autonomousDatabaseSoftwareImageDisplayName}
            state: ${autonomousDatabaseSoftwareImageState}
    

    Using getAutonomousDatabaseSoftwareImages

    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 getAutonomousDatabaseSoftwareImages(args: GetAutonomousDatabaseSoftwareImagesArgs, opts?: InvokeOptions): Promise<GetAutonomousDatabaseSoftwareImagesResult>
    function getAutonomousDatabaseSoftwareImagesOutput(args: GetAutonomousDatabaseSoftwareImagesOutputArgs, opts?: InvokeOptions): Output<GetAutonomousDatabaseSoftwareImagesResult>
    def get_autonomous_database_software_images(compartment_id: Optional[str] = None,
                                                display_name: Optional[str] = None,
                                                filters: Optional[Sequence[_database.GetAutonomousDatabaseSoftwareImagesFilter]] = None,
                                                image_shape_family: Optional[str] = None,
                                                state: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetAutonomousDatabaseSoftwareImagesResult
    def get_autonomous_database_software_images_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                display_name: Optional[pulumi.Input[str]] = None,
                                                filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetAutonomousDatabaseSoftwareImagesFilterArgs]]]] = None,
                                                image_shape_family: Optional[pulumi.Input[str]] = None,
                                                state: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousDatabaseSoftwareImagesResult]
    func GetAutonomousDatabaseSoftwareImages(ctx *Context, args *GetAutonomousDatabaseSoftwareImagesArgs, opts ...InvokeOption) (*GetAutonomousDatabaseSoftwareImagesResult, error)
    func GetAutonomousDatabaseSoftwareImagesOutput(ctx *Context, args *GetAutonomousDatabaseSoftwareImagesOutputArgs, opts ...InvokeOption) GetAutonomousDatabaseSoftwareImagesResultOutput

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

    public static class GetAutonomousDatabaseSoftwareImages 
    {
        public static Task<GetAutonomousDatabaseSoftwareImagesResult> InvokeAsync(GetAutonomousDatabaseSoftwareImagesArgs args, InvokeOptions? opts = null)
        public static Output<GetAutonomousDatabaseSoftwareImagesResult> Invoke(GetAutonomousDatabaseSoftwareImagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAutonomousDatabaseSoftwareImagesResult> getAutonomousDatabaseSoftwareImages(GetAutonomousDatabaseSoftwareImagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getAutonomousDatabaseSoftwareImages:getAutonomousDatabaseSoftwareImages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The compartment OCID.
    ImageShapeFamily string
    A filter to return only resources that match the given image shape family exactly.
    DisplayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    Filters List<GetAutonomousDatabaseSoftwareImagesFilter>
    State string
    A filter to return only resources that match the given lifecycle state exactly.
    CompartmentId string
    The compartment OCID.
    ImageShapeFamily string
    A filter to return only resources that match the given image shape family exactly.
    DisplayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    Filters []GetAutonomousDatabaseSoftwareImagesFilter
    State string
    A filter to return only resources that match the given lifecycle state exactly.
    compartmentId String
    The compartment OCID.
    imageShapeFamily String
    A filter to return only resources that match the given image shape family exactly.
    displayName String
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    filters List<GetAutonomousSoftwareImagesFilter>
    state String
    A filter to return only resources that match the given lifecycle state exactly.
    compartmentId string
    The compartment OCID.
    imageShapeFamily string
    A filter to return only resources that match the given image shape family exactly.
    displayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    filters GetAutonomousDatabaseSoftwareImagesFilter[]
    state string
    A filter to return only resources that match the given lifecycle state exactly.
    compartment_id str
    The compartment OCID.
    image_shape_family str
    A filter to return only resources that match the given image shape family exactly.
    display_name str
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    filters Sequence[database.GetAutonomousDatabaseSoftwareImagesFilter]
    state str
    A filter to return only resources that match the given lifecycle state exactly.
    compartmentId String
    The compartment OCID.
    imageShapeFamily String
    A filter to return only resources that match the given image shape family exactly.
    displayName String
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    filters List<Property Map>
    state String
    A filter to return only resources that match the given lifecycle state exactly.

    getAutonomousDatabaseSoftwareImages Result

    The following output properties are available:

    AutonomousDatabaseSoftwareImageCollections List<GetAutonomousDatabaseSoftwareImagesAutonomousDatabaseSoftwareImageCollection>
    The list of autonomous_database_software_image_collection.
    CompartmentId string
    The OCID of the compartment.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageShapeFamily string
    To what shape the image is meant for.
    DisplayName string
    The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
    Filters List<GetAutonomousDatabaseSoftwareImagesFilter>
    State string
    The current state of the Autonomous Database Software Image.
    AutonomousDatabaseSoftwareImageCollections []GetAutonomousDatabaseSoftwareImagesAutonomousDatabaseSoftwareImageCollection
    The list of autonomous_database_software_image_collection.
    CompartmentId string
    The OCID of the compartment.
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageShapeFamily string
    To what shape the image is meant for.
    DisplayName string
    The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
    Filters []GetAutonomousDatabaseSoftwareImagesFilter
    State string
    The current state of the Autonomous Database Software Image.
    autonomousDatabaseSoftwareImageCollections List<GetAutonomousSoftwareImagesAutonomousSoftwareImageCollection>
    The list of autonomous_database_software_image_collection.
    compartmentId String
    The OCID of the compartment.
    id String
    The provider-assigned unique ID for this managed resource.
    imageShapeFamily String
    To what shape the image is meant for.
    displayName String
    The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
    filters List<GetAutonomousSoftwareImagesFilter>
    state String
    The current state of the Autonomous Database Software Image.
    autonomousDatabaseSoftwareImageCollections GetAutonomousDatabaseSoftwareImagesAutonomousDatabaseSoftwareImageCollection[]
    The list of autonomous_database_software_image_collection.
    compartmentId string
    The OCID of the compartment.
    id string
    The provider-assigned unique ID for this managed resource.
    imageShapeFamily string
    To what shape the image is meant for.
    displayName string
    The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
    filters GetAutonomousDatabaseSoftwareImagesFilter[]
    state string
    The current state of the Autonomous Database Software Image.
    autonomous_database_software_image_collections Sequence[database.GetAutonomousDatabaseSoftwareImagesAutonomousDatabaseSoftwareImageCollection]
    The list of autonomous_database_software_image_collection.
    compartment_id str
    The OCID of the compartment.
    id str
    The provider-assigned unique ID for this managed resource.
    image_shape_family str
    To what shape the image is meant for.
    display_name str
    The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
    filters Sequence[database.GetAutonomousDatabaseSoftwareImagesFilter]
    state str
    The current state of the Autonomous Database Software Image.
    autonomousDatabaseSoftwareImageCollections List<Property Map>
    The list of autonomous_database_software_image_collection.
    compartmentId String
    The OCID of the compartment.
    id String
    The provider-assigned unique ID for this managed resource.
    imageShapeFamily String
    To what shape the image is meant for.
    displayName String
    The user-friendly name for the Autonomous Database Software Image. The name does not have to be unique.
    filters List<Property Map>
    state String
    The current state of the Autonomous Database Software Image.

    Supporting Types

    GetAutonomousDatabaseSoftwareImagesAutonomousDatabaseSoftwareImageCollection

    GetAutonomousDatabaseSoftwareImagesAutonomousDatabaseSoftwareImageCollectionItem

    AutonomousDsiOneOffPatches List<string>
    One-off patches included in the Autonomous Database Software Image
    CompartmentId string
    The compartment OCID.
    DatabaseVersion string
    The database version with which the Autonomous Database Software Image is to be built.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DisplayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the Autonomous Database Software Image.
    ImageShapeFamily string
    A filter to return only resources that match the given image shape family exactly.
    LifecycleDetails string
    Detailed message for the lifecycle state.
    ReleaseUpdate string
    The Release Updates.
    SourceCdbId string
    State string
    A filter to return only resources that match the given lifecycle state exactly.
    TimeCreated string
    The date and time the Autonomous Database Software Image was created.
    AutonomousDsiOneOffPatches []string
    One-off patches included in the Autonomous Database Software Image
    CompartmentId string
    The compartment OCID.
    DatabaseVersion string
    The database version with which the Autonomous Database Software Image is to be built.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    DisplayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the Autonomous Database Software Image.
    ImageShapeFamily string
    A filter to return only resources that match the given image shape family exactly.
    LifecycleDetails string
    Detailed message for the lifecycle state.
    ReleaseUpdate string
    The Release Updates.
    SourceCdbId string
    State string
    A filter to return only resources that match the given lifecycle state exactly.
    TimeCreated string
    The date and time the Autonomous Database Software Image was created.
    autonomousDsiOneOffPatches List<String>
    One-off patches included in the Autonomous Database Software Image
    compartmentId String
    The compartment OCID.
    databaseVersion String
    The database version with which the Autonomous Database Software Image is to be built.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the Autonomous Database Software Image.
    imageShapeFamily String
    A filter to return only resources that match the given image shape family exactly.
    lifecycleDetails String
    Detailed message for the lifecycle state.
    releaseUpdate String
    The Release Updates.
    sourceCdbId String
    state String
    A filter to return only resources that match the given lifecycle state exactly.
    timeCreated String
    The date and time the Autonomous Database Software Image was created.
    autonomousDsiOneOffPatches string[]
    One-off patches included in the Autonomous Database Software Image
    compartmentId string
    The compartment OCID.
    databaseVersion string
    The database version with which the Autonomous Database Software Image is to be built.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName string
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the Autonomous Database Software Image.
    imageShapeFamily string
    A filter to return only resources that match the given image shape family exactly.
    lifecycleDetails string
    Detailed message for the lifecycle state.
    releaseUpdate string
    The Release Updates.
    sourceCdbId string
    state string
    A filter to return only resources that match the given lifecycle state exactly.
    timeCreated string
    The date and time the Autonomous Database Software Image was created.
    autonomous_dsi_one_off_patches Sequence[str]
    One-off patches included in the Autonomous Database Software Image
    compartment_id str
    The compartment OCID.
    database_version str
    The database version with which the Autonomous Database Software Image is to be built.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    display_name str
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the Autonomous Database Software Image.
    image_shape_family str
    A filter to return only resources that match the given image shape family exactly.
    lifecycle_details str
    Detailed message for the lifecycle state.
    release_update str
    The Release Updates.
    source_cdb_id str
    state str
    A filter to return only resources that match the given lifecycle state exactly.
    time_created str
    The date and time the Autonomous Database Software Image was created.
    autonomousDsiOneOffPatches List<String>
    One-off patches included in the Autonomous Database Software Image
    compartmentId String
    The compartment OCID.
    databaseVersion String
    The database version with which the Autonomous Database Software Image is to be built.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    displayName String
    A filter to return only resources that match the entire display name given. The match is not case sensitive.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the Autonomous Database Software Image.
    imageShapeFamily String
    A filter to return only resources that match the given image shape family exactly.
    lifecycleDetails String
    Detailed message for the lifecycle state.
    releaseUpdate String
    The Release Updates.
    sourceCdbId String
    state String
    A filter to return only resources that match the given lifecycle state exactly.
    timeCreated String
    The date and time the Autonomous Database Software Image was created.

    GetAutonomousDatabaseSoftwareImagesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    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 v1.37.0 published on Friday, May 24, 2024 by Pulumi