oci.Database.getDatabaseSoftwareImages
Explore with Pulumi AI
This data source provides the list of Database Software Images in Oracle Cloud Infrastructure Database service.
Gets a list of the database software images in the specified compartment.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDatabaseSoftwareImages = Oci.Database.GetDatabaseSoftwareImages.Invoke(new()
{
CompartmentId = @var.Compartment_id,
DisplayName = @var.Database_software_image_display_name,
ImageShapeFamily = @var.Database_software_image_image_shape_family,
ImageType = @var.Database_software_image_image_type,
IsUpgradeSupported = @var.Database_software_image_is_upgrade_supported,
State = @var.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.GetDatabaseSoftwareImages(ctx, &database.GetDatabaseSoftwareImagesArgs{
CompartmentId: _var.Compartment_id,
DisplayName: pulumi.StringRef(_var.Database_software_image_display_name),
ImageShapeFamily: pulumi.StringRef(_var.Database_software_image_image_shape_family),
ImageType: pulumi.StringRef(_var.Database_software_image_image_type),
IsUpgradeSupported: pulumi.BoolRef(_var.Database_software_image_is_upgrade_supported),
State: pulumi.StringRef(_var.Database_software_image_state),
}, 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.GetDatabaseSoftwareImagesArgs;
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 testDatabaseSoftwareImages = DatabaseFunctions.getDatabaseSoftwareImages(GetDatabaseSoftwareImagesArgs.builder()
.compartmentId(var_.compartment_id())
.displayName(var_.database_software_image_display_name())
.imageShapeFamily(var_.database_software_image_image_shape_family())
.imageType(var_.database_software_image_image_type())
.isUpgradeSupported(var_.database_software_image_is_upgrade_supported())
.state(var_.database_software_image_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_database_software_images = oci.Database.get_database_software_images(compartment_id=var["compartment_id"],
display_name=var["database_software_image_display_name"],
image_shape_family=var["database_software_image_image_shape_family"],
image_type=var["database_software_image_image_type"],
is_upgrade_supported=var["database_software_image_is_upgrade_supported"],
state=var["database_software_image_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDatabaseSoftwareImages = oci.Database.getDatabaseSoftwareImages({
compartmentId: _var.compartment_id,
displayName: _var.database_software_image_display_name,
imageShapeFamily: _var.database_software_image_image_shape_family,
imageType: _var.database_software_image_image_type,
isUpgradeSupported: _var.database_software_image_is_upgrade_supported,
state: _var.database_software_image_state,
});
variables:
testDatabaseSoftwareImages:
fn::invoke:
Function: oci:Database:getDatabaseSoftwareImages
Arguments:
compartmentId: ${var.compartment_id}
displayName: ${var.database_software_image_display_name}
imageShapeFamily: ${var.database_software_image_image_shape_family}
imageType: ${var.database_software_image_image_type}
isUpgradeSupported: ${var.database_software_image_is_upgrade_supported}
state: ${var.database_software_image_state}
Using getDatabaseSoftwareImages
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 getDatabaseSoftwareImages(args: GetDatabaseSoftwareImagesArgs, opts?: InvokeOptions): Promise<GetDatabaseSoftwareImagesResult>
function getDatabaseSoftwareImagesOutput(args: GetDatabaseSoftwareImagesOutputArgs, opts?: InvokeOptions): Output<GetDatabaseSoftwareImagesResult>
def get_database_software_images(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_database.GetDatabaseSoftwareImagesFilter]] = None,
image_shape_family: Optional[str] = None,
image_type: Optional[str] = None,
is_upgrade_supported: Optional[bool] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabaseSoftwareImagesResult
def get_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.GetDatabaseSoftwareImagesFilterArgs]]]] = None,
image_shape_family: Optional[pulumi.Input[str]] = None,
image_type: Optional[pulumi.Input[str]] = None,
is_upgrade_supported: Optional[pulumi.Input[bool]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseSoftwareImagesResult]
func GetDatabaseSoftwareImages(ctx *Context, args *GetDatabaseSoftwareImagesArgs, opts ...InvokeOption) (*GetDatabaseSoftwareImagesResult, error)
func GetDatabaseSoftwareImagesOutput(ctx *Context, args *GetDatabaseSoftwareImagesOutputArgs, opts ...InvokeOption) GetDatabaseSoftwareImagesResultOutput
> Note: This function is named GetDatabaseSoftwareImages
in the Go SDK.
public static class GetDatabaseSoftwareImages
{
public static Task<GetDatabaseSoftwareImagesResult> InvokeAsync(GetDatabaseSoftwareImagesArgs args, InvokeOptions? opts = null)
public static Output<GetDatabaseSoftwareImagesResult> Invoke(GetDatabaseSoftwareImagesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDatabaseSoftwareImagesResult> getDatabaseSoftwareImages(GetDatabaseSoftwareImagesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getDatabaseSoftwareImages:getDatabaseSoftwareImages
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string The compartment OCID.
- Display
Name string A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
List<Get
Database Software Images Filter> - Image
Shape stringFamily A filter to return only resources that match the given image shape family exactly.
- Image
Type string A filter to return only resources that match the given image type exactly.
- Is
Upgrade boolSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- State string
A filter to return only resources that match the given lifecycle state exactly.
- Compartment
Id string The compartment OCID.
- Display
Name string A filter to return only resources that match the entire display name given. The match is not case sensitive.
- Filters
[]Get
Database Software Images Filter - Image
Shape stringFamily A filter to return only resources that match the given image shape family exactly.
- Image
Type string A filter to return only resources that match the given image type exactly.
- Is
Upgrade boolSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- State string
A filter to return only resources that match the given lifecycle state exactly.
- compartment
Id String The compartment OCID.
- display
Name String A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
List<Get
Software Images Filter> - image
Shape StringFamily A filter to return only resources that match the given image shape family exactly.
- image
Type String A filter to return only resources that match the given image type exactly.
- is
Upgrade BooleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- state String
A filter to return only resources that match the given lifecycle state exactly.
- compartment
Id string The compartment OCID.
- display
Name string A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
Get
Database Software Images Filter[] - image
Shape stringFamily A filter to return only resources that match the given image shape family exactly.
- image
Type string A filter to return only resources that match the given image type exactly.
- is
Upgrade booleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- state string
A filter to return only resources that match the given lifecycle state exactly.
- compartment_
id str The compartment OCID.
- display_
name str A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters
Get
Database Software Images Filter] - image_
shape_ strfamily A filter to return only resources that match the given image shape family exactly.
- image_
type str A filter to return only resources that match the given image type exactly.
- is_
upgrade_ boolsupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- state str
A filter to return only resources that match the given lifecycle state exactly.
- compartment
Id String The compartment OCID.
- display
Name String A filter to return only resources that match the entire display name given. The match is not case sensitive.
- filters List<Property Map>
- image
Shape StringFamily A filter to return only resources that match the given image shape family exactly.
- image
Type String A filter to return only resources that match the given image type exactly.
- is
Upgrade BooleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- state String
A filter to return only resources that match the given lifecycle state exactly.
getDatabaseSoftwareImages Result
The following output properties are available:
- Compartment
Id string The OCID of the compartment.
- Database
Software List<GetImages Database Software Images Database Software Image> The list of database_software_images.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string The user-friendly name for the database software image. The name does not have to be unique.
- Filters
List<Get
Database Software Images Filter> - Image
Shape stringFamily To what shape the image is meant for.
- Image
Type string The type of software image. Can be grid or database.
- Is
Upgrade boolSupported True if this Database software image is supported for Upgrade.
- State string
The current state of the database software image.
- Compartment
Id string The OCID of the compartment.
- Database
Software []GetImages Database Software Images Database Software Image The list of database_software_images.
- Id string
The provider-assigned unique ID for this managed resource.
- Display
Name string The user-friendly name for the database software image. The name does not have to be unique.
- Filters
[]Get
Database Software Images Filter - Image
Shape stringFamily To what shape the image is meant for.
- Image
Type string The type of software image. Can be grid or database.
- Is
Upgrade boolSupported True if this Database software image is supported for Upgrade.
- State string
The current state of the database software image.
- compartment
Id String The OCID of the compartment.
- database
Software List<GetImages Software Images Software Image> The list of database_software_images.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String The user-friendly name for the database software image. The name does not have to be unique.
- filters
List<Get
Software Images Filter> - image
Shape StringFamily To what shape the image is meant for.
- image
Type String The type of software image. Can be grid or database.
- is
Upgrade BooleanSupported True if this Database software image is supported for Upgrade.
- state String
The current state of the database software image.
- compartment
Id string The OCID of the compartment.
- database
Software GetImages Database Software Images Database Software Image[] The list of database_software_images.
- id string
The provider-assigned unique ID for this managed resource.
- display
Name string The user-friendly name for the database software image. The name does not have to be unique.
- filters
Get
Database Software Images Filter[] - image
Shape stringFamily To what shape the image is meant for.
- image
Type string The type of software image. Can be grid or database.
- is
Upgrade booleanSupported True if this Database software image is supported for Upgrade.
- state string
The current state of the database software image.
- compartment_
id str The OCID of the compartment.
- database_
software_ Getimages Database Software Images Database Software Image] The list of database_software_images.
- id str
The provider-assigned unique ID for this managed resource.
- display_
name str The user-friendly name for the database software image. The name does not have to be unique.
- filters
Get
Database Software Images Filter] - image_
shape_ strfamily To what shape the image is meant for.
- image_
type str The type of software image. Can be grid or database.
- is_
upgrade_ boolsupported True if this Database software image is supported for Upgrade.
- state str
The current state of the database software image.
- compartment
Id String The OCID of the compartment.
- database
Software List<Property Map>Images The list of database_software_images.
- id String
The provider-assigned unique ID for this managed resource.
- display
Name String The user-friendly name for the database software image. The name does not have to be unique.
- filters List<Property Map>
- image
Shape StringFamily To what shape the image is meant for.
- image
Type String The type of software image. Can be grid or database.
- is
Upgrade BooleanSupported True if this Database software image is supported for Upgrade.
- state String
The current state of the database software image.
Supporting Types
GetDatabaseSoftwareImagesDatabaseSoftwareImage
- Compartment
Id string The compartment OCID.
- Database
Software List<string>Image Included Patches List of one-off patches for Database Homes.
- Database
Software List<string>Image One Off Patches List of one-off patches for Database Homes.
- Database
Version string The database version with which the database software image is to be built.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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 database software image.
- Image
Shape stringFamily A filter to return only resources that match the given image shape family exactly.
- Image
Type string A filter to return only resources that match the given image type exactly.
- Included
Patches stringSummary The patches included in the image and the version of the image.
- Is
Upgrade boolSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- Lifecycle
Details string Detailed message for the lifecycle state.
- Ls
Inventory string The output from the OPatch lsInventory command, which is passed as a string.
- Patch
Set string The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- Source
Db stringHome Id - State string
A filter to return only resources that match the given lifecycle state exactly.
- Time
Created string The date and time the database software image was created.
- Compartment
Id string The compartment OCID.
- Database
Software []stringImage Included Patches List of one-off patches for Database Homes.
- Database
Software []stringImage One Off Patches List of one-off patches for Database Homes.
- Database
Version string The database version with which the database software image is to be built.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Display
Name string A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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 database software image.
- Image
Shape stringFamily A filter to return only resources that match the given image shape family exactly.
- Image
Type string A filter to return only resources that match the given image type exactly.
- Included
Patches stringSummary The patches included in the image and the version of the image.
- Is
Upgrade boolSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- Lifecycle
Details string Detailed message for the lifecycle state.
- Ls
Inventory string The output from the OPatch lsInventory command, which is passed as a string.
- Patch
Set string The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- Source
Db stringHome Id - State string
A filter to return only resources that match the given lifecycle state exactly.
- Time
Created string The date and time the database software image was created.
- compartment
Id String The compartment OCID.
- database
Software List<String>Image Included Patches List of one-off patches for Database Homes.
- database
Software List<String>Image One Off Patches List of one-off patches for Database Homes.
- database
Version String The database version with which the database software image is to be built.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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 database software image.
- image
Shape StringFamily A filter to return only resources that match the given image shape family exactly.
- image
Type String A filter to return only resources that match the given image type exactly.
- included
Patches StringSummary The patches included in the image and the version of the image.
- is
Upgrade BooleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- lifecycle
Details String Detailed message for the lifecycle state.
- ls
Inventory String The output from the OPatch lsInventory command, which is passed as a string.
- patch
Set String The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- source
Db StringHome Id - state String
A filter to return only resources that match the given lifecycle state exactly.
- time
Created String The date and time the database software image was created.
- compartment
Id string The compartment OCID.
- database
Software string[]Image Included Patches List of one-off patches for Database Homes.
- database
Software string[]Image One Off Patches List of one-off patches for Database Homes.
- database
Version string The database version with which the database software image is to be built.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name string A filter to return only resources that match the entire display name given. The match is not case sensitive.
- {[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 database software image.
- image
Shape stringFamily A filter to return only resources that match the given image shape family exactly.
- image
Type string A filter to return only resources that match the given image type exactly.
- included
Patches stringSummary The patches included in the image and the version of the image.
- is
Upgrade booleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- lifecycle
Details string Detailed message for the lifecycle state.
- ls
Inventory string The output from the OPatch lsInventory command, which is passed as a string.
- patch
Set string The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- source
Db stringHome Id - state string
A filter to return only resources that match the given lifecycle state exactly.
- time
Created string The date and time the database software image was created.
- compartment_
id str The compartment OCID.
- database_
software_ Sequence[str]image_ included_ patches List of one-off patches for Database Homes.
- database_
software_ Sequence[str]image_ one_ off_ patches List of one-off patches for Database Homes.
- database_
version str The database version with which the database software image is to be built.
- 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.
- 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 database software image.
- image_
shape_ strfamily A filter to return only resources that match the given image shape family exactly.
- image_
type str A filter to return only resources that match the given image type exactly.
- included_
patches_ strsummary The patches included in the image and the version of the image.
- is_
upgrade_ boolsupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- lifecycle_
details str Detailed message for the lifecycle state.
- ls_
inventory str The output from the OPatch lsInventory command, which is passed as a string.
- patch_
set str The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- source_
db_ strhome_ id - state str
A filter to return only resources that match the given lifecycle state exactly.
- time_
created str The date and time the database software image was created.
- compartment
Id String The compartment OCID.
- database
Software List<String>Image Included Patches List of one-off patches for Database Homes.
- database
Software List<String>Image One Off Patches List of one-off patches for Database Homes.
- database
Version String The database version with which the database software image is to be built.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- display
Name String A filter to return only resources that match the entire display name given. The match is not case sensitive.
- 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 database software image.
- image
Shape StringFamily A filter to return only resources that match the given image shape family exactly.
- image
Type String A filter to return only resources that match the given image type exactly.
- included
Patches StringSummary The patches included in the image and the version of the image.
- is
Upgrade BooleanSupported If provided, filters the results to the set of database versions which are supported for Upgrade.
- lifecycle
Details String Detailed message for the lifecycle state.
- ls
Inventory String The output from the OPatch lsInventory command, which is passed as a string.
- patch
Set String The PSU or PBP or Release Updates. To get a list of supported versions, use the ListDbVersions operation.
- source
Db StringHome Id - state String
A filter to return only resources that match the given lifecycle state exactly.
- time
Created String The date and time the database software image was created.
GetDatabaseSoftwareImagesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.