1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. BigDataService
  5. getBdsInstancePatchHistories
Oracle Cloud Infrastructure v1.10.0 published on Thursday, Sep 7, 2023 by Pulumi

oci.BigDataService.getBdsInstancePatchHistories

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.10.0 published on Thursday, Sep 7, 2023 by Pulumi

    This data source provides the list of Bds Instance Patch Histories in Oracle Cloud Infrastructure Big Data Service service.

    List the patch history of this cluster.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testBdsInstancePatchHistories = Oci.BigDataService.GetBdsInstancePatchHistories.Invoke(new()
        {
            BdsInstanceId = oci_bds_bds_instance.Test_bds_instance.Id,
            PatchType = @var.Bds_instance_patch_history_patch_type,
            PatchVersion = @var.Bds_instance_patch_history_patch_version,
            State = @var.Bds_instance_patch_history_state,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/BigDataService"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := BigDataService.GetBdsInstancePatchHistories(ctx, &bigdataservice.GetBdsInstancePatchHistoriesArgs{
    			BdsInstanceId: oci_bds_bds_instance.Test_bds_instance.Id,
    			PatchType:     pulumi.StringRef(_var.Bds_instance_patch_history_patch_type),
    			PatchVersion:  pulumi.StringRef(_var.Bds_instance_patch_history_patch_version),
    			State:         pulumi.StringRef(_var.Bds_instance_patch_history_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.BigDataService.BigDataServiceFunctions;
    import com.pulumi.oci.BigDataService.inputs.GetBdsInstancePatchHistoriesArgs;
    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 testBdsInstancePatchHistories = BigDataServiceFunctions.getBdsInstancePatchHistories(GetBdsInstancePatchHistoriesArgs.builder()
                .bdsInstanceId(oci_bds_bds_instance.test_bds_instance().id())
                .patchType(var_.bds_instance_patch_history_patch_type())
                .patchVersion(var_.bds_instance_patch_history_patch_version())
                .state(var_.bds_instance_patch_history_state())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_bds_instance_patch_histories = oci.BigDataService.get_bds_instance_patch_histories(bds_instance_id=oci_bds_bds_instance["test_bds_instance"]["id"],
        patch_type=var["bds_instance_patch_history_patch_type"],
        patch_version=var["bds_instance_patch_history_patch_version"],
        state=var["bds_instance_patch_history_state"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testBdsInstancePatchHistories = oci.BigDataService.getBdsInstancePatchHistories({
        bdsInstanceId: oci_bds_bds_instance.test_bds_instance.id,
        patchType: _var.bds_instance_patch_history_patch_type,
        patchVersion: _var.bds_instance_patch_history_patch_version,
        state: _var.bds_instance_patch_history_state,
    });
    
    variables:
      testBdsInstancePatchHistories:
        fn::invoke:
          Function: oci:BigDataService:getBdsInstancePatchHistories
          Arguments:
            bdsInstanceId: ${oci_bds_bds_instance.test_bds_instance.id}
            patchType: ${var.bds_instance_patch_history_patch_type}
            patchVersion: ${var.bds_instance_patch_history_patch_version}
            state: ${var.bds_instance_patch_history_state}
    

    Using getBdsInstancePatchHistories

    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 getBdsInstancePatchHistories(args: GetBdsInstancePatchHistoriesArgs, opts?: InvokeOptions): Promise<GetBdsInstancePatchHistoriesResult>
    function getBdsInstancePatchHistoriesOutput(args: GetBdsInstancePatchHistoriesOutputArgs, opts?: InvokeOptions): Output<GetBdsInstancePatchHistoriesResult>
    def get_bds_instance_patch_histories(bds_instance_id: Optional[str] = None,
                                         filters: Optional[Sequence[_bigdataservice.GetBdsInstancePatchHistoriesFilter]] = None,
                                         patch_type: Optional[str] = None,
                                         patch_version: Optional[str] = None,
                                         state: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetBdsInstancePatchHistoriesResult
    def get_bds_instance_patch_histories_output(bds_instance_id: Optional[pulumi.Input[str]] = None,
                                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_bigdataservice.GetBdsInstancePatchHistoriesFilterArgs]]]] = None,
                                         patch_type: Optional[pulumi.Input[str]] = None,
                                         patch_version: Optional[pulumi.Input[str]] = None,
                                         state: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetBdsInstancePatchHistoriesResult]
    func GetBdsInstancePatchHistories(ctx *Context, args *GetBdsInstancePatchHistoriesArgs, opts ...InvokeOption) (*GetBdsInstancePatchHistoriesResult, error)
    func GetBdsInstancePatchHistoriesOutput(ctx *Context, args *GetBdsInstancePatchHistoriesOutputArgs, opts ...InvokeOption) GetBdsInstancePatchHistoriesResultOutput

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

    public static class GetBdsInstancePatchHistories 
    {
        public static Task<GetBdsInstancePatchHistoriesResult> InvokeAsync(GetBdsInstancePatchHistoriesArgs args, InvokeOptions? opts = null)
        public static Output<GetBdsInstancePatchHistoriesResult> Invoke(GetBdsInstancePatchHistoriesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBdsInstancePatchHistoriesResult> getBdsInstancePatchHistories(GetBdsInstancePatchHistoriesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:BigDataService/getBdsInstancePatchHistories:getBdsInstancePatchHistories
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BdsInstanceId string

    The OCID of the cluster.

    Filters List<GetBdsInstancePatchHistoriesFilter>
    PatchType string

    The type of a BDS patch history entity.

    PatchVersion string

    The version of the patch

    State string

    The status of the patch.

    BdsInstanceId string

    The OCID of the cluster.

    Filters []GetBdsInstancePatchHistoriesFilter
    PatchType string

    The type of a BDS patch history entity.

    PatchVersion string

    The version of the patch

    State string

    The status of the patch.

    bdsInstanceId String

    The OCID of the cluster.

    filters List<GetBdsInstancePatchHistoriesFilter>
    patchType String

    The type of a BDS patch history entity.

    patchVersion String

    The version of the patch

    state String

    The status of the patch.

    bdsInstanceId string

    The OCID of the cluster.

    filters GetBdsInstancePatchHistoriesFilter[]
    patchType string

    The type of a BDS patch history entity.

    patchVersion string

    The version of the patch

    state string

    The status of the patch.

    bds_instance_id str

    The OCID of the cluster.

    filters GetBdsInstancePatchHistoriesFilter]
    patch_type str

    The type of a BDS patch history entity.

    patch_version str

    The version of the patch

    state str

    The status of the patch.

    bdsInstanceId String

    The OCID of the cluster.

    filters List<Property Map>
    patchType String

    The type of a BDS patch history entity.

    patchVersion String

    The version of the patch

    state String

    The status of the patch.

    getBdsInstancePatchHistories Result

    The following output properties are available:

    BdsInstanceId string
    Id string

    The provider-assigned unique ID for this managed resource.

    PatchHistories List<GetBdsInstancePatchHistoriesPatchHistory>

    The list of patch_histories.

    Filters List<GetBdsInstancePatchHistoriesFilter>
    PatchType string

    The type of current patch history. DP - Data Plane patch(This history type is internal available only) ODH - Oracle Distribution of Hadoop patch OS - Operating System patch

    PatchVersion string
    State string

    The status of this patch.

    BdsInstanceId string
    Id string

    The provider-assigned unique ID for this managed resource.

    PatchHistories []GetBdsInstancePatchHistoriesPatchHistory

    The list of patch_histories.

    Filters []GetBdsInstancePatchHistoriesFilter
    PatchType string

    The type of current patch history. DP - Data Plane patch(This history type is internal available only) ODH - Oracle Distribution of Hadoop patch OS - Operating System patch

    PatchVersion string
    State string

    The status of this patch.

    bdsInstanceId String
    id String

    The provider-assigned unique ID for this managed resource.

    patchHistories List<GetBdsInstancePatchHistoriesPatchHistory>

    The list of patch_histories.

    filters List<GetBdsInstancePatchHistoriesFilter>
    patchType String

    The type of current patch history. DP - Data Plane patch(This history type is internal available only) ODH - Oracle Distribution of Hadoop patch OS - Operating System patch

    patchVersion String
    state String

    The status of this patch.

    bdsInstanceId string
    id string

    The provider-assigned unique ID for this managed resource.

    patchHistories GetBdsInstancePatchHistoriesPatchHistory[]

    The list of patch_histories.

    filters GetBdsInstancePatchHistoriesFilter[]
    patchType string

    The type of current patch history. DP - Data Plane patch(This history type is internal available only) ODH - Oracle Distribution of Hadoop patch OS - Operating System patch

    patchVersion string
    state string

    The status of this patch.

    bds_instance_id str
    id str

    The provider-assigned unique ID for this managed resource.

    patch_histories GetBdsInstancePatchHistoriesPatchHistory]

    The list of patch_histories.

    filters GetBdsInstancePatchHistoriesFilter]
    patch_type str

    The type of current patch history. DP - Data Plane patch(This history type is internal available only) ODH - Oracle Distribution of Hadoop patch OS - Operating System patch

    patch_version str
    state str

    The status of this patch.

    bdsInstanceId String
    id String

    The provider-assigned unique ID for this managed resource.

    patchHistories List<Property Map>

    The list of patch_histories.

    filters List<Property Map>
    patchType String

    The type of current patch history. DP - Data Plane patch(This history type is internal available only) ODH - Oracle Distribution of Hadoop patch OS - Operating System patch

    patchVersion String
    state String

    The status of this patch.

    Supporting Types

    GetBdsInstancePatchHistoriesFilter

    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

    GetBdsInstancePatchHistoriesPatchHistory

    PatchType string

    The type of a BDS patch history entity.

    State string

    The status of the patch.

    TimeUpdated string

    The time when the patch history was last updated.

    Version string

    The version of the patch.

    PatchType string

    The type of a BDS patch history entity.

    State string

    The status of the patch.

    TimeUpdated string

    The time when the patch history was last updated.

    Version string

    The version of the patch.

    patchType String

    The type of a BDS patch history entity.

    state String

    The status of the patch.

    timeUpdated String

    The time when the patch history was last updated.

    version String

    The version of the patch.

    patchType string

    The type of a BDS patch history entity.

    state string

    The status of the patch.

    timeUpdated string

    The time when the patch history was last updated.

    version string

    The version of the patch.

    patch_type str

    The type of a BDS patch history entity.

    state str

    The status of the patch.

    time_updated str

    The time when the patch history was last updated.

    version str

    The version of the patch.

    patchType String

    The type of a BDS patch history entity.

    state String

    The status of the patch.

    timeUpdated String

    The time when the patch history was last updated.

    version String

    The version of the patch.

    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.10.0 published on Thursday, Sep 7, 2023 by Pulumi